So I'm working with a list view trying to get specific activities to open when a certain item is selected. This is the code that I'm working with right now. I know its wrong but am not sure what I need to change it make it work. I think I need an intent and tried a few ideas but did not come up with much. Thanks.
package table.periodic;...
I have an application with two activities, A and B. A is the root activity, which then starts B.
When the stack looks like this:
HOME > A > B
...and I select A from the launcher, I want it to resume the task without clearing the stack, so B is shown. Right now this is mostly working.
However. In certain circumstances this occasional...
When my notification goes off I want to restore the activity that was put into the background, not start a new activity. I've seen some answers about using FLAGS but I don't know how to implement it
contentIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | INTENT.FLAG_ACTIVITY_SINGLE_TOP);
Where do I put this in my code? I tried but it ...
i overlapped opengl view and camera preview, and it shows everything at fresh start.
but after backed from child activity (after onResume()) opengl objects not appeared anymore.
i found some discussion about this weird problem, but i can't use following solution, because i should call child - map activity.
http://groups.google.com/gro...
I'm a novice Android programmer, and to help me understand how Intents really work, I wanted to put together a small Activity which would let the user call startActivity() with any action and data they want. I tried many different combinations, including "android.intent.action.VIEW" and "http://www.google.com". No matter what combinati...
Hi,
I am implementing a simple app. I need to start an activity based on the state of the Activity. Lets take i am using a button to start the activity.
1. If the activity is not started, I need to start XYZ activity.
2. If the XYZ activity is on focus, then i need to close the activity on the button press.
3. If the XY...
I'm been trying to figure this out for a while now, and have just become more and more confused.
I have made a Android Widget which displays two articles (title + image). In addition to this, I have buttons for flipping backward and forward through the articles. What I don't understand is how I can change the Widgets RemoteViews when th...
I have a Dialog window created via the onCreateDialog() callback of my Actvity. In the Dialog I would like to allow the user to enter an email address or to select a contact from their contact list and have the email address populated based on their choice. This can be accomplished using:
Intent intent = new Intent(Intent.ACTION_PICK, ...
I have a ListView in Screen 1 where I have a few items . The User Clicks on an item in the Listview and Screen2 pops up . But What appears in Screen2 depends on what item was clicked in Screen 1
For Ex - User Clicks A in Screen 1 - Words starting from A come up in Screen 2
lv.setOnItemClickListener(new OnItemClickListener() {
publ...
I'm building a website that constructs both site-wide and user-specific activity feeds. I hope that you can see the structure below and share you insight as to whether my solution is doing the job. This is complicated by the fact that I have multiple types of users that right now are not stored in one master table. This is because the...
I know it's possible, but I can't figure out a way to trigger an update of my widget from the main activity. Isn't there some general intent I can broadcast?
...
Hi,
I'm develop a download manager function which the dialog will popup when the the item was finished download. the download function was running at background.
my question is how can I know when the downloading was finished and the project is intent other activity?
for example:
if(download_state == TASK_FINISH){
//download Finis...
I recently realized that to avoid nasty exceptions I should check isFinishing in the inner AsyncTask subclasses of my activity. Where else is it a good practice to check isFinishing in an activity?
...
I have a Activity called main. If I call
Toast.makeText(this, "Hello World from main", Toast.LENGTH_SHORT);
this works fine. However, for every other activity in my application, I cannot display a Toast. No exception, nothing in the Log but I don't see the Toast.
My main activity starts another one with an options menu:
@Override
pu...
I was expecting to see Categories that a particular Activity
belongs to in ActivityInfo class but I could not find any
reference to Category in the ActivityInfo class. Anybody
knows where Category information is maintained for an Activity?
...
Hi,
I have a main activity. its main.xml generates a view that holds a slider, which on click, reveles some area for conent. In this area I want to display a map. so I need a second activity. I am able to call the sub activity but I want it to be displayed in the area of the slider of the main.xml, however the map has its own mapview.xm...
I am using Microsoft CRM 4.0. I currently have many accounts that need to be updated by the sales person assigned to the account. What would be the best way to notify the user of the update? Also, It would be nice if there was also a way to notify me back that the task had been completed. I was thinking the best way would be through a wo...
i want to integrate my application with 3rd party application, my understanding is that both application can agree of a action which can be used in intent filter for any activity to be exported which could be used when 3rd party app fires the intent with that particular action in it, any body has a better approach to this, thanks
...
Is it possible to start an activity on the stack, clearing the entire history before it?
The situation
I have an activity stack that either goes A->B->C or B->C (screen A selects the users token, but many users only have a single token).
In screen C the user may take an action which makes screen B invalid, so the application wants to...
I've completed most of the game I'm attempting to make and throughout the project I've created one particular Activity which also calls a SurfaceView and a Thread. I put an update() method in each of the 3 classes so they each know where the other ones are everytime something changes. Apparently, the only way to do something like this ...