Making Library for Android Application

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Postby sudheer1437 » Mon Oct 05, 2009 4:38 pm

I solved the above problem.. thanks...
But now my problem is :
in my java project, i need to write an Activity class and invoke it...

Let me explain u clearly..
As in ur DroidGaming.jar, it contains two class files one is view file and the other is activity file.

Similarly my jar file too contain one view class and one activity class..
now i have to start the activity class from view class..

how to do this...
I wrote a piece of code...
but my app crashes..


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Intent myIntent = new Intent();
  2.  
  3. myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  4.  
  5. myIntent.setAction(Intent.ACTION_VIEW);
  6.  
  7. myIntent.setClassName("<package>", "<Activity class name>");
  8.  
  9. myContext.startActivity(myIntent);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4



so can u plz help me out MrSnowFlake

Thanks in advance.
sudheer1437
Experienced Developer
Experienced Developer
 
Posts: 79
Joined: Sat Aug 08, 2009 7:42 am
Location: India

Top

Postby sudheer1437 » Mon Oct 05, 2009 4:47 pm

Thank you very much Quetzalcoatl,

Can u plz help me in solving the above issue also...
plzzzzzz
sudheer1437
Experienced Developer
Experienced Developer
 
Posts: 79
Joined: Sat Aug 08, 2009 7:42 am
Location: India

Re: Making Library for Android Application

Postby ddcruver » Sat May 22, 2010 7:22 pm

Its worth mentioning that the newest version of the SDK released during Google IO 2010 that handles this shared library thing, it does have catches to it but seems to make the process much cleaner. But it will handle resources and compile them into different R classes, if that is what you want as well.
ddcruver
Freshman
Freshman
 
Posts: 3
Joined: Sat May 22, 2010 6:49 am

Top
Previous

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests