android - my app crashes after downloading it in the play store -
i upload app on play store, apk works fine when export eclipse , install on phone when download play store, app starts, when enter in 1 of activitys, crash, knows why happen?
this xml file
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".mainactivity" > <imageview android:id="@+id/imageview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:src="@drawable/maths" android:background="@android:color/white" /> <button android:id="@+id/button2" android:layout_width="205dp" android:layout_height="50dp" android:layout_alignleft="@+id/button1" android:layout_centervertical="true" android:background="@android:color/transparent" android:onclick="derivadas" /> <button android:id="@+id/button1" android:layout_width="205dp" android:layout_height="50dp" android:layout_above="@+id/button2" android:layout_centerhorizontal="true" android:layout_marginbottom="58dp" android:background="@android:color/transparent" android:onclick="integrales" /> <com.google.ads.adview android:id="@+id/ad" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adunitid="my_unit_id" ads:adsize="banner" ads:testdevices="test_emulator, test_device_id" ads:loadadoncreate="true"/> </relativelayout>
this java file:
package com.whaoapps.maths; import whao.whaoapps.maths.r; import android.os.bundle; import android.app.activity; import android.content.intent; import android.view.view; public class mainactivity extends activity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); } public void derivadas(view view) { intent = new intent(this, derivadas.class ); startactivity(i); } public void integrales(view view) { intent = new intent(this, integrales.class ); startactivity(i); }
android manifest:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="whao.whaoapps.maths" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" android:targetsdkversion="17" /> <uses-permission android:name="android.permission.set_wallpaper"/> <uses-permission android:name="android.permission.wake_lock"/> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.write_external_storage"/> <uses-permission android:name="android.permission.access_network_state"/> <application android:allowbackup="true" android:icon="@drawable/maths_icono" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.google.ads.adactivity" android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode|screensize|smallestscreensize" /> <activity android:name="com.whaoapps.maths.mainactivity" android:screenorientation="portrait" android:label="@string/app_name" android:theme="@android:style/theme.notitlebar.fullscreen" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name="com.example.maths.derivadas" android:screenorientation="portrait" android:theme="@android:style/theme.light.notitlebar"></activity> <activity android:name="com.example.maths.integrales" android:screenorientation="portrait" android:theme="@android:style/theme.light.notitlebar"></activity> </application> </manifest>
the logcat:
06-29 22:38:01.649: e/trace(797): error opening trace file: no such file or directory (2) 06-29 22:38:02.509: d/dalvikvm(797): gc_for_alloc freed 30k, 6% free 2421k/2572k, paused 69ms, total 75ms 06-29 22:38:02.549: i/dalvikvm-heap(797): grow heap (frag case) 3.944mb 1536016-byte allocation 06-29 22:38:02.629: d/dalvikvm(797): gc_for_alloc freed <1k, 4% free 3920k/4076k, paused 68ms, total 68ms 06-29 22:38:02.719: d/dalvikvm(797): gc_concurrent freed <1k, 4% free 3920k/4076k, paused 7ms+5ms, total 90ms 06-29 22:38:03.109: d/dalvikvm(797): gc_for_alloc freed <1k, 4% free 3920k/4076k, paused 44ms, total 44ms 06-29 22:38:03.159: i/dalvikvm-heap(797): grow heap (frag case) 7.239mb 3456016-byte allocation 06-29 22:38:03.259: d/dalvikvm(797): gc_concurrent freed 0k, 3% free 7295k/7452k, paused 27ms+25ms, total 101ms 06-29 22:38:04.550: e/activitythread(797): failed find provider info com.google.plus.platform 06-29 22:38:05.149: d/gralloc_goldfish(797): emulator without gpu emulation detected. 06-29 22:38:05.350: d/dalvikvm(797): dexopt: --- begin 'ads-1379280169.jar' (bootstrap=0) --- 06-29 22:38:06.529: d/dalvikvm(797): dexopt: --- end 'ads-1379280169.jar' (success) --- 06-29 22:38:06.539: d/dalvikvm(797): dex prep '/data/data/whao.whaoapps.maths/cache/ads-1379280169.jar': unzip in 2ms, rewrite 1180ms 06-29 22:38:06.879: i/ads(797): adrequesturlhtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script> <script>afma_getsdkconstants();afma_buildadurl({"preqs":0,"session_id":"6254903385152313017 ","seq_num":"1","slotname":"a151ce6445b3e0b","u_w":320,"msid":"whao.whaoapps.maths","cap":"m,a","adtest":"on","js":"afma-sdk-a- v6.4.1","bas_off":0,"net":"ed","app_name":"1.android.whao.whaoapps.maths","hl":"en","gnt":3 ,"carrier":"310260","u_audio":4,"kw": [],"u_sd":1.5,"simulator":1,"ms":"zeq_ckiodiln1adygvxo5zooffwjle8byjr8zs_pcctj9myxmhy4omigy hlvpg7fj4-ynpud3z2nt4pl_84gkufmoc2_1w1au-zdpq9- 83i3xterabkgpz3arzzqqjs9dnijrybqinyyffwouz1ceng9d7fbmgx235ssqsw6ennkpigq-l1hy37_tngzedm- unw7wbiuzyfuq_ostu2r6uuzvhsodxn3abdeevj- sthukhwvppvjjezlmfk5c1wloxxdjskwypwbb1xh_jttze_hpt7uaz86za0qurlntfcfwl7euvjdpkdz8wyts5wlneh thii8_to6d1k- ehag6g","isu":"b3eeabb8ee11c2be770b684d95219ecb","format":"320x50_mb","oar":0,"ad_pos": {"height":0,"visible":0,"y":0,"x":0,"width":0},"u_h":533,"pt":1,"bas_on":0,"ptime":0}); </script></head><body></body></html> 06-29 22:38:10.549: i/ads(797): received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma? preqs=0&session_id=6254903385152313017&seq_num=1&u_w=320&msid=whao.whaoapps.maths&cap=m%2ca &adtest=on&js=afma-sdk-a- v6.4.1&bas_off=0&net=ed&app_name=1.android.whao.whaoapps.maths&hl=en&gnt=3&carrier=310260&u _audio=4&kw&u_sd=1.5&ms=zeq_ckiodiln1adygvxo5zooffwjle8byjr8zs_pcctj9myxmhy4omigyhlvpg7fj4- ynpud3z2nt4pl_84gkufmoc2_1w1au-zdpq9- 83i3xterabkgpz3arzzqqjs9dnijrybqinyyffwouz1ceng9d7fbmgx235ssqsw6ennkpigq-l1hy37_tngzedm- unw7wbiuzyfuq_ostu2r6uuzvhsodxn3abdeevj- sthukhwvppvjjezlmfk5c1wloxxdjskwypwbb1xh_jttze_hpt7uaz86za0qurlntfcfwl7euvjdpkdz8wyts5wlneh thii8_to6d1k- ehag6g&isu=b3eeabb8ee11c2be770b684d95219ecb&format=320x50_mb&oar=0&u_h=533&bas_on=0&ptime=0 &u_so=p&imbf=%40installed_markets%40&output=html®ion=mobile_app&u_tz=0&client_sdk=1&ex=1 &slotname=a14e8f77524dde8&kw_type=broad&gsb=3g&caps=inlinevideo_interactivevideo_mraid1_th_ autoplay_mediation_sdkadmobapiforads_di&eisu=v1uf_pfaf_h9_qqtmhwcoo0wkn4mlpevcgtrkivo13xjhy moqtzx3qg6cdpp4m0szuhimnl3ho- 8tvakjbncttdffhjxzfkmdu2abztjpsd0e1o5h5tiqch9igqzc8lu&et=519&jsv=50" type: "admob" afmanotifydt: "null" activationoverlayurl: "null" usewebviewloadurl: "false"> 06-29 22:38:10.679: i/ads(797): ad url modified http://googleads.g.doubleclick.net:80/mad s/gma? preqs=0&session_id=6254903385152313017&seq_num=1&u_w=320&msid=whao.whaoapps.maths&cap=m%2ca &adtest=on&js=afma-sdk-a- v6.4.1&bas_off=0&net=ed&app_name=1.android.whao.whaoapps.maths&hl=en&gnt=3&carrier=310260&u _audio=4&kw&u_sd=1.5&ms=zeq_ckiodiln1adygvxo5zooffwjle8byjr8zs_pcctj9myxmhy4omigyhlvpg7fj4- ynpud3z2nt4pl_84gkufmoc2_1w1au-zdpq9- 83i3xterabkgpz3arzzqqjs9dnijrybqinyyffwouz1ceng9d7fbmgx235ssqsw6ennkpigq-l1hy37_tngzedm- unw7wbiuzyfuq_ostu2r6uuzvhsodxn3abdeevj- sthukhwvppvjjezlmfk5c1wloxxdjskwypwbb1xh_jttze_hpt7uaz86za0qurlntfcfwl7euvjdpkdz8wyts5wlneh thii8_to6d1k- ehag6g&isu=b3eeabb8ee11c2be770b684d95219ecb&format=320x50_mb&oar=0&u_h=533&bas_on=0&ptime=0 &u_so=p&imbf=8008&output=html®ion=mobile_app&u_tz=0&client_sdk=1&ex=1&slotname=a14e8f775 24dde8&kw_type=broad&gsb=3g&caps=inlinevideo_interactivevideo_mraid1_th_autoplay_mediation_ sdkadmobapiforads_di&eisu=v1uf_pfaf_h9_qqtmhwcoo0wkn4mlpevcgtrkivo13xjhymoqtzx3qg6cdpp4m0sz uhimnl3ho-8tvakjbncttdffhjxzfkmdu2abztjpsd0e1o5h5tiqch9igqzc8lu&et=519&jsv=50 06-29 22:38:10.679: i/ads(797): request scenario: online server request. 06-29 22:38:13.068: d/webviewglue(797): nativedestroy view: 0x2a239478 06-29 22:38:13.109: i/ads(797): onreceivead() 06-29 22:38:13.369: d/dalvikvm(797): gc_for_alloc freed 2050k, 25% free 6747k/8920k, paused 109ms, total 119ms 06-29 22:38:13.469: d/webviewglue(797): nativedestroy view: 0x2a2336f0 06-29 22:38:13.639: d/tilesmanager(797): starting tg #0, 0x2a23a460 06-29 22:38:15.938: d/androidruntime(797): shutting down vm 06-29 22:38:15.938: w/dalvikvm(797): threadid=1: thread exiting uncaught exception (group=0x40a71930) 06-29 22:38:16.020: e/androidruntime(797): fatal exception: main 06-29 22:38:16.020: e/androidruntime(797): java.lang.illegalstateexception: not execute method of activity 06-29 22:38:16.020: e/androidruntime(797): @ android.view.view$1.onclick(view.java:3599) 06-29 22:38:16.020: e/androidruntime(797): @ android.view.view.performclick(view.java:4204) 06-29 22:38:16.020: e/androidruntime(797): @ android.view.view$performclick.run(view.java:17355) 06-29 22:38:16.020: e/androidruntime(797): @ android.os.handler.handlecallback(handler.java:725) 06-29 22:38:16.020: e/androidruntime(797): @ android.os.handler.dispatchmessage(handler.java:92) 06-29 22:38:16.020: e/androidruntime(797): @ android.os.looper.loop(looper.java:137) 06-29 22:38:16.020: e/androidruntime(797): @ android.app.activitythread.main(activitythread.java:5041) 06-29 22:38:16.020: e/androidruntime(797): @ java.lang.reflect.method.invokenative(native method) 06-29 22:38:16.020: e/androidruntime(797): @ java.lang.reflect.method.invoke(method.java:511) 06-29 22:38:16.020: e/androidruntime(797): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:793) 06-29 22:38:16.020: e/androidruntime(797): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:560) 06-29 22:38:16.020: e/androidruntime(797): @ dalvik.system.nativestart.main(native method) 06-29 22:38:16.020: e/androidruntime(797): caused by: java.lang.reflect.invocationtargetexception 06-29 22:38:16.020: e/androidruntime(797): @ java.lang.reflect.method.invokenative(native method) 06-29 22:38:16.020: e/androidruntime(797): @ java.lang.reflect.method.invoke(method.java:511) 06-29 22:38:16.020: e/androidruntime(797): @ android.view.view$1.onclick(view.java:3594) 06-29 22:38:16.020: e/androidruntime(797): ... 11 more 06-29 22:38:16.020: e/androidruntime(797): caused by: android.content.activitynotfoundexception: unable find explicit activity class {whao.whaoapps.maths/com.whaoapps.maths.integrales}; have declared activity in androidmanifest.xml? 06-29 22:38:16.020: e/androidruntime(797): @ android.app.instrumentation.checkstartactivityresult(instrumentation.java:1618) 06-29 22:38:16.020: e/androidruntime(797): @ android.app.instrumentation.execstartactivity(instrumentation.java:1417) 06-29 22:38:16.020: e/androidruntime(797): @ android.app.activity.startactivityforresult(activity.java:3370) 06-29 22:38:16.020: e/androidruntime(797): @ android.app.activity.startactivityforresult(activity.java:3331) 06-29 22:38:16.020: e/androidruntime(797): @ android.app.activity.startactivity(activity.java:3566) 06-29 22:38:16.020: e/androidruntime(797): @ android.app.activity.startactivity(activity.java:3534) 06-29 22:38:16.020: e/androidruntime(797): @ com.whaoapps.maths.mainactivity.integrales(mainactivity.java:23) 06-29 22:38:16.020: e/androidruntime(797): ... 14 more 06-29 22:38:20.989: i/process(797): sending signal. pid: 797 sig: 9
make sure have declared activity
com.whaoapps.maths.integrales
in manifest.
you forgot change "example" "whaoapps"
<activity android:name="com.**example**.maths.integrales" android:screenorientation="portrait" android:theme="@android:style/theme.light.notitlebar"></activity>
Comments
Post a Comment