Android : Edit Contents Of TextViews In Droid Dialogs?
Jun 22, 2010
i want to display a dialog in my android application where certain TextViews in the layout need to have content set during runtime. while showing the dialog itself is no problem at all, accessing the TextViews via TextView.setText(String) crashes the application.
View 2 Replies
Aug 5, 2010
Anybody else notice that the SD cards are write protected? If I take out my card and put it in a card reader on my laptop, I can add stuff to the card, but I can't delete anything. If I put it back in the phone and mount the sd card, I can edit the card how I want. weird?
View 5 Replies
View Related
Jul 19, 2010
I've tried some Biblie applications and I'd like to add a translation that we commonly use here in Brazil. I have the content in my computer and i could easily make any format for the application to read with some script. Is that possible? Do I have to make my own application?
View 2 Replies
View Related
Apr 23, 2010
I am a rookie to android. I am thinking of implementing a simple calculator in android to get a hold of the basics in android. I want to display a keypad with numbers and mathematical operations and when the user presses the keys the corresponding number is displayed in edit text. I tried using get text() and updating the contents of edit text but it shows just the contents of pressed button. Also how do I read the contents of button so as to do mathematical operations in code?
View 2 Replies
View Related
Jun 7, 2010
Does anyone know a way to edit the contents of a Folder that you create as a widget on a Homescreen? I know you can edit the name by tapping and holding it but I want to delete some stuff i put in the folder. I tried locating the folder with Astro and could not find it on the phone memory or the storage card.
View 4 Replies
View Related
Nov 8, 2010
I have a layout with dynamic content. It has a variable number of textviews. On each textview I have to attach an event, a click event. I have to pass to that event some kind of information to know what textview has been clicked exactly. How can I pass this kind of information or how is the android way to do it?
View 1 Replies
View Related
Jan 16, 2010
I'm new to android and I'm trying to figure out how to get the contents of a URL as a String. For example if my URL is http://www.google.com/ I want to get the HTML for the page as a String. Could anyone help me with this?
View 1 Replies
View Related
Dec 2, 2009
I feel a bit blind developing on an emulator for Android and not being able to see the file system on the AVD (.img). Is there a way to mount it in Windows or Linux, so that I could at least see the file listing and maybe contents?
View 1 Replies
View Related
Aug 7, 2010
I'm creating an Android app, where the user starts out seeing a list of questions. When the user clicks a question, I would like to show him a new clickable list, containing that question and its answer alternatives.
My questions reside in rows in the database. The questions live in the first column, while the answer alternatives live in the following columns.
I've managed to display any single element from the row when I click a question in the list, but how to display more than one completely eludes me.
This is the relevant source code in the intent entered when the user clicks a question:
private void fillData() {
Bundle extras = getIntent().getExtras();
Long id = extras != null ? extras.getLong(QuestionsDbAdapter.KEY_ROWID) : null;
Cursor questionsCursor = mDbHelper.fetchQuestion(id);
startManagingCursor(questionsCursor);
String[] from = new String[]{mDbHelper.KEY_QUESTION,
mDbHelper.KEY_ALT1,mDbHelper.KEY_ALT2};
int[] to = new int[]{R.id.text1};
SimpleCursorAdapter questions =
new SimpleCursorAdapter(this, R.layout.questions_one_row,
questionsCursor, from,to);
setListAdapter(questions);}
This displays only the question. If I put one of the answer alternatives first in the 'String[] from ...' statement, that gets displayed instead.
View 1 Replies
View Related
Mar 5, 2010
I'm doing an APP that shows some dialogs. Those dialogs are Alert dialogs, and when they are being showed if I change the orientation of the mobile I lost them...they are not being kept on the screen.
View 13 Replies
View Related
May 31, 2009
I have 6 options to put in options Menu, but 3 of them are not so important and i want to hide them in submenu. All of my Activities are started from one ActivityGroup which creates Menu on MENU button press. Problem is that when I open SubMenu or Dialog (which is created and displayed by ActivityGroup) my current foreground activity makes onPause, onStop and onDestroy, and when I close this submenu (using "back" key) or dialog (by "ok" button for ex.) I don't have any response (onCreate, onResume) from any of my activities registered in LocalActivityManager.
View 3 Replies
View Related
Sep 2, 2010
Following is my html content which i want to show in the webview using android sdk. It will displays only.
View 2 Replies
View Related
Dec 26, 2009
I've read the answer to a question as to how to access the contents of the databases, however I cannot seem to get it to work on my machine. Here is the shell log:
C:android-sdk-windows ools>adb -s emulator-5554 shell
# sqlite3 /data/data/com.android.demo.notepad2/databases/notes
sqlite3 /data/data/com.android.demo.notepad2/databases/notes
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .tables
.tables
sqlite> ^C
C:android-sdk-windows ools>
SQLite simply echos my commands back to me, even although the Eclipse file browser tells me it exists. If I use the sqlite3 tool and use ".tables" the commands are accepted.
Is the SQLite syntax different through the emulator is am I missing something?
View 4 Replies
View Related
Feb 8, 2010
Is there a simple way to change the contents of a dialog box in Android without having to re-create the dialog box? I know that Activity.onCreateDialog() is only called once when the dialog first needs to be created, and this is where you initially set the dialog's contents. I need to change the dialog's contents later, so I'm wondering what is the proper way to do this.
View 1 Replies
View Related
Oct 18, 2010
Can anybody help me about how to change the contents of spinner on run time in android.
View 1 Replies
View Related
Feb 8, 2010
I decided to share the solution i found to the problem of Android not supporting real modal dialogs.The solution was to draw the dialog by myself. :-( Well, at least worked fine, besides the problem that its a bit ugly.
View 17 Replies
View Related
Apr 26, 2010
I have tried to make a series of dialogs, like a questionnaire, that the user needs to answers a series of questions selecting one or more checkboxes. I can do one, just fine, but when I try to make more than one question (lets say 10), it does not show, or show all the dialogs. I tried using dialogs or new acitivities.
So, my problem is I have multiple questions, one to be presented each time, and I need to wait for one to be responded so I can ask the next one. How do I accomplish this?
My first attempt was with a dialog box... but obviously it got all the boxes stacked in each other:
CODE:.................
View 4 Replies
View Related
Feb 5, 2009
I intended to show a dialog in a service process, then I tried to use the AlertDialog but got the below error message: WindowManager$BadTokenException: Unable to add window -- token null is not for an application The reason seems to be that the dialog is not used in a application context (activity should be fine?) Was there any way that can solve this problem?
View 2 Replies
View Related
Jul 14, 2009
I'm facing the same head-scratching moment similar to what this person (from Jan 2008) experienced when I realize that there is no cancel button in Android's progress dialog or spinners. It is now July 2009 and I've just installed the cupcake version of Android. Has this thing changed ? If not, are you adding a cancel button into the dialogs and how do you do it ?
View 4 Replies
View Related
Sep 24, 2009
I wonder what is the right way to implement this? Could anybody advice whether my solution is correct?
So:
Activity is created
User clicks on button and dialog is launched (Dialog, not dialog styled activity)
User opens keyboard
we have onSaveInstanceState called where we save that our dialog was opened and all respective dialog input
we have onRestoreInstanceState and here we check whether dialog was shown, recreate the dialog with respective input.
Is it the right approach? or there is smth. that is done by Android and I am doing some redundant actions.
View 2 Replies
View Related
Jun 25, 2010
I use the AlertDialog class in my application. By default, these alert dialogs have a transparent background. I'm trying to use an opaque background instead, very unsuccessfully.
These are my styles:
CODE:....................
I applied the "MyOpaqueActivity" style successfully for whole activities (the window background is changed to "my_background"), but it doesn't work for alert dialogs within those activities. The "alertDialogStyle" attribute and my "MyOpaqueAlertDialog" style don't seem to have any effect.
So how can I change the background of these alert dialogs?
View 2 Replies
View Related
Jul 22, 2010
I am trying to create a map application and I need to do something similar to what Google Maps does. I want to open show a list of locations and when user taps on them I want to show a dialog.
I was able to do it till here. But now when the user clicks on the dialog that opened I want to show another acttivity with the details of that item that they clicked on.
I tried to start a new intent but it gives me an error.
Here is what I am doing
CODE:..................
Here is the stack trace
CODE:........
Why am I getting this error and how can I resolve this and open a new activity? Also where can I find the source code for the google maps on android?
View 1 Replies
View Related
Sep 30, 2010
In my activity, I show a dialog under some condition like this:
CODE:.......................
My question is what do I need to do to ensure there is no resource leak? From the logcat, i see there is a case where it said a window is leaking or something like that.
View 1 Replies
View Related
Aug 19, 2010
I am dynamically adding ImageViews to a RelativeLayout depending on user input. I have also created a button that when pressed, should clear all of the content of that RelativeLayout (remove all children). I was hoping for a .clear() method, but no such luck.
can someone point me in the right direction here?
RelativeLayout rel = (RelativeLayout) findViewById(R.id.iv_section);
rel.SomethingToRemoveAllChildren();
View 1 Replies
View Related
Oct 26, 2010
In editText I set text as $ . I dont want to edit before $ symbol . i.e edit text doesnt want take any value before $ . ex: $adfdfd correctad$dsdff wrong .like this . how to restrict this one .
View 2 Replies
View Related
Jul 29, 2010
I've read on Reto Meier's blog that he doesn't recommend the use of modal "Loading" dialogs in Android applications. Is this a general consensus among developers? If I have a login screen what should I display when the user tries to sign in? Until now, I have used a "Signing in" indeterminate progress dialog. Should I use the application's progress bar? Should I use a Toast? And, in the general case, when should I use dialogs and when not to?
View 1 Replies
View Related
Nov 18, 2009
I am rendering an EditText as one element of a list-style AlertDialog (which is backed by the default ListView implementation). I sort of expected that this circumstance would not change the behavior of EditText, but it does: a click on the EditText does not spawn the soft keyboard anymore.
After an hour of messing around with focus settings and click handlers I got fed up and debugged into InputMethodManager.showSoftInput(), and found this:
CODE:....................
The problem here is that mServedView is the ListView that's backing the dialog, while view is the EditText, and ListView.checkInputConnectionProxy() does simply return false in the default implementation of ListView (to be overridden by subclasses).
Worse, I couldn't find a way to set a custom ListView which allows proxying IME reuqests; AlertDialog.Builder.setView() accepts a custom ListView, but this is not the ListView that InputMethodManager sees.
View 2 Replies
View Related
Sep 17, 2009
I've had this problem in a few different apps now and I can't seem to find a solution.
If, in the onCreate() of an Activity, I start an activity that uses the dialog theme it doesn't draw anything to screen... the whole screen stays black. All the views are there (e.g., I can tap where an EditText should be and it'll give me the keyboard), they're just not visible. code...
View 2 Replies
View Related
Jun 13, 2009
Does anyone know how to make a dialog fill the screen width in landscape mode? Setting the layout's width to fill_parent doesn't do it. It always comes up portrait width, or something suspiciously similar.
View 3 Replies
View Related
Feb 14, 2010
I have HTC Hero, and i see that TimePickerDialog and DatePickerDialog were changed by HTC (they look different than those in the emulator). My question is how can i change such system level dialogs?
View 1 Replies
View Related