Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Prime31 Android Plugins Officially Live!

Discussion in 'Android' started by prime31, Jun 6, 2011.

  1. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    The manifest looks good but when I was asking for more context I meant in the log cat logs....I also assume that WEBPAGE.com isn't the page you are trying to load.
     
  2. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    Oh ok... is there something additional with logcat i can run? I'm just using this currently...

    ./adb logcat -s Unity ActivityManager PackageManager davikvm DEBUG

    And no I've replaced the webpage w/that to keep all parties safe. ;)
     
  3. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    The command to get all the logs is just:

    adb logcat
     
  4. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @prime31

    Quick q... how can i rid myself of all the internal profile stats? Thats killing my readout...
     
  5. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @prime31

    Ok here's the output once i click the showwebview button...

    Code (csharp):
    1.  
    2. 08-08 19:09:47.169  1424  1544 I         : odm_disp_esd_thread is running(111) state=1
    3. 08-08 19:09:49.282  6529  6529 D AndroidRuntime: Shutting down VM
    4. 08-08 19:09:49.282  1525  2910 I ActivityManager: Starting activity: Intent { cmp=com.BigFishGames.nawp/com.prime31.WebViewActivity (has extras) }
    5. 08-08 19:09:49.312  6529  6529 W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x400226a8)
    6. 08-08 19:09:49.319  6529  6529 E AndroidRuntime: FATAL EXCEPTION: main
    7. 08-08 19:09:49.319  6529  6529 E AndroidRuntime: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.BigFishGames.nawp/com.prime31.WebViewActivity}; have you declared this activity in your AndroidManifest.xml?
    8. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
    9. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
    10. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.app.Activity.startActivityForResult(Activity.java:2823)
    11. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.app.Activity.startActivity(Activity.java:2929)
    12. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at com.prime31.EtceteraPlugin$7.run(EtceteraPlugin.java:227)
    13. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:587)
    14. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:92)
    15. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:143)
    16. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:4701)
    17. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at java.lang.reflect.Method.invokeNative(Native Method)
    18. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Method.java:521)
    19. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    20. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    21. 08-08 19:09:49.319  6529  6529 E AndroidRuntime:    at dalvik.system.NativeStart.main(Native Method)
    22. 08-08 19:09:49.319  1525  1525 W ActivityManager:   Force finishing activity com.BigFishGames.nawp/com.unity3d.player.UnityPlayerActivity
    23. 08-08 19:09:49.389  6529  6539 I Unity   : pendingEndTrack
    24. 08-08 19:09:49.389  6529  6539 I Unity   : UnityEngine.Debug:Internal_Log(Int32, String, Object)
    25. 08-08 19:09:49.389  6529  6539 I Unity   : UnityEngine.Debug:Log(Object)
    26. 08-08 19:09:49.389  6529  6539 I Unity   : Button:Update()
    27. 08-08 19:09:49.389  6529  6539 I Unity   :  
    28. 08-08 19:09:49.389  6529  6539 I Unity   : (Filename: /Applications/buildAgent/work/842f9557127e852/Runtime/Export/Generated/UnityEngineDebug.cpp Line: 34)
    29. 08-08 19:09:49.389  6529  6539 I Unity   :
    30. 08-08 19:09:49.819  1525  1538 W ActivityManager: Activity pause timeout for HistoryRecord{462f0a70 com.BigFishGames.nawp/com.unity3d.player.UnityPlayerActivity}
    31. 08-08 19:09:49.819  1525  3038 I WindowManager: Setting rotation to 0, animFlags=1
    32. 08-08 19:09:49.832  1525  1538 I ActivityManager: Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=50}
    33. 08-08 19:09:49.842  1943  1943 D PhoneApp: updateProximitySensorMode: state = IDLE
    34. 08-08 19:09:49.842  1943  1943 D PhoneApp: updateProximitySensorMode: lock already released.
    35. 08-08 19:09:49.902  1982  1982 I AutoSignInService: onConfigurationChanged
    36. 08-08 19:09:49.902  1982  1982 I PortalService: onConfigurationChanged
    37. 08-08 19:09:49.902  2712  2712 V Mms     : onConfigurationChanged
    38. 08-08 19:09:49.939  1525  1597 W WindowManager: Pointer down received while already down in: Window{462e4910 Sorry! paused=false}
    39. 08-08 19:09:49.949  1943  1943 D AutoScanCheckReceiver: Entering onReceive.
    40. 08-08 19:09:49.949  1943  1943 D AutoScanCheckReceiver: Action type:android.intent.action.CONFIGURATION_CHANGED
    41. 08-08 19:09:49.949  1943  1943 D AutoScanCheckReceiver: Received CONFIGURATION_CHANGED but not a flip, no scan initiated.
    42. 08-08 19:09:50.059  2959  2959 W WidgetAidService: BroadcastReceiver onReceive called
    43. 08-08 19:09:50.059  2959  2959 D WidgetAidService: ACTION_HOME_SCREEN_CHANGED - 3
    44. 08-08 19:09:50.059  2959  2959 D WidgetAidService: HomeScreen gained focus/panned
    45. 08-08 19:09:50.069  2959  2959 D WidgetAidService: widgetScreenIndex - 5
    46. 08-08 19:09:50.149  1525  1597 W WindowManager: Pointer down received while already down in: Window{462e4910 Sorry! paused=false}
    47. 08-08 19:09:50.842  6529  6529 I Process : Sending signal. PID: 6529 SIG: 9
    48. 08-08 19:09:50.882  1525  1939 I ActivityManager: Process com.BigFishGames.nawp (pid 6529) has died.
    49. 08-08 19:09:50.882  1525  3037 I WindowManager: WIN DEATH: Window{46248ab0 com.BigFishGames.nawp/com.unity3d.player.UnityPlayerActivity paused=false}
    50. 08-08 19:09:50.892  1525  1530 I WindowManager: WIN DEATH: Window{462c5088 SurfaceView paused=false}
    51. 08-08 19:09:50.932  1385  1385 I AKMD2   : akmd2 : Compass Closed.
    52.  
    i can send you the full log if you would rather. I can also load up your example and just pull the crash log from there.. might be "cleaner" since it has the same characteristics on both.
     
  6. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    you can turn off the profiler in player settings.

    i dont see a crash in that log at all. if you can email me the full log from the demo scene (questions @ prime31.com) along with you Android OS version and device model that would be superb.
     
  7. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    Just realized that minutes after i pinged you. Is that previous log helpful at all?
     
  8. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @prime31

    Ok thanks! I'll shoot all that over here in a few.

    Cheers
     
  9. legion

    legion

    Joined:
    Feb 9, 2011
    Posts:
    174
    Will there be any flurry appcircle/clips plugin? Both iOS and Android. We need them :p
     
  10. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @Legion, we looked into it but there wasn't any demand at the time. Like all of our plugins if enough people request it we will make it.
     
  11. legion

    legion

    Joined:
    Feb 9, 2011
    Posts:
    174
    They pay more than tapjoy to my knowledge ;P
     
  12. tommyv

    tommyv

    Joined:
    Aug 10, 2011
    Posts:
    5
    Hi Prime - Having a problem similar to what Lukas mentioned a couple pages back, but what I'm seeing is more repeatable. That is, Admob ads are coming in fine but I can or cannot interact with them depending on Android OS version.

    On our phones w/ 2.2 we can see and tap ads just fine.
    On our phones w/ 2.3.1 we can see but cannot tap ads.
    On our phones w/ 2.3.4 we can see but cannot tap ads.

    This is consistent across device types (e.g. a Nexus One w/ 2.2 works, a Nexus One w/ 2.3.4 does not).

    I've used the same Unity project/scene to build in all cases. Logcat doesn't spit out anything when trying to unsuccessfully tap. Any thoughts? Thanks for your time.
     
  13. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @tommyv, I am not yet able to reproduce on my end (though we don't have a Nexus One in the mix yet). Are you using Unity 3.4 and the latest version of the plugin?
     
  14. tommyv

    tommyv

    Joined:
    Aug 10, 2011
    Posts:
    5
    @Prime31, we're indeed using Unity 3.4. Just bought and downloaded the Admob plug-in this morning (the unity package has the date 2011-07-30 in the file name).

    This problem also happens on the Nexus S phone.
     
  15. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @tommyv, try out the package from just a few hours ago. It has an updated AndroidManifest to follow the new Unity 3.4 way of doing things. I doubt it will help but you never know...
     
  16. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @tommyv, success! or failure depending on your point of view. I finally reproduced the no touch issue with Android 3.1. It makes no sense but neither do a lot of things in Android. I'll get a fix out ASAP now that I can reproduce.
     
  17. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @tommyv and anyone else with the no touch on ads issue, I have a workaround for now until I hear back from the Unity guys. What it appears to be is that when Gingerbread or above is on the device Unity is using a different main activity. I am guessing that they are grabbing all the touches with dispatchTouchEvent in there which doesn't allow the touches to reach any other views no matter what.

    The quick fix is to force Unity to use the UnityPlayerActivity instead. To do this, just replace lines above the VideoPlayer activity tag inside the application tag with the lines below then regenerate the manifest from the Prime31 menu.


    Code (csharp):
    1.         <activity android:name="com.unity3d.player.UnityPlayerActivity"
    2.                   android:label="@string/app_name"
    3.                   android:configChanges="keyboard|keyboardHidden|orientation">
    4.                 <intent-filter>
    5.                     <action android:name="android.intent.action.MAIN" />
    6.                     <category android:name="android.intent.category.LAUNCHER" />
    7.                 </intent-filter>
    8.         </activity>
     
  18. Lukas H

    Lukas H

    Joined:
    Jan 16, 2009
    Posts:
    394
    Prime31, you are the best! I will try the workaround as soon as I get back to the office.

    Tommyv, thanks for figuring this out how to reproduce the bug
     
  19. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @Prime31

    Morning prime. I'm having another odd issue with Etcetera, this time related to the progressview. Basically i always use .showProgressDialog prior to every level load but what i'm running into is a crash when i use the .hideProgressDialog(). Its a similar crash i was seeing to the webview issue before.

    I call EtceteraAndroid.hideProgressDialog(); on awake. Any thoughts on what might be causing that? its actually the very first function i call before all else... anytime i call showProgress it works just fine and pops up the progress indicator as you would expect. But it just crashes whenever i try and hide it.
     
    Last edited: Aug 11, 2011
  20. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @bpritchard, do you have a log cat log of the crash available? Does the demo scenes progress bar work for you?
     
  21. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @prime31

    Yeah i'm working up a log for you now and will email it here in a few. Also the demo scene works perfectly fine in this instance (aka it shows and hides). In my case it shows but crashes on hide...
     
  22. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    ok i've sent out the logs.. if you need anything else hit me up.
     
  23. tommyv

    tommyv

    Joined:
    Aug 10, 2011
    Posts:
    5
    Prime31 - Fantastic support. That workaround for the untouchable ads did the trick. Kudos to you sir.

    Thanks again!
     
  24. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @Prime31

    And one more (I really feel like i've completely set it up all wrong).. .but i get a crash when running IABAndroind.purchaseProduct(). I've sent the log file to your email addy.

    I've also tried it with testPurchase() which nets the same results..
    Thanks!
     
    Last edited: Aug 11, 2011
  25. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    Dropping a bump... :)
     
  26. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @bpritchard, you haven't been forgotten. I'm out of town so responses will be a bit slower than usual. Anything I can answer from my mobile will be fairly quick but access to my computer is limited compared to usual.
     
  27. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @prime31

    Bummer.. i'll keep looking at it. Milestone day tomorrow. :) Will keep you posted.
     
  28. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @Prime31

    Ok just tested it with the test scene and the purchase functions crash there as well. The Initialize and Availability checks don't crash.. appears to work... but if i do test or purchase real it crashes. I can shoot out the log when u get back.
     
  29. bpritchard

    bpritchard

    Joined:
    Jan 29, 2009
    Posts:
    444
    @Prime31

    Quick question.. what is the lowest os version/api level required by your plugins? We're seeing some issues w/crashing on devices pre 2.3 and we're trying to figure out where it is. We've written a large # of plugins internally as well so its likely there, just wanted to rule these plugins out.

    Cheers!
     
  30. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
    How do we throw webViewCancelledEvent while in webview? I can't cancel out of webview.
    Sorry for the simple question.
     
  31. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @wiserd, the standard back button available on all Android handsets will return you back to your game.
     
  32. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
    Hi Prime31,

    Regarding the etcetera plugin

    1. Is it required that the webview fill the whole screen? I can't see a parameter that would let me work around that.
    2. Is it possible to overlay things on the webview?
    3. How does a user exit from the webview without closing the application. I can see the potential to throw the webViewCancelledEvent event
    but I can't see how to throw that event.

    Thanks!
     
  33. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @wiserd,

    1. No
    2. The webview is all in native code so you cannot overlay anything on it
    3. See my previous answer
     
  34. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
    Thanks Prime31. I didn't see your earlier answer when I posted before. So you've said that it's NOT required that the webview fill the whole screen? Meaning it COULD fill only PART of the screen? How would I do that?

    So the back button is the only way to return to the app? There's no way to put a button in webview that would do it, correct?
     
    Last edited: Aug 18, 2011
  35. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
    I just got the audio recorder plugin. It consistently crashes on my Xoom tablet. Pause and unpause always crash it, and I can also frequently crash the plugin just by pressing other buttons.

    ( I've had some trouble writing to the xoom tablet. Even after adding permissions to the manifest and writing to application.persistantDataPath. Things got so bad that I decided to just save the photos directly to our server rather than deal with the Xoom filesystem.)

    Here's what I get from abd logcat


    D/Unity ( 9255): onDetachedFromWindow
    I/Process ( 9255): Sending signal. PID: 9255 SIG: 9
    E/InputDispatcher( 157): channel '40bec0c0 com.illusionfactory.webviewtest/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
    E/InputDispatcher( 157): channel '40bec0c0 com.illusionfactory.webviewtest/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    I/ActivityManager( 157): Process com.illusionfactory.webviewtest (pid 9255) has died.
    I/WindowManager( 157): WINDOW DIED Window{40bec0c0 com.illusionfactory.webviewtest/com.unity3d.player.UnityPlayerActivity paused=false}
    W/WindowManager( 157): Failed looking up window
    W/WindowManager( 157): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4085e5b0 does not exist
    W/WindowManager( 157): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:6736)
    W/WindowManager( 157): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:6727)
    W/WindowManager( 157): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1390)
    W/WindowManager( 157): at android.os.BinderProxy.sendDeathNotice(Binder.java:418)
    W/WindowManager( 157): at dalvik.system.NativeStart.run(Native Method)
    I/WindowManager( 157): WIN DEATH: null
    W/InputManagerService( 157): Got RemoteException sending setActive(false) notification to pid 9255 uid 10064
    D/NetworkRequestUtil/ConstructEventRequestPath( 8856): /__utm.gif?utmwv=4.5ma&utmn=1395047559&utmt=event&utme=5(receiver*android.intent.action.PACKAGE_REPLACED*com.illusionfactory.webviewtest)(1)&utmcs=UTF-8&utmsr=800x1232&utmul=en-US&utmac=UA-7184590-8&utmcc=__utma%3D999.109249325.1301558864.1313625525.1313684712.52
    I/QSB.GenieClient( 8912): request: chars=0;feeds=[qs, hist, list, ns];loc=true;auth=true
    I/QSB.GenieClient( 8912): response: suggestions=
    W/ActivityManager( 157): Activity destroy timeout for ActivityRecord{40be94b8 com.illusionfactory.webviewtest/com.unity3d.player.UnityPlayerActivity}
    I/ActivityManager( 157): Starting: Intent { act=android.speech.action.WEB_SEARCH flg=0x10000000 cmp=com.google.android.voicesearch/.RecognitionActivity } from pid 236
    I/ActivityManager( 157): Start proc com.google.android.voicesearch for activity com.google.android.voicesearch/.RecognitionActivity: pid=9279 uid=10002 gids={3003, 1015}
    I/ActivityThread( 9279): Pub com.google.android.voicesearch: com.google.android.voicesearch.AudioProvider
    I/AwesomePlayer( 91): reset
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): reset
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): reset
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): reset
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): reset
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): reset
    I/AwesomePlayer( 91): cancel player events
    I/AwesomePlayer( 91): cancel player events
    I/RecognitionControllerImpl( 9279): startRecognition(#Intent;action=android.speech.action.WEB_SEARCH;launchFlags=0x10000000;component=com.google.android.voicesearch/.RecognitionActivity;B.fullRecognitionResultsRequest=true;l.android.speech.extras.SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS=750;B.useLocation=true;B.contact_auth=true;l.android.speech.extras.SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS=-1;end)
    I/RecognitionControllerImpl( 9279): State change: STARTING -> STARTING
    I/AudioService( 157): AudioFocus requestAudioFocus() from android.media.AudioManager@407aeac0
    I/RecognitionControllerImpl( 9279): State change: STARTING -> RECOGNIZING
    I/ServerConnectorImpl( 9279): Starting TCP session, url=http://www.google.com/m/voice-search
    D/AlarmManagerService( 157): Kernel timezone updated to 420 minutes west of GMT
    W/InputManagerService( 157): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@40c483a8 (uid=10022 pid=236)
    D/ServerConnectorImpl( 9279): Created session 64c75fddcc1c93592fca2b82f4f75870
    I/ServerConnectorImpl( 9279): Creating TCP connection to 74.125.53.126:19294
    I/RecognitionControllerImpl( 9279): onReadyForSpeech, noise level:245.76213, snr:-0.6773119
    I/ServerConnectorImpl( 9279): startRecognize RecognitionParameters{session=64c75fddcc1c93592fca2b82f4f75870,request=1}
    I/ActivityManager( 157): Displayed com.google.android.voicesearch/.RecognitionActivity: +833ms
    I/RecognitionActivity( 9279): Start-up latency 618 ms

    I/System.out( 292): [INFO:60555045]: LogSource: Running flush
    I/System.out( 292): [INFO:60555046]: LogSource: Sending payload [bytes=510]
    I/System.out( 292): [INFO:60555111]: LogSource: Response [http=200,length=130]
    I/System.out( 292): [INFO:60555112]: LogSource: Read id 20, status code 200
    I/TelephonyRegistry( 157): notifyServiceState: 0 home Verizon Wireless 31000 EvDo rev. A CSS supported 52 2 RoamInd=1 DefRoamInd=1 EmergOnly=false
    I/RecognitionControllerImpl( 9279): State change: RECOGNIZING -> ERROR
    I/RecognitionControllerImpl( 9279): Final state: ERROR
    E/RecognitionControllerImpl( 9279): ERROR_SPEECH_TIMEOUT
    I/ServerConnectorImpl( 9279): ClientReport{session_id=64c75fddcc1c93592fca2b82f4f75870,request_id=1,application_id=voice-search,client_perceived_request_status=2,request_ack_latency_ms=133,network_type=1,endpoint_trigger_type=1,}
    I/AudioService( 157): AudioFocus abandonAudioFocus() from android.media.AudioManager@407aeac0
    I/ClientReportSender( 9279): Sending 1 client reports over HTTP
    I/RecognitionControllerImpl( 9279): onBeginningOfSpeech
    I/ServerConnectorImpl( 9279): Response: Gaia Result AUTHENTICATION_OK
    W/RecognitionControllerImpl( 9279): Final response received in state:ERROR
     
    Last edited: Aug 18, 2011
  36. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @wiserd, are you using the demo scene? For some reason it looks like the speech recognition is kicking in perhaps from another open app. What were the steps used to make the above log occur?
     
  37. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
    Steps to re-create the problem

    1. Import audiorecord plugin into a new scene.
    2. Set Unity to output to Android devices in build settings.
    3. In Player Settings click "enable logcat profiler"
    4. Check "force SD Card permissions"
    5. Click "Development Build" and "Script Debugging"
    6. load AudioRecorderTestScene from the folder: Plugins -> AudioRecorderAndroid -> testSupport


    Clicked "start recording" then "stop recording" then "play recording" then "pause"

    Pause can also cause the application to close as part of any other sequence.



    Logcat data (may include time before and after the error)

    W/InputManagerService( 157): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@40929130 (uid=10022 pid=250)
    I/ActivityManager( 157): Displayed com.illusionfactory.soundtest/com.unity3d.player.UnityPlayerActivity: +594ms
    W/AudioFlinger( 90): write blocked for 70 msecs, 1 delayed writes, thread 0x10270
    E/AndroidRuntime( 2014): FATAL EXCEPTION: GLThread 11
    E/AndroidRuntime( 2014): java.lang.NullPointerException
    E/AndroidRuntime( 2014): at com.prime31.AudioRecorderPlugin.pause(AudioRecorderPlugin.java:84)
    E/AndroidRuntime( 2014): at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    E/AndroidRuntime( 2014): at com.unity3d.player.UnityPlayer.onDrawFrame(Unknown Source)
    E/AndroidRuntime( 2014): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1429)
    E/AndroidRuntime( 2014): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1184)
    W/ActivityManager( 157): Force finishing activity com.illusionfactory.soundtest/com.unity3d.player.UnityPlayerActivity
    I/AKMD2 ( 97): akmd2 : Compass Closed.
    I/Process ( 2014): Sending signal. PID: 2014 SIG: 9
    I/WindowManager( 157): WIN DEATH: Window{4115ab28 com.illusionfactory.soundtest/com.unity3d.player.UnityPlayerActivity paused=false}
    I/ActivityManager( 157): Process com.illusionfactory.soundtest (pid 2014) has died.
    W/InputManagerService( 157): Got RemoteException sending setActive(false) notification to pid 2014 uid 10066
    D/AlarmManagerService( 157): Kernel timezone updated to 420 minutes west of GMT
    D/SystemClock( 241): Setting time of day to sec=1313697385
    E/TelephonyManager( 317): Hidden constructor called more than once per process!
    E/TelephonyManager( 317): Original: com.google.android.location, new: com.google.android.gsf
    V/AlarmClock( 1235): AlarmInitReceiver finished
    I/TelephonyRegistry( 157): notifyServiceState: 0 home Verizon Wireless 31000 EvDo rev. A CSS supported 52 2 RoamInd=1 DefRoamInd=1 EmergOnly=false
    W/ActivityManager( 157): Activity destroy timeout for ActivityRecord{4092a088 com.illusionfactory.soundtest/com.unity3d.player.UnityPlayerActivity}
    D/AlarmManagerService( 157): Kernel timezone updated to 420 minutes west of GMT
    D/AlarmManagerService( 157): Kernel timezone updated to 420 minutes west of GMT
    I/TelephonyRegistry( 157): notifyServiceState: 0 home Verizon Wireless 31000 EvDo rev. A CSS supported 52 2 RoamInd=1 DefRoamInd=1 EmergOnly=false
    D/NetworkRequestUtil/ConstructEventRequestPath( 773): /__utm.gif?utmwv=4.5ma&utmn=2009087952&utmt=event&utme=5(receiver*android.intent.action.PACKAGE_REPLACED*com.illusionfactory.soundtest)(1)&utmcs=UTF-8&utmsr=800x1232&utmul=en-US&utmac=UA-7184590-8&utmcc=__utma%3D999.109249325.1301558864.1313691768.1313693855.54
    D/AlarmManagerService( 157): Kernel timezone updated to 420 minutes west of GMT
    I/TelephonyRegistry( 157): notifyServiceState: 0 home Verizon Wireless 31000 EvDo rev. A CSS supported 52 2 RoamInd=1 DefRoamInd=1 EmergOnly=false
    D/AlarmManagerService( 157): Kernel timezone updated to 420 minutes west of GMT
    I/TelephonyRegistry( 157): notifyServiceState: 0 home Verizon Wireless 31000 EvDo rev. A CSS supported 52 2 RoamInd=1 DefRoamInd=1 EmergOnly=false
    I/ActivityManager( 157): No longer want com.google.android.music (pid 1428): hidden #16
    W/ActivityManager( 157): Scheduling restart of crashed service com.google.android.music/.dl.DownloadManager$DownloadManagerService in 5000ms
    I/ActivityManager( 157): Start proc com.google.android.music for service com.google.android.music/.dl.DownloadManager$DownloadManagerService: pid=2036 uid=10016 gids={3003, 1015}
    I/ActivityThread( 2036): Pub com.google.android.music.MusicContent: com.google.android.music.store.MusicContentProvider
    I/MusicStore( 2036): Database version: 31
    W/AndroidMusic( 2036): Need to wait for MusicPreferences to be created
    W/AndroidMusic( 2036): MusicPreferences still not made, creating on UI thread
    D/MusicPreferences( 2036): New Active account: null
    I/AsyncCursor1:1( 2036): Initialized for content://com.google.android.music.MusicContent/playlists, proj:_id#name, sel: 'null', args: null, order: null
    D/MusicContentProvider( 2036): Running Query: content://com.google.android.music.MusicContent/playlists projection : count(*) selection : null select args : sort order : null
    D/MusicStore( 2036): Disabled WAL
    D/MusicStore( 2036): Database opened
     
  38. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @wiserd, did you use the Prime31 menu to generate an AndroidManifest.xml file?
     
  39. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
    I couldn't find where that menu was. The only menu I could find was produced by the AudioRecorderTestScene. Where is the menu, specifically?


    Thanks
     
  40. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @wiserd, it's the standard OS X menu bar on the top of the screen
     
  41. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
  42. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @wiserd, there are ways to communicate between JS and Java with Android but we have no plans of exposing that via the plugin.
     
  43. wiserd

    wiserd

    Joined:
    Jan 14, 2009
    Posts:
    47
    Prime31: There are ways to communicate between JS and Java with Android but we have no plans of exposing that via the plugin.

    Ryan: Which means that Javascript within the web view is not able to interact with Android or Unity at all, correct? I don't seem to even be able to communicate with Unity as a web player would. I can ONLY close the webview with the back button on the phone. It's not possible to make a custom close button on a website within your plugin. Correct? Thanks in advance for the clarification.
     
  44. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @wiserd, that is correct. Unity is not embedded in a web plugin on Android or any other Platform so all the methods you are looking at in the documents do not apply.
     
  45. Lukas H

    Lukas H

    Joined:
    Jan 16, 2009
    Posts:
    394
    @Prime31: Any word from Unity on the bug with androidmanifest and AdMob plugin?
    It would be nice to have an official fix so we don't have to keep remembering it for new projects.
     
  46. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @Lukas, they will in a future version of Unity not eat all the touches when using the NativeActivity. The fix for now is to just use the UnityPlayerActivity.
     
  47. tobephong

    tobephong

    Joined:
    Oct 2, 2009
    Posts:
    15
    Anyone had their game crashed when trying submit a Facebook post? Both my game and the test scene from Prime31 having the same problem. The post got through, but the app crashed. I am using - nexus 2, unity android pro; export setting - android 2.2, armv6, .net 2.0 subset, strip assemblies. Any hints?
     
    Last edited: Aug 23, 2011
  48. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @tobephong, did you setup your app properly on Facebooks site including the extra signing step? What is the output from the log cat log?
     
  49. tobephong

    tobephong

    Joined:
    Oct 2, 2009
    Posts:
    15
    I think I did everything you suggested. I used your ios social network plugin for the same game. So i know everything should be properly. I am porting the game over to android now and did added the hash code for Android Key Hash using your suggestion from the documentation:

    To get up and running quickly with a debug key run the following command:

    keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

    If you are prompted for a password, enter the default password: android


    As for the catlog, this is where I crashed:

    D/Facebook-WebView(22479): Webview loading URL: https://m.facebook.com/dialog/stream.publish
    D/Unity (22479): Android Unity internal profiler stats:
    D/Unity (22479): cpu-player> min: 15.2 max: 95.6 avg: 29.0
    D/Unity (22479): cpu-ogles-drv> min: 1.7 max: 17.9 avg: 3.3
    D/Unity (22479): cpu-present> min: 0.9 max: 13.2 avg: 1.9
    D/Unity (22479): frametime> min: 19.6 max: 106.7 avg: 34.3
    D/Unity (22479): draw-call #> min: 59 max: 67 avg: 62 | batched: 75
    D/Unity (22479): tris #> min: 468 max: 470 avg: 468 | batched: 165
    D/Unity (22479): verts #> min: 936 max: 940 avg: 936 | batched: 331
    D/Unity (22479): player-detail> physx: 1.2 animation: 0.0 culling 0.0 skinning: 0.0 batching: 0.3 render: 8.2 fixed-update-count: 1 .. 6
    D/Unity (22479): mono-scripts> update: 13.4 fixedUpdate: 1.9 coroutines: 2.9
    D/Unity (22479): mono-memory> used heap: 1974272 allocated heap: 2744320 max number of collections: 0 collection total duration: 0.0
    D/Unity (22479): ----------------------------------------
    D/Facebook-WebView(22479): Redirect URL: fbconnect://success?post_id=100002532846869_208994585824550#_
    D/AndroidRuntime(22479): Shutting down VM
    W/dalvikvm(22479): threadid=1: thread exiting with uncaught exception (group=0x40015560)
    E/AndroidRuntime(22479): FATAL EXCEPTION: main
    E/AndroidRuntime(22479): java.lang.ArrayIndexOutOfBoundsException
    E/AndroidRuntime(22479): at com.facebook.android.Util.decodeUrl(Util.java:114)
    E/AndroidRuntime(22479): at com.facebook.android.Util.parseUrl(Util.java:136)
    E/AndroidRuntime(22479): at com.facebook.android.FbDialog$FbWebViewClient.shouldOverrideUrlLoading(FbDialog.java:131)
    E/AndroidRuntime(22479): at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:216)
    E/AndroidRuntime(22479): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:323)
    E/AndroidRuntime(22479): at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime(22479): at android.os.Looper.loop(Looper.java:130)
    E/AndroidRuntime(22479): at android.app.ActivityThread.main(ActivityThread.java:3683)
    E/AndroidRuntime(22479): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime(22479): at java.lang.reflect.Method.invoke(Method.java:507)
    E/AndroidRuntime(22479): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    E/AndroidRuntime(22479): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    E/AndroidRuntime(22479): at dalvik.system.NativeStart.main(Native Method)
    W/ActivityManager( 110): Process com.raptura.blingfishes has crashed too many times: killing!
    W/ActivityManager( 110): Force finishing activity com.raptura.blingfishes/com.unity3d.player.UnityPlayerNativeActivity
    I/Process ( 110): Sending signal. PID: 22479 SIG: 9
    I/WindowManager( 110): WIN DEATH: Window{40738980 com.raptura.blingfishes/com.unity3d.player.UnityPlayerNativeActivity paused=true}
    I/WindowManager( 110): WIN DEATH: Window{4073e1b8 SurfaceView paused=false}
    I/WindowManager( 110): WIN DEATH: Window{407a67b8 com.raptura.blingfishes/com.unity3d.player.UnityPlayerNativeActivity paused=true}
    I/WindowManager( 110): WIN DEATH: Window{4085b988 com.raptura.blingfishes/com.unity3d.player.UnityPlayerNativeActivity paused=true}
    D/AudioHardware( 76): AudioHardware pcm playback is going to standby.
    D/AudioHardware( 76): closePcmOut_l() mPcmOpenCnt: 1
    W/ActivityManager( 110): Launch timeout has expired, giving up wake lock!
     
    Last edited: Aug 23, 2011
  50. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @tobephong, I believe I responded to you via email but just in case I'll post here also. It looks like the Facebook Connect library is crashing trying to parse a url (ArrayIndexOutOfBoundsException). It could be an issue on Facebook's server or in the library itself. I will open a bug report with Facebook as soon as I can reproduce the issue and I suggest you do as well to get them some more information.
     
unityunity