I have 2 Activities - A and B
In Activity A containing a list view spawns a new Sub-Activity B. In Acitivty B there is a button that launches Activity A so as to select another Sub-Activity B.
This seem to create an infinite loop scenario where
A->B->A->B->A->B->A->B->..............
So if i quit the program halfway, and the go back ...
Hi,
This is for the first time i am using external storage in android.
I need some help how can i perform different operations such as how to check whether External Storage is available or not?, How to write files or pictures into storage ..
Thanks.
...
android code to delete the database from the application?
...
I have two different activities in my project.I intend to pass data from one activity to another. (As per user interface, I select an item from The spinner in one activity and send it as text msg.) The coding for text msg is done in another activity i.e the second activity.
I m successfully able to select the desired item from the Spinn...
We are developing an application for android 2.2.We do not have a developer phone.Can we load android 2.2 image on Zoom 1 Arm platform?
Thanks,
Dheepak
...
in my app i am using google maps.on clicking a pin on google map we have to get an popup at that position.but i am using custom dialog it display the message at center of the mapview.so how to display a popup instead of dialog at the position we have clicked
...
Hello
In my android application i am using a header and a footer.In between i have a table inside a scrollview.
The problem is that i am not able to see the footer even if i am adding it same as header using include tag.
The height and width of the scrollview if i set it to some specified length it works fine but again when it changes th...
I need to compile an application with system permissions in order to use target application com.android.settings. For now while I try to run my apk I get the error message
Test run failed: Permission Denial:
starting instrumentation
ComponentInfo{com.jayway.test/android.test.InstrumentationTestRunner}
from pid=354, uid=354 not ...
I'm developing on Android. I have to restart home and all its components (widgets, shortcuts, etc..).
For example, when we have a Force Close, the home screen restart and reload all its components.
...
Hi, I'm trying to implement an infowindow like the web version of google maps.
I have created a custom layout extending a linear layout and populated it with a TextView and a button.
I have overrided the dispatchDraw method of the balloonLayout (wich extends LinearLayout) to draw a container with rounded corners and the balloon tip.
On...
I'm curious if you could play sounds through the speaker while talking on the phone?
For instance, play the sound of waves so the other guy would think you're at the seaside :)
...
I want to display a multichoice list in an alert dialog box. If I'm using an array to store the list of items, then it is working fine :
d.setMultiChoiceItems(R.array.items,
new boolean[]{false, true, false, true, false, false, false},
new DialogInterface.OnMultiChoiceClickListener() {
...
I use my Blackberry to query the target phone(HTC Hero). It said the HTC has below bluetooth service:
Voice Gateway,
Unknown,
BTIPS_2.22_Android_AVRCP_target
OPP Server
After I run my own app, the service list change to:
Voice Gateway,
Unknown,
BTIPS_2.22_Android_AVRCP_target
OPP Server
Generic Service
I open a...
Hi,
I create Scrollview with 10 layout.
I want to change the layout position by dragging.
layout_view.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent ev) {
final int action = ev.getAction();
switch (action) {
case MotionEvent.ACTION_DOWN: {
...
The problem is when i dragging D...
I used onKeyDown function in the activity.....but when back button
button is clicked it first cancels the dialog box and goes to our
activity...I want both either both activity and dialog box closed when
clicking the back button or disable the back button when the dialog
box is shown...
can any one suggest any solutions for this....
Th...
Hi,
Is there a way to extract and view the content of an .apk file?
...
Button showmapButton = (Button)findViewById(R.id.showmap);
showmapButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(HomePage.this,
ShowMap.class);
intent.putExtra("username", value);
startActivity(intent);
}
});
In my main menu i have...
I'm looking for suggestions on how to go about adding a ListView selector that is 'permanent'. By this, I mean a single row in the ListView is always highlighted; it should move up or down in reponse to any D-pad presses (i.e. like the default selector) but also remain set/highlighted if the user were to scroll the ListView in either di...
I have parse the url and i get the html contents i want to show that content as a web page then what can i do to show that html contents. I am using textView then it shows same html content with tags.
I have following html content which i want to display in webView. It displays only
**// Please** but its original output is not this...
I am new to android. I what to know the difference between Intent and Broadcast Receiver. I am more confused with Broadcast receiver then Intent.
Please help me out. Simple codes will be helpful.
...