FAU Android

FAU's local android experts!

To launch an app made using Processing from an app made using Eclipse, for this method we first need to identify the package name for our Processing app.  To do this, simply export your Processing app using the “Export Android Project” file menu item.

Once the project is exported, open the AndroidManifest file and copy down your package value.   In this example it will be:

“processing.test.collect_accelerometer_data”

Now in our Eclipse Android application we can place the following code in our button click method for our example application:


public void launchApp(View v){
		
    Intent LaunchIntent = getPackageManager()
    .getLaunchIntentForPackage("processing.test.collect_accelerometer_data");
    startActivity(LaunchIntent);
				
}

Here we use the package manager to get the launch intent of our processing app, then start a new activity with that launch intent.

 

Download the source code at the bottom of this post.

processing_collect_accelerometer_data

eclipse_app_launcher_method_1

Comments are closed.