dear friends,
i have a small form with
four EditText fields in which second EditText is disable for text Editing.
now when i roll Android Phone ball to move from the top to bottom first time it selects disabled EditText and then third EditText and moves downward to foruth EditText.
but when i try to move upward on Disabled EditText...
If I needed to build an android SDK that other developers can integrate into their android apps, is jarring my SDK the only way to go about it? As far as I have learnt, jarring has the following considerations:
If your app uses a layout, then you have to create it programmatically. Since jar files cant carry any resources.
The jar wil...
What happens on Activity.finish() with an AsyncTask still running in background?
Does it just pop the Activity off the Activity Stack, but wait to destroy the Activity object until the AsyncTask fully completes (since the AsyncTask is an inner class of my Activity)?
Also, would it act any differently if the AsyncTask were a public, non...
Hi,
I have an application that allows the user to enable GPS.
In order to do it, first in the main activity I do:
lm = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
if (!lm.isProviderEnabled(LocationManager.GPS_PROVIDER)){
showGpsOptions();
}
showGpsOptions() is:
privat...
I am calling a PreferenceActivity from another activity and then updating the application state (ie: changing the font size) on onActivityResult, based on the preference changes.
I was thinking it would be better to put the state update logic in the PreferenceActivity. That way I don't have the duplicate the logic in each activity that ...
I have an Activity with a list that is bound to a ListAdapter reading data into a ArrayList from a database. All is well when the data is first loaded. While the Activity is open and the list is being displayed it is possible and likely that the data in the database will be updated by a service but the list does not reflect the changes b...
Hi Guys,
after implementing some Android Apps, including several Map activities, I try to refresh the activity when the GPS listener's onLocationChanged() mehtod is called.
I have no idea how to tell the map activity to refresh on its own and display the new coords...
the coords to store will have to be in global values, so that the lo...
Hi,
I'm starting to develop an activity stream. I've read both How to implement the activity stream in a social network and What’s the best manner of implementing a social activity stream?. What I haven't found is the best way to add comments to the activities. As in facebook, each comment can be commented by another person.
If each ac...
Hi everyone,
I am sure this will have been answered but I proved unable to find it. So please excuse my redundancy.
What I am trying to do is emulating the "Home" button which takes one back to Android's homescreen. So here is what causes me problems:
I have 3 launcher activities. The first one (which is connected to the homescre...
Hi all,
I want to go to a web page on the click of a button in my android app. So say, I have a button called "Google", when the user clicks on that button I want google.com to open up on the screen. How is this achieved?
Also, is there a way I can gain control back to my app once the user is finished with google?
Thanks
George
...
dear friends,
i want to use Android spinner with following data.
Spinner will display only text data not code.
code , text
1 , a
2, b
3,c
.
.
.
etc
i have stored above comma seperated data in same activity class (Hard coded form) now if user selects "a" from the dropdown then it should get its code rather then text.
can any one gu...
In my app, I start an activity and then on button click, display an http url (using Intent - VIEW_ACTION)
So when in the middle of the activity, if the user clicks the button called "Google", it opens up google.com in the browser.
When I hit the back button, it comes back to my original activity screen. How can I get my activity to re...
I have a tab widget where one of the tabs is a chat-type feature. I want to update the chat data at an interval (variable depending on whether the chat tab is active or not).
The best approach seemed to be using an AsyncTask in my main TabActivity class, as that would avoid any issues of the chat activity being destroyed while in the ba...
I have an Activity which uses a layout with a LinearLayout in it.
Now I want to create in runtime a subactivity which loads some other layout and add this layout as item of my LinearLatout.
How to do this? Please provide me with code example.
...
Hi everyone,
I am writing a simple android application with a class that extends activity, that plays a video from a url on the web. There is a button on top that on click takes the user to a web page.
What I want to do is when the user is browsing the web page, if he hits the back button, I want him to come back to the main activity ...
Hello everybody!!
Here is I would like to set up in my application, the function of sharing (facebook, twitter, e-mail) as that of YouTube for example but I get lost little.
By looking I saw that apparently it would be necessary to use Intent.action_pick_activity but I do not manage to see how using it on my case.
What is that somebody...
I have an application where you can click on a button, this takes you to a new activity with four new buttons, listen, bio, ringtone, and watch. My watch button kicks off the following code:
Button cmd_watchme = (Button)this.findViewById(R.id.watch);
cmd_watchme.setOnClickListener(new View.OnClickListener() {
public vo...
This question is related to my previous question:
http://stackoverflow.com/questions/2786720/android-service-ping-url
So I have an Android app that on the click of a button, opens up a web page. Now, in the background I want to call another http url for gathering stats.
My question is does this have to be a service? I know a service i...
is it possible to have a service (A) which will launch an activity (B) and then periodically capture B's screen?
also, is it possible to send onTouch events from A to B?
basically, i'd like to make a bot which would use an application so i don't have to.
i guess it's not possible but had to ask.
...
I have a listview where each item correlates to an instance of an item in an array. When the user selects an item, it will bring up a 'Details' page that reads and displays other data members of the list item.
Would this be better implemented with the Details page as its own activity, or a new view within the same activity? Pros and con...