app closing every time i log in with facebook - android

Every time i log in with facebook in my app it get closed without any error...
But, this is the log i get when the app calls the loginfacebook dialog.
Help! and thanks.
D/OpenGLRenderer: GL error from OpenGLRenderer: 0x501
E/OpenGLRenderer: GL_INVALID_VALUE
E/ViewRootImpl: sendUserActionEvent() mView == null
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
D/dalvikvm: GC_FOR_ALLOC freed 499K, 29% free 8575K/11996K, paused 23ms, total > 23ms
I/v_gralloc: Self allocation
W/IInputConnectionWrapper: getCursorCapsMode on inactive InputConnection
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
W/IInputConnectionWrapper: getSelectedText on inactive InputConnection
W/IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper: getCursorCapsMode on inactive InputConnection
D/dalvikvm: GC_FOR_ALLOC freed 645K, 29% free 8565K/11996K, paused 17ms, total > 17ms
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/Choreographer: Skipped 38 frames! The application may be doing too much work on its main thread
E/ViewRootImpl: sendUserActionEvent() mView == null
I/chromium: [INFO:CONSOLE(0)] "event.returnValue is deprecated. Please use the > standard event.preventDefault() instead.", source: (0)
W/chromium: [WARNING:spdy_session.cc(2388)] Received WINDOW_UPDATE for invalid > stream 13
W/chromium: [WARNING:spdy_session.cc(2388)] Received WINDOW_UPDATE for invalid > stream 15
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
I/v_gralloc: Self allocation
D/dalvikvm: GC_FOR_ALLOC freed 590K, 29% free 8605K/11996K, paused 54ms, total > 54ms
E/ViewRootImpl: sendUserActionEvent() mView == null
E/ViewRootImpl: sendUserActionEvent() mView == null
E/ViewRootImpl: sendUserActionEvent() mView == null
help!

This happens because your application is doing too much processing in UI thread
So do work with high processing on a different thread try implementing Async Tasks
check out below link
AsyncTask Android example

I had android:noHistory="true" on my manifest file for the Activity. So whenever the facebook activity was being loaded the login activity was being destroyed.
changing to "false" solved it

Related

what is updateColorViewInt()if drawable=null color and how to fix it

I am making an app when I started my app in emulator like bluestack then it show this logcat and finish it self
02-25 00:32:21.401 850-850/com.tricknearn.app D/dalvikvm: Late-enabling CheckJNI
02-25 00:32:21.601 850-850/com.tricknearn.app D/dalvikvm: GC_FOR_ALLOC freed 70K, 28% free 2690K/3728K, paused 20ms, total 40ms
02-25 00:32:21.651 850-850/com.tricknearn.app I/dalvikvm-heap: Grow heap (frag case) to 9.065MB for 6720012-byte allocation
02-25 00:32:21.661 850-859/com.tricknearn.app D/dalvikvm: GC_FOR_ALLOC freed <1K, 11% free 9252K/10292K, paused 10ms, total 10ms
02-25 00:32:21.671 850-853/com.tricknearn.app D/dalvikvm: GC_CONCURRENT freed <1K, 11% free 9252K/10292K, paused 0ms+0ms, total 0ms
02-25 00:32:22.011 850-850/com.tricknearn.app I/PGA: Attempting to create new SOCKET connectionn pid = 850, tid = 850
02-25 00:32:22.031 850-850/com.tricknearn.app I/PGA: New SOCKET connection: com.tricknearn.app (pid 850, tid 850)
02-25 00:32:23.261 850-850/com.tricknearn.app W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
And when I start this app in mobile device it shows logcat :
02-25 00:38:10.804 17347-17347/com.tricknearn.app V/PhoneWindow: updateColorViewInt()if drawable=null color=-14057287
what does these means and how to fix these. I don't know about that I tried to find this but i did't get usefull information.Need help guys. Thanks in advance.
Output from your phone is correct. Last message means -> if drawable wasn't set then background have white color (-14057287 == white). In output i see only debug, info, verbose and one warning - you don't get any error. Dalvik send to you info that garbage collector works and your heap are growing. What are your question?

Testing activesync with android virtual devices

I am trying to setup a android virtual device to test syncing with an activesync-server.
I followed these steps:
The problem is that syncing is not working at all, but there are no errors like connection errors ...
IMO the problem is that the virtual device only has a private IP, so the server never can send anything to it?
So I probably need some kind of forwarding, like here:
But I am not sure if that’s correct and I am also not sure which ports should be forwarded.
Here is the logcat, when I want to sync:
W/InputMethodManagerService( 148): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41302038 attribute=null
I/Choreographer( 274): Skipped 41 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 477): GC_CONCURRENT freed 396K, 6% free 8392K/8903K, paused 15ms+7ms, total 527ms
D/dalvikvm( 274): GC_CONCURRENT freed 360K, 11% free 9493K/10567K, paused 29ms+48ms, total 142ms
I/EAS ContactsSyncAdapterService( 477): Contact sync requested for test#example.com
D/dalvikvm( 148): GREF has increased to 601
D/dalvikvm( 477): WAIT_FOR_CONCURRENT_GC blocked 0ms
I/Choreographer( 274): Skipped 33 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 477): GC_EXPLICIT freed 333K, 7% free 8355K/8903K, paused 78ms+32ms, total 1269ms
I/EAS EmailSyncAdapterService( 477): performSync
I/EAS EmailSyncAdapterService( 477): Mail sync requested for test#example.com
D/dalvikvm( 460): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 460): GC_EXPLICIT freed 216K, 5% free 8483K/8839K, paused 145ms+94ms, total 914ms
D/dalvikvm( 148): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 148): GC_EXPLICIT freed 510K, 7% free 11338K/12167K, paused 8ms+35ms, total 323ms
D/dalvikvm( 274): GC_CONCURRENT freed 415K, 11% free 9486K/10567K, paused 25ms+28ms, total 125ms
E/Inbox[test#example.com]( 477): Uncaught exception in EasSyncServicejava.lang.ArrayIndexOutOfBoundsException: length=32; index=32
E/Inbox[test#example.com]( 477): Sync ended due to an exception.
D/dalvikvm( 477): GC_CONCURRENT freed 376K, 6% free 8420K/8903K, paused 5ms+18ms, total 66ms
I don't think this is a problem with your networking setup. It looks like you have an error in your Sync code, that is causing the process to stop:
E/Inboxtest#example.com: Uncaught exception in EasSyncServicejava.lang.ArrayIndexOutOfBoundsException: length=32; index=32
E/Inboxtest#example.com: Sync ended due to an exception.
>
Wrap this code in a try/catch block to understand what is happening better.

Getting all the information from Facebook SDK in Android

I'm using Facebook SDK in my Android App. What I need is to get all the information of the user including the Name, Email, Birthday, Location. But all I can get is the Name and Email. Is there any permission to get the Birthday and Location? I also look at this link but if not working for me https://developers.facebook.com/docs/reference/api/user/.
Here is my way of getting the information.
if(fb.isSessionValid()){
button.setImageResource(R.drawable.logout_button);
JSONObject obj = null;
URL img = null;
try {
String jsonUser = fb.request("me");
obj = Util.parseJson(jsonUser);
String id = obj.optString("id");
String name = obj.optString("name");
String bday = obj.optString("birthday");
String address = obj.optString("location");
String email = obj.optString("email");
((TextView) findViewById(R.id.txt)).setText("Welcome! "+name);
((TextView) findViewById(R.id.txtbday)).setText("Birthday: "+bday);
((TextView) findViewById(R.id.txtaddress)).setText("Address: "+address);
((TextView) findViewById(R.id.txtemail)).setText("Email: "+email);
img = new URL("http://graph.facebook.com/"+id+"/picture?type=normal");
Bitmap bmp = BitmapFactory.decodeStream(img.openConnection().getInputStream());
pic.setImageBitmap(bmp);
} catch (FacebookError e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
this is my authorized
fb.authorize(MainActivity.this,new String[] {"email", "user_location", "user_birthday","publish_stream"}, new DialogListener() {
public void onFacebookError(FacebookError e) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(), ""+e, Toast.LENGTH_SHORT).show();
e.printStackTrace();
}
public void onError(DialogError e) {
// TODO Auto-generated method stub
//Toast.makeText(getApplicationContext(), "Error", Toast.LENGTH_SHORT).show();
}
public void onComplete(Bundle values) {
// TODO Auto-generated method stub
Editor editor = sp.edit();
editor.putString("access_token", fb.getAccessToken());
editor.putLong("access_expires", fb.getAccessExpires());
editor.commit();
updateButtonImage();
}
public void onCancel() {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(), "Cancel", Toast.LENGTH_SHORT).show();
}
});
}
}
this is what log says
11-14 14:05:40.399: E/Trace(1293): error opening trace file: No such file or directory (2)
11-14 14:05:41.699: D/dalvikvm(1293): GC_CONCURRENT freed 290K, 6% free 6173K/6535K, paused 71ms+76ms, total 201ms
11-14 14:05:42.509: I/Choreographer(1293): Skipped 82 frames! The application may be doing too much work on its main thread.
11-14 14:05:42.519: D/gralloc_goldfish(1293): Emulator without GPU emulation detected.
11-14 14:05:42.679: I/Choreographer(1293): Skipped 30 frames! The application may be doing too much work on its main thread.
I also got this one from my log cat
11-14 14:19:28.339: D/AndroidRuntime(1359): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
11-14 14:19:28.339: D/AndroidRuntime(1359): CheckJNI is ON
11-14 14:19:28.379: D/dalvikvm(1359): Trying to load lib libjavacore.so 0x0
11-14 14:19:28.389: D/dalvikvm(1359): Added shared lib libjavacore.so 0x0
11-14 14:19:28.409: D/dalvikvm(1359): Trying to load lib libnativehelper.so 0x0
11-14 14:19:28.409: D/dalvikvm(1359): Added shared lib libnativehelper.so 0x0
11-14 14:19:29.059: D/AndroidRuntime(1359): Calling main entry com.android.commands.pm.Pm
11-14 14:19:29.089: W/ActivityManager(146): No content provider found for permission revoke: file:///data/local/tmp/facebook.apk
11-14 14:19:29.119: W/ActivityManager(146): No content provider found for permission revoke: file:///data/local/tmp/facebook.apk
11-14 14:19:29.249: I/PackageManager(146): Removing non-system package:com.example.facebook
11-14 14:19:29.249: I/ActivityManager(146): Force stopping package com.example.facebook uid=10054
11-14 14:19:29.249: I/ActivityManager(146): Killing proc 1339:com.example.facebook/u0a54: force stop
11-14 14:19:29.249: W/ActivityManager(146): Force removing ActivityRecord{411f5b90 com.example.facebook/.MainActivity}: app died, no saved state
11-14 14:19:29.279: I/WindowState(146): WIN DEATH: Window{41263720 com.example.facebook/com.example.facebook.MainActivity paused=false}
11-14 14:19:29.429: I/Choreographer(263): Skipped 64 frames! The application may be doing too much work on its main thread.
11-14 14:19:29.429: I/PackageManager(146): Package com.example.facebook codePath changed from /data/app/com.example.facebook-1.apk to /data/app/com.example.facebook-2.apk; Retaining data and using new
11-14 14:19:29.479: W/InputMethodManagerService(146): Got RemoteException sending setActive(false) notification to pid 1339 uid 10054
11-14 14:19:29.559: I/PackageManager(146): Running dexopt on: com.example.facebook
11-14 14:19:30.549: D/dalvikvm(1369): DexOpt: load 142ms, verify+opt 469ms, 833796 bytes
11-14 14:19:30.569: W/PackageManager(146): Code path for pkg : com.example.facebook changing from /data/app/com.example.facebook-1.apk to /data/app/com.example.facebook-2.apk
11-14 14:19:30.569: W/PackageManager(146): Resource path for pkg : com.example.facebook changing from /data/app/com.example.facebook-1.apk to /data/app/com.example.facebook-2.apk
11-14 14:19:30.579: I/ActivityManager(146): Force stopping package com.example.facebook uid=10054
11-14 14:19:30.659: D/dalvikvm(146): GC_FOR_ALLOC freed 681K, 9% free 9626K/10567K, paused 81ms, total 81ms
11-14 14:19:30.759: D/PackageManager(146): New package installed in /data/app/com.example.facebook-2.apk
11-14 14:19:30.839: I/ActivityManager(146): Force stopping package com.example.facebook uid=10054
11-14 14:19:30.849: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 0ms
11-14 14:19:30.920: D/dalvikvm(330): WAIT_FOR_CONCURRENT_GC blocked 0ms
11-14 14:19:30.949: D/dalvikvm(263): GC_EXPLICIT freed 185K, 36% free 9272K/14471K, paused 7ms+14ms, total 92ms
11-14 14:19:31.009: D/dalvikvm(146): WAIT_FOR_CONCURRENT_GC blocked 0ms
11-14 14:19:31.059: I/InputReader(146): Reconfiguring input devices. changes=0x00000010
11-14 14:19:31.170: D/dalvikvm(146): GC_EXPLICIT freed 475K, 11% free 9461K/10567K, paused 38ms+10ms, total 163ms
11-14 14:19:31.189: D/PackageManager(146): generateServicesMap(android.accounts.AccountAuthenticator): 3 services unchanged
11-14 14:19:31.210: D/PackageManager(146): generateServicesMap(android.content.SyncAdapter): 5 services unchanged
11-14 14:19:31.219: D/BackupManagerService(146): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.example.facebook flg=0x8000010 (has extras) }
11-14 14:19:31.219: D/dalvikvm(330): GC_EXPLICIT freed 169K, 6% free 6320K/6663K, paused 5ms+6ms, total 293ms
11-14 14:19:31.259: D/PackageManager(146): generateServicesMap(android.accounts.AccountAuthenticator): 3 services unchanged
11-14 14:19:31.279: D/PackageManager(146): generateServicesMap(android.content.SyncAdapter): 5 services unchanged
11-14 14:19:31.299: D/BackupManagerService(146): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.facebook flg=0x8000010 (has extras) }
11-14 14:19:31.299: V/BackupManagerService(146): removePackageParticipantsLocked: uid=10054 #1
11-14 14:19:31.310: I/InputReader(146): Reconfiguring input devices. changes=0x00000010
11-14 14:19:31.429: V/BackupManagerService(146): addPackageParticipantsLocked: #1
11-14 14:19:31.699: I/Choreographer(263): Skipped 259 frames! The application may be doing too much work on its main thread.
11-14 14:19:31.909: I/Choreographer(263): Skipped 33 frames! The application may be doing too much work on its main thread.
11-14 14:19:32.179: D/dalvikvm(263): GC_CONCURRENT freed 1331K, 38% free 9017K/14471K, paused 29ms+9ms, total 116ms
11-14 14:19:32.179: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 62ms
11-14 14:19:32.179: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 80ms
11-14 14:19:32.439: D/dalvikvm(263): GC_CONCURRENT freed 415K, 34% free 9614K/14471K, paused 30ms+7ms, total 84ms
11-14 14:19:32.439: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 54ms
11-14 14:19:32.439: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 70ms
11-14 14:19:32.449: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 60ms
11-14 14:19:32.449: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 67ms
11-14 14:19:32.639: D/dalvikvm(263): GC_FOR_ALLOC freed 929K, 37% free 9199K/14471K, paused 41ms, total 47ms
11-14 14:19:32.649: I/dalvikvm-heap(263): Grow heap (frag case) to 10.257MB for 1286224-byte allocation
11-14 14:19:32.779: D/dalvikvm(263): GC_FOR_ALLOC freed 7K, 28% free 10448K/14471K, paused 128ms, total 134ms
11-14 14:19:32.920: D/dalvikvm(263): GC_CONCURRENT freed 1K, 27% free 10681K/14471K, paused 16ms+38ms, total 134ms
11-14 14:19:32.969: D/dalvikvm(146): WAIT_FOR_CONCURRENT_GC blocked 0ms
11-14 14:19:33.269: W/InputMethodManagerService(146): Found no subtypes in a system IME: com.android.inputmethod.pinyin
11-14 14:19:33.349: W/RecognitionManagerService(146): no available voice recognition services found
11-14 14:19:33.899: D/dalvikvm(263): GC_CONCURRENT freed 3879K, 43% free 8263K/14471K, paused 34ms+10ms, total 114ms
11-14 14:19:33.949: I/Choreographer(263): Skipped 303 frames! The application may be doing too much work on its main thread.
11-14 14:19:34.249: D/dalvikvm(263): GC_FOR_ALLOC freed 115K, 40% free 8702K/14471K, paused 50ms, total 51ms
11-14 14:19:34.369: D/dalvikvm(263): GC_FOR_ALLOC freed 327K, 38% free 8973K/14471K, paused 39ms, total 42ms
11-14 14:19:34.619: D/dalvikvm(263): GC_CONCURRENT freed 767K, 37% free 9191K/14471K, paused 39ms+6ms, total 94ms
11-14 14:19:34.619: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 44ms
11-14 14:19:34.619: D/dalvikvm(263): WAIT_FOR_CONCURRENT_GC blocked 47ms
11-14 14:19:34.789: D/dalvikvm(263): GC_FOR_ALLOC freed 232K, 37% free 9257K/14471K, paused 49ms, total 55ms
11-14 14:19:34.799: I/dalvikvm-heap(263): Grow heap (frag case) to 10.314MB for 1286224-byte allocation
11-14 14:19:34.879: D/dalvikvm(263): GC_FOR_ALLOC freed 3K, 28% free 10509K/14471K, paused 78ms, total 78ms
11-14 14:19:35.009: D/dalvikvm(263): GC_CONCURRENT freed 26K, 28% free 10510K/14471K, paused 27ms+7ms, total 132ms
11-14 14:19:35.149: D/dalvikvm(146): GC_EXPLICIT freed 520K, 10% free 9550K/10567K, paused 116ms+516ms, total 2113ms
11-14 14:19:35.159: D/AndroidRuntime(1359): Shutting down VM
11-14 14:19:35.179: D/dalvikvm(1359): GC_CONCURRENT freed 101K, 78% free 459K/2048K, paused 0ms+1ms, total 10ms
11-14 14:19:35.179: D/jdwp(1359): Got wake-up signal, bailing out of select
11-14 14:19:35.179: D/dalvikvm(1359): Debugger has detached; object registry had 1 entries
11-14 14:19:35.189: I/AndroidRuntime(1359): NOTE: attach of thread 'Binder_3' failed
11-14 14:19:35.759: D/AndroidRuntime(1377): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
11-14 14:19:35.759: D/AndroidRuntime(1377): CheckJNI is ON
11-14 14:19:35.799: D/dalvikvm(1377): Trying to load lib libjavacore.so 0x0
11-14 14:19:35.799: D/dalvikvm(1377): Added shared lib libjavacore.so 0x0
11-14 14:19:35.829: D/dalvikvm(1377): Trying to load lib libnativehelper.so 0x0
11-14 14:19:35.829: D/dalvikvm(1377): Added shared lib libnativehelper.so 0x0
11-14 14:19:36.509: D/AndroidRuntime(1377): Calling main entry com.android.commands.am.Am
11-14 14:19:36.529: I/ActivityManager(146): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.facebook/.MainActivity u=0} from pid 1377
11-14 14:19:36.539: W/WindowManager(146): Failure taking screenshot for (164x246) to layer 21020
11-14 14:19:36.579: D/AndroidRuntime(1377): Shutting down VM
11-14 14:19:36.590: D/dalvikvm(1377): GC_CONCURRENT freed 102K, 77% free 489K/2048K, paused 1ms+1ms, total 11ms
11-14 14:19:36.590: D/jdwp(1377): Got wake-up signal, bailing out of select
11-14 14:19:36.590: D/dalvikvm(1377): Debugger has detached; object registry had 1 entries
11-14 14:19:36.599: I/AndroidRuntime(1377): NOTE: attach of thread 'Binder_3' failed
11-14 14:19:36.609: D/dalvikvm(1387): Not late-enabling CheckJNI (already on)
11-14 14:19:36.630: I/ActivityManager(146): Start proc com.example.facebook for activity com.example.facebook/.MainActivity: pid=1387 uid=10054 gids={3003, 1028}
11-14 14:19:36.630: I/Choreographer(263): Skipped 46 frames! The application may be doing too much work on its main thread.
11-14 14:19:36.929: E/Trace(1387): error opening trace file: No such file or directory (2)
11-14 14:19:38.359: D/dalvikvm(1387): GC_CONCURRENT freed 284K, 6% free 6199K/6535K, paused 72ms+84ms, total 206ms
11-14 14:19:39.219: I/Choreographer(1387): Skipped 39 frames! The application may be doing too much work on its main thread.
11-14 14:19:39.239: D/gralloc_goldfish(1387): Emulator without GPU emulation detected.
11-14 14:19:39.279: I/ActivityManager(146): Displayed com.example.facebook/.MainActivity: +2s710ms
11-14 14:19:39.443: I/Choreographer(1387): Skipped 60 frames! The application may be doing too much work on its main thread.
11-14 14:19:39.449: I/Choreographer(263): Skipped 51 frames! The application may be doing too much work on its main thread.
11-14 14:19:39.459: I/Choreographer(146): Skipped 57 frames! The application may be doing too much work on its main thread.
11-14 14:19:39.551: I/Choreographer(146): Skipped 44 frames! The application may be doing too much work on its main thread.
11-14 14:19:39.679: I/Choreographer(146): Skipped 49 frames! The application may be doing too much work on its main thread.
11-14 14:19:39.759: I/Choreographer(146): Skipped 49 frames! The application may be doing too much work on its main thread.
11-14 14:19:39.852: I/Choreographer(146): Skipped 43 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.122: I/Choreographer(146): Skipped 43 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.239: I/Choreographer(146): Skipped 48 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.319: I/Choreographer(146): Skipped 44 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.391: I/Choreographer(146): Skipped 44 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.471: I/Choreographer(146): Skipped 43 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.568: I/Choreographer(146): Skipped 44 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.681: I/Choreographer(146): Skipped 43 frames! The application may be doing too much work on its main thread.
11-14 14:19:41.761: I/Choreographer(146): Skipped 44 frames! The application may be doing too much work on its main thread.
11-14 14:20:00.092: I/Choreographer(217): Skipped 43 frames! The application may be doing too much work on its main thread.
thanks for anyone can help.
First, You are choosing the wrong tags to make the query for getting the User's location.
If you are using the Graph API, then the tag in question is: location. The user_location that you have used, is a permission.
Second, and perhaps more importantly, you are choosing these permissions: {"email", "publish_stream"}
To get the User's birthday and his / her location you will also need these permissions:
For the User logged into your app: user_location. And for getting the logged in user's friends location: friends_location
Similarly, for the birthday, you will need these permissions: user_birthday for the logged in user and friends_birthday for the logged in user's friends.
Take a look at the list of available fields for querying and getting results here: https://developers.facebook.com/docs/reference/api/user/
And for a list of all permissions, take a look at this page: https://developers.facebook.com/docs/reference/login/#permissions
EDIT 2:
Removing the earlier FQL suggestion and providing an alternate.
String testURL = "https://graph.facebook.com/me?fields=name,birthday,email,location&access_token=YOUR_ACCESS_TOKEN";
try {
HttpClient hc = new DefaultHttpClient();
HttpGet get = new HttpGet(testURL);
HttpResponse rp = hc.execute(get);
if (rp.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
String result = EntityUtils.toString(rp.getEntity());
JSONArray JAUserInfo = new JSONArray(result);
for (int i = 0; i < JAUserInfo.length(); i++) {
JSONObject JOUserInfo = JAUserInfo.getJSONObject(i);
Log.e("USER DETAILS", JOUserInfo.toString());
if (JOUserInfo.has("location") {
JSONObject JOLocation = JOUserInfo.optJSONObject("location");
String location = JOLocation.getString("name");
}
}
}
} catch (Exception e) {
// TODO: handle exception
}
NOTE: You need to provide an Access Token in this query. Without that, this will without doubt, fail. Just change the YOUR_ACCESS_TOKEN in the String testURL to your Access Token.

Adobe Air Camera Issue

Dont know if anyone has come across this issue but I am creating an app for mobile devices and it runs fine on my galaxy s2 running ics 4.0.4 however when I run it on the galaxy tab running 2.3.3 it keeps throwing errors.
All that I am doing is getting the device camera and attaching it to a flash.media.Video. I have the suspicion that the amount of errors caused by this issues is severly affecting the perfomance.
I have attached an fxp file ( https://www.box.com/s/77a9460edcf8a7ce95ee ) so that you can see that I am not doing anything out of the ordinary.
THanks for your help!
P.S.
Here is a sample segment of the logcat-
D/TvOut-Engine( 79): (isHdmiCableConnected): mHdmiCableConnected 0
D/CameraHardwareSec( 75): MemoryHeapBase(fd(26), size(5760128), width(800), height(600))
W/AudioFlinger( 75): RecordThread: buffer overflow
D/dalvikvm(12597): GC_FOR_MALLOC freed 1206K, 48% free 4217K/8007K, external 4034K/4493K, paused 91ms
V/AudioHardwareALSA( 75): resampler read error -32
D/AudioHardwareALSA( 75): AudioStreamInALSA::read error -32
D/AudioHardwareALSA( 75): AudioStreamInALSA::snd_pcm_recover error 0
E/v4l2_utils( 75): Error = Invalid argument from qbuf
E/CameraHardwareSec( 75): ERR(int android::CameraHardwareSec::previewThread()):overlay queueBuffer fail
I/dalvikvm-heap(12597): Grow heap (frag case) to 16.060MB for 5760016-byte allocation
D/dalvikvm(12597): GC_FOR_MALLOC freed 203K, 30% free 9638K/13639K, external 3975K/4493K, paused 26ms
E/v4l2_utils( 75): Error = Invalid argument from qbuf
E/CameraHardwareSec( 75): ERR(int android::CameraHardwareSec::previewThread()):overlay queueBuffer fail
D/dalvikvm(12597): GC_CONCURRENT freed 91K, 31% free 9547K/13639K, external 3975K/4493K, paused 2ms+13ms
D/dalvikvm(12597): GC_FOR_MALLOC freed 76K, 31% free 9471K/13639K, external 3975K/4493K, paused 43ms
E/v4l2_utils( 75): Error = Invalid argument from qbuf
E/CameraHardwareSec( 75): ERR(int android::CameraHardwareSec::previewThread()):overlay queueBuffer fail
I/dalvikvm-heap(12597): Grow heap (frag case) to 21.133MB for 5760016-byte allocation
E/v4l2_utils( 75): Error = Invalid argument from qbuf
E/CameraHardwareSec( 75): ERR(int android::CameraHardwareSec::previewThread()):overlay queueBuffer fail

What are likely causes for "WSEGL_WaitNative: Unrecognized engine" errors? (Android NDK)

An Android app I've written is producing the following error message when run on one user's Galaxy Nexus:
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
Strangely, when running on several other devices it does not generate this error message. Does anyone know of some possible causes for this error? Google isn't pulling up anything useful for me. I'll try and put together a simple test case and post it here (the project is rather large, so difficult to pinpoint a relevant piece of code to post).
For reference, here is the full logcat output from the app:
D/alogcat (31968): stopped
D/alogcat (31968): starting ...
D/dalvikvm( 250): GC_FOR_ALLOC freed 437K, 32% free 16157K/23559K, paused 19ms
D/dalvikvm( 250): GC_FOR_ALLOC freed 28K, 31% free 16385K/23559K, paused 22ms
I/dalvikvm-heap( 250): Grow heap (frag case) to 17.046MB for 1048592-byte allocation
D/dalvikvm( 250): GC_CONCURRENT freed 0K, 30% free 17409K/24647K, paused 3ms+2ms
D/dalvikvm( 250): GC_CONCURRENT freed 313K, 27% free 18185K/24647K, paused 2ms+3ms
W/ResourceType( 178): Invalid package identifier when getting bag for resource number 0x7f0c0008
D/dalvikvm( 250): GC_FOR_ALLOC freed 37K, 22% free 19298K/24647K, paused 25ms
I/dalvikvm-heap( 250): Grow heap (frag case) to 19.112MB for 230416-byte allocation
D/dalvikvm( 250): GC_FOR_ALLOC freed 4K, 22% free 19519K/24903K, paused 28ms
V/alogcat (31968): save instance
V/alogcat (31968): paused
D/dalvikvm(31994): Late-enabling CheckJNI
I/dalvikvm(31994): Turning on JNI app bug workarounds for target SDK version 9...
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31994): GC_FOR_ALLOC freed 63K, 2% free 14079K/14339K, paused 11ms
I/dalvikvm-heap(31994): Grow heap (frag case) to 14.257MB for 486264-byte allocation
D/dalvikvm(31994): GC_CONCURRENT freed <1K, 3% free 14553K/14855K, paused 1ms+1ms
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31994): GC_FOR_ALLOC freed 0K, 3% free 14554K/14855K, paused 11ms
I/dalvikvm-heap(31994): Grow heap (frag case) to 16.112MB for 1945008-byte allocation
D/dalvikvm(31994): GC_CONCURRENT freed 0K, 2% free 16453K/16775K, paused 2ms+4ms
V/PhoneStatusBar( 250): setLightsOn(true)
I/System.out(31994): libSDL: Starting data downloader
I/System.out(31994): libSDL: Starting downloader
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.MainActivity: +536ms
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
W/IInputConnectionWrapper(31968): showStatusIcon on inactive InputConnection
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.MenuActivity: +276ms
D/dalvikvm(31968): GC_FOR_ALLOC freed 364K, 9% free 14394K/15687K, paused 17ms
I/dalvikvm-heap(31968): Grow heap (frag case) to 14.211MB for 115216-byte allocation
V/PhoneStatusBar( 250): setLightsOn(true)
D/dalvikvm(31968): GC_FOR_ALLOC freed <1K, 9% free 14507K/15815K, paused 17ms
D/alogcat (31968): stopping ...
D/alogcat (31968): stopped
D/dalvikvm(31994): GC_CONCURRENT freed 2742K, 17% free 14481K/17287K, paused 1ms+2ms
V/PhoneStatusBar( 250): setLightsOn(true)
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.FileChooserActivity: +395ms
D/dalvikvm( 178): GC_EXPLICIT freed 2120K, 18% free 22700K/27527K, paused 6ms+6ms
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libSDL.so 0x41816530
D/dalvikvm(31994): GC_CONCURRENT freed 208K, 16% free 14694K/17287K, paused 2ms+1ms
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libSDL.so 0x41816530
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libcore.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libcore.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libcore.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libfront-end.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libfront-end.so 0x41816530
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libgles2n64.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libgles2n64.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libgles2n64.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libaudio-sdl.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libaudio-sdl.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libaudio-sdl.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/libinput-sdl.so 0x41816530
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/libinput-sdl.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/libinput-sdl.so 0x41816530, skipping init
D/dalvikvm(31994): Trying to load lib /data/data/paulscode.android.mupen64plus.test/lib/librsp-hle.so 0x41816530
D/dalvikvm( 380): GC_CONCURRENT freed 538K, 20% free 16276K/20103K, paused 2ms+11ms
D/dalvikvm(31994): Added shared lib /data/data/paulscode.android.mupen64plus.test/lib/librsp-hle.so 0x41816530
D/dalvikvm(31994): No JNI_OnLoad found in /data/data/paulscode.android.mupen64plus.test/lib/librsp-hle.so 0x41816530, skipping init
V/SDLActivity.java(31994): CPU info available from file /proc/cpuinfo:
V/SDLActivity.java(31994): Processor : ARMv7 Processor rev 10 (v7l)
V/SDLActivity.java(31994): processor : 0
V/SDLActivity.java(31994): BogoMIPS : 2047.70
V/SDLActivity.java(31994):
V/SDLActivity.java(31994): processor : 1
V/SDLActivity.java(31994): BogoMIPS : 2047.70
V/SDLActivity.java(31994):
V/SDLActivity.java(31994): Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
V/SDLActivity.java(31994): CPU implementer : 0x41
V/SDLActivity.java(31994): CPU architecture: 7
V/SDLActivity.java(31994): CPU variant : 0x2
V/SDLActivity.java(31994): CPU part : 0xc09
V/SDLActivity.java(31994): CPU revision : 10
V/SDLActivity.java(31994):
V/SDLActivity.java(31994): Hardware : Tuna
V/SDLActivity.java(31994): Revision : 0009
V/SDLActivity.java(31994): Serial : 0146a5b20b01300f
V/SDLActivity.java(31994): �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
D/dalvikvm(31994): GC_CONCURRENT freed 427K, 15% free 14768K/17287K, paused 1ms+4ms
D/dalvikvm(31994): GC_CONCURRENT freed 59K, 13% free 15206K/17287K, paused 2ms+1ms
D/dalvikvm(31994): GC_CONCURRENT freed 199K, 11% free 15493K/17287K, paused 1ms+2ms
D/dalvikvm(31994): GC_FOR_ALLOC freed 99K, 10% free 15714K/17287K, paused 21ms
D/dalvikvm(31994): GC_CONCURRENT freed 288K, 8% free 15978K/17287K, paused 2ms+2ms
D/dalvikvm(31994): GC_CONCURRENT freed 229K, 6% free 16382K/17287K, paused 2ms+1ms
D/dalvikvm(31994): GC_CONCURRENT freed 266K, 3% free 16795K/17287K, paused 2ms+2ms
V/SDLSurface(31994): SDLSurface changed
I/SDL (31994): SDL_Android_Init()
V/front_end(31994): __ __ __ _ _ ____ _
V/front_end(31994): | \/ |_ _ _ __ ___ _ __ / /_ | || | | _ \| |_ _ ___
V/front_end(31994): | |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __|
V/front_end(31994): | | | | |_| | |_) | __/ | | | (_) |__ _| __/| | |_| \__ \
V/front_end(31994): |_| |_|\__,_| .__/ \___|_| |_|\___/ |_| |_| |_|\__,_|___/
V/front_end(31994): |_| http://code.google.com/p/mupen64plus/
V/front_end(31994): Mupen64Plus Console User-Interface Version 1.99.4
V/front_end(31994):
V/core_interface(31994): UI-console: attached to core library 'Mupen64Plus Core' version 1.99.4
V/core_interface(31994): Includes support for Dynamic Recompiler.
V/PhoneStatusBar( 250): setLightsOn(true)
I/ActivityManager( 178): Displayed paulscode.android.mupen64plus.test/paulscode.android.mupen64plus.SDLActivity: +816ms
V/front_end(31994): Core: Goodname: Super Mario 64 (E) (M3) [!]
V/front_end(31994): Core: Name: SUPER MARIO 64
V/front_end(31994): Core: MD5: 45676429EF6B90E65B517129B700308E
V/front_end(31994): Core: CRC: 36f03ca0 d2c5c1bc
V/front_end(31994): Core: Imagetype: .z64 (native)
V/front_end(31994): Core: Rom size: 8388608 bytes (or 8 Mb or 64 Megabits)
V/front_end(31994): Core: Version: 46140000
V/front_end(31994): Core: Manufacturer: 4e000000
V/front_end(31994): Core: Country: Europe (0x50)
V/cheat (31994): UI-Console: Cheat codes disabled.
V/gles2N64(31994): About to get max frameskip
V/SDL-android(31994): About to call midGetMaxFrameSkip
V/SDL-android(31994): Android_JNI_GetMaxFrameSkip returning 2
V/gles2N64(31994): Max frameskip: 2
V/gles2N64(31994): About to setSkips to AUTO
V/gles2N64(31994): Finished setting skips
V/front-end(31994): UI-console: using Video plugin: 'gles2n64' v0.0.5
V/front-end(31994): UI-console: using Audio plugin: 'Mupen64Plus SDL Audio Plugin' v1.99.4
V/front_end(31994): Input: No auto-configuration found for device 'Android accelerometer'
V/front_end(31994): Input: N64 Controller #1: Forcing default keyboard configuration
V/front_end(31994): Input: Using auto-configuration for device 'Keyboard'
V/front-end(31994): UI-console: using Input plugin: 'Mupen64Plus SDL Input Plugin' v1.99.4
V/front-end(31994): UI-console: using RSP plugin: 'Hacktarux/Azimer High-Level Emulation RSP Plugin' v1.99.4
D/gles2n64(31994): [gles2n64]: Loading Config from data/gles2n64.conf
D/gles2n64(31994): Rom is PAL
D/gles2n64(31994): [gles2N64]: Searching data/gles2n64rom.conf Database for "SUPER MARIO 64" ROM
D/gles2n64(31994): Initializing SDL video subsystem...
D/gles2n64(31994): Setting video mode 1196x720...
I/SDL (31994): [STUB] GL_LoadLibrary
V/SDLSurface(31994): Starting up OpenGL ES 2.0
D/libEGL (31994): loaded /system/lib/egl/libGLES_android.so
D/libEGL (31994): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL (31994): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL (31994): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
I/SDL (31994): [STUB] GL_SetSwapInterval
I/SDL (31994): [STUB] GL_GetSwapInterval
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
V/gles2N64 (OpenGL)(31994): Hardware profile not recognized, using default settings (-0.2f, -0.2f)
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
V/front_end(31994): Input: N64 Controller #1: Using keyboard/mouse
V/front_end(31994): Input: 1 controller(s) found, 1 plugged in and usable in the emulator
V/front_end(31994): Input: Mupen64Plus SDL Input Plugin version 1.99.4 initialized.
V/front_end(31994): Audio: Initializing SDL audio subsystem...
V/SDL (31994): SDL audio: opening device
V/front_end(31994): Core: Starting R4300 emulator: Dynamic Recompiler
V/SDL (31994): SDL audio: opening device
D/gles2n64(31994): UCODE CRC=0x26eabb5c
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
D/dalvikvm( 178): GC_EXPLICIT freed 399K, 18% free 22591K/27527K, paused 6ms+5ms
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
***(Repeated for a while)***
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
V/front_end(31994): Core Status: Saved state to: Mupen64PlusAE_LastSession.sav
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
E/IMGSRV (31994): :0: WSEGL_WaitNative: Unrecognized engine
I/InputReader( 178): Reconfiguring input devices. changes=0x00000004
I/InputReader( 178): Device reconfigured: id=6, name='Melfas MMSxxx Touchscreen', surface size is now 720x1280, mode is 1
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm( 250): GC_FOR_ALLOC freed 3922K, 35% free 16327K/24903K, paused 19ms
D/dalvikvm( 250): GC_FOR_ALLOC freed 121K, 34% free 16462K/24903K, paused 15ms
I/dalvikvm-heap( 250): Grow heap (frag case) to 17.123MB for 1048592-byte allocation
D/dalvikvm( 250): GC_CONCURRENT freed 40K, 30% free 17446K/24903K, paused 3ms+2ms
W/ResourceType( 178): Invalid package identifier when getting bag for resource number 0x7f0c0008
D/dalvikvm( 250): GC_CONCURRENT freed 324K, 27% free 18242K/24903K, paused 2ms+3ms
D/dalvikvm( 250): GC_CONCURRENT freed 35K, 22% free 19574K/24903K, paused 3ms+2ms
D/dalvikvm( 178): GC_EXPLICIT freed 381K, 19% free 22365K/27527K, paused 6ms+4ms
D/alogcat (31968): stopping ...
D/alogcat (31968): canceling periodic saves
D/alogcat (31968): starting ...
V/alogcat (31968): started
V/alogcat (31968): resumed
D/OpenGLRenderer( 430): Flushing caches (mode 1)
V/PhoneStatusBar( 250): setLightsOn(true)
D/OpenGLRenderer( 430): Flushing caches (mode 0)
D/OpenGLRenderer( 250): Flushing caches (mode 0)
D/dalvikvm(31968): GC_FOR_ALLOC freed 168K, 8% free 14612K/15815K, paused 13ms
I/dalvikvm-heap(31968): Grow heap (frag case) to 14.391MB for 80656-byte allocation
D/dalvikvm(31968): GC_FOR_ALLOC freed 14K, 8% free 14677K/15943K, paused 20ms
This was caused by the following line:
egl.eglWaitNative( EGL10.EGL_NATIVE_RENDERABLE, null );
Which should have been written as:
egl.eglWaitNative( EGL10.EGL_CORE_NATIVE_ENGINE, null );

Categories

Resources