Sure - this is a peer-to-peer codebase that I imported into Android.
It was
a fairly straightforward import and everything works fine. I launch
the component
(the activity class starts all the corresponding threads) and the app
finds and
connects to peers across the network. I have a number of emulators
running
on laptops scattered around different network and they connect
exchange data
and are happy. But once I deploy this on a real device (either Droid
or HTC)
I get this exception which seems to say that some classes from the
imported
codebase are not found. I am not sure why this would be the case - I
should
get the same exception on the emulators if it was classloading problem
right?
Are there particular precautions or permissions that need to be taken
care of
for apps to migrate from the emulator to the real device?

On Nov 11, 12:26 am, Kumar Bibek <[email protected]> wrote:
> Can you provide some more details? As to what are you trying to do?
>
> On Thu, Nov 11, 2010 at 10:53 AM, kypriakos <[email protected]> wrote:
>
> > HI all,
>
> > I can run the app on the emulator without issues - when I run it on a
> > real device
> > I get the exception that certain classes are not found (see below for
> > exception).
> > I am sure this is a loaded question and I know an emulator is not a
> > real device
> > and many things can alter their behavior during this transition but
> > loading classes
> > seems a bit fundamental - any ideas? Perms and everything else in the
> > corresponding
> > directories are identical. I am just wondering if anyone else has
> > seen  similar
> > issue before and if they have any hints as to what to look for -
> > thanks again
>
> > I/System.out(  297): P2PA - ########## - fatal error : group creation
> > failure
> > W/System.err(  297): exception.PeerGroupException: Could not locate
> > World PeerGroup Module Implementation.
>
> > com.p2pSOAAndroidP2PA_16.P2PA.PeerToPeerAdapter.main(PeerToPeerAdapter.java:
> > 808)
> > W/System.err(  297):    at
>
> > com.p2pSOAAndroidP2PA_16.p2pSOAAndroidP2PA_16.onCreate(p2pSOAAndroidP2PA_16.java:
> > 124)
> > W/System.err(  297):    at
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > 1123)
> > W/System.err(  297):    at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 2364)
> > W/System.err(  297):    at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > 2417)
> > W/System.err(  297):    at android.app.ActivityThread.access
> > $2100(ActivityThread.java:116)
> > W/System.err(  297):    at android.app.ActivityThread
> > $H.handleMessage(ActivityThread.java:1794)
> > W/System.err(  297):    at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > W/System.err(  297):    at android.os.Looper.loop(Looper.java:123)
> > W/System.err(  297):    at
> > android.app.ActivityThread.main(ActivityThread.java:4203)
> > W/System.err(  297):    at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > W/System.err(  297):    at java.lang.reflect.Method.invoke(Method.java:
> > 521)
> > W/System.err(  297):    at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:791)
> > W/System.err(  297):    at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
> > W/System.err(  297):    at dalvik.system.NativeStart.main(Native
> > Method)
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to