android.content.ActivityNotFoundException: No Activity found to handle Intent - android

I m a newbie to Android. I am trying to use google location API and when run in the emulator it shows Unfortunately your app stopped working.
I did a adb logcat and here is my stacktrace
10-31 23:43:02.010 2370 2370 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-31 23:43:02.011 2370 2370 D AndroidRuntime: CheckJNI is ON
10-31 23:43:02.026 2370 2370 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:02.030 2370 2370 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
10-31 23:43:02.044 2370 2370 E memtrack: Couldn't load memtrack module (No such file or directory)
10-31 23:43:02.044 2370 2370 E android.os.Debug: failed to load memtrack module: -2
10-31 23:43:02.045 2370 2370 I Radio-JNI: register_android_hardware_Radio DONE
10-31 23:43:02.062 2370 2370 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
10-31 23:43:02.073 2228 2240 I art : CollectorTransition marksweep + semispace GC freed 125(-7KB) AllocSpace objects, 0(0B) LOS objects, 57% free, 379KB/891KB, paused 5.591ms total 5.591ms
10-31 23:43:02.080 2228 2242 D DefContainer: Copying /data/local/tmp/HighwayMechanic.apk to base.apk
10-31 23:43:02.181 1138 1177 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl931695514.tmp/base.apk pkg=com.highway.highwaymechanic isa=x86 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl931695514.tmp/oat
10-31 23:43:02.190 2382 2382 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
10-31 23:43:02.190 2382 2382 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2) and those of dex2oat executable (ISA: X86 Feature string: smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2) for the command line:
10-31 23:43:02.190 2382 2382 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl931695514.tmp/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=8 --debuggable
10-31 23:43:02.190 2382 2382 I dex2oat : /system/bin/dex2oat --debuggable
10-31 23:43:08.200 2382 2382 I dex2oat : dex2oat took 6.009s (threads: 1) arena alloc=2MB java alloc=6MB native alloc=32MB free=2MB
10-31 23:43:08.276 1138 1162 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=-1: uninstall pkg
10-31 23:43:08.294 1138 1177 I PackageManager: Package com.highway.highwaymechanic codePath changed from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1; Retaining data and using new
10-31 23:43:08.295 1138 1162 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=-1: replace pkg
10-31 23:43:08.296 1138 1177 W PackageManager: Code path for com.highway.highwaymechanic changing from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1
10-31 23:43:08.296 1138 1177 W PackageManager: Resource path for com.highway.highwaymechanic changing from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1
10-31 23:43:08.333 1138 1177 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
10-31 23:43:08.333 1138 1177 I art : Starting a blocking GC Explicit
10-31 23:43:08.353 1138 1177 I art : Explicit concurrent mark sweep GC freed 10787(756KB) AllocSpace objects, 11(220KB) LOS objects, 19% free, 5MB/6MB, paused 517us total 13.651ms
10-31 23:43:08.357 1138 1177 W PackageManager: Couldn't remove dex file for package: at location /data/app/com.highway.highwaymechanic-2/base.apk, retcode=-1
10-31 23:43:08.359 1138 1177 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=0: pkg removed
10-31 23:43:08.360 2370 2370 I art : System.exit called, status: 0
10-31 23:43:08.360 2370 2370 I AndroidRuntime: VM exiting with result code 0.
10-31 23:43:08.400 1138 1138 D JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED
10-31 23:43:08.403 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REMOVED
10-31 23:43:08.404 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.404 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.414 1925 1925 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1221 android.content.ContextWrapper.startService:581 android.content.ContextWrapper.startService:581 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2725
10-31 23:43:08.418 1138 1641 I BroadcastQueue: Delay finish: com.android.keychain/.KeyChainBroadcastReceiver
10-31 23:43:08.514 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.515 1138 2212 I BroadcastQueue: Resuming delayed broadcast
10-31 23:43:08.516 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
10-31 23:43:08.516 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.602 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.602 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REPLACED
10-31 23:43:08.602 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.602 1566 1566 D CarrierConfigLoader: mHandler: 9 phoneId: 0
10-31 23:43:08.617 2390 2390 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-31 23:43:08.619 2390 2390 D AndroidRuntime: CheckJNI is ON
10-31 23:43:08.635 2390 2390 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:08.640 2390 2390 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
10-31 23:43:08.654 2390 2390 E memtrack: Couldn't load memtrack module (No such file or directory)
10-31 23:43:08.654 2390 2390 E android.os.Debug: failed to load memtrack module: -2
10-31 23:43:08.655 2390 2390 I Radio-JNI: register_android_hardware_Radio DONE
10-31 23:43:08.667 2390 2390 D AndroidRuntime: Calling main entry com.android.commands.am.Am
10-31 23:43:08.669 1138 2212 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.highway.highwaymechanic/.MainActivity} from uid 0 on display 0
10-31 23:43:08.691 2390 2390 D AndroidRuntime: Shutting down VM
10-31 23:43:08.695 2390 2395 I art : Debugger is no longer active
10-31 23:43:08.695 2390 2401 E art : Thread attaching while runtime is shutting down: Binder_2
10-31 23:43:08.695 2390 2401 I AndroidRuntime: NOTE: attach of thread 'Binder_2' failed
10-31 23:43:08.697 2402 2402 I art : Not late-enabling -Xcheck:jni (already on)
10-31 23:43:08.697 2402 2402 I art : Late-enabling JIT
10-31 23:43:08.702 2402 2402 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:08.708 1138 1712 I ActivityManager: Start proc 2402:com.highway.highwaymechanic/u0a53 for activity com.highway.highwaymechanic/.MainActivity
10-31 23:43:08.717 2402 2409 E art : Failed sending reply to debugger: Broken pipe
10-31 23:43:08.717 2402 2409 I art : Debugger is no longer active
10-31 23:43:08.728 2402 2402 W System : ClassLoader referenced unknown path: /data/app/com.highway.highwaymechanic-1/lib/x86
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.748 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.748 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.764 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.764 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.797 2402 2402 D gralloc_goldfish: Emulator without GPU emulation detected.
10-31 23:43:08.818 1138 1170 I ActivityManager: Displayed com.highway.highwaymechanic/.MainActivity: +129ms
10-31 23:43:10.932 1138 1429 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_8115000--- flg=0x80000 pkg=com.android.vending} from uid 10053 on display 0
10-31 23:43:10.933 2402 2402 D AndroidRuntime: Shutting down VM
10-31 23:43:10.933 2402 2402 E AndroidRuntime: FATAL EXCEPTION: main
10-31 23:43:10.933 2402 2402 E AndroidRuntime: Process: com.highway.highwaymechanic, PID: 2402
10-31 23:43:10.933 2402 2402 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_8115000--- flg=0x80000 pkg=com.android.vending }
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1798)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3917)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3877)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:748)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4200)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4168)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.google.android.gms.dynamic.zza$5.onClick(Unknown Source)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.view.View.performClick(View.java:5198)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:21147)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-31 23:43:10.934 1138 1712 W ActivityManager: Force finishing activity com.highway.highwaymechanic/.MainActivity
10-31 23:43:10.935 943 943 D gralloc : Registering a buffer in the process that created it. This may cause memory ordering problems.
10-31 23:43:10.935 943 943 E libEGL : called unimplemented OpenGL ES API
10-31 23:43:10.935 943 943 E SurfaceFlinger: glCheckFramebufferStatusOES error 1711643839
10-31 23:43:10.935 943 943 E SurfaceFlinger: got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
10-31 23:43:11.448 1138 1162 W ActivityManager: Activity pause timeout for ActivityRecord{40e8f1c u0 com.highway.highwaymechanic/.MainActivity t11 f}
10-31 23:43:21.478 1138 1162 W ActivityManager: Activity destroy timeout for ActivityRecord{40e8f1c u0 com.highway.highwaymechanic/.MainActivity t11 f}
Here is my Android_manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.highway.highwaymechanic"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="23" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.highway.highwaymechanic.Map"
android:label="#string/title_activity_map" >
</activity>
</application>
</manifest>
Here is my MainActivity.java file
package com.highway.highwaymechanic;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends FragmentActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
#Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
Here is my MapsActivity.java file
package com.highway.highwaymechanic;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
}
#Override
public void onMapReady(GoogleMap map) {
LatLng sydney = new LatLng(-34, 151);
map.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
map.moveCamera(CameraUpdateFactory.newLatLng(sydney));
}
}
When run in the emulator it crashes with Unfortunately the app stopped working.
Please help me with it.
Thanks in Advance

I believe this should have been fixed with the latest release of the Google Play services client library. Note that this is a fix in the client library and so you will have to update the library to the latest revision using your SDK manager and recompile your application.
for more details you can check this link
https://code.google.com/p/gmaps-api-issues/issues/detail?id=4862

Do you have an another Activity named Map? As I see in your manifest,
<activity
android:name="com.highway.highwaymechanic.Map"
android:label="#string/title_activity_map" >
</activity>
Likewise, there should be a similar tag for the MapsActivity in your manifest. I think this is the error.

it bugs out much sooner, missing some native assembly for x86 architecture:
W System: ClassLoader referenced unknown path: /data/app/com.highway.highwaymechanic-1/lib/x86
followed by:
W GooglePlayServicesUtil: Google Play services is missing.
To add the missing Google Play (incl. Maps) Services, wrote a how-to once (it's almost the same).
While that FragmentActivity requires an IntentFilter, else it cannot be launched, for example:
<activity
android:name=".MapsActivity"
android:label="#string/title_activity_map">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>

Related

How to fix React native app stopped working on android

i added firebase to my react native project and it's stopped running on my emulator. I've had this issue with firebase & react-native some years back, don't know what the fix was.
Running adb logcat displays this
04-24 22:13:32.453 371 394 E system_server: Invalid ID 0x00000000.
04-24 22:13:32.465 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.468 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.471 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.476 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.479 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.480 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.482 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.484 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.485 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.486 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.487 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.488 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.493 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.494 4759 4759 E com.mvmarket: Unknown bits set in runtime_flags: 0x8000
04-24 22:13:32.494 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.748 174 4798 E ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
04-24 22:13:32.755 202 271 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-24 22:13:32.755 202 271 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-24 22:13:32.818 4759 4807 E AndroidRuntime: FATAL EXCEPTION: create_react_context
04-24 22:13:32.818 4759 4807 E AndroidRuntime: Process: com.mvmarket, PID: 4759
04-24 22:13:32.818 4759 4807 E AndroidRuntime: java.lang.NoSuchMethodError: No static method createEgl14([I)Lorg/webrtc/EglBase14; in class Lorg/webrtc/EglBase; or its super classes (declaration of 'org.webrtc.EglBase' appears in /data/app/com.mvmarket-R-KOl49no3K6lCqfeV5j9A==/base.apk)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.EglUtils.getRootEglBase(EglUtils.java:35)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.EglUtils.getRootEglBaseContext(EglUtils.java:62)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModule.<init>(WebRTCModule.java:107)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModule.<init>(WebRTCModule.java:76)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModulePackage.createNativeModules(WebRTCModulePackage.java:15)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactPackageHelper.getNativeModuleIterator(ReactPackageHelper.java:42)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:42)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1476)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1447)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1341)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:138)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1111)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
04-24 22:13:32.850 371 473 E InputDispatcher: channel '932d8ad com.mvmarket/com.mvmarket.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-24 22:13:32.857 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.857 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.874 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.890 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.906 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.924 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.940 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.956 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.974 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.990 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
Fixed it
According to the stacktrace, it was an issue with react-native-webrtc
Fixed with this https://stackoverflow.com/a/67592188/11901942
Thanks #Gabe Sechan

Tango Unity examples crashing when built with Unity 2017.1

I just installed Unity 2017.1.0f3 and tried to compile the examples but all of them crash at start on my Lenovo Phab 2 Pro (Tango version 1.55).
I loaded the project tango-examples-unity\UnityExamples in Unity without modifying it and Unity converts it to the Unity 2017.1.0f3 version. The building seems to run fine but on the phone the resulting app crashes at start.
Everything worked fine for me on Unity 5.6. Maybe the Tango SDK is simply not supported yet by Unity 2017.1 but I could not find any information on that.
Here are the console output on Unity after building the app and the logs of the Tango when I launch the app and it crashes.
Unity console output
Tango Logs :
07-13 18:26:07.867 1261-1409/? W/BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.android.launcher3 (pid=4828, uid=10025) requires com.google.android.launcher.permission.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.gms/.icing.proxy.ApplicationLauncherReceiver
07-13 18:26:07.868 1261-1409/? W/BroadcastQueue: Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$GmsExternalReceiver requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.android.launcher3 (uid 10025)
07-13 18:26:07.882 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(speaker-protected)
07-13 18:26:07.882 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(vi-feedback)
07-13 18:26:07.882 544-3682/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
07-13 18:26:07.883 544-3682/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
07-13 18:26:07.883 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(spkr-vi-record)
07-13 18:26:07.894 544-3682/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB audproc returned = -19
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
07-13 18:26:07.895 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(low-latency-playback speaker-protected)
07-13 18:26:07.936 8061-8061/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.projecttango.unityexamples, PID: 8061
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2017.1.0f3
Device model : LENOVO Lenovo PB2-690M
Device fingerprint: Lenovo/phinny_row/PB2PRO:6.0.1/MMB29M/PB2-690M_S200100_170228:user/release-keys
Caused by: java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/ContextWrapper;)V in class Lcom/unity3d/player/UnityPlayer; or its super classes (declaration of 'com.unity3d.player.UnityPlayer' appears in /data/app/com.projecttango.unityexamples-2/base.apk)
at com.google.unity.GoogleUnityActivity.onCreate(GoogleUnityActivity.java:106)
at android.app.Activity.performCreate(Activity.java:6285)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
at android.app.ActivityThread.access$900(ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5418)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
07-13 18:26:07.938 1261-4787/? W/ActivityManager: Force finishing activity com.projecttango.unityexamples/com.google.unity.GoogleUnityActivity
07-13 18:26:08.290 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
07-13 18:26:08.294 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml,changedFile:/data/system/users/0/settings_system.xml
07-13 18:26:08.294 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
07-13 18:26:08.545 1261-1409/? W/ActivityManager: Activity pause timeout for ActivityRecord{e8388eb u0 com.projecttango.unityexamples/com.google.unity.GoogleUnityActivity t822 f}
After testing it has been confirmed that Unity 2017.1 is currently not supported by the Tango SDK, we only support Unity 5.6 at this time.

My Application Shuts Down with a Silent Error (AndroidRuntime: Shutting down VM)

MyApplication terminates silently. The last thing it prints is a tracelog from a function, then the Vm shuts down without any reference to my application.
This is the log snippet
05-17 15:25:28.294 4385 4385 D MyApplication: MyFunction()
05-17 15:25:28.294 4385 4385 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.369 4400 4400 W app_process: type=1400 audit(0.0:76): avc: denied { write } for name="system#framework#boot.art" dev="dm-0" ino=149 scontext=u:r:shell:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=0
05-17 15:25:28.419 4400 4400 W main : type=1400 audit(0.0:77): avc: denied { write } for name="arm64" dev="dm-0" ino=143 scontext=u:r:shell:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=dir permissive=0
05-17 15:25:28.371 4400 4400 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
05-17 15:25:28.375 4400 4400 D AndroidRuntime: CheckJNI is OFF
05-17 15:25:28.417 4400 4400 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
05-17 15:25:28.458 4400 4400 I Radio-JNI: register_android_hardware_Radio DONE
05-17 15:25:28.478 4385 4385 D AndroidRuntime: Shutting down VM
05-17 15:25:28.526 4400 4400 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The application continued running.
There's no clear indicator except the generic: 05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The error was caused by an StackOverflow in native code I wrote.
Stackoverflows shut down silently in Android Native Code, in contrast to segfaults and are therefore hard to find.
Locate the last working piece of code with Tracelogging / Logdebug or use the debugger of Android Studio and you will find the location of the bug.
The indicator for the silent termination is: "Shutting down VM"
05-17 15:25:28.478 4385 4385 D AndroidRuntime: Shutting down VM
05-17 15:25:28.526 4400 4400 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The application continued running, because the code was executed within it's own process (via ProcessBuilder.command())

setSupportActionBar() Makes my app disfunction

For some reason when i put the line setSupportActionBar(MyToolBarVariable)... It goes on to my Genymotion Emulator.. But when it opens the app, it says :
Unfourtuanetly "AppName" has Stoped
But if i delete the setSupportActionBar() Everything works fine... Whats the problem here.. Im going to post MainActivity.java file.. If you need to see others please tell me so below. Thanks for helping!
package com.example.amanuel.zoo4;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
setContentView(R.layout.activity_main);
}
}
Here is the LOGCAT When i press the app in my emulator!
04-06 02:09:02.522 652-1011/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.amanuel.zoo4/.MainActivity (has extras)} from uid 10008 on display 0
04-06 02:09:02.721 3360-3360/? I/art: Late-enabling -Xcheck:jni
04-06 02:09:02.762 652-1021/? I/ActivityManager: Start proc 3360:com.example.amanuel.zoo4/u0a63 for activity com.example.amanuel.zoo4/.MainActivity
04-06 02:09:02.815 652-667/? W/art: Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.activityPaused(android.os.IBinder) from ActivityManagerService.java:6439 waiters=1 for 136ms
04-06 02:09:02.978 3360-3360/? W/System: ClassLoader referenced unknown path: /data/app/com.example.amanuel.zoo4-2/lib/x86
04-06 02:09:03.170 3360-3360/? D/AndroidRuntime: Shutting down VM
04-06 02:09:03.178 3360-3360/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.amanuel.zoo4, PID: 3360
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.amanuel.zoo4/com.example.amanuel.zoo4.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence android.support.v7.widget.Toolbar.getTitle()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence android.support.v7.widget.Toolbar.getTitle()' on a null object reference
at android.support.v7.internal.widget.ToolbarWidgetWrapper.<init>(ToolbarWidgetWrapper.java:94)
at android.support.v7.internal.widget.ToolbarWidgetWrapper.<init>(ToolbarWidgetWrapper.java:87)
at android.support.v7.internal.app.ToolbarActionBar.<init>(ToolbarActionBar.java:77)
at android.support.v7.app.AppCompatDelegateImplV7.setSupportActionBar(AppCompatDelegateImplV7.java:198)
at android.support.v7.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:96)
at com.example.amanuel.zoo4.MainActivity.onCreate(MainActivity.java:13)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
at android.app.ActivityThread.-wrap11(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148) 
at android.app.ActivityThread.main(ActivityThread.java:5417) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
04-06 02:09:03.193 652-1021/? W/ActivityManager: Force finishing activity com.example.amanuel.zoo4/.MainActivity
04-06 02:09:03.500 652-1021/? I/WindowManager: Screenshot max retries 4 of Token{75d8954 ActivityRecord{722f0a7 u0 com.example.amanuel.zoo4/.MainActivity t42 f}} appWin=Window{450aeec u0 Starting com.example.amanuel.zoo4} drawState=1
04-06 02:09:03.514 652-652/? W/art: Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12502 waiters=0 for 299ms
04-06 02:09:03.639 652-666/? W/art: Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12502 waiters=1 for 216ms
04-06 02:09:03.640 652-652/? W/art: Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService$UiHandler.handleMessage(android.os.Message) from ActivityManagerService.java:1397 waiters=1 for 111ms
04-06 02:09:03.814 652-1641/? I/OpenGLRenderer: Initialized EGL, version 1.4
04-06 02:09:04.021 652-666/? W/ActivityManager: Activity pause timeout for ActivityRecord{722f0a7 u0 com.example.amanuel.zoo4/.MainActivity t42 f}
04-06 02:09:04.129 652-1641/? W/EGL_emulation: eglSurfaceAttrib not implemented
04-06 02:09:04.130 652-1641/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xd60610a0, error=EGL_SUCCESS
04-06 02:09:04.198 652-667/? I/Choreographer: Skipped 32 frames! The application may be doing too much work on its main thread.
04-06 02:09:04.303 652-981/? I/ActivityManager: Killing 1792:com.android.keychain/1000 (adj 15): empty for 3078s
04-06 02:09:04.763 652-668/? E/BluetoothAdapter: Bluetooth binder is null
04-06 02:09:04.825 652-667/? I/Choreographer: Skipped 37 frames! The application may be doing too much work on its main thread.
04-06 02:09:07.697 3360-3360/? I/Process: Sending signal. PID: 3360 SIG: 9
04-06 02:09:07.732 652-679/? I/ActivityManager: Process com.example.amanuel.zoo4 (pid 3360) has died
04-06 02:09:07.771 652-1641/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xde8f0df0
04-06 02:09:07.844 652-1641/? D/OpenGLRenderer: endAllStagingAnimators on 0xda3b2380 (RippleDrawable) with handle 0xdc57f670
04-06 02:09:07.852 652-652/? W/art: Long monitor contention event with owner method=void android.view.WindowManagerGlobal.removeView(android.view.View, boolean) from WindowManagerGlobal.java:349 waiters=0 for 102ms
04-06 02:09:07.854 652-1164/? W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#bc8dc8f attribute=null, token = android.os.BinderProxy#4b639cb
04-06 02:09:08.200 652-671/? W/AppOps: Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
04-06 02:09:12.630 308-647/? W/AudioFlinger: write blocked for 9842 msecs, 14 delayed writes, thread 0xf1e00000
04-06 02:09:18.081 100-100/? D/Genyd: Received Set Clipboard
04-06 02:09:18.081 100-100/? D/Genymotion: Received Set Clipboard
Try putting setContentView(R.layout.activity_main); before trying to instantiate the Toolbar.

display a android toast when sms is received

i want to display a simple Toast when sms is received. i am trying this from last 4 days still no success. please do help.
sometimes my app executes corectly. some times it does not.
1) when i create a new project with a blank Activity and add a Button to it. so that click on Button a Toast is shown.
------> execution of this is successfull. it works fine.
now
2) i delete layout\*.xml file and edit my MainActivity.java and Manifest.xml (as follows) it shows me the Toast when sms is received.
BUT
if i recompile it and re-run it , same code and same Manifest (noting is changed) it does not work.
in short at 1st execution it works fine after that it never get executed.
MAINACTIVITY.JAVA
package com.example.vaibhav.savemev2;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
public class MainActivity extends BroadcastReceiver {
#Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context,"SMS RECEIVED BRO !",Toast.LENGTH_LONG).show();
}
}
MANIFEST.XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.vaibhav.savemev2">
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
<uses-permission android:name="android.permission.READ_SMS"/>
<application android:allowBackup="true" android:label="#string/app_name"
android:icon="#mipmap/ic_launcher" android:theme="#style/AppTheme">
<receiver android:name=".MainActivity">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED"/>
</intent-filter>
</receiver>
</application>
</manifest>
LOGCAT(NOTWORKING that is for the 2nd,3rd,4th...... time of compilation. point number 3)
04-13 00:18:25.542 1773-1773/com.google.process.gapps I/ConfigService﹕ onBind for Intent { act=com.google.android.gms.config.START pkg=com.google.android.gms } action com.google.android.gms.config.START
04-13 00:18:25.542 1773-1773/com.google.process.gapps I/ConfigService﹕ onBind returning service broker
04-13 00:18:25.578 1233-1245/system_process I/art﹕ Background sticky concurrent mark sweep GC freed 29195(1867KB) AllocSpace objects, 9(144KB) LOS objects, 13% free, 10MB/11MB, paused 1.297ms total 2.026s
04-13 00:18:25.581 1233-1283/system_process I/art﹕ WaitForGcToComplete blocked for 810.831ms for cause Explicit
04-13 00:18:26.462 1233-1283/system_process I/art﹕ Explicit concurrent mark sweep GC freed 5679(338KB) AllocSpace objects, 2(32KB) LOS objects, 16% free, 9MB/11MB, paused 9.483ms total 859.150ms
04-13 00:18:26.624 1973-1973/com.google.android.gms I/ConfigFetchService﹕ service connected
04-13 00:18:26.654 3531-3531/? D/AndroidRuntime﹕ Shutting down VM
04-13 00:18:26.655 3531-3533/? I/art﹕ Debugger is no longer active
04-13 00:18:26.774 1233-1233/system_process D/BackupManagerService﹕ Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.vaibhav.savemev2 flg=0x4000010 (has extras) }
04-13 00:18:26.774 1233-1233/system_process W/BackupManagerService﹕ Removing schedule queue dupe of com.example.vaibhav.savemev2
04-13 00:18:26.809 1233-1269/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:18:27.240 2038-2038/com.android.keychain W/ContextImpl﹕ Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1686 android.content.ContextWrapper.startService:515 android.content.ContextWrapper.startService:515 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2579
04-13 00:18:27.245 1233-1472/system_process I/ActivityManager﹕ Delay finish: com.android.keychain/.KeyChainBroadcastReceiver
04-13 00:18:27.284 1233-1842/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:18:27.311 1973-3551/com.google.android.gms D/PackageBroadcastService﹕ Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.example.vaibhav.savemev2
04-13 00:18:27.321 1233-1644/system_process I/ActivityManager﹕ Delay finish: com.google.android.gms/.app.receiver.SystemBroadcastReceiver
04-13 00:18:27.408 1973-1973/com.google.android.gms I/ConfigFetchService﹕ onStartCommand Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.vaibhav.savemev2 cmp=com.google.android.gms/.config.ConfigFetchService (has extras) }
04-13 00:18:27.409 1973-1973/com.google.android.gms I/ConfigFetchService﹕ launchTask
04-13 00:18:27.907 1973-3555/com.google.android.gms I/PeopleContactsSync﹕ CP2 sync disabled
04-13 00:18:27.908 1973-1973/com.google.android.gms I/ConfigFetchService﹕ service connected
04-13 00:18:27.967 1973-1973/com.google.android.gms D/ConfigFetchService﹕ ConfigApi connection successful.
04-13 00:18:28.035 1233-1272/system_process W/VoiceInteractionManagerService﹕ no available voice recognition services found for user 0
04-13 00:18:37.462 1973-3553/com.google.android.gms V/ConfigFetchTask﹕ ConfigFetchTask getDeviceDataVersionInfo(): ABFEt1V7na1GUYHmCFdhBRFSiefbF1ngJlylTaCxtj477EUPZ4tUkHtmCOqm3yL-4bmaZmZaWw7ipVyPnbnfUe04Mimqdod_MohZrTXZh15F1RAla6JoKLuzCufzRnkj505ZtfvnCb2Ayjzk2-YWKzcTP-vbOfgL2fW9mYnYwsv_wq_5Yqr92WCP2UViB4Ie7NhpJu8UBYCWd5R2DeVxdnZgJcHjB_p_9fLN2acfhJWXS0KMoDV1yxyzoPGC-ksM1zqMMpKC4JknD1ePU0EDyK_pjXVL1hxASE6GXtnLyVgS1eF2ik92lfZ8lDG-TYtFbkT__vJ1ANdkXdkCiNUxenPaOWezZf31LCE5H0kJ8pI8VSuC7pKxjVw
04-13 00:18:37.498 1973-3553/com.google.android.gms I/GoogleURLConnFactory﹕ Using platform SSLCertificateSocketFactory
04-13 00:18:37.807 1973-1973/com.google.android.gms I/ConfigFetchService﹕ fetch service done; releasing wakelock
04-13 00:18:37.808 1973-1973/com.google.android.gms I/ConfigFetchService﹕ stopping self
04-13 00:18:37.810 1233-1842/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:18:37.856 1773-1773/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
04-13 00:18:37.856 1773-1773/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
04-13 00:18:37.872 1233-1269/system_process I/ActivityManager﹕ Delay finish: com.google.android.gms/.gcm.nts.SchedulerReceiver
04-13 00:18:37.881 1233-1779/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:18:37.886 1233-1339/system_process I/ActivityManager﹕ Delay finish: com.google.android.gms/.app.receiver.SystemBroadcastReceiver
04-13 00:18:37.888 1973-3558/com.google.android.gms D/PackageBroadcastService﹕ Received broadcast action=android.intent.action.PACKAGE_REPLACED and uri=com.example.vaibhav.savemev2
04-13 00:18:37.891 1973-3559/com.google.android.gms I/PeopleContactsSync﹕ CP2 sync disabled
04-13 00:18:37.925 1233-1580/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:18:38.028 1233-1269/system_process I/ActivityManager﹕ Delay finish: com.android.mms/.transaction.PrivilegedSmsReceiver
04-13 00:18:38.031 2161-2161/com.android.mms V/Mms﹕ onStart: #1 mResultCode: -1 = Activity.RESULT_OK
04-13 00:18:38.489 2161-3560/com.android.mms D/Mms﹕ handleSmsReceived messageUri: content://sms/24 threadId: 1
04-13 00:18:38.522 2161-3560/com.android.mms D/Mms﹕ updateNotification: new message, adding sound to the notification
04-13 00:18:38.574 1233-1233/system_process I/ValidateNoPeople﹕ Validating: 0|com.android.mms|123|null|10010
04-13 00:18:38.575 1233-1233/system_process I/ValidateNoPeople﹕ final affinity: 0.0
04-13 00:18:38.592 1233-1268/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:18:38.875 1415-3562/com.android.systemui E/MediaPlayer﹕ Should have subtitle controller already set
04-13 00:18:38.939 1233-1269/system_process I/MediaFocusControl﹕ AudioFocus requestAudioFocus() from android.media.AudioManager#bfa2e69
04-13 00:18:38.941 944-944/? D/NuPlayerDriver﹕ start(0xb4883280)
04-13 00:18:38.942 944-1578/? D/NuPlayerDriver﹕ reset(0xb5a4b100)
04-13 00:18:38.948 944-3514/? D/NuPlayerDriver﹕ notifyResetComplete(0xb5a4b100)
04-13 00:18:38.948 1415-3562/com.android.systemui E/MediaPlayer﹕ Should have subtitle controller already set
04-13 00:18:38.949 944-3563/? I/GenericSource﹕ start
04-13 00:18:38.970 944-3565/? D/AudioSink﹕ bufferCount (8) is too small and increased to 12
04-13 00:18:40.975 1233-1472/system_process I/MediaFocusControl﹕ AudioFocus abandonAudioFocus() from android.media.AudioManager#bfa2e69
04-13 00:18:41.422 944-1224/? I/AudioFlinger﹕ BUFFER TIMEOUT: remove(4097) from active list on thread 0xb61b7000
04-13 00:18:42.866 1773-1773/com.google.process.gapps I/ConfigService﹕ onDestroy
04-13 00:19:00.254 1415-1428/com.android.systemui I/art﹕ Background sticky concurrent mark sweep GC freed 27578(1080KB) AllocSpace objects, 0(0B) LOS objects, 15% free, 6MB/7MB, paused 1.210ms total 193.993ms
04-13 00:19:22.023 3575-3575/? D/AndroidRuntime﹕ >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
04-13 00:19:22.075 3575-3575/? D/AndroidRuntime﹕ CheckJNI is ON
04-13 00:19:23.256 3575-3575/? E/memtrack﹕ Couldn't load memtrack module (No such file or directory)
04-13 00:19:23.257 3575-3575/? E/android.os.Debug﹕ failed to load memtrack module: -2
04-13 00:19:24.405 3575-3575/? D/AndroidRuntime﹕ Calling main entry com.android.commands.pm.Pm
04-13 00:19:24.676 1781-3586/com.android.defcontainer D/DefContainer﹕ Copying /data/local/tmp/com.example.vaibhav.savemev2 to base.apk
04-13 00:19:24.767 1233-1283/system_process D/PackageManager﹕ Renaming /data/app/vmdl202891466.tmp to /data/app/com.example.vaibhav.savemev2-1
04-13 00:19:24.767 1233-1273/system_process I/ActivityManager﹕ Force stopping com.example.vaibhav.savemev2 appid=10059 user=-1: uninstall pkg
04-13 00:19:24.871 1233-1283/system_process I/PackageManager﹕ Package com.example.vaibhav.savemev2 codePath changed from /data/app/com.example.vaibhav.savemev2-2 to /data/app/com.example.vaibhav.savemev2-1; Retaining data and using new
04-13 00:19:24.871 1233-1283/system_process I/art﹕ DexFile_isDexOptNeeded failed to open oat file '/data/dalvik-cache/x86/data#app#com.example.vaibhav.savemev2-1#base.apk#classes.dex' for file location '/data/app/com.example.vaibhav.savemev2-1/base.apk': Failed to open oat filename for reading: No such file or directory
04-13 00:19:24.874 1233-1283/system_process I/art﹕ DexFile_isDexOptNeeded failed to open oat file '/data/app/com.example.vaibhav.savemev2-1/x86/base.odex' for file location '/data/app/com.example.vaibhav.savemev2-1/base.apk': Failed to open oat filename for reading: No such file or directory
04-13 00:19:24.874 1233-1283/system_process I/PackageManager﹕ Running dexopt on: /data/app/com.example.vaibhav.savemev2-1/base.apk pkg=com.example.vaibhav.savemev2 isa=x86 vmSafeMode=false
04-13 00:19:25.221 3588-3588/? I/dex2oat﹕ /system/bin/dex2oat --zip-fd=6 --zip-location=/data/app/com.example.vaibhav.savemev2-1/base.apk --oat-fd=7 --oat-location=/data/dalvik-cache/x86/data#app#com.example.vaibhav.savemev2-1#base.apk#classes.dex --instruction-set=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m
04-13 00:19:25.844 3588-3588/? W/dex2oat﹕ Compilation of void com.example.vaibhav.savemev2.BuildConfig.<init>() took 166.920ms
04-13 00:19:25.874 3588-3588/? I/dex2oat﹕ dex2oat took 602.641ms (threads: 1)
04-13 00:19:25.875 1233-1273/system_process I/ActivityManager﹕ Force stopping com.example.vaibhav.savemev2 appid=10059 user=-1: update pkg
04-13 00:19:25.876 1233-1283/system_process W/PackageManager﹕ Code path for pkg : com.example.vaibhav.savemev2 changing from /data/app/com.example.vaibhav.savemev2-2 to /data/app/com.example.vaibhav.savemev2-1
04-13 00:19:25.876 1233-1283/system_process W/PackageManager﹕ Resource path for pkg : com.example.vaibhav.savemev2 changing from /data/app/com.example.vaibhav.savemev2-2 to /data/app/com.example.vaibhav.savemev2-1
04-13 00:19:25.929 1233-1283/system_process I/ActivityManager﹕ Force stopping com.example.vaibhav.savemev2 appid=10059 user=0: pkg removed
04-13 00:19:25.942 1233-1233/system_process D/BackupManagerService﹕ Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.example.vaibhav.savemev2 flg=0x4000010 (has extras) }
04-13 00:19:25.942 1233-1233/system_process D/JobSchedulerService﹕ Receieved: android.intent.action.PACKAGE_REMOVED
04-13 00:19:25.982 1233-1283/system_process W/Settings﹕ Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
04-13 00:19:25.992 1773-1773/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
04-13 00:19:25.992 1773-1773/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
04-13 00:19:26.000 1233-1269/system_process I/ActivityManager﹕ Delay finish: com.google.android.gms/.app.receiver.SystemBroadcastReceiver
04-13 00:19:26.005 1973-3590/com.google.android.gms D/PackageBroadcastService﹕ Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=com.example.vaibhav.savemev2
04-13 00:19:26.011 1773-1773/com.google.process.gapps I/ConfigService﹕ onCreate
04-13 00:19:26.023 1773-1773/com.google.process.gapps I/ConfigService﹕ onBind for Intent { act=com.google.android.gms.config.UPDATE pkg=com.google.android.gms } action com.google.android.gms.config.UPDATE
04-13 00:19:26.027 1973-1973/com.google.android.gms I/ConfigFetchService﹕ onStartCommand Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.example.vaibhav.savemev2 cmp=com.google.android.gms/.config.ConfigFetchService (has extras) }
04-13 00:19:26.052 1233-1320/system_process I/InputReader﹕ Reconfiguring input devices. changes=0x00000010
04-13 00:19:26.056 1233-1320/system_process I/InputReader﹕ Reconfiguring input devices. changes=0x00000010
04-13 00:19:26.061 1233-1233/system_process D/BackupManagerService﹕ Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.vaibhav.savemev2 flg=0x4000010 (has extras) }
04-13 00:19:26.061 1233-1233/system_process W/BackupManagerService﹕ Removing schedule queue dupe of com.example.vaibhav.savemev2
04-13 00:19:26.064 1233-1320/system_process I/InputReader﹕ Reconfiguring input devices. changes=0x00000010
04-13 00:19:26.699 1511-1532/com.android.phone I/art﹕ Background sticky concurrent mark sweep GC freed 8436(428KB) AllocSpace objects, 0(0B) LOS objects, 22% free, 1850KB/2MB, paused 1.184ms total 710.008ms
04-13 00:19:26.741 1773-1773/com.google.process.gapps I/ConfigService﹕ onBind returning update interface
04-13 00:19:26.743 1773-1773/com.google.process.gapps I/ConfigService﹕ onBind for Intent { act=com.google.android.gms.config.START pkg=com.google.android.gms } action com.google.android.gms.config.START
04-13 00:19:26.744 1773-1773/com.google.process.gapps I/ConfigService﹕ onBind returning service broker
04-13 00:19:26.801 1233-1272/system_process W/VoiceInteractionManagerService﹕ no available voice recognition services found for user 0
04-13 00:19:26.811 1233-1582/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:19:26.834 2038-2038/com.android.keychain W/ContextImpl﹕ Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1686 android.content.ContextWrapper.startService:515 android.content.ContextWrapper.startService:515 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2579
04-13 00:19:26.851 1233-1580/system_process I/ActivityManager﹕ Delay finish: com.android.keychain/.KeyChainBroadcastReceiver
04-13 00:19:26.954 1233-1269/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:19:27.139 1233-1283/system_process I/art﹕ Explicit concurrent mark sweep GC freed 24509(1676KB) AllocSpace objects, 10(160KB) LOS objects, 16% free, 9MB/11MB, paused 17.625ms total 1.041s
04-13 00:19:27.335 3575-3575/? D/AndroidRuntime﹕ Shutting down VM
04-13 00:19:27.509 3575-3577/? I/art﹕ Debugger is no longer active
04-13 00:19:27.880 1233-1269/system_process I/ActivityManager﹕ Delay finish: com.google.android.gms/.app.receiver.SystemBroadcastReceiver
04-13 00:19:27.885 1973-3595/com.google.android.gms D/PackageBroadcastService﹕ Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.example.vaibhav.savemev2
04-13 00:19:27.898 1973-1973/com.google.android.gms I/ConfigFetchService﹕ onStartCommand Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.vaibhav.savemev2 cmp=com.google.android.gms/.config.ConfigFetchService (has extras) }
04-13 00:19:27.918 1973-1973/com.google.android.gms I/ConfigFetchService﹕ launchTask
04-13 00:19:28.234 1973-1973/com.google.android.gms I/ConfigFetchService﹕ service connected
04-13 00:19:28.238 1973-3599/com.google.android.gms I/PeopleContactsSync﹕ CP2 sync disabled
04-13 00:19:28.263 1973-1973/com.google.android.gms D/ConfigFetchService﹕ ConfigApi connection successful.
04-13 00:19:29.514 1773-1799/com.google.process.gapps E/StrictMode﹕ A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at java.util.zip.Inflater.<init>(Inflater.java:82)
at com.android.okio.GzipSource.<init>(GzipSource.java:57)
at com.android.okhttp.internal.http.HttpEngine.initContentStream(HttpEngine.java:478)
at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:668)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:379)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:323)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:491)
at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
at com.google.android.gms.http.GoogleHttpClient.a(SourceFile:791)
at com.google.android.gms.http.GoogleHttpClient.b(SourceFile:760)
at com.google.android.gms.http.GoogleHttpClient.execute(SourceFile:663)
at com.google.android.gms.http.GoogleHttpClient.execute(SourceFile:654)
at com.google.android.gms.playlog.uploader.e.a(SourceFile:346)
at com.google.android.gms.playlog.uploader.e.a(SourceFile:232)
at com.google.android.gms.playlog.uploader.e.a(SourceFile:204)
at com.google.android.gms.playlog.uploader.UploaderService.a(SourceFile:52)
at com.google.android.gms.gcm.ap.run(SourceFile:131)
04-13 00:19:37.973 1973-3597/com.google.android.gms V/ConfigFetchTask﹕ ConfigFetchTask getDeviceDataVersionInfo(): ABFEt1V7na1GUYHmCFdhBRFSiefbF1ngJlylTaCxtj477EUPZ4tUkHtmCOqm3yL-4bmaZmZaWw7ipVyPnbnfUe04Mimqdod_MohZrTXZh15F1RAla6JoKLuzCufzRnkj505ZtfvnCb2Ayjzk2-YWKzcTP-vbOfgL2fW9mYnYwsv_wq_5Yqr92WCP2UViB4Ie7NhpJu8UBYCWd5R2DeVxdnZgJcHjB_p_9fLN2acfhJWXS0KMoDV1yxyzoPGC-ksM1zqMMpKC4JknD1ePU0EDyK_pjXVL1hxASE6GXtnLyVgS1eF2ik92lfZ8lDG-TYtFbkT__vJ1ANdkXdkCiNUxenPaOWezZf31LCE5H0kJ8pI8VSuC7pKxjVw
04-13 00:19:37.977 1973-3597/com.google.android.gms I/GoogleURLConnFactory﹕ Using platform SSLCertificateSocketFactory
04-13 00:19:38.251 1973-1973/com.google.android.gms I/ConfigFetchService﹕ fetch service done; releasing wakelock
04-13 00:19:38.262 1973-1973/com.google.android.gms I/ConfigFetchService﹕ stopping self
04-13 00:19:38.265 1233-1842/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:19:38.303 1773-1773/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
04-13 00:19:38.303 1773-1773/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
04-13 00:19:38.322 1233-1779/system_process I/ActivityManager﹕ Delay finish: com.google.android.gms/.gcm.nts.SchedulerReceiver
04-13 00:19:38.329 1233-1644/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:19:38.335 1973-3606/com.google.android.gms D/PackageBroadcastService﹕ Received broadcast action=android.intent.action.PACKAGE_REPLACED and uri=com.example.vaibhav.savemev2
04-13 00:19:38.335 1233-1580/system_process I/ActivityManager﹕ Delay finish: com.google.android.gms/.app.receiver.SystemBroadcastReceiver
04-13 00:19:38.340 1973-3607/com.google.android.gms I/PeopleContactsSync﹕ CP2 sync disabled
04-13 00:19:38.350 1233-1629/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:19:43.329 1773-1773/com.google.process.gapps I/ConfigService﹕ onDestroy
04-13 00:20:12.317 1233-1580/system_process I/ActivityManager﹕ Delay finish: com.android.mms/.transaction.PrivilegedSmsReceiver
04-13 00:20:12.322 2161-2161/com.android.mms V/Mms﹕ onStart: #1 mResultCode: -1 = Activity.RESULT_OK
04-13 00:20:12.416 2161-3608/com.android.mms D/Mms﹕ handleSmsReceived messageUri: content://sms/25 threadId: 1
04-13 00:20:12.428 2161-3608/com.android.mms D/Mms﹕ updateNotification: new message, adding sound to the notification
04-13 00:20:12.434 1233-1233/system_process I/ValidateNoPeople﹕ Validating: 0|com.android.mms|123|null|10010
04-13 00:20:12.434 1233-1233/system_process I/ValidateNoPeople﹕ final affinity: 0.0
04-13 00:20:12.458 1415-3610/com.android.systemui E/MediaPlayer﹕ Should have subtitle controller already set
04-13 00:20:12.461 1233-1339/system_process I/MediaFocusControl﹕ AudioFocus requestAudioFocus() from android.media.AudioManager#21dff0ee
04-13 00:20:12.462 944-1578/? D/NuPlayerDriver﹕ start(0xb5a4b1c0)
04-13 00:20:12.464 944-1226/? D/NuPlayerDriver﹕ reset(0xb4883280)
04-13 00:20:12.470 944-3563/? D/NuPlayerDriver﹕ notifyResetComplete(0xb4883280)
04-13 00:20:12.471 1415-3610/com.android.systemui E/MediaPlayer﹕ Should have subtitle controller already set
04-13 00:20:12.472 944-3611/? I/GenericSource﹕ start
04-13 00:20:12.491 944-3613/? D/AudioSink﹕ bufferCount (8) is too small and increased to 12
04-13 00:20:12.565 1233-1269/system_process I/ActivityManager﹕ Resuming delayed broadcast
04-13 00:20:14.485 1233-1580/system_process I/MediaFocusControl﹕ AudioFocus abandonAudioFocus() from android.media.AudioManager#21dff0ee
04-13 00:20:14.933 944-1224/? I/AudioFlinger﹕ BUFFER TIMEOUT: remove(4097) from active list on thread 0xb61b7000
LOGCAT(WORKING, that is for the first time of compilation. point number 2)
https://www.dropbox.com/s/c7nlfh6qy4vg99m/workingLOGCAT.png?dl=0
it's dizzy logcat......
I think duplication broadcastreceiver.
if you want to run every time after first running, register broadcastreceiver in back service, and unregisterReceiver if you want.
or you want to run at show activity, register broadcastreceiver and shutdown activity unregisterReceiver.
my english bad.....
i hope help you.
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction("android.provider.Telephony.SMS_RECEIVED");
registerReceiver(smsreceiver, intentFilter);
if(smsreceiver != null){
unregisterReceiver(smsreceiver);
smsreceiver = null;
}
thank you.

Categories

Resources