Skip to main content

Posts

Showing posts from December, 2013

Android : adding library project into your project

Let say you have a list view activity in a separate project and is defined as library and it's main activity is "com.ls.list.MyActivity" t he proper way is to add the activity in the main project manifest file <activity android:name="com.ls.list.MyActivity" /> then create intent as usual Intent intent =new Intent(this, MyActivity.class);     startActivity(intent); another way which does not need the manifest changes  inside the main project's activity just write this simple code     Intent intent = new Intent(android.content.Intent.ACTION_VIEW);     intent.setComponent(new ComponentName("com.ls.list","com.ls.list.MyActivity"));      startActivity(intent);

Android :download android sdk manually

1- make sure that eclipse and sdk are closed 2- download the platform from this link http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html  and extract it under sdk\platforms 3-download system image for example  this for android 4.2  jelly-bean API level 17 http://software.intel.com/en-us/articles/intel-eula-x86-android-4-2-jelly-bean-bin extract it under  sdk\system-images\android-17 4- start eclipse and start sdk