Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the following example the library of themarkets MA is integrated. The corresponding java Class in jar file is needed:

  • de.spring.mobile.ma.SpringSpringMobile

 

Code Block
package de.spring.android.test;

import java.util.HashMap;
import java.util.Map;

import de.spring.mobile.ma.SpringMobile;


import android.app.Activity;

public class MyActivity extends Activity {
	
	SpringMobile ma;
	
	public MyActivity() {
		ma = new SpringMobile("site", "applicationname", getApplicationContext());
	}
	
	/**
	 * @see android.app.Activity#onStart()
	 */
	@Override
	protected void onStart() {
		
		Map<String, Object> mapma = new HashMap<String, Object>();
		mapma.put(SpringMobile.VAR_ACTION, SpringMobile.APP_STARTED);
    	ma.commit(mapma);
 
	}
 
	// more code ...
}