android app using fragment crashes when resuming [closed] - android

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
i am developing an android app using fragment with eclipse, when i maximize(bringing the app foreground) after a long time the app it crashes. All the java class extends the class fragment.
Any help will be appreciated.
Thanks.

Without stacktrace,
Let me guess,
You used some static variables and their values lost, so you got a NullPointerException. And when it occured device wasn't at debug environment for getting stacktrace :)

Related

Lifecycle never pass through onCreate [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have two computers, both with same hardware and Android Studio settings.
When I build the app on the first, the app works well, but when I build the app on the second, some parts of the app lifecycle just don't work.
Example: the app never pass through the onCreate()
Hey #Matheos welcome to Stackoverflow!!
As for solution, try to Clean Project and then rebuild on second one PC.

I want to make network get request using kotlin multi platform for android and ios, how? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
how can I create a simple app that retrieve any data from server, I am stuck I don't know how I can start if anyone can help me?
You can use ktor, which is a networking library from Jetbrains. See an example here:
https://github.com/touchlab/KaMPKit/blob/kpg/ktor_hack/shared/src/commonMain/kotlin/co/touchlab/kampkit/ktor/DogApiImpl.kt#L38
The request needs to be made on the main thread in native, just FYI.

How to get the time in python on android? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am trying to make a program that will use the time and display it down to the seconds. How do I do this?
So far I have found the function get_time() that is part of kivy but I am not sure how to use it. I have imported everything but it still says "not defined".
import datetime
datetime.datetime.now()
that should work on any python framework.
you can use the Documentation for more details.

Any reason why an Android Class might be completely commented out? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I inherited some code where there are some Activity classes that are completely commented out. I'm having trouble figuring out where the activity code is actually happening and so I'm just wondering if /* at the beginning of a class might have some special significance to Android that I don't know about
No, it has no special meaning. The code is somewhere and it's not commented out.

Run an android service when the application is closed [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can anyone tell me where to search for the following?
I'm trying to create an application that allows the user to schedule an SMS to be sent at a specific time.
I can do this when the application is open and running but I want my application to work even if it is not running, using a service for example.
Can anyone tell my where can I find any resource for doing that?
U will need to use WakefulBroadcastReceiver to achieve this see this example
https://github.com/commonsguy/cw-omnibus/tree/master/AlarmManager/WakeCast

Categories

Resources