- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我在使用“android:name="ManageApps"”的第二个 Activity 上收到此错误,
'net.web44.jimappdev.thecoincollector.ManageApps' is not assignable to 'android.app.Activity' Validates resource references inside Android XML files.
这是Manifest.xml,
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.web44.jimappdev.thecoincollector" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<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="ManageApps"
android:label="@string/app_name">
<intent-filter>
<action android:name="net.web44.jimappdev.thecoincollector.manageapps" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>
这里是MainActivity.java,
package net.web44.jimappdev.thecoincollector;
import android.content.Intent;
//import android.media.Image;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.AdRequest;
public class MainActivity extends ActionBarActivity implements View.OnClickListener {
// AdViews
private AdView adView;
private static final String AD_UNIT_ID = "ca-app-pub-7840388903463976/1730307243";
private static final String DEVICE_ID = "3FAECD3006B2EF61";
Button button1;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// AdViews
adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice(DEVICE_ID)
.build();
adView.loadAd(adRequest);
// New Activity button
button1 = (Button)findViewById(R.id.button1);
button1.setOnClickListener(this);
}
// new activity button
public void button1Click() {
startActivity(new Intent("net.web44.jimappdev.thecoincollector.ManageApps"));
}
// New Activity button
public void onClick (View v) {
switch (v.getId())
{
case R.id.button1:
button1Click();
break;
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.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();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
这是我尝试运行后的 logcat,
12-26 23:38:10.328 9114-9114/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ GC_FOR_ALLOC freed 144K, 37% free 17054K/27036K, paused 19ms, total 19ms
12-26 23:38:10.428 9114-9114/net.web44.jimappdev.thecoincollector I/dalvikvm-heap﹕ Grow heap (frag case) to 70.860MB for 51609616-byte allocation
12-26 23:38:10.818 9114-9226/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ DexOpt: --- BEGIN 'ads1427203900.jar' (bootstrap=0) ---
12-26 23:38:10.828 9114-9114/net.web44.jimappdev.thecoincollector V/WebViewChromiumFactoryProvider﹕ Binding Chromium to main looper Looper (main, tid 1) {42ada888}
12-26 23:38:10.828 9114-9114/net.web44.jimappdev.thecoincollector I/LibraryLoader﹕ Expected native library version number "",actual native library version number ""
12-26 23:38:10.828 9114-9114/net.web44.jimappdev.thecoincollector I/chromium﹕ [ INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
12-26 23:38:10.828 9114-9114/net.web44.jimappdev.thecoincollector I/BrowserStartupController﹕ Initializing chromium process, renderers=0
12-26 23:38:10.848 9114-9114/net.web44.jimappdev.thecoincollector E/AudioManagerAndroid﹕ BLUETOOTH permission is missing!
12-26 23:38:10.858 9114-9114/net.web44.jimappdev.thecoincollector I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: (CL3869936)
OpenGL ES Shader Compiler Version: 17.01.11.SPL
Build Date: 01/17/14 Fri
Local Branch:
Remote Branch:
Local Patches:
Reconstruct Branch:
12-26 23:38:10.918 9114-9114/net.web44.jimappdev.thecoincollector I/Ads﹕ Starting ad request.
12-26 23:38:10.918 9114-9114/net.web44.jimappdev.thecoincollector I/Ads﹕ Use AdRequest.Builder.addTestDevice("A3345A0900C390D5B080A31927017399") to get test ads on this device.
12-26 23:38:10.928 9114-9114/net.web44.jimappdev.thecoincollector I/Ads﹕ Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
12-26 23:38:10.928 9114-9114/net.web44.jimappdev.thecoincollector D/Activity﹕ #1 setTransGradationModeColor false
12-26 23:38:10.948 9114-9226/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ DexOpt: --- END 'ads1427203900.jar' (success) ---
12-26 23:38:10.948 9114-9226/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ DEX prep '/data/data/net.web44.jimappdev.thecoincollector/cache/ads1427203900.jar': unzip in 0ms, rewrite 139ms
12-26 23:38:11.008 9114-9114/net.web44.jimappdev.thecoincollector D/OpenGLRenderer﹕ Enabling debug mode 0
12-26 23:38:13.321 9114-9122/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 11
12-26 23:38:13.321 9114-9122/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 12
12-26 23:38:13.321 9114-9122/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 13
12-26 23:38:13.321 9114-9122/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 14
12-26 23:38:14.302 9114-9249/net.web44.jimappdev.thecoincollector W/chromium﹕ [WARNING:proxy_service.cc(890)] PAC support disabled because there is no system implementation
12-26 23:38:16.494 9114-9114/net.web44.jimappdev.thecoincollector I/Ads﹕ Scheduling ad refresh 60000 milliseconds from now.
12-26 23:38:16.494 9114-9114/net.web44.jimappdev.thecoincollector I/Ads﹕ Ad finished loading.
12-26 23:38:16.554 9114-9114/net.web44.jimappdev.thecoincollector E/qdutils﹕ FBIOGET_FSCREENINFO failed
12-26 23:38:16.554 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-26 23:38:16.554 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-26 23:38:16.554 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-26 23:38:16.554 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-26 23:38:16.554 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-26 23:38:16.554 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-26 23:38:17.815 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-26 23:38:17.815 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-26 23:38:17.815 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-26 23:38:17.815 9114-9114/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-26 23:38:21.979 9114-9114/net.web44.jimappdev.thecoincollector D/Instrumentation﹕ checkStartActivityResult :Intent { act=ManageApps }
12-26 23:38:21.979 9114-9114/net.web44.jimappdev.thecoincollector D/Instrumentation﹕ checkStartActivityResult inent is instance of inent:
12-26 23:38:21.979 9114-9114/net.web44.jimappdev.thecoincollector D/AndroidRuntime﹕ Shutting down VM
12-26 23:38:21.979 9114-9114/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41878da0)
12-26 23:38:21.989 9114-9114/net.web44.jimappdev.thecoincollector E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.web44.jimappdev.thecoincollector, PID: 9114
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=ManageApps }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1660)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1430)
at android.app.Activity.startActivityForResult(Activity.java:3628)
at android.app.Activity.startActivityForResult(Activity.java:3589)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:817)
at android.app.Activity.startActivity(Activity.java:3831)
at android.app.Activity.startActivity(Activity.java:3799)
at net.web44.jimappdev.thecoincollector.MainActivity.startButtonClick(MainActivity.java:46)
at net.web44.jimappdev.thecoincollector.MainActivity.onClick(MainActivity.java:54)
at android.view.View.performClick(View.java:4753)
at android.view.View$PerformClick.run(View.java:19562)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5635)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
12-26 23:38:27.044 9114-9114/net.web44.jimappdev.thecoincollector I/Process﹕ Sending signal. PID: 9114 SIG: 9
12-26 23:47:08.893 11822-11822/net.web44.jimappdev.thecoincollector I/SELinux﹕ Function: selinux_android_load_priority , priority [2] , priority version is VE=SEPF_SGH-M919_4.4.4_0032
12-26 23:47:08.903 11822-11822/net.web44.jimappdev.thecoincollector E/dalvikvm﹕ >>>>> Normal User
12-26 23:47:08.903 11822-11822/net.web44.jimappdev.thecoincollector E/dalvikvm﹕ >>>>> net.web44.jimappdev.thecoincollector [ userId:0 | appId:10266 ]
12-26 23:47:08.903 11822-11822/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ Late-enabling CheckJNI
12-26 23:47:09.053 11822-11822/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ newInstance failed: p0 i0 [0 a1
12-26 23:47:09.053 11822-11822/net.web44.jimappdev.thecoincollector D/AndroidRuntime﹕ Shutting down VM
12-26 23:47:09.053 11822-11822/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41878da0)
12-26 23:47:09.073 11822-11822/net.web44.jimappdev.thecoincollector E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.web44.jimappdev.thecoincollector, PID: 11822
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{net.web44.jimappdev.thecoincollector/net.web44.jimappdev.thecoincollector.MainActivity}: java.lang.InstantiationException: can't instantiate class net.web44.jimappdev.thecoincollector.MainActivity
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2308)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
at android.app.ActivityThread.access$900(ActivityThread.java:170)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1304)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5635)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.InstantiationException: can't instantiate class net.web44.jimappdev.thecoincollector.MainActivity
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2299)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
at android.app.ActivityThread.access$900(ActivityThread.java:170)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1304)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5635)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
12-27 00:11:16.265 24403-24403/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted
12-27 00:11:16.265 24403-24403/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ VFY: unable to resolve virtual method 11747: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
12-27 00:11:16.265 24403-24403/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000
12-27 00:11:16.265 24403-24403/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll
12-27 00:11:16.265 24403-24403/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ VFY: unable to resolve virtual method 11753: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
12-27 00:11:16.265 24403-24403/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000
12-27 00:11:16.275 24403-24403/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
12-27 00:11:16.275 24403-24403/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ VFY: unable to resolve virtual method 9398: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
12-27 00:11:16.275 24403-24403/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000e
12-27 00:11:16.285 24403-24403/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
12-27 00:11:16.285 24403-24403/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ VFY: unable to resolve virtual method 534: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
12-27 00:11:16.285 24403-24403/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
12-27 00:11:16.285 24403-24403/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
12-27 00:11:16.285 24403-24403/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ VFY: unable to resolve virtual method 556: Landroid/content/res/TypedArray;.getType (I)I
12-27 00:11:16.285 24403-24403/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
12-27 00:11:16.476 24403-24403/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ GC_FOR_ALLOC freed 144K, 37% free 17054K/27036K, paused 16ms, total 16ms
12-27 00:11:16.596 24403-24403/net.web44.jimappdev.thecoincollector I/dalvikvm-heap﹕ Grow heap (frag case) to 70.860MB for 51609616-byte allocation
12-27 00:11:16.966 24403-24487/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ DexOpt: --- BEGIN 'ads1427203900.jar' (bootstrap=0) ---
12-27 00:11:17.006 24403-24403/net.web44.jimappdev.thecoincollector V/WebViewChromiumFactoryProvider﹕ Binding Chromium to main looper Looper (main, tid 1) {42adac10}
12-27 00:11:17.016 24403-24403/net.web44.jimappdev.thecoincollector I/LibraryLoader﹕ Expected native library version number "",actual native library version number ""
12-27 00:11:17.016 24403-24403/net.web44.jimappdev.thecoincollector I/chromium﹕ [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
12-27 00:11:17.016 24403-24403/net.web44.jimappdev.thecoincollector I/BrowserStartupController﹕ Initializing chromium process, renderers=0
12-27 00:11:17.036 24403-24403/net.web44.jimappdev.thecoincollector E/AudioManagerAndroid﹕ BLUETOOTH permission is missing!
12-27 00:11:17.056 24403-24403/net.web44.jimappdev.thecoincollector I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: (CL3869936)
OpenGL ES Shader Compiler Version: 17.01.11.SPL
Build Date: 01/17/14 Fri
Local Branch:
Remote Branch:
Local Patches:
Reconstruct Branch:
12-27 00:11:17.096 24403-24487/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ DexOpt: --- END 'ads1427203900.jar' (success) ---
12-27 00:11:17.096 24403-24487/net.web44.jimappdev.thecoincollector D/dalvikvm﹕ DEX prep '/data/data/net.web44.jimappdev.thecoincollector/cache/ads1427203900.jar': unzip in 0ms, rewrite 131ms
12-27 00:11:17.146 24403-24403/net.web44.jimappdev.thecoincollector I/Ads﹕ Starting ad request.
12-27 00:11:17.146 24403-24403/net.web44.jimappdev.thecoincollector I/Ads﹕ Use AdRequest.Builder.addTestDevice("A3345A0900C390D5B080A31927017399") to get test ads on this device.
12-27 00:11:17.156 24403-24403/net.web44.jimappdev.thecoincollector I/Ads﹕ Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
12-27 00:11:17.176 24403-24403/net.web44.jimappdev.thecoincollector D/Activity﹕ #1 setTransGradationModeColor false
12-27 00:11:17.256 24403-24403/net.web44.jimappdev.thecoincollector D/OpenGLRenderer﹕ Enabling debug mode 0
12-27 00:11:19.879 24403-24511/net.web44.jimappdev.thecoincollector W/chromium﹕ [WARNING:proxy_service.cc(890)] PAC support disabled because there is no system implementation
12-27 00:11:19.959 24403-24410/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 11
12-27 00:11:19.959 24403-24410/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 12
12-27 00:11:19.959 24403-24410/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 13
12-27 00:11:19.959 24403-24410/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 14
12-27 00:11:19.959 24403-24410/net.web44.jimappdev.thecoincollector I/dalvikvm﹕ Total arena pages for JIT: 15
12-27 00:11:20.209 24403-24738/net.web44.jimappdev.thecoincollector I/chromium﹕ [INFO:simple_index_file.cc(437)] Simple Cache Index is being restored from disk.
12-27 00:11:20.590 24403-24403/net.web44.jimappdev.thecoincollector I/Ads﹕ Scheduling ad refresh 60000 milliseconds from now.
12-27 00:11:20.590 24403-24403/net.web44.jimappdev.thecoincollector I/Ads﹕ Ad finished loading.
12-27 00:11:20.630 24403-24403/net.web44.jimappdev.thecoincollector E/qdutils﹕ FBIOGET_FSCREENINFO failed
12-27 00:11:20.630 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-27 00:11:20.630 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-27 00:11:20.630 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-27 00:11:20.630 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-27 00:11:20.630 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-27 00:11:20.640 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-27 00:11:20.650 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=3000000 flags=1
12-27 00:11:20.650 24403-24403/net.web44.jimappdev.thecoincollector E/qdmemalloc﹕ heap_msk=40000000 flags=1
12-27 00:11:32.521 24403-24403/net.web44.jimappdev.thecoincollector D/Instrumentation﹕ checkStartActivityResult :Intent { act=net.web44.jimappdev.thecoincollector.ManageApps }
12-27 00:11:32.521 24403-24403/net.web44.jimappdev.thecoincollector D/Instrumentation﹕ checkStartActivityResult inent is instance of inent:
12-27 00:11:32.521 24403-24403/net.web44.jimappdev.thecoincollector D/AndroidRuntime﹕ Shutting down VM
12-27 00:11:32.521 24403-24403/net.web44.jimappdev.thecoincollector W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41878da0)
12-27 00:11:32.541 24403-24403/net.web44.jimappdev.thecoincollector E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: net.web44.jimappdev.thecoincollector, PID: 24403
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=net.web44.jimappdev.thecoincollector.ManageApps }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1660)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1430)
at android.app.Activity.startActivityForResult(Activity.java:3628)
at android.app.Activity.startActivityForResult(Activity.java:3589)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:817)
at android.app.Activity.startActivity(Activity.java:3831)
at android.app.Activity.startActivity(Activity.java:3799)
at net.web44.jimappdev.thecoincollector.MainActivity.button1Click(MainActivity.java:43)
at net.web44.jimappdev.thecoincollector.MainActivity.onClick(MainActivity.java:51)
at android.view.View.performClick(View.java:4753)
at android.view.View$PerformClick.run(View.java:19562)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5635)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
12-27 00:11:34.663 24403-24403/net.web44.jimappdev.thecoincollector I/Process﹕ Sending signal. PID: 24403 SIG: 9
最佳答案
看起来您的 ManageApps
Activity 不在包 namespace 中:
<activity
android:name="ManageApps"
android:label="@string/app_name">
<intent-filter>
<action android:name="net.web44.jimappdev.thecoincollector.manageapps" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
名称必须以 .
开头才能被视为包 namespace 的一部分:
android:name=".ManageApps"
此外,尽管我不是 100% 确定,但我始终假设操作名称区分大小写。在上面的 list 部分中,您使用 manageapps
作为操作名称的最后一部分,而在 Java 代码中构建 Intent 时以混合大小写的方式使用它:
startActivity(new Intent("net.web44.jimappdev.thecoincollector.ManageApps"));
关于java - "Validates resource references inside Android XML files",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27664926/
当我尝试输入时,我正在关注 Ray Wenderlich ( https://videos.raywenderlich.com/screencasts/545-server-side-swift-wi
我正在使用 javax.validation.Validation 来验证 jpa 实体。我总是针对相同的实体进行验证。 我想知道是对所有验证使用一个 validator 更好,还是每次验证时实例化一
Controller : @RequestMapping(...) public void foo(@Valid Parent p){ } class Parent { @NotNull // j
在 login.phtml 中,validator 和 validate 之间有什么区别 - 有人可以解释下面每一行的含义 function onepageLogin(button)
我有一个 java bean 用于将 JSON 消息发送到 spring @RestController 并且我有 bean 验证设置并使用 @Valid 运行得很好。但我想转移到 Protobuf/
我正在使用 vee-validate 来验证注册表单,我编写了如下代码,
使用 有什么区别属性和 标签? 我应该什么时候使用哪一种? 最佳答案 validator属性允许您引用独立的托管 bean 方法,而不仅仅是像这样的验证器
我们有这个 Alamofire 错误处理: Alamofire.request(.GET, getUrl("mystuff")).responseData { response in guar
以下代码创建了两个单选按钮。每个选项都包含一个日期值,该日期值已成功转换为格式为“yyyy-MM-dd”的标签。一旦我做出选择并单击下一步按钮,我就会收到以下错误“j_idt12:comDateCho
是否有类似的验证: req.checkBody('property', 'should be present').isPresent(); 值本身并不重要。 现在我使用这个解决方案: .isLengt
系列文章: 1、async-validator 源码学习(一):文档翻译 2、async-validator 源码学习笔记(二):目录结构 3、async-validator 源码学习笔记(三):ru
我正在使用 Backbone.Validation插入。我有一个模型可以在服务器端进行唯一性检查。我如何让 backbone.validation 识别错误并运行我设置的回调以显示返回的错误消息? t
我有一个 Knockout.Validation 场景,我认为该场景相当普遍,但尚未通过在网络上搜索和本网站上的各种答案找到解决方案。 我正在验证的属性在 ajax 调用之后才会添加到可观察到的 kn
我是 Knockout JS 的新手。我需要一个验证器来验证用户将在文本框中输入的日期。为此编写了如下代码 ko.validation.rules['date'] = { validator:
如何在 JSF 验证器中比较两个字符串是否相等? if (!settingsBean.getNewPassword().equals(settingsBean.getConfirmPassword()
我有简单的域: package app class Customers { String CUSTOMER String NOTE static mapping = {
我正在使用 ember-validations 来验证表单中的模型。 如果我使用 createRecord 创建记录,则模型的实例已经过验证,因此在用户输入值之前表单已经显示验证错误。 我只想在提交表
我有两种不同的服务:第一个是将对象保存到数据库,第二个是更新现有对象。 我正在对我的对象使用验证约束,例如(@NotBlank、@Size、@Pattern 等),在第一种情况下,我需要验证对象的所有
我有 2 个 ensure - 验证装饰器用于 2 个字段:password 和 retypePassword。我想在填写 retypePassword 字段时检查这两个字段是否相等。 问题是,当我在
I'm aware that it's a bug ,但是在域类上调用 validate() 会覆盖之前放入的任何拒绝: def save = { def assignment = new A
我是一名优秀的程序员,十分优秀!