Re: getWindowManager in server?

by Justin Anderson » Fri, 20 May 2011 06:07:55 GMT


Sponsored Links
  http://developer.android.com/reference/android/content/Context.html #getSystemService(java.lang.String)
< http://developer.android.com/reference/android/content/Context.html #getSystemService(java.lang.String)>
Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 






-- 



Other Threads

1. Gtalk client implememtation

Can some tell me how to implement the gtalk client on android. i have
face a lot of problems implementing the unofficial source of the gtalk
client. The issues is related with xmpp classes.
--~--~---------~--~----~------------~-------~--~----~

2. Music player got crashed in android running on beagle

Hi,

I have android running on beagle.

When i click Music player, i got the following error on screen,

"The application Music (process com.android.music) has stopped unexpectedly.
Please try again"

in beagle, when i did logcat,

I/ActivityManager(  815): Starting activity: Intent {
action=android.intent.action.MAIN categories={android.intent.category}
I/ActivityManager(  815): Start proc com.android.music for activity
com.android.music/.VideoBrowserActivity: pid=1328 uid=1}
I/jdwp    ( 1328): received file descriptor 10 from ADB
W/ResourceType( 1328): Failure getting entry for 0x7f020019 (t=1 e=25) in
package 0: 0xffffffb5
D/AndroidRuntime( 1328): Shutting down VM
W/dalvikvm( 1328): threadid=3: thread exiting with uncaught exception
(group=0x4000fe68)
E/AndroidRuntime( 1328): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 1328): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.android.music/com.android.mr
E/AndroidRuntime( 1328):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2156)
E/AndroidRuntime( 1328):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2172)
E/AndroidRuntime( 1328):        at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime( 1328):        at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1586)
E/AndroidRuntime( 1328):        at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1328):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1328):        at
android.app.ActivityThread.main(ActivityThread.java:3790)
E/AndroidRuntime( 1328):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1328):        at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1328):        at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:745)
E/AndroidRuntime( 1328):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:503)
E/AndroidRuntime( 1328):        at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 1328): Caused by: android.view.InflateException: Binary
XML file line #18: Error inflating class java.lanr
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
E/AndroidRuntime( 1328):        at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.ja)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.parseInclude(LayoutInflater.java:676)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.rInflate(LayoutInflater.java:613)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 1328):        at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:226)
E/AndroidRuntime( 1328):        at
android.app.Activity.setContentView(Activity.java:1614)
E/AndroidRuntime( 1328):        at
com.android.music.VideoBrowserActivity.init(VideoBrowserActivity.java:52)
E/AndroidRuntime( 1328):        at
com.android.music.VideoBrowserActivity.onCreate(VideoBrowserActivity.java:45)
E/AndroidRuntime( 1328):        at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime( 1328):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2119)
E/AndroidRuntime( 1328):        ... 11 more
E/AndroidRuntime( 1328): Caused by:
java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 1328):        at
android.widget.ImageView.<init>(ImageView.java:102)
E/AndroidRuntime( 1328):        at
java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 1328):        at
java.lang.reflect.Constructor.newInstance(Constructor.java:451)
E/AndroidRuntime( 1328):        at
android.view.LayoutInflater.createView(LayoutInflater.java:499)
E/AndroidRuntime( 1328):        ... 25 more
E/AndroidRuntime( 1328): Caused by:
android.content.res.Resources$NotFoundException: File
res/drawable/title_bar_shadow.png9
E/AndroidRuntime( 1328):        at
android.content.res.Resources.loadDrawable(Resources.java:1595)
E/AndroidRuntime( 1328):        at
android.content.res.TypedArray.getDrawable(TypedArray.java:520)
E/AndroidRuntime( 1328):        at android.view.View.<init>(View.java:1688)
E/AndroidRuntime( 1328):        at
android.widget.ImageView.<init>(ImageView.java:106)
E/AndroidRuntime( 1328):        ... 29 more
E/AndroidRuntime( 1328): Caused by: java.io.FileNotFoundException:
res/drawable/title_bar_shadow.png
E/AndroidRuntime( 1328):        at
android.content.res.AssetManager.openNonAssetNative(Native Method)
E/AndroidRuntime( 1328):        at
android.content.res.AssetManager.openNonAsset(AssetManager.java:392)
E/AndroidRuntime( 1328):        at
android.content.res.Resources.loadDrawable(Resources.java:1588)
E/AndroidRuntime( 1328):        ... 32 more
I/Process (  815): Sending signal. PID: 1328 SIG: 3
I/dalvikvm( 1328): threadid=7: reacting to signal 3
I/dalvikvm( 1328): Wrote stack trace to '/data/anr/traces.txt'


What might be the problem, how to fix it ...

Regards,
HarishKumar.V

--~--~---------~--~----~------------~-------~--~----~

3. How often does gmail sync on the G1?

4. Is there any way to use the socket port lower than 1024 (eg. 223) in Android platform

5. My freeware concept for a multimedia entertainment device.

6. How to add SMS to inbox in android programmatically?

7. Internet permission won't let application start