General :: ADB Autofocus Text Box After Start Activity?

Aug 7, 2013

I'm trying this: Start an activity by ADB. When the activity started, there'll be a form to input text, but my problem is that activity does not auto focus the text box, so i couldn't use "adb shell input text xxxxx".

So how can I make the activity auto focus the text to input? or can I call the keyboard activity and the text box will be auto focused? if yes, how?

General :: ADB autofocus text box after start activity?


Android :: Start An Activity And Return Back To Original Activity

Jan 26, 2009

I have an application with contains multiple activities. The main activity will start the others ( use startActivity() ) depends on user event, when an activity close, it calls finish() and return back to main activity. It appears to behavior like that.

However, the "problem" I see is main activity's onCreate function is called every time. I think the the main activity should be placed in the activity stack and simply push to front when others exit, therefore only onResume, onStart are called. Is there some flag I need to set or I misunderstand the activity behaviro?

In child activity, besides calling finish() or startActivity for main activity, what is other way to move main activity to front?

View 2 Replies View Related

Android :: Start Activity When Main Activity Is Running In Background

Jan 10, 2010

I created an application which enables the user to set whether he wants to receive notification while the application runs in background mode. If the notifications are enabled an activity should be started (the dialog should appear on the screen).

I tried to enabled it the following way:

CODE:...........

This is the method from main activity. When onPause() is executed isRunningInBackground is set true.
When I tried to debug it when the main application was running in the background the line

startActivity(intent) had no effect (the activity didn't appear).

Does anyone know how to midify the logic in order to start an activity from the main activity when the main activity is running in the background (after onPause() is called)?

View 1 Replies View Related

Android :: Start An Activity In Different Apk Using StartActivity - Using The Activity Name Or Similar

Apr 20, 2010

I have tried to write an Android application with an activity that should be launched from a different application. It is not a content provider, just an app with a gui that should not be listed among the installed applications. I have tried the code examples here and it seems to be quite easy to launch existing providers and so on, but I fail to figure out how to just write a "hidden" app and launch it from a different one.

The basic use case is:

App A is a normal apk launchable from the application list.

App B is a different apk with known package and activity names, but is is not visible or launchable from the application list.

App A launches app B using the package and class names (or perhaps a URI constructed from these?).

I fail in the third step. Is it possible to do this?

View 3 Replies View Related

Android :: Activity Check Service To Start Another Activity

Sep 10, 2010

I need to made an activity (without layout) that on start check if a service is running. if it is true it starts Activity2, if it false it starts Activity1.

I tried with this code:

CODE:............

Enter code here

But when I check, in the onCreate method, if serviceConnect!=null I receive sometime a NullPointerExcption.

I tried also to insert the operation in the method onCreate in an Async Task:

CODE:............

View 2 Replies View Related

Android :: Start Activity And Clear Activity History

Apr 22, 2010

I have a huge maze of activities in my application. What I need to do, is that when the user logs in into the system, the activity history should be cleared. I cant just use finish() when I start a new activity, because I want the activities to have a history until the user logs in. I have experimentet with the different flags when starting an activity, but I have had no success.

View 1 Replies View Related

Android :: Start A New Activity From Anther Activity

Nov 19, 2010

I want to start a new activity from ab activity that (extends from Linearlayout) .. but this code is not right

CODE:..........

public class SearchResultForm extends LinearLayout{ ...

And i get this error ..

No enclosing instance of the type SearchResultForm is accessible in scope.

View 4 Replies View Related

Android :: Start An Activity From Non Activity Class

Aug 19, 2009

An activity can be called from existing activity through *startActivity(intent); *

Is t possible to call an activity from non Activity class ? and how?

View 2 Replies View Related

Android :: Start A Map Activity From Other Activity

Apr 8, 2010

I am developing an aplication. This one is designed to login a user, then select how find a place, using simple data or using a map. When I try to set in the event OnClick for select the "Map way" (using intent):

startActivity(new Intent(getApplicationContext(), MapviewController.class));

I have problems and didn't work.

My class and manifest are:

CODE:...........

Do you know any way to call the MapActivity from other?

View 3 Replies View Related

HTC EVO 4G :: No Autofocus When Recording Video

Jul 7, 2010

Is the Evo supposed to be auto-focusing when its recording video? If I have just the viewfinder and no recording going on, it auto-focuses whatever I point it at, but when it comes to recording, its not auto-focusing at all. It just stays blurry.

View 1 Replies View Related

Motorola Droid X :: Need Autofocus Box?

Jul 26, 2010

Before the update I had the autofocus box that I could drag around to pick what I wanted to focus on. Now I don't see it anymore. I tried looking in the settings and I can't find it. Has this happened to anyone else? Do you know how to get it back?

View 8 Replies View Related

Android :: Start New Activity In TAB

Jan 5, 2010

I am working on a travelling application and i am using tabs and each tab has an activity i.e world clock in one tab ,weather data in another tab and so on with in the weather tab i am displaying the users selected cities and the scenario is that when the user selects a city that city's forecast is to be displayed and later to view details as well which is in another activity . how can i launch this new activity from the already started activity with in the same tab ?

View 4 Replies View Related

Android :: Why Won't Activity Start

Sep 13, 2010

I'm trying to start an Activity with startActivityForResult, but I keep getting an ActivityNotFound exception, and I can't work out why. I've looked through the code multiple times, and it seems to be identical to some other, working code. Any suggestions?

The newNoteButton that starts the Activity:

CODE:...........

And the beginning of the TypyEdit Activity:

CODE:................

View 1 Replies View Related

Android :: How To Start An Activity

Sep 15, 2010

I have created two classes: Example1 and Example2, which extends activity.

Example1 contains a UI of buttons, while Example2 contains UI of TextEdit.

I want to call Example2 when a button is clicked, so this code is in an onclick method

Intent i = new Intent();
i.setClassName("com.a.ui", "com.a.ui.Example2");
startActivity(i);

So I am able to get the UI of Example2 successfully.

What's an alternate way of calling intent?

Is there any alternate way to start an activity?

View 2 Replies View Related

Android :: Can Start New Activity That's Not Specified

Jun 25, 2010

I'm trying to do some dynamic code and I load a new class that's supposed to be an Activity and I want to start it, but using the regular startActivity(Intent) wants the Activity to be "Declared" in the AndroidManifest.xml file.

View 1 Replies View Related

How To Start Activity From Where It Stops

Oct 28, 2012

I have 2 activity...suppose i name it activity A and activity B.When the application starts it shows activity A.Then after 5 seconds,it automatically switch to activity B.Activity B contains a listview and checkboxes with each item of listview.If user checks something then he press back button and returns to activity 1 page.All these works correctly.

Now my problem is,activity A has a button to go again activity B page.When user press this button i want to start activity B from where it stops..that means the user will see what items he had checked earlier.Is it possible to view the activity B page from where it stops?

View 1 Replies View Related

Unable To Start Activity

Apr 21, 2012

I got a error message "04-21 18:02:01.448: E/AndroidRuntime(328): java.lang.RuntimeException: Unable to start activity Component Info {pac.bib/ pac.bib.LivroBibliaActivity}: java.lang.NullPointerException" when click ListView. when try startActivity

Code:
private AdapterView.OnItemClickListener onListClick=new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent,
View view, int position,
long id)
{
[code]....

View 3 Replies View Related

HTC EVO 4G :: No Autofocus Option While Recording Videos?

Jul 7, 2010

Well I had no luck in the other thread, but is the Evo supposed to be auto-focusing when video recording? When It's not recording, it auto-focuses on anything I'll point it at just fine, then when I hit record, and happen to move, it stays blurry and doesn't auto-focus.

View 5 Replies View Related

Android :: PopupWindow On Activity Start

Feb 21, 2010

I am trying to make a PopupWindow show straight away when an activity has started.

when calling public void showAtLocation (View parent, int gravity, int x, int y)

I get the exception ERROR/AndroidRuntime(2500): Caused by: android.view.WindowManager $BadTokenException: Unable to add window -- token null is not valid; is your activity running?

At the moment I am calling from onCreate, but when calling from onStart or onResume it still gives the same error.

The activity api says the activity is supposed to be running after onResume is called. Where is the best place to load up the PopupWindow if it needs to be done straight away?

At the moment It looks like Activity.onWindowFocusChanged() is the best place.

View 2 Replies View Related

Android :: Start Activity Without Manifest

Jan 22, 2009

I create my Network provider and I want to start Activity from it. Is it necessary to create separate Activity with Manifest and then launch it using startActivity? Can I launch unregistered Activity directly from my provider?

View 5 Replies View Related

Android :: Start Activity From The Service

Sep 3, 2010

I have a launcher activity which gets activated everytime i start the application and a service which complements it. Now as i press the return key from my main activity .Its Ondestroy gets called.Now i have nullify the pointer of the my launcher activity there. now i am listening through the service any event happening on the network after closing the launcher activity thread and if any event occurs i have to relaunch my launcher activity. i have tried intent but doesnot seems to get though it .

View 4 Replies View Related

Android :: Start Another Application From Activity

Feb 21, 2010

I want to know if there is any way to start another application from within my application. Specifically i am trying to a have a shortcut (button) to Google Maps Application within my application. Also is there any way to start another process from within my android appplication?

View 4 Replies View Related

Android :: Start Other Activity By Code

Jun 2, 2009

I want to start the activity owned by other application. I know we could construct the Intent(setAction,setClass), and then call context.startActivity(intent) to start a new activity owned by the same application. When we start the activity not owned by the same application,doest this also work?

For example, I have a activity (com.test.StartTest) and there is a button that used to start some activity Settings owned by the Phone:

CODE:..............

View 3 Replies View Related

Android :: Start An Activity From A Service

Oct 6, 2010

I have a service (input method) and from within that service I want to start and activity which was declared in the same manifest. The activity maybe running but in the background.

How do i check its presence and bring it to front, or optionally start this.

From what I can gather from other posts, this is about what I need to do:

CODE:..............

I don't knwo which of thest flags pertain to what I need to do. The docs are quite merky, and my random attempt at making this work failed.

View 4 Replies View Related

Android :: Can Start My Own Activity For New Notification

Aug 4, 2009

How can i start my own activity when a new notification arrives to our status bar if click that notification my activity should play...

View 4 Replies View Related

Android :: Start Service Without Using Any Activity

Oct 16, 2009

My application has a background process which continuously waits on a socket for receiving messages and it should be started only once and at the time of application starting.Thus i want to do that background job in a service.

The service should not be started from the activity ,it should be started at the application starting.

How can i define the service,which will be started at the time of application starting?

If at all the service is started from activity.The activity can be destroyed and restarted.when this happens the service also be restarted .

View 7 Replies View Related

Android :: Start An Activity In Another Package

Jan 25, 2009

My application has 2 packages because one is shared with my other applications. I want to start an activity of the shared package.

I tried the following: Intent intent = new Intent(); intent.setClassName(shardedPackageName,sharedActivityName); startActivity(intent);

It throws an ActivityNotFoundException and suggests that the activity might not be in the manifest. But how do I list an acitivity from another package in the manifest?

View 5 Replies View Related

Android :: Can I Start Activity Without Creating A New One?

Jul 31, 2010

In a broadcast receiver I want to do the following:
1. See if MyActivity is alive somewhere. 2. If it is, bring it to the foreground. 3. Otherwise, start a new MyActivity.

View 3 Replies View Related

Android :: How To Start Service From Activity?

Jun 14, 2010

How can I start a service from an Activity ?

View 4 Replies View Related

Android :: Start Service From Activity

Feb 25, 2010

In my app i have an activity from which i want to start an Service.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved