Fome wrote:I'm totally new to android programming so this question might be because I have misunderstood some really basic stuff, but I'm trying to make an app that doesn't need a view. What I wan't is an app that, when you click it, just sets some variables (like vibration or sound or whatever) and exits.
I've just made an Activity, and in it's onCreate() I set the variables and end with a finish();
The program runs properly, however there is a glimpse of the basic view every app get (the black screen with the app name on top) before the program terminates. Is it possible to bypass this? I.E. some way to tell the system that the activity doesn't need a view.
I am calling super.onCreate(savedInstanceState); in the beginning of my onCreate() can this be the problem?
Thanks for any help!
FreakDev wrote:using a service is the solution for making an "app" without UI, but personnaly i think, for the case you describe, that you should display something to the end user, at least a confirm message...
Users browsing this forum: No registered users and 7 guests