Android :: How To Select Previous Item When Configurations Changes?
Oct 14, 2010
I have a issue about spinner. I have many images in spinner when I select some image it shows the image and if I change the orientation like change to landscape its selected item list starts pointing the top one in the list. How shall I prevent to do that?
View 1 Replies
Sep 18, 2009
i m having Array Adapter it displays list views normal whenever i click on that particular item from the list it doesn't works.can u tel me how to solve this.
View 2 Replies
View Related
Nov 14, 2009
As I mentioned in the email subject, I want to select an item (e.g. Department of Human Resource Management) in my ListView. And you can see that: I had try to use setClickable(true), setChoiceMode(ListView.CHOICE_MODE_SINGLE), setFocusable(true), setFocusableInTouchMode(true), no matter I use touch screen to click on the item or use the scroll ball on my mouse to select the item, it also doesn't work. Is there any mistakes in my coding? I hope someone can give me some ideas what I should do. because I am a beginner for developing Android application.
And the following is my coding: package com.example.abc;.............
View 2 Replies
View Related
Sep 24, 2010
One thing driving me crazy in Android is if you start typing say in a search box (like in market, maps, etc.) and you see a choice that is almost what you want, you cannot select it and modify it.For example, I accidentally type pinboll in market.It finds nothing.I start to type pin again, there is pinboll. There seems to be no way to select that and be able to change the one letter. I have to retype the whole thing. Am I missing something?
View 3 Replies
View Related
Sep 3, 2010
When my app loads, I want the first item in the listview to already be selected. how can I do this?
View 1 Replies
View Related
Apr 4, 2010
Is there any way to programmatically select a ListView item such that when using a simple_list_item_single_choice layout, it lights up the radio button? Because setSelection(position) does not seem to have this effect.
View 2 Replies
View Related
Jan 26, 2010
How do you select an item in a listview by code
View 9 Replies
View Related
Sep 1, 2009
How to select multiple item in ListView in android.?
View 3 Replies
View Related
May 18, 2009
I want to display an messagebox when select a menu item. The messagebox include a string , Ok button and Cancel button that I can choose one. code...
View 3 Replies
View Related
Sep 6, 2010
CODE:......
When i select an item random other items background also gets changed although they are not added to the array names and numbers. i need only the background of the selected item tochange..is there a way to do this without creating my own listadapter ?
View 1 Replies
View Related
Sep 7, 2009
I'm supposed to develop an app which behave like that: The User starts the app and can select between different configurations. Depending on the selection there are different colors, drawables and strings (e.g. urls for webservice-calls) to display. All the code-stuff is the same.
My first intention to do so was themes.... - is it possible to include somehow strings in themes? - what shall I do with styles which are referenced in some layout-xml (which are the same for all configs) and should use different colors. can't define colors or styles multiple times and don't want to change that manually (when user selects by code).
View 2 Replies
View Related
Sep 16, 2010
Is there a database anywhere that has all of the different devices that use the android operating system and what their technical specs are. Mainly screen size, screen density, internal storage, external storage, memory, etc.
View 2 Replies
View Related
Sep 18, 2009
I just wanted to quickly bring up a topic that I had noticed lately. This comes to my attention for two reasons, firstly someone had posted that he had a user that reported a vague error message like "deleted all my pics", and the dev's were not able to reproduce it. Secondly, I myself have seen bug reports that really may not be relevant to my application. I had recommended to that first dev to just ignore the error for now since there was not enough info to reproduce it, and also for a second reason, there is no way to know what the user is truly running. For example, I've had a few bug reports, where a user says of my app "Doesn't work on HTC hero", but then another user will post "Works fine on Hero". I also had found a posting on the internet in a forum where a user had tried to use some of my software on a custom ROM, and he was having problems.
I guess the issue I'm bringing up here is that with the android market being somewhat "limited" in functionality, it makes it very hard on us developers to handle any customer issues such as bugs, etc. Especially since they could be using a custom ROM, or have ROOT access which also may even be affecting the software. My point is that developing for android in a professional manner is really not an easy task, and possibly it's just starting to be worth it (with market 1.6 at least there are some improvements) to develop paid apps. Basically Google needs to work harder though to improve this situation - and if users expect better apps (there are lots of complaints about the market being full of junk) then they need a way to report issues better, etc. And really it's not even up to a dev to try to match up with a custom ROM, technically it's not supported! (It's up to the dev of course if they want to investigate and try to support it).
What seems is going to happen is android is not only going to have multiple configs (which fortunately for us seems that the market will help filter them out if you app does not support them), but also we never can really know what is on a user's system. They may have some custom stuff, and they see a bug, but it could really not be our bug, but rather, in the system itself. This is why I still recommend that bug reports have to be weighed carefully as to whether they may really be a problem or not. It's an investment in time and while makers of free apps no doubt may not mind, those of us who develop paid apps don't want to multiply our costs by going down blank pathways.
I don't think I see any resolution to the situation in the near future, but I just wanted to make it clear that if a user reports a bug in their comments and gives you one star, it's not the end of the world. If you can reproduce it quickly and fix it, then that is great. But if not, move on - there is no way you can know exactly what they are talking about. I think some devs get too anxious about that one bad report. There is no way we are going to avoid that report! Because they may be using an untested ROM or such anyway, and it may not be worth your time to look at it in the long run. I've had few low stars here and there as well, and trust me, just keep improving your app and you will rise back up. As devs we need to encourage one another and I just want to try and help devs not get anxious about things that are really beyond their control.
View 2 Replies
View Related
Feb 1, 2010
I am trying to create a Video recorder but it looks like the video resolution is limited to 320 x 240. I tried changing it through MediaRecorder.setVideoSize() to something higher (e.g. 640 x 480) but gives me the same result. Is there a way to record video at higher quality? Also, when I try using the CAMERA as VideoSource instead of DEFAULT, the app force closes.
MediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT)
Which is the best configuration (encoding options?) to give the best video quality?
View 11 Replies
View Related
Sep 11, 2010
You know that layout editor in the Android ADT plugin that lets you design the layout for ADP1, ADP2 and Nexus One, has anyone created other device configurations? It requires device information such as the x-dpi and y-dpi, which can be difficult to find out. I'm just wondering if anybody has added more device configurations they're willing to share? Perhaps together we could compile a huge devices.xml containing many of the devices out there. I'm fully aware the layout editor has many faults and cannot be relied upon but it is sometimes useful to rapidly preview how the layout might look on a wide variety of devices without switching between emulators.
View 4 Replies
View Related
Oct 5, 2010
Android should become more like Windows. Android should be able to detect and recognize the different hardware configurations and adjust itself accordingly. This way, you hit two birds with one stone. No more fragmentation. No more differences in the UI, Custom UI will be entirely optional.
All the manufacturer has to do is make the hardware and provide the hardware drivers to Google. Simple as that. Everything will be so much easier. Phone manufacturers will be able pump out devices like crazy without any worries. Software developers won't have to worry about device compatibility. Come on Google, lets do it.
View 27 Replies
View Related
Apr 9, 2010
I don't know exactly how to explain this problem, but I'll try. I have a ListView with several items. Each item has inside a TextView and two ImageView. I want the ImageView change when I click on them, and I want to open a context menu when I press for a long time into the ListView item.For the ImageView, everything works properly. For the whole item, I can show the context menu after a long press, but my problem is that the ImageView changes as well when I am pressing the TextView, for example.I hope you understand my problem. I think that all the children of a view are affected by an event in the parent, but I am not sure.
View 2 Replies
View Related
Sep 13, 2010
I'm typically asking for the best speed settings such as kernals. OC widgets. Nightlies. I'd like to hear the best scenarios and apply them to my hero. JIT enabled? overclocked to 768? JIT disabled? Did a lot of reading from the CyanogenMod-6 for Hero V6.0.0 - RC1 thread. I know what is best so far, but flashing collins battery tweak on top of the uncapped kernal is a benefit or a negative? Some say you don't need to flash it but why not when it's making the battery last longer?
View 22 Replies
View Related
Nov 20, 2010
I jave a list of item (linearlayout inside a scrollview where i add buttons vertically to linearlayout dynamically from the java code)i need when i click on one button the item moves up (scroll up) , to make the item at the first of the screen
View 1 Replies
View Related
May 25, 2010
I need to get an item's position in spinner knowing it's ID. I've tried to do it with Spinner and SpinnerAdapter classes but there are no corresponding methods there.
View 2 Replies
View Related
Nov 2, 2010
I'm trying to implement a Select All menu item for a ListView in a ListViewActivity. The relevant parts of my ListViewActivity: public class MyListViewActivity extends ListActivity browsed around stackoverflow.com and the google; the above is something that should work. But it isn't. setSelection(i) appears to be the method I want to call on ListView but it's not working as advertised. What am I doing wrong? Is this even possible on Android in code?
View 2 Replies
View Related
May 9, 2010
New to Android and starting to work on file mgmt. I set up some subfolders on my SD card for pictures. I have been moving pictures from one folder to another, but I can only move one at a time. Is there a way to select multiple picture files and move them to another folder (like "Select All" with Windows)? This is the sequence I've been following: Use the Edit Icon in the Astro taskbar, select Move, then going to the directory folder I want to move them, and hit Paste. Moving one file at a time is taking for ever.
View 2 Replies
View Related
Jul 28, 2010
Is there a way, or an App that allows us to save the screen configurations /layouts , etc like on the Incredible?
For those that don't know, the Inc has preset themes and you can save whatever layouts, wallpaper setup you come up with. So you can switch whenever the mood strikes.
View 2 Replies
View Related
Sep 29, 2010
I'm having some trouble with my Uni's WiFi in that it needs to use a manual proxy address to access properly. I've had a wee fiddle with many things and had a look on the marketplace but there doesn't seem to be anything that can help? (I'm still running 2.1 un-rooted btw)
Heres what I'm dealing with - Web Proxy - University of Strathclyde
View 2 Replies
View Related
Oct 17, 2010
Trying to implement simple dictionary. I want to make it so while the user is typing in the EditText box the list to scroll automatically to the best match. I don't want it to filter the list. For example if the user types "s" in the EditText I want the first word that s/he sees under the EditText box to be the first word in the dictionary that starts with "s." But the user should still be able to slide up and down and to be able to see the entire list of words. It is basically like a go to functionality. I used ArrayList to store my list of words. The data is in res/raw/data.xml file. Here is my onCreate method
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
wordListView = (ListView)findViewById(R.id.wordList);
myEditText = (EditText)findViewById(R.id.myEditText);
words = new ArrayList<Word>();
arrAdap = new ArrayAdapter<Word>(this, android.R.layout.simple_list_item_1, words);
wordListView.setAdapter(arrAdap); try {
InputStream inSource = getResources().openRawResource(R.raw.data);
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.parse(inSource, null);
NodeList wordsList = doc.getElementsByTagName("eng-bg");
int length = wordsList.getLength();
for(int i = 0; i<length; i++) {
Element entry = (Element)wordsList.item(i);
Element eng = (Element)entry.getElementsByTagName("english").item(0);
Element bul = (Element)entry.getElementsByTagName("bulgarian").item(0);
Element id = (Element)entry.getElementsByTagName("ID").item(0);
String english = eng.getFirstChild().getNodeValue();
String bulgarian = bul.getFirstChild().getNodeValue();
int wordId = Integer.parseInt(id.getFirstChild().getNodeValue());
Word word = new Word(bulgarian, english, wordId);
addNewWord(word);
} catch (ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}wordListView.setOnItemClickListener(new OnItemClickListener(){
public void onItemClick(AdapterView<?> parent, View view, int pos, long id) {
selectedWord = words.get(pos);
showDialog(TRANS_DIALOG);
myEditText.setText(selectedWord.getEnglish());
myEditText.addTextChangedListener(new TextWatcher(){
public void onTextChanged(CharSequence s, int start, int before, int count) {
@Override
public void afterTextChanged(Editable s) {
// TODO Auto-generated method stub
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// TODO Auto-generated method stub
View 1 Replies
View Related
Jun 2, 2010
How can i define each menu item in different line? Right now if I'm adding 4 items they will get the form of 2X2. Is there a way to add them differently? Like 1 item and 3 below it? or 1X4?
View 1 Replies
View Related
Aug 18, 2010
Android maintains search histories for the Google search widget, market, etc.
but you can't EDIT past searches.
You can't do variations of previous searches by changing or adding a word to the past search.
You can't correct a typo in a previous search..
The only option is to re-type the entire thing, while the phone displays the previous search with the wrong character, but not letting you fix it..
Personally, this is one of the most frustrating things about Android.
Google is all about searching, but they certainly got it wrong with Android's built-in search..
View 2 Replies
View Related
Apr 28, 2010
i want to add the current string in a textview view to a string array in arrays.xml.then display the last/previous string of that array in a textview (setText).
View 1 Replies
View Related
Jul 24, 2009
This is an intermittent bug in one of my apps. I don't expect anyone to solve it immediately, but I'd appreciate any thoughts on how to start debugging!So, my app lets users edit an item (in the EditPage activity). When they press the Back key, the desired behaviour is that it saves their edits and returns them to the home page (the HomeList activity). The code for this is below. It works fine. Except.The bug is this. Some users report that sometimes when they reopen the application after a pause, they are seeing *not* the home page, where they left the application - but the previous edit activity. Crucially, they are also seeing the edit activity without their saved edits - effectively losing their most recent edits.I've been able to reproduce this myself. It only happens after the application hasn't been opened for a while. If I save something, minimize the application and reopen it straight away, it shows the HomeList activity just fine, and the edits have all been saved. But if I save something, leave it for a couple of hours and then reopen it, it shows the previous EditPage activity, without the saved edits (i.e. in the state that the EditPage activity was previously launched).
Any ideas, anyone? I had wondered whether it was due to the Back button being used to return the user to the HomeList activity - maybe Android thinks that the Back button means that the HomeList is not the most "recent" activity, instead the EditPage is. I'd like to carry on using the Back button if possible, though. And in particular, I'm puzzled why it only happens after the app has been idle for an hour or so, and not immediately? Is it something to do with Android's memory management?
View 4 Replies
View Related
Jun 2, 2010
I need a way to detect if this is the first time the user is ever opening the application, if so, start an activity. Then all previous application launches wouldn't start that activity. I've read in a few places about using preferences to accomplish this. Anyone got any ideas?
View 2 Replies
View Related