On Fri, Apr 11, 2008 at 4:18 PM, jim.renkel <[EMAIL PROTECTED]> wrote:
>
> Megha,
>
> Urgent help needed here!!!
>
> I too need to have multiple (In my case only 2) .apk's installed into
> the emulator. Before I tried to bundle them together, I thought I
> should try installing just one of them with "adb install".
>
> When I try to do that, I get:
>
> DEBUG/PackageManager(510): Adding package
> name.renkel.james.HereIAm
> WARN/PackageManager(510):
> *************************************************
> WARN/PackageManager(510): Application package
> name.renkel.james.HereIAm already installed. Skipping duplicate.
> WARN/PackageManager(510):
> *************************************************
As Diego mentioned, this is because the package was already present on the
emulator, might be because you intalled the application earlier or because
you have duplicate package name across multiple applications.
>
>
> OK, so I use the dev tool package browser to remove the package, and
> try the adb install again. That seems to work, but when I try to
> execute the application on the emulator, I get
>
> INFO/ActivityThread(2211): Loading code package
> name.renkel.james.HereIAm (in name.renkel.james.HereIAm)
> DEBUG/dalvikvm(2211): Exception Ljava/lang/RuntimeException; from
> ActivityThread.java:1699 not caught locally
> DEBUG/dalvikvm(2211): Exception Ljava/lang/RuntimeException; from
> ZygoteInit.java:1553 not caught locally
> DEBUG/AndroidRuntime(2211): Shutting down VM
> WARN/dalvikvm(2211): threadid=3: thread exiting with uncaught
> exception (group=0x4000fdf8)
> ERROR/AndroidRuntime(2211): Uncaught handler: thread Main exiting
> due to uncaught exception
> ERROR/AndroidRuntime(2211): java.lang.RuntimeException: Unable to
> instantiate activity
> ComponentInfo{name.renkel.james.HereIAm/
> name.renkel.james.HereIAm.HIAactivity}:
>
> java.lang.ClassNotFoundException:
> name.renkel.james.HereIAm.HIAactivity in loader
> [EMAIL PROTECTED]
>
This might be because the package name.renkel.james.HereIAm which is
already installed on the emulator does not have an Activity by the name
HIAactivity. This could be because you have added the HIAactivity later in
the process, or you have another application with the same package name
installed already.
>
> and a whole lot more. OK, so let's get back to a known good
> environment while I try to figure this out.
>
> When I go back to eclipse and try and run the application from there,
> I get the duplicate package messages again, then unable to instantiate
> activity messages again.
>
> Then if I use the package browser to again remove the package, and
> then run the application from eclipse, all seems to be OK.
>
> So, I'm at least I'm back to where I was before I started all of this.
>
> But I can't successfully install one, let alone multiple, applications
> with adb.
>
> Could you please, on an urgent basis:
>
> 1. explain in detail how to install an application into the emulator
> using adb; and
As mentioned in the documentation:
http://code.google.com/android/intro/installing.html#otherides
Run adb install *myproject*/bin/<*appname*>.apk to upload the executable.
So, for example, to install the Lunar Lander sample, navigate in the command
line to *<your_sdk_dir>*/sample/LunarLander and type
../../tools/adb install bin/LunarLander.ap
>
> 2. how to package multiple applications together so they can be
> installed in one step, as is appently required by the "new" and ever
> evolving ADC submission rules.
If your single submission has multiple .apk files dependent on each other
you should try to bundle it to a single .apk by moving the resources,
packages to a single application and combining the AndroidManifest.xml files
to one AndroidManifest.xml. The thread below has some discussion on this
issue:
http://groups.google.com/group/android-developers/browse_thread/thread/3c2476b33398edb7/cb19dd2f7c341658
>
> I realize this is late in the game, as it were, but unless this is
> explained to me (and I believe many others) and I can successfully do
> this, my ADC submission won't be able to be installed and evaluated
> per the "rules" that have, late in the game, been established.
>
> Sorry, if I sound a little bitter about this, but I think the bugs
> should have been worked out of the submission process, if you will,
> much earlier than this, so that as the deadline approached we can
> concentrate on developing great applications and not have to worry
> about whether or not all the long and hard work we've put in so far
> will go to naught.
>
> Judging from traffic in this discussion group and others, I know I'm
> not alone in requiring this capability.
>
> Again, please, please, please, provide help here on an urgent basis.
>
> Thanks in advance for your attention to this.
Let us know if you face any issues.
Jim Renkel
>
>
> On Apr 11, 3:46 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > On Fri, Apr 11, 2008 at 12:09 AM, Vishal <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hi Dan,
> >
> > > The complete package size is 80 MB, I have tried several times in last
> > > 12 hrs and unable to make any progress, every time a failure.
> >
> > The upper limit on the size per submission is 10 MB, that might be the
> > reason for submission failure.
> >
> >
> >
> > > It includes two zip files,
> > > - one consist of 4 pdf documents; and
> >
> > Try to cut down the documentation if you can to reduce size of your
> > submission.
> >
> >
> >
> > > - second consist of a windows setup.exe(a self extracting
> > > installable) and three .apk files.
> >
> > The judges will not execute the windows setup exe. If you can you
> should
> > try to bundle your 3 .apk files to a single .apk file, if not, zip is
> okay.
> > There should be one executable file (.apk or .zip) that will be in
> installed
> > on the emulator and one other file ( documentation, etc. ) which will
> not
> > be installed on the emulator, per submission.
> > The combined size of these two files should not be more than 10MB.
> >
> >
> >
> > > Kindly suggest some mechanism.
> >
> > If your application needs more data, try to follow the "install then
> > download" model that Dan has suggested here:
> http://groups.google.com/group/android-challenge/msg/c88c4507f8369e01
> >
> >
> >
> > > Vishal Katyal
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Android Challenge" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-challenge?hl=en
-~----------~----~----~----~------~----~------~--~---