I am getting the following error:
ERROR: The method killBackgroundProcesses(String) is undefined for the type ActivityManager
Now I am dead sure that ActivityManager contains that method http://developer.android.com/reference/android/app/ActivityManager.html#killBackgroundProcesses%28java.lang.String%29.
Here is the code, please help ...
I have saved an object of an activity in a variable. Now i exit from this activity. Then i want that i can use the object of the activity to restart the same activity.
Is it possible to launch an intent of this object of the activity
...
I have an android app with links (made by linkify) that lead into other screens of my app. I'm wondering what's the best approach to close all of the 'child' activities and go back to the first activity that was originally launched.
in otherwords something like this:
HomeScreenActivity => Screen1 (via Linkify-link) => Screen2 => Scree...
Hi there
I have built an activity to handle gestures in my Android game and want it to respond to a gesture anywhere on the screen but I am getting this error on the Log:
07-27 13:55:07.268: ERROR/AndroidRuntime(751): java.lang.NullPointerException
07-27 13:55:07.268: ERROR/AndroidRuntime(751): at android.app.Activity.findViewById(...
Hi
I have a gesture activity class that listens out for when a gesture is performed on screen, which is connected to a GestureOverlayView which covers the entire screen. I have a main game thread DistractionsThread that is launched from the Distractions menu file. The thread deals with the physics and do draw methods that play the game ...
In my android application, I am using the tab view and so I have two tabs: parameters and results.
the user enters the various parameters on the first tab and then switches to the second tab to view the results.
i have a service that performs some long-running calculations. the user enters parameters on the first tab and hits 'calcula...
Currently in my design I've got a base abstract class that all of my activities extend from, however I discovered recently that in order to use a MapView you need to make your activity extend MapActivity. Since Java does not have multiple inheritance I was wondering if there is any way I can use a MapView without having to recreate my d...
I wrote an application, its not a social networking script by any means, but my script does have "user profiles" for it and I'm interested in a SQL/PHP design idea to go about activity streams as seen on Facebook for the users of my script.
Activities such as "Joey commented on X's wall." or "Joey, X, Foo like your photo" or "Foo change...
I have an Activity A, and there is a button B in the view. If somebody presses B then I want a pop-up which can take some part of screen making the A invisible in that area but rest of A is visible but not active. How can I achieve this?
...
The following code does not work, and throws a RuntimeException caused by NullPointerException
public class ListFilteredActivity extends Activity {
LinearLayout typeSelector = new LinearLayout(this) ;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ScrollView...
Please can anyone give me links or code or concept for Running an activity in hidden mode.. That is, it has to run in background without disturbing the user.. It should not display any window or layout.
...
hi..
Can anyone please give me code or links or concept for running an android application on android device automatically.. whenever the device is switched on, application should start on its own, with out the interference of the user.
Thank you..
...
I want to launch an Activity with a webView as its content from current Activity. This new activity needs to be transparent and webview should be in the center. I looked around the web but only solutions I found were using style xmls. I want to do it using pure code i.e. no xml declarations. if anybody has come across this then please sh...
Hello,
I start the activity (descendant of PreferenceActivity) from my worker activity as follows:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 1458)
loadInfo();
}
void showSettingsDialog()
{
start...
Update: Fixed, this was due to missing properties in views and my not knowing how to work the debugger :)
I'm really new to Android. I've just finished the Notepad tutorial and am making something similar (most of the code is exactly the same). The sequence of events I'm going through:
Debug app
Click Menu, which has the correct i...
I'm hoping this is more of an issue with code than anything else and I'm hoping that someone out there can help track down the issue.
I have other code that starts the service with startService() and I can verify that the service is started as the debugger hits the onCreate() function of DecoderService.
However, the bindService never b...
i have a default activity that starts first (Activity A), and from there the user can go to another activity (Activity B). In B after some work the user sets a sharedpreference. the next time the app starts i want to check in A if sharedpreference is null to go to B. and i put this if just under
public void onCreate(Bundle savedInstan...
In most Android apps, when you press the Home button to "minimize" the application and then open the application again, you will be taken to the screen you were last on in that Application.
I've read the following:
When launched via icon on the home
screen, Android will always start the
activity with the
android.intent.action....
I have a simple HelloWorld Activity that I try to test with an Android JUnit test. The application itself runs like it should but the test fails with an
"java.lang.RuntimeException: Unable to resolve activity for: Intent { action=android.intent.action.MAIN flags=0x10000000 comp={no.helloworld.HelloWorld/no.helloworld.HelloWorld} }
at n...
I have an Android activity running with a custom view in it. When something happens within that custom view, I want to tell the currently running activity by changing one of the Activity member variables. Is there a way to access the current running activity member variables from within a custom view class besides passing the activity ...