[android-developers] How to deal with negative anonymous reviews?
One of my apps is the victim of repeated negative reviews by an anonymous poster. No comments are made, just a star rating of 1 done twice, probably by the same poster. I reported this to Google, but they don't seem interested in doing anything about it. Here is their reply to an e-mail I sent on the subject: Hi Robert, Thank you for your note. We really appreciate your thoughtful feedback, and we'll keep it in mind as we work to improve Google Play. Regards, The Google Play Team Has anyone else experienced this sort of abuse and if so, what have you done about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to deal with negative anonymous reviews?
The problem is that there are ad services that charge per app download, but they demand a minimum rating. So, for new apps, if they start off with a rating of, say, 1, unless enough people take the trouble to try it in spite of the rating (not everyone looks at ratings as objectively and critically as you do), the app will be stillborn. On May 9, 8:39 am, Jason Teagle teagle.ja...@gmail.com wrote: We really appreciate your thoughtful feedback, and we'll keep it in mind as we work to improve Google Play. Wow... hot off the photocopier, methinks. Sorry to hear about your situation. I can only recommend - since it is clear you're not going to get any help from Google on this - that you rely on the common sense of the average user. If I see a low rating with no comment, I generally ignore it. I would only take note of a low rating if the accompanying comment looked like it had been constructed carefully and presented comprehensive points, as opposed to simply ranting. Like the subject of licencing and cracking, sometimes the best approach is simply to put the effort into making the apps good and useful so that the good people buy them - and don't waste valuable time and effort on trying to stamp out the negative, since no matter how hard you try, there's always someone around the corner who's going to undo your hard work. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to deal with negative anonymous reviews?
Thanks, I'll give it a try. On May 9, 7:32 pm, John Coryat cor...@gmail.com wrote: After some thought on my answer, I will add that there is something that actually can be done. I don't know how it actually affects the ratings but it does seem that it might help. This only goes for people who leave comments... If you view your app in the web portal (play.google.com), under comments you'll see thumbs up, down and spam. I routinely mark stupid comments with a thumbs down and good ones (good or bad, but well written) with a thumbs up. The order comments display isn't strictly chronological so perhaps by rating them, the order does change. If I'm the only one who ever does this, then perhaps I can influence what comments float to the top and what ones get buried. Your mileage may vary. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Editable WebView or a reasonable facsimile thereof?
Anyone know if there is an editable WebView somewhere in the wild or if Google has plans to make the standard WebView editable? I need such a creature for an app I'm working on (my app is based on K9 Mail, which uses an extension of WebView). Mozilla provides an editable browser-type window to its developers, so does Microsoft, so I would expect Android to have one, but no. My app doesn't even need full HTML support, only a few tags, like what EditText supports, but for various reasons I can't replace the WebView in K9 Mail with an EditText. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Editable WebView or a reasonable facsimile thereof?
I know about spanned text and I'm prepared to use EdiText only if I have to, but my question is about a true editable WebView, which would facilitate my app immensely. On Apr 25, 4:32 am, Kostya Vasilyev kmans...@gmail.com wrote: Another way probably worth looking into is to use spans. For example: http://developer.android.com/reference/android/text/style/UnderlineSp... http://developer.android.com/reference/android/text/style/TextAppeara... ... and so on. -- K 25.04.2012 15:05, Mark Murphy написал: On Wed, Apr 25, 2012 at 2:11 AM, FractalBobruom...@gmail.com wrote: Anyone know if there is an editable WebView somewhere in the wild or if Google has plans to make the standard WebView editable? I need such a creature for an app I'm working on (my app is based on K9 Mail, which uses an extension of WebView). Mozilla provides an editable browser-type window to its developers, so does Microsoft, so I would expect Android to have one, but no. My app doesn't even need full HTML support, only a few tags, like what EditText supports, but for various reasons I can't replace the WebView in K9 Mail with an EditText. Use a JavaScript-based rich text editor. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error
On Apr 4, 11:51 am, Kostya Vasilyev kmans...@gmail.com wrote: Perhaps your base64 encoded data doesn't contain line breaks, or contains too few of them? There are none; the data stream is a single 5 MB line. Causing the readline() to try and read the entire 5 MB (or a large portion of it) in memory? Yes, I could alter delivery of the data so that it comes in in smaller chunks. For email content (since you mentioned K9) it's common to line-wrap base64 data at some reasonable line size, like 76 characters (you know, many people still use DOS, even in this day and age). The same principle could apply to web data. Besides, line breaks do not have any significance for base64 encoded data (unlike, e.g. quoted-printable, or format-flowed text/plain), so you could just ignore the line structure. I'm sure there is piece of code somewhere in K9 sources that can decode base64 data on the fly without excessive buffering. There is also this: http://developer.android.com/reference/android/util/Base64InputStream... ... which is part of Android starting with API 8, but hey, the sources are only a few clicks away. Thanks for your ideas, Kostya. The approach I ultimately took was to save the incoming data to the SD card, in 76 byte pieces, and then reference it via its Uri. Does the job, albeit somewhat slow. Now I'm having to deal with the reverse problem: sending a big file up to the server and I don't think that that can be done in single request, so I'll probably have to modify the server to support piecewise uploads. -- K 4 апреля 2012 г. 22:27 пользователь FractalBob ruom...@gmail.com написал: On Apr 4, 8:48 am, TreKing treking...@gmail.com wrote: On Wed, Apr 4, 2012 at 10:38 AM, FractalBob ruom...@gmail.com wrote: The data, a kind of mail attachment, is a music file Why are you reading lines from this data then? The data is coming in Base 64 encoded from the Web app and then passed directly to the processing application. This scheme works fine for all known types of data and is eventually loaded into an MP3 player. What does that mean? I can't simply point the player to the file, unfortunately; too much legacy code. Not sure what that means. My app is based on the K9 Mail mail client and it expects the data delivered to its providers in a certain format. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error
Yes, this is fine, until you try to convert the output to a String, which was what I needed until I took the approach I mentioned in my reply to Kostya. On Apr 5, 1:12 am, Vo Trung Liem lie...@gmail.com wrote: Follow the code may will help you. URL url = new URL(path); URLConnection cn = url.openConnection(); cn.connect(); InputStream stream = cn.getInputStream(); if (stream == null) throw new RuntimeException(stream is null); if (BTAG) Log.d(TAG, TAG + File temp + audios_local[currentPosition]); FileOutputStream out = new FileOutputStream(temp); byte buf[] = new byte[128]; do { int numread = stream.read(buf); if (numread = 0) break; out.write(buf, 0, numread); } while (true); try { stream.close(); } catch (IOException ex) { if (BTAG) Log.d(TAG, TAG + + ex.toString()); } I can read file bigger than 5MB. 2012/4/5 Kostya Vasilyev kmans...@gmail.com Perhaps your base64 encoded data doesn't contain line breaks, or contains too few of them? Causing the readline() to try and read the entire 5 MB (or a large portion of it) in memory? For email content (since you mentioned K9) it's common to line-wrap base64 data at some reasonable line size, like 76 characters (you know, many people still use DOS, even in this day and age). The same principle could apply to web data. Besides, line breaks do not have any significance for base64 encoded data (unlike, e.g. quoted-printable, or format-flowed text/plain), so you could just ignore the line structure. I'm sure there is piece of code somewhere in K9 sources that can decode base64 data on the fly without excessive buffering. There is also this: http://developer.android.com/reference/android/util/Base64InputStream... ... which is part of Android starting with API 8, but hey, the sources are only a few clicks away. -- K 4 апреля 2012 г. 22:27 пользователь FractalBob ruom...@gmail.comнаписал: On Apr 4, 8:48 am, TreKing treking...@gmail.com wrote: On Wed, Apr 4, 2012 at 10:38 AM, FractalBob ruom...@gmail.com wrote: The data, a kind of mail attachment, is a music file Why are you reading lines from this data then? The data is coming in Base 64 encoded from the Web app and then passed directly to the processing application. This scheme works fine for all known types of data and is eventually loaded into an MP3 player. What does that mean? I can't simply point the player to the file, unfortunately; too much legacy code. Not sure what that means. My app is based on the K9 Mail mail client and it expects the data delivered to its providers in a certain format. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error
Yes, it is a single 5 MB line; so how do I fix it? I tried downloading in small chunks, saving to a file and reopening, but it's the same problem. The data, a kind of mail attachment, is a music file and is eventually loaded into an MP3 player. I can't simply point the player to the file, unfortunately; too much legacy code. On Apr 3, 9:19 pm, TreKing treking...@gmail.com wrote: On Tue, Apr 3, 2012 at 10:57 PM, FractalBob ruom...@gmail.com wrote: Anyone have any ideas on why this is happening The error tells you exactly why: you are running out of memory. and how to fix it? Inspect your response in a web browser first. Is it valid? For example, is it one giant 5MB line? That would be a problem. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error
On Apr 3, 9:19 pm, TreKing treking...@gmail.com wrote: On Tue, Apr 3, 2012 at 10:57 PM, FractalBob ruom...@gmail.com wrote: Anyone have any ideas on why this is happening The error tells you exactly why: you are running out of memory. and how to fix it? Inspect your response in a web browser first. Is it valid? For example, is it one giant 5MB line? That would be a problem. Seems like my reply didn't get posted, so I'll repeat it. It is a single 5 MB line. I tried reading it in pieces and saving to a tmp file, which worked, but opening it and reading into a buffer failed the same way. Why 5 MB is too big kinda boggles the mind, since the app supposedly has 24 MB available and the app itself is only around 3 MB, not counting the incoming data. The data is an MP3 downloaded via a mail client but not the conventional way, as an attachment. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error
On Apr 4, 8:48 am, TreKing treking...@gmail.com wrote: On Wed, Apr 4, 2012 at 10:38 AM, FractalBob ruom...@gmail.com wrote: The data, a kind of mail attachment, is a music file Why are you reading lines from this data then? The data is coming in Base 64 encoded from the Web app and then passed directly to the processing application. This scheme works fine for all known types of data and is eventually loaded into an MP3 player. What does that mean? I can't simply point the player to the file, unfortunately; too much legacy code. Not sure what that means. My app is based on the K9 Mail mail client and it expects the data delivered to its providers in a certain format. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Large data downloads from a Web app to Android client getting Out of memory error
I'm sending the following request to a Web app running on Tomcat: connection = (HttpsURLConnection) url.openConnection(); writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream())); writer.write(email_addr= + URLEncoder.encode(email_addr, UTF-8) + + passwd= + URLEncoder.encode(password, UTF-8) + + cmd= + tmp + + parms= + URLEncoder.encode(parms, UTF-8)); writer.close(); and then read the response as follows: rdr = new BufferedReader(new InputStreamReader(connection.getInputStream())); tmp = rdr.readLine(); Everything works fine as long as the data coming back is less than around 5 MB. Then I get an error on readLine(): 04-02 16:51:34.232: E/dalvikvm-heap(3907): Out of memory on a 10309582- byte allocation Anyone have any ideas on why this is happening and how to fix it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How do I create an editable browser window?
I'm building an app, based on the mail client K-9 Mail, that requires an editable View object that renders full HTML; something like WebView, but editable. Does anyone know what I can use or how to proceed? TIA! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I create an editable browser window?
Unfortunately, EditText can only render a small subset of HTML, like b, i and a few others. On Mar 22, 2:11 pm, Mark Murphy mmur...@commonsware.com wrote: Use EditText, which can edit Spannable objects. Or, build your own full HTML editor from scratch. On Thu, Mar 22, 2012 at 5:09 PM, FractalBob ruom...@gmail.com wrote: I'm building an app, based on the mail client K-9 Mail, that requires an editable View object that renders full HTML; something like WebView, but editable. Does anyone know what I can use or how to proceed? TIA! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Question about scrambling the keyboard
Hi, I'm writing an app that randomly scrambles the keyboard, so that when the user presses, say, the 'A' key, some other letter might get displayed. The only way I see of doing this (actually, the way I do it now) is to register a KeyListener and return the randomized keystroke. The problem is, KeyListeners seem to interfere with the soft keyboard, preventing it from getting displayed. Is there an easy way to make the keyboard to appear when using KeyListeners? If not, what's a better way of proceeding? Also, I want to allow only alpha characters (no numbers or special characters), but I didn't see an inputType for alpha only (of course, it's easy with KeyListeners). TIA! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Question about scrambling the keyboard
Hi, I'm writing an app that randomly scrambles the keyboard, so that when the user presses, say, the 'A' key, some other letter might get displayed. The only way I see of doing this (actually, the way I do it now) is to register a KeyListener and return the randomized keystroke. The problem is, KeyListeners seem to interfere with the soft keyboard, preventing it from getting displayed. Is there an easy way to make the keyboard to appear when using KeyListeners? If not, what's a better way of proceeding? Also, I want to allow only alpha characters (no numbers or special characters), but I didn't see an inputType for alpha only (of course, it's easy with KeyListeners). TIA! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Table row content disappearing on rotate
Hi, I have an app that includes two TableLayouts whose rows are filled in dynamically. Whenever I rotate the device, the rows are cleared for both tables. This only happens with the tables, not with other views, like TextViews. The relevant XML and Java code are as follows: *play.xml:* RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/new_guess_label android:layout_alignParentLeft=true android:layout_below=@id/my_secret_word_text android:textStyle=bold android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/new_guess/ EditText android:id=@+id/new_guess_text android:layout_toRightOf=@id/new_guess_label android:layout_below=@id/my_secret_word_text android:singleLine=true android:capitalize=none android:maxLength=5 android:maxEms=5 android:layout_width=100dp android:layout_height=wrap_content/ TextView android:id=@+id/your_guesses android:text=@string/your_guesses android:layout_alignParentLeft=true android:layout_below=@id/new_guess_text android:layout_width=wrap_content android:textColor=#00ff00 android:layout_height=wrap_content / TextView android:id=@+id/their_guesses android:text=@string/their_guesses android:layout_below=@id/new_guess_text android:layout_alignParentRight=true android:textColor=#ff android:layout_width=wrap_content android:layout_height=wrap_content / ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/my_scroller android:layout_alignParentLeft=true android:layout_below=@id/your_guesses android:layout_width=wrap_content android:layout_height=180dp TableLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/my_guesses android:layout_alignParentLeft=true android:layout_below=@id/your_guesses android:lines=4 android:keepScreenOn=true android:layout_width=wrap_content android:layout_height=wrap_content android:background=#ff android:shrinkColumns=* /TableLayout /ScrollView ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/his_scroller android:layout_alignParentRight=true android:layout_below=@id/their_guesses android:layout_width=wrap_content android:layout_height=180dp TableLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/his_guesses android:layout_alignParentRight=true android:layout_below=@id/their_guesses android:lines=4 android:keepScreenOn=true android:layout_width=wrap_content android:layout_height=wrap_content android:background=#ff android:shrinkColumns=* /TableLayout /ScrollView /RelativeLayout *PlayActivity.java: * @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.play); . . . my_guesses = (TableLayout) findViewById(R.id.my_guesses); . . . tr = new TableRow(context); tr.setLayoutParams(new LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); word_view = new TextView(context); word_view.setTextColor(Color.BLACK); word_view.setText(guess); tr.addView(word_view); count_view = new TextView(context); count_view.setTextColor(Color.BLACK); count_view.setText(String.valueOf(match_count)); tr.addView(count_view); my_guesses.addView(tr, new TableLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); Any ideas would be appreciated. Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Table row content disappearing on rotate
Thanks for the link. I read it but I couldn't see the relevance. Does device rotation require that the activity state, including the entire row data, be saved by the app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Table row content disappearing on rotate
Thanks, that puts me in the right direction! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Table row content disappearing on rotate
Thanks for the link, Kostya. Yeah, I understood that TreKing meant Activity, not the app process. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Highlighting an icon in a Gallery widget
Simple and elegant; thanks, TreKing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Highlighting an icon in a Gallery widget
Hi, I have a Gallery widget containing a bunch of icons. When the user selects one of them, I need to temporarily change the icon's background color before launching the app associated with the icon. How do I change the color? I know how to change to color, but not how to change it back! HELP!! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Highlighting an icon in a Gallery widget
Hi, I have a Gallery widget containing a bunch of icons. When the user selects one of them, I need to temporarily change the icon's background color before launching the app associated with the icon. How do I change the color? I know how to change to color, but not how to change it back! HELP!! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Detecting flings in a ListActivity containing non-simple views
Hi, I have a list that contains views consisting an ImageView followed on the right by a TextView: LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content ImageView android:id=@+id/news_image android:layout_width=88dp android:layout_height=66dp android:padding=10dp / TextView android:id=@+id/news_text android:lines=4 android:inputType=textMultiLine android:layout_marginTop=5dp android:text=@string/LANGKEY_headlines_unavailable android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout I implemented fling the usual way, as follows: listItemView.setOnClickListener(NewsListActivity.this); listItemView.setOnTouchListener(gestureListener); where listItemView is the above view. Now, if I begin the fling on the ImageView, I see it. But if I begin it in the TextView, I don't; also, mouse down on the TextView causes the tyext to disappear until the mouse is released (I don't know if that's relevant, but I thought I'd mention it). It seems that Android attaches the listeners to the first view in the layout, which looks like a bug to me. How can I get Android to recognize flings (and clicks) anywhere in the view? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Detecting flings in a ListActivity containing non-simple views
On Nov 13, 11:45 am, Dianne Hackborn hack...@android.com wrote: Where are you attaching your listeners? Are you taking into account view recycling? This is not generally something one wants to do in a list view, and if you do go down this path you need to be very careful about understanding how list view works with recycling views and such. I'm attaching my listeners in the getView() method of the adapter I use to load the list. As for view recycling, I don't see why that would be an issue. On Sat, Nov 13, 2010 at 11:20 AM, FractalBob ruom...@gmail.com wrote: Hi, I have a list that contains views consisting an ImageView followed on the right by a TextView: LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content ImageView android:id=@+id/news_image android:layout_width=88dp android:layout_height=66dp android:padding=10dp / TextView android:id=@+id/news_text android:lines=4 android:inputType=textMultiLine android:layout_marginTop=5dp android:text=@string/LANGKEY_headlines_unavailable android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout I implemented fling the usual way, as follows: listItemView.setOnClickListener(NewsListActivity.this); listItemView.setOnTouchListener(gestureListener); where listItemView is the above view. Now, if I begin the fling on the ImageView, I see it. But if I begin it in the TextView, I don't; also, mouse down on the TextView causes the tyext to disappear until the mouse is released (I don't know if that's relevant, but I thought I'd mention it). It seems that Android attaches the listeners to the first view in the layout, which looks like a bug to me. How can I get Android to recognize flings (and clicks) anywhere in the view? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items
I did; it didn't help. I also went back and changed my code a little bit: public class NewsChannel implements OnClickListener, OnKeyListener { . . . news_channel_text = (TextView)news_content.findViewById(R.id.news_channel_text); news_channel_text.setOnClickListener(this); news_channel_text.setOnKeyListener(this); . . . public void onClick(View v) { log.debug(Click event); } public boolean onKey (View v, int keyCode, KeyEvent event) { log.debug(onKey); return true; } } and set breakpoints in each listener. The breakpoint gets hit in onCLick() (as it always had), but never in onKey(), even if I unset the OnClickListener. I've been struggling with this problem for nearly a week now and it's driving me nuts. On Nov 4, 3:03 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: Try removing the listener from TextView(s) and see if that makes any difference. 2010/11/4 FractalBob ruom...@gmail.com However, I don't implement any interfaces; is the the problem? If so, what should I implement? On Nov 4, 11:09 am, Kumar Bibek coomar@gmail.com wrote: Have you set your list items to be focussable? Mean are some of your views in your item layout focussable? On 04-Nov-2010 11:35 PM, FractalBob ruom...@gmail.com wrote: I think the reason it's still not working is because I'm not sure what interface onListItemClick implements, so I tried public class NewsListActivity extends ListActivity implements OnClickListener and I implemented onClick, to no avail. Anyone know what I should specify for implements? On Nov 4, 6:29 am, FractalBob ruom...@gmail.com wrote: Thanks for your suggestion, Filip. I a... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items
Thanks for your suggestion, Filip. I added the following to the ListView: public void onListItemClick (ListView l, View v, int position, long id) { item_index = position; Toast.makeText(this, item clicked = + position, Toast.LENGTH_LONG).show(); } But it didn't get executed when I selected an item in the list (the Toast never got displayed). On Nov 4, 1:03 am, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Bob, since you are using ListActivity, you can override onListItemClick instead of creating new OnItemClickListener. More information here http://developer.android.com/reference/android/app/ListActivity.html#..., android.view.View, int, long) That should fix your problem. Best regards, Filip Havlicek 2010/11/4 FractalBob ruom...@gmail.com I thought I knew how to catch list selection events in Android and then I regained consciousness. In my situation, I have a ListView that I populate with a custom view, all of the same class (let's call it the NewsChannel() class). NewsChannel consists of a LinearLayout of ImageViews and TextViews. When the list is displayed, the user may select a NewsChannel item in the list; I want to find out which list item was selected. Also, I registered an onClickListener to one of the TextViews and that works fine: when the text is clicked on, an activity is launched which is looking for the position of the NewsChannel item in the list. So, here's what my code looks like: 1. Registering the onClickListener in the ListActivity: public class NewsListActivity extends ListActivity { . . . public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.news_list_format); ListView lv = getListView(); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { // When clicked, show a toast with the TextView text item_index = position; Toast.makeText(getApplicationContext(), item clicked = + position, Toast.LENGTH_SHORT).show(); } }); . . . 2. The layout for the ListView associated with NewsListActivity: ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/wpaper_tile ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:layout_alignParentTop=true android:dividerHeight=15dp android:divider=@android:color/transparent android:cacheColorHint=@android:color/transparent android:scrollbars=none / FrameLayout android:layout_width=fill_parent android:layout_height=55dp android:layout_centerHorizontal=true android:layout_alignParentBottom=true android:background=#8800 / ImageView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_centerHorizontal=true android:layout_alignParentBottom=true android:src=@drawable/phonetop_bg / /RelativeLayout 3. The NewsChannel layout: ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content include layout=@layout/news_heading_format android:id=@+id/news_heading_header/ ImageView android:id=@+id/news_channel_image android:layout_width=88dp android:layout_height=66dp android:layout_alignParentLeft=true android:layout_below=@id/news_heading_header android:padding=10dp / TextView android:id=@+id/news_channel_text android:lines=4 android:inputType=textMultiLine android:layout_toRightOf=@id/news_channel_image android:layout_below=@id/news_heading_header android:layout_width=fill_parent android:layout_height=wrap_content/ /RelativeLayout When I run the app, the ItemClickListener is never called. However, if NewsChannel were of a simpler type, say, a single ImageView or TextView embedded in the layout, the callback does get called. Any idea what I'm doing wrong? My whole goal is simply to let the activity launched by NewsChannel (not shown) to find out which instance of NewsChannel it was launched from. Thanks, in advance! -- You received this message because you are subscribed to the Google Groups Android
[android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items
I think the reason it's still not working is because I'm not sure what interface onListItemClick implements, so I tried public class NewsListActivity extends ListActivity implements OnClickListener and I implemented onClick, to no avail. Anyone know what I should specify for implements? On Nov 4, 6:29 am, FractalBob ruom...@gmail.com wrote: Thanks for your suggestion, Filip. I added the following to the ListView: public void onListItemClick (ListView l, View v, int position, long id) { item_index = position; Toast.makeText(this, item clicked = + position, Toast.LENGTH_LONG).show(); } But it didn't get executed when I selected an item in the list (the Toast never got displayed). On Nov 4, 1:03 am, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Bob, since you are using ListActivity, you can override onListItemClick instead of creating new OnItemClickListener. More information here http://developer.android.com/reference/android/app/ListActivity.html#..., android.view.View, int, long) That should fix your problem. Best regards, Filip Havlicek 2010/11/4 FractalBob ruom...@gmail.com I thought I knew how to catch list selection events in Android and then I regained consciousness. In my situation, I have a ListView that I populate with a custom view, all of the same class (let's call it the NewsChannel() class). NewsChannel consists of a LinearLayout of ImageViews and TextViews. When the list is displayed, the user may select a NewsChannel item in the list; I want to find out which list item was selected. Also, I registered an onClickListener to one of the TextViews and that works fine: when the text is clicked on, an activity is launched which is looking for the position of the NewsChannel item in the list. So, here's what my code looks like: 1. Registering the onClickListener in the ListActivity: public class NewsListActivity extends ListActivity { . . . public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.news_list_format); ListView lv = getListView(); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { // When clicked, show a toast with the TextView text item_index = position; Toast.makeText(getApplicationContext(), item clicked = + position, Toast.LENGTH_SHORT).show(); } }); . . . 2. The layout for the ListView associated with NewsListActivity: ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/wpaper_tile ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:layout_alignParentTop=true android:dividerHeight=15dp android:divider=@android:color/transparent android:cacheColorHint=@android:color/transparent android:scrollbars=none / FrameLayout android:layout_width=fill_parent android:layout_height=55dp android:layout_centerHorizontal=true android:layout_alignParentBottom=true android:background=#8800 / ImageView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_centerHorizontal=true android:layout_alignParentBottom=true android:src=@drawable/phonetop_bg / /RelativeLayout 3. The NewsChannel layout: ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content include layout=@layout/news_heading_format android:id=@+id/news_heading_header/ ImageView android:id=@+id/news_channel_image android:layout_width=88dp android:layout_height=66dp android:layout_alignParentLeft=true android:layout_below=@id/news_heading_header android:padding=10dp / TextView android:id=@+id/news_channel_text android:lines=4 android:inputType=textMultiLine android:layout_toRightOf=@id/news_channel_image android:layout_below=@id/news_heading_header android:layout_width=fill_parent android:layout_height=wrap_content/ /RelativeLayout When I run the app, the ItemClickListener
[android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items
On Nov 4, 11:09 am, Kumar Bibek coomar@gmail.com wrote: Have you set your list items to be focussable? Mean are some of your views in your item layout focussable? I have setFocusable(true); for the TextView I'm clicking on; still no good. On 04-Nov-2010 11:35 PM, FractalBob ruom...@gmail.com wrote: I think the reason it's still not working is because I'm not sure what interface onListItemClick implements, so I tried public class NewsListActivity extends ListActivity implements OnClickListener and I implemented onClick, to no avail. Anyone know what I should specify for implements? On Nov 4, 6:29 am, FractalBob ruom...@gmail.com wrote: Thanks for your suggestion, Filip. I a... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items
However, I don't implement any interfaces; is the the problem? If so, what should I implement? On Nov 4, 11:09 am, Kumar Bibek coomar@gmail.com wrote: Have you set your list items to be focussable? Mean are some of your views in your item layout focussable? On 04-Nov-2010 11:35 PM, FractalBob ruom...@gmail.com wrote: I think the reason it's still not working is because I'm not sure what interface onListItemClick implements, so I tried public class NewsListActivity extends ListActivity implements OnClickListener and I implemented onClick, to no avail. Anyone know what I should specify for implements? On Nov 4, 6:29 am, FractalBob ruom...@gmail.com wrote: Thanks for your suggestion, Filip. I a... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListView.setOnItemClickListener() fails to catch selection events for custom list items
I thought I knew how to catch list selection events in Android and then I regained consciousness. In my situation, I have a ListView that I populate with a custom view, all of the same class (let's call it the NewsChannel() class). NewsChannel consists of a LinearLayout of ImageViews and TextViews. When the list is displayed, the user may select a NewsChannel item in the list; I want to find out which list item was selected. Also, I registered an onClickListener to one of the TextViews and that works fine: when the text is clicked on, an activity is launched which is looking for the position of the NewsChannel item in the list. So, here's what my code looks like: 1. Registering the onClickListener in the ListActivity: public class NewsListActivity extends ListActivity { . . . public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.news_list_format); ListView lv = getListView(); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { // When clicked, show a toast with the TextView text item_index = position; Toast.makeText(getApplicationContext(), item clicked = + position, Toast.LENGTH_SHORT).show(); } }); . . . 2. The layout for the ListView associated with NewsListActivity: ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/wpaper_tile ListView android:id=@id/android:list android:layout_width=fill_parent android:layout_height=fill_parent android:layout_alignParentTop=true android:dividerHeight=15dp android:divider=@android:color/transparent android:cacheColorHint=@android:color/transparent android:scrollbars=none / FrameLayout android:layout_width=fill_parent android:layout_height=55dp android:layout_centerHorizontal=true android:layout_alignParentBottom=true android:background=#8800 / ImageView android:layout_width=fill_parent android:layout_height=wrap_content android:layout_centerHorizontal=true android:layout_alignParentBottom=true android:src=@drawable/phonetop_bg / /RelativeLayout 3. The NewsChannel layout: ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content include layout=@layout/news_heading_format android:id=@+id/news_heading_header/ ImageView android:id=@+id/news_channel_image android:layout_width=88dp android:layout_height=66dp android:layout_alignParentLeft=true android:layout_below=@id/news_heading_header android:padding=10dp / TextView android:id=@+id/news_channel_text android:lines=4 android:inputType=textMultiLine android:layout_toRightOf=@id/news_channel_image android:layout_below=@id/news_heading_header android:layout_width=fill_parent android:layout_height=wrap_content/ /RelativeLayout When I run the app, the ItemClickListener is never called. However, if NewsChannel were of a simpler type, say, a single ImageView or TextView embedded in the layout, the callback does get called. Any idea what I'm doing wrong? My whole goal is simply to let the activity launched by NewsChannel (not shown) to find out which instance of NewsChannel it was launched from. Thanks, in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Instantiating a layout defined via XML at runtime
Hi, I have a ListView that I want to populate with objects whose layout is defined via XML. Is there a way to instantiate a layout at runtime, editing stuff like the Android layout ID, etc., and then load the new layout into the list? TIA! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Instantiating a layout defined via XML at runtime
Thanks for the suggestion, Romain. That did it! On Oct 18, 9:38 am, Romain Guy romain...@android.com wrote: Hi, To inflate (what you call instantiate) an XML layout file at runtime, use a LayoutInflater. Usually the LayoutInflater.inflate()'s method is invoked form the adapter's getView() method when the convertView parameter is null. On Mon, Oct 18, 2010 at 9:20 AM, FractalBob ruom...@gmail.com wrote: Hi, I have a ListView that I want to populate with objects whose layout is defined via XML. Is there a way to instantiate a layout at runtime, editing stuff like the Android layout ID, etc., and then load the new layout into the list? TIA! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Creating a JTree-like widget for Android?
On Aug 27, 8:08 am, TreKing treking...@gmail.com wrote: On Fri, Aug 27, 2010 at 9:20 AM, FractalBob ruom...@gmail.com wrote: Thanks for the pointer. You're welcome! It seems the objection to a JTree like view is that you'd run out of space on a small screen, but that's not valid, since you could wrap the tree in a scrollview. That's one objection. The other problem is that the size of the items in the list would either have to be very small to accommodate the whole list, or, if you wrap it in a scroll view, require scrolling in every direction just to navigate the thing as sub-nodes expand. The benefit of a JTree type control is it presents a simplified overview of a complex hierarchy. On a mobile platform, you mostly lose that simplified overview and it can result in more complexity and confusion. I guess I'll have to abandon my project until a tree view of some kind makes it to Android, as I don't want to use menus as suggested in the link; If you're abandoning your project because one type of control is not available, your project was not worth doing to begin with. The project is definitely worth completing, but it's discouraging to not have a slick interface unit like a tree available. However, I'll think about alternatives in the meantime. If you're going to wait until it makes it to Android, you're probably going to waiting quite a long time. If you think this type of control would actually be usable / preferable for you project, there is absolutely nothing stopping you from writing your own custom view and adapter that meets your needs. Ummm...I think I'll pass on that! it would be too klunky, IMO. No more so than trying to navigate an entire tree on a single screen with the size, scrolling, and selection issues it would present. Good luck with your project, if you decide to continue it. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Creating a JTree-like widget for Android?
Thanks for the pointer. It seems the objection to a JTree like view is that you'd run out of space on a small screen, but that's not valid, since you could wrap the tree in a scrollview. I guess I'll have to abandon my project until a tree view of some kind makes it to Android, as I don't want to use menus as suggested in the link; it would be too klunky, IMO. On Aug 26, 4:58 pm, TreKing treking...@gmail.com wrote: On Thu, Aug 26, 2010 at 12:56 PM, FractalBob ruom...@gmail.com wrote: Does anyone know if it's possible to extend this to an arbitrary number of levels? See this recent thread:http://groups.google.com/group/android-developers/browse_thread/threa... --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating a JTree-like widget for Android?
Hi, I need to create something like a JTree for my app and have been looking at ExpandableListView, but it only allows two levels. Does anyone know if it's possible to extend this to an arbitrary number of levels? I need a single top level and, below that, several second levels, each of which may contain their own levels. I would expect that one could set a second-level (child) item to be an ExpandableListView of it's own, but it doesn't seem possible. Thanks for any help on this, as it's holding up my entire project. Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Proprietary MIME headers getting deleted by the SDK?
Hi, My app adds proprietary headers to a MimeMessage with setHeader() and up until the point the message is sent, I've confirmed with the debugger that the headers are in the message. But after the message is sent and I looked at it, all my headers are gone. Is this a known bug in the SDK? This doesn't happen with standard Java apps (I'm porting a Java desktop app to Android, so this code should work since it works on the desktop). TIA! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Automatic scrolling of table when rows are added
I have a TableLayout wrapped in a ScrollView and as the table expands with new rows, I want the last item added to be displayed. How can I do this? TIA! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Decorating a TableLayout to make it look like a table
Hi, I need to make the TableLayout look like a table, with the border decorations and all. What's the best way to do that? As it is now, it looks like crap, not at all like a real table. TIA! Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: scroll view and TableLayout
Try creating the headers by hand, say, with a TextView, and put your ScrollView containing the TableLayout underneath it. On Apr 29, 11:44 pm, rahulp rahul.d.notori...@gmail.com wrote: Hi I have a Scrollview Table Layout. In which i have a header column and another header row. I want toscrollthe table without scrolling the headers. Ie i want to selectively stop scrolling of the top row and first column. Can anyone please hel[p me out.. PLEASE i need this to work -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] EditText pops up Chinese characters when typing
I have a strange problem in the simulator. I define my UI with XML and when I begin typing into an EditText, a strip of Chinese characters pops up at the bottom of the screen. What's going on and how do I disable this behavior? TIA! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Building Google's Android e-mail client with NetBeans
Hi, I'm having problems building the e-mail app with NetBeans. I get the following errors: res\layout\account_setup_account_type.xml:29: error: Error: No resource found that matches the given name (at 'text' with value '@string/account_setup_account_type_pop_action'). res\layout\account_setup_account_type.xml:38: error: Error: No resource found that matches the given name (at 'text' with value '@string/account_setup_account_type_imap_action'). res\layout\account_setup_account_type.xml:47: error: Error: No resource found that matches the given name (at 'text' with value '@string/account_setup_account_type_exchange_action'). Anyone know what's wrong? Thanks. Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en