waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Google Glass Directions activity not returning control back to Invoking avtivity #542

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create and Activity with GDK and Launch the activity using Voice Command

2. Invoke Directions API using the following method from the Activity based on 
user selection

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("google.navigation:q=48.649469,-2.02579"));
startActivity(intent);

3. Select "Stop Directions" from the menu of Directions screen

What is the expected output? What do you see instead?

Control should return back to my activity from where I started the Directions 
Activity 

What version of the product are you using? On what operating system?

XE 18.1

Please provide any additional information below.

Original issue reported on code.google.com by dileepmo...@gmail.com on 11 Jun 2014 at 5:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please find log details here - Look for explanation in the bracket

E/VoiceMenuActivity(17997): .....OnResume Called............ (Activity Started 
Here)
E/VoiceMenuActivity(17997): .....OnResume before calling ACtivate 
Called............
E/VoiceMenuActivity(17997): .....OnResume after calling ACtivate 
Called............
E/bt-btif ( 1027): property type:3, len:0 is invalid
E/ ( 1027): ### ASSERT : 
external/bluetooth/bluedroid/main/../btif/src/btif_dm.c line 1189 storing 
remote services failed (1) ###
E/BluetoothRemoteDevices( 1027): devicePropertyChangedCallback: bdDevice: 
B8:C6:8E:C5:01:BF, value is empty for type: 3
E/VoiceMenuActivity(17997): .....OnPause Called............ (Activity Went to 
Pause when  Directions API invoked wit URI)
E/MPL-storeload( 547): calData from inv_save_mpl_states, size=2
E/VoiceEngine[20de59d8]( 867): Attempted to start pushing to recognizers, but 
we're already pushing.
E/VoiceEngine[20de59d8]( 867): Attempted to start pushing to recognizers, but 
we're already pushing.
E/bt-btif ( 1027): DISCOVERY_COMP_EVT slot id:119, failed to find channle, 
status:1, scn:0
E/VoiceMenuActivity(17997): .....OnResume Called............  (Control Came 
back to activity after Stop Directions invoked from Direction activity)
E/VoiceMenuActivity(17997): .....OnResume before calling ACtivate 
Called............
E/VoiceMenuActivity(17997): .....OnResume after calling ACtivate 
Called............
E/MPL-storeload( 547): calData from inv_save_mpl_states, size=2
E/MPL-storeload( 547): calData from inv_save_mpl_states, size=2
E/VoiceMenuActivity(17997): .....OnPause Called............ (Activity Finish 
called automatically... But Why? I dont want this to happen) 
E/VoiceMenuActivity(17997): .....onStop Called............
E/VoiceMenuActivity(17997): .....onDestroy Called............
E/VoiceCommandService( 867): VoiceService disconnected.
E/bt-btif ( 1027): property type:3, len:0 is invalid
E/ ( 1027): ### ASSERT : 
external/bluetooth/bluedroid/main/../btif/src/btif_dm.c line 1189 storing 
remote services failed (1) ###
E/BluetoothRemoteDevices( 1027): devicePropertyChangedCallback: bdDevice: 
B8:C6:8E:C5:01:BF, value is empty for type: 3

E/WindowManager(17997):
E/WindowManager(17997): android.view.WindowLeaked: Activity 
com.att.aots.dispatch.voicemenu.VoiceMenuActivity has leaked window com.android.
internal.policy.impl.PhoneWindow$DecorView{20e7b240 V.E..... ......ID 
0,0-640,360} that was originally added here
E/WindowManager(17997): at 
android.view.ViewRootImpl.<init>(ViewRootImpl.java:348)
E/WindowManager(17997): at 
android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:248)
E/WindowManager(17997): at 
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
E/WindowManager(17997): at 
com.android.internal.policy.impl.PhoneWindow.openPanel(PhoneWindow.java:695)
E/WindowManager(17997): at 
com.android.internal.policy.impl.PhoneWindow.openPanel(PhoneWindow.java:555)
E/WindowManager(17997): at 
com.android.internal.policy.impl.PhoneWindow$DecorView.onVoiceChanged(PhoneWindo
w.java:2016)
E/WindowManager(17997): at 
com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(Phon
eWindow.java:2754)
E/WindowManager(17997): at 
android.view.View.dispatchWindowFocusChanged(View.java:7900)
E/WindowManager(17997): at 
android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:968)
E/WindowManager(17997): at 
android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3165)
E/WindowManager(17997): at android.os.Handler.dispatchMessage(Handler.java:102)
E/WindowManager(17997): at android.os.Looper.loop(Looper.java:149)
E/WindowManager(17997): at 
android.app.ActivityThread.main(ActivityThread.java:5061)
E/WindowManager(17997): at java.lang.reflect.Method.invokeNative(Native Method)
E/WindowManager(17997): at java.lang.reflect.Method.invoke(Method.java:515)
E/WindowManager(17997): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/WindowManager(17997): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
E/WindowManager(17997): at dalvik.system.NativeStart.main(Native Method)
E/BufferQueue( 216): 
[AtchDlg:com.att.aots.dispatch/com.att.aots.dispatch.voicemenu.VoiceMenuActivity
] connect: BufferQueue has been abando
ned!
E/ViewRootImpl(17997): Could not lock surface
E/ViewRootImpl(17997): java.lang.IllegalArgumentException
E/ViewRootImpl(17997): at android.view.Surface.nativeLockCanvas(Native Method)
E/ViewRootImpl(17997): at android.view.Surface.lockCanvas(Surface.java:250)
E/ViewRootImpl(17997): at 
android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2460)
E/ViewRootImpl(17997): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2434)
E/ViewRootImpl(17997): at 
android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2278)
E/ViewRootImpl(17997): at 
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1908)
E/ViewRootImpl(17997): at 
android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1025)
E/ViewRootImpl(17997): at 
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5699)
E/ViewRootImpl(17997): at 
android.view.Choreographer$CallbackRecord.run(Choreographer.java:771)
E/ViewRootImpl(17997): at 
android.view.Choreographer.doCallbacks(Choreographer.java:574)
E/ViewRootImpl(17997): at 
android.view.Choreographer.doFrame(Choreographer.java:544)
E/ViewRootImpl(17997): at 
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:757)
E/ViewRootImpl(17997): at android.os.Handler.handleCallback(Handler.java:733)
E/ViewRootImpl(17997): at android.os.Handler.dispatchMessage(Handler.java:95)
E/ViewRootImpl(17997): at android.os.Looper.loop(Looper.java:149)
E/ViewRootImpl(17997): at 
android.app.ActivityThread.main(ActivityThread.java:5061)
E/ViewRootImpl(17997): at java.lang.reflect.Method.invokeNative(Native Method)
E/ViewRootImpl(17997): at java.lang.reflect.Method.invoke(Method.java:515)
E/ViewRootImpl(17997): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/ViewRootImpl(17997): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
E/ViewRootImpl(17997): at dalvik.system.NativeStart.main(Native Method)
E/bt-btif ( 1027): DISCOVERY_COMP_EVT slot id:112, failed to find channle, 
status:1, scn:0
E/bt-btif ( 1027): property type:3, len:0 is invalid
E/ ( 1027): ### ASSERT : 
external/bluetooth/bluedroid/main/../btif/src/btif_dm.c line 1189 storing 
remote services failed (1) ###

Original comment by dileepmo...@gmail.com on 13 Jun 2014 at 8:41

GoogleCodeExporter commented 9 years ago
Hi I also having the same problem can u give me the solution for that,
how to come back to myactivity when i caaling the getdirections

Original comment by mouli150...@gmail.com on 3 Sep 2014 at 5:42