Comments (4)
This is is probably crash description:
java.lang.RuntimeException: Unable to resume activity {give_me_coins.dashboard/give_me_coins.dashboard.MainScreen}: java.lang.NullPointerException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2769)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2798)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2231)
at android.app.ActivityThread.access$700(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4998)
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:777)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at give_me_coins.dashboard.MainScreen.setToLocalGMCInfo(MainScreen.java:1464)
at give_me_coins.dashboard.MainScreen.onResume(MainScreen.java:1529)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
at android.app.Activity.performResume(Activity.java:5322)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2759)
... 12 more
----------- below code in onResume solved some problems in case it will help ---------------------
@OverRide
protected void onResume() {
super.onResume();
if(DEBUG) Log.d(TAG,"onResume");
isRunning=true;
oStickyService = GmcStickyService.getInstance(btc_callback, ltc_callback, ftc_callback);
if( oStickyService == null)
{
context.startService( new Intent(context, GmcStickyService.class) );
oStickyService = GmcStickyService.getInstance(btc_callback, ltc_callback, ftc_callback);
}
else
{
switch(coin_select)
{
case(1):
setToLocalGMCInfo(oStickyService.getLTCInfo());
break;
case(2):
setToLocalGMCInfo(oStickyService.getBTCInfo());
break;
case(3):
setToLocalGMCInfo(oStickyService.getFTCInfo());
break;
default:
setToLocalGMCInfo(oStickyService.getLTCInfo());
break;
}
}
if( mPoolService==null) startService();
if( oStickyService != null)
oStickyService.forceUpdate();
updateNow();
mAppSectionsPagerAdapter.notifyDataSetChanged();
}
With onResume opening new StickyService, the old Activity does not receive updates. Maybe a good idea would be to implement back Handler, to inform activity of new updates, which will then update app. This will as well show "loading notification" to Resumed app.
User also complained that if he clicks home (pause), and re-opens application, then above error occurs.
from give-me-coinsmonitoringapp.
I will look into that.
Crt [email protected] schrieb:
This is is probably crash description:
java.lang.RuntimeException: Unable to resume activity {give_me_coins.dashboard/give_me_coins.dashboard.MainScreen}: java.lang.NullPointerException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2769)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2798)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2231)
at android.app.ActivityThread.access$700(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4998)
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:777)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at give_me_coins.dashboard.MainScreen.setToLocalGMCInfo(MainScreen.java:1464)
at give_me_coins.dashboard.MainScreen.onResume(MainScreen.java:1529)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
at android.app.Activity.performResume(Activity.java:5322)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2759)
... 12 more----------- below code in onResume solved some problems in case it will help ---------------------
@OverRide
protected void onResume() {
super.onResume();
if(DEBUG) Log.d(TAG,"onResume");
isRunning=true;
oStickyService = GmcStickyService.getInstance(btc_callback, ltc_callback, ftc_callback);
if( oStickyService == null)
{
context.startService( new Intent(context, GmcStickyService.class) );
oStickyService = GmcStickyService.getInstance(btc_callback, ltc_callback, ftc_callback);
}
else
{
switch(coin_select)
{
case(1):
setToLocalGMCInfo(oStickyService.getLTCInfo());
break;
case(2):
setToLocalGMCInfo(oStickyService.getBTCInfo());
break;
case(3):
setToLocalGMCInfo(oStickyService.getFTCInfo());
break;
default:
setToLocalGMCInfo(oStickyService.getLTCInfo());
break;
}}
if( mPoolService==null) startService();
if( oStickyService != null)
oStickyService.forceUpdate();
updateNow();
mAppSectionsPagerAdapter.notifyDataSetChanged();
}With onResume opening new StickyService, the old Activity does not receive updates. Maybe a good idea would be to implement back Handler, to inform activity of new updates, which will then update app. This will as well show "loading notification" to Resumed app.
User also complained that if he clicks home (pause), and re-opens application, then above error occurs.—
Reply to this email directly or view it on GitHub.
from give-me-coinsmonitoringapp.
it should work again.
Am 25.11.2013 01:07, schrieb Crt:
This is is probably crash description:
java.lang.RuntimeException: Unable to resume activity {give_me_coins.dashboard/give_me_coins.dashboard.MainScreen}: java.lang.NullPointerException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2769)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2798)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2231)
at android.app.ActivityThread.access$700(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4998)
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:777)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at give_me_coins.dashboard.MainScreen.setToLocalGMCInfo(MainScreen.java:1464)
at give_me_coins.dashboard.MainScreen.onResume(MainScreen.java:1529)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
at android.app.Activity.performResume(Activity.java:5322)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2759)
... 12 more----------- below code in onResume solved some problems in case it will help ---------------------
@OverRide
protected void onResume() {
super.onResume();
if(DEBUG) Log.d(TAG,"onResume");
isRunning=true;
oStickyService = GmcStickyService.getInstance(btc_callback, ltc_callback, ftc_callback);
if( oStickyService == null)
{
context.startService( new Intent(context, GmcStickyService.class) );
oStickyService = GmcStickyService.getInstance(btc_callback, ltc_callback, ftc_callback);
}
else
{
switch(coin_select)
{
case(1):
setToLocalGMCInfo(oStickyService.getLTCInfo());
break;
case(2):
setToLocalGMCInfo(oStickyService.getBTCInfo());
break;
case(3):
setToLocalGMCInfo(oStickyService.getFTCInfo());
break;
default:
setToLocalGMCInfo(oStickyService.getLTCInfo());
break;
}
}
if( mPoolService==null) startService();
if( oStickyService != null)
oStickyService.forceUpdate();
updateNow();
mAppSectionsPagerAdapter.notifyDataSetChanged();
}
With onResume opening new StickyService, the old Activity does not receive updates. Maybe a good idea would be to implement back Handler, to inform activity of new updates, which will then update app. This will as well show "loading notification" to Resumed app.
User also complained that if he clicks home (pause), and re-opens application, then above error occurs.
Reply to this email directly or view it on GitHub:
#5 (comment)
from give-me-coinsmonitoringapp.
At the moment it seems like we fixed it
from give-me-coinsmonitoringapp.
Related Issues (20)
- Crash: IndexOutOfBoundsException after QR code scanned HOT 4
- GMCPoolService does not respect update interval preference HOT 1
- "Delete Settings" button does not clear the UI HOT 5
- Switching coins doesnt do anything HOT 9
- Pool tab not working HOT 11
- Don't check in generated files to git. HOT 2
- Remove unnecessary uses of static variables. HOT 3
- Unchecking "Show in Notification Bar" does not remove notification HOT 3
- Storing SharedPreferences keys in strings.xml can lead to problems HOT 2
- exchange rate HOT 4
- feature requests... HOT 12
- Multiple accounts HOT 1
- Crashes when unable to connect HOT 4
- Worker idle notification in notification bar
- No alert when you are not connected to internet
- negative "Pool shares this round" value for VTC HOT 1
- Request HOT 1
- 01ad9157cf120fc61d472c0fd66a58ce36b4df94 HOT 1
- Amount (USD) of Confirmed Rewards and Round Estimate not displayed HOT 1
- BTC Hash Rate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from give-me-coinsmonitoringapp.