[android-developers] Re: App download too less
My young brothers idea. I just tried to create something for him. Though the name must be cheesy, but it took me solid efforts to create the jigsaw puzzle logic. So, please don't judge the book from its cover. I promise to create similar games with nice names and nice images of cars, cats etc. On Aug 14, 10:07 am, TreKing treking...@gmail.com wrote: On Sat, Aug 14, 2010 at 3:44 AM, HIRAK hirak1...@gmail.com wrote: I created a image puzzle app named Sexy Image Puzzle But the app has too less downloads so far. Could anyone use this app and let me know, what is going wrong? Creating an app with sexy in the title is probably the first thing putting people off. --- -- 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: App download too less
Yes, you are absolutely right and I am not uploading anything before I create something more interesting and well tested. But it took some solid efforts to create this puzzle. The theme may be cheesy, but the app is not a spam or a junk. Unless there is some issue loading the images or the execution of the app in phones, the app is quite interesting ( though I know it is subjective). Now, as there is still half a month, before I can afford buying the dev phone, I needed somebody to let me know what are the errors users get while using it in their phones. But thanks anyways, for the replies and the suggestions. Agree and appreciate all of it. On Aug 14, 11:54 am, DanH danhi...@ieee.org wrote: Maybe you should wait until you learn how to program before you upload apps. Uploading crummy apps is a good way to build a bad reputation. The app store isn't intended as a place for amateurs to display their first efforts, and when you do that you degrade the value of the app store to everyone. On Aug 14, 3:44 am, HIRAK hirak1...@gmail.com wrote: Hi, I am a newcomer to android development. I created a image puzzle app named Sexy Image Puzzle It is a simple jigsaw puzzle. As I have just started developing for android, I didn't buy the dev phone yet. I tested the application in Emulator. I was planning to create similar puzzles for Cars too. But the app has too less downloads so far. Could anyone use this app and let me know, what is going wrong? It is a free application, so there is no payment involved. I just want to know some feedbacks, what is going wrong. This is a small help, I need from you guys, till the time I buy my dev phone (probably starting september) -- 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: Removing unncessary permissions
Excellent, that works very nicely. Thanks Dianne. On Aug 15, 5:53 am, Dianne Hackborn hack...@android.com wrote: Use android:minSdkVersion=4 or better. Prior versions of the platform did not have these permissions, so must assume that apps written against them do not declare them so need to give all such apps the permissions. On Fri, Aug 13, 2010 at 10:48 PM, William Ferguson william.ferguson.au@ gmail.com wrote: I have an app that reads from the Contact provider and so it declares android.permission.READ_CONTACTS in the manifest. It doesn't store anything on the SD card and it doesn't listen to phone or attempt to make calls But when I go to install the app, I am prompted that installing the app requires me to allow the app: - Storage. Modify or delete SD card contents - Your personal information. Read contact data (this was expected). - Phone calls. Read phone state. In the manifest I tried to switch off the 'Read phone state' warning by including a uses-feature indicating I didn't require access to the phone state, but it didn't work. Here is the relevant snippet from my Manifest. uses-permission android:name=android.permission.READ_CONTACTS/ uses-feature android:name=android.hardware.telephony android:required=false/ Any idea why the installer is inferring that I need 'Modify or delete SD card contents' and 'Read phone state'? Or how I might be able to stop those warnings? NB this is on a GalaxyS Android 2.1 -- 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%2bunsubscr...@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: Full screen activity
Thanks. With that change it's better, but still not quite right. Let me try to describe exactly what I'm seeing. My layout consists of a GLSurfaceView that fills most of the screen, and some buttons at the bottom. The hierarchy is as follows: LinearLayout1 GLSurfaceView LinearLayout2 Button1 Button2 ... When I first run the activity, it comes out basically correct. That is, it lays out the view the size of the full screen, but pushed down by the height of the notification bar so the buttons are sticking off the bottom. But you only see that for a fraction of a second. Then the notification bar slides off, and the view slides up to fit the screen. All is good. Now I hit the Home button to return to the home screen. Then I hold down Home to get the list of recent applications and select mine. This time things get drawn differently. When the notification bar slides off, the GLSurfaceView slides up to the correct place. And the buttons slide up within LinearLayout2. But the bounds of LinearLayout2 do NOT get updated. So I'm left with a gap between the GLSurfaceView and the buttons, and the top half of the buttons get cut off. Does that make sense? Peter -- 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: App download too less
Sorry to say it, but if you're not getting downloads it means nobody wants your app. All you can do is release it, maybe market it, and then hope to whoever you pray to that it takes off. Good luck :D On Aug 14, 11:10 pm, HIRAK hirak1...@gmail.com wrote: Yes, you are absolutely right and I am not uploading anything before I create something more interesting and well tested. But it took some solid efforts to create this puzzle. The theme may be cheesy, but the app is not a spam or a junk. Unless there is some issue loading the images or the execution of the app in phones, the app is quite interesting ( though I know it is subjective). Now, as there is still half a month, before I can afford buying the dev phone, I needed somebody to let me know what are the errors users get while using it in their phones. But thanks anyways, for the replies and the suggestions. Agree and appreciate all of it. On Aug 14, 11:54 am, DanH danhi...@ieee.org wrote: Maybe you should wait until you learn how to program before you upload apps. Uploading crummy apps is a good way to build a bad reputation. The app store isn't intended as a place for amateurs to display their first efforts, and when you do that you degrade the value of the app store to everyone. On Aug 14, 3:44 am, HIRAK hirak1...@gmail.com wrote: Hi, I am a newcomer to android development. I created a image puzzle app named Sexy Image Puzzle It is a simple jigsaw puzzle. As I have just started developing for android, I didn't buy the dev phone yet. I tested the application in Emulator. I was planning to create similar puzzles for Cars too. But the app has too less downloads so far. Could anyone use this app and let me know, what is going wrong? It is a free application, so there is no payment involved. I just want to know some feedbacks, what is going wrong. This is a small help, I need from you guys, till the time I buy my dev phone (probably starting september) -- 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: #setChecked in CheckedTextView in ListView not working
Um, sorry, in attempting to simplify the example that I presented to you I didn't manage a full text search and replace. The text for #bindView should have read (and does in the running code) @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; final Long rowId = myCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); checkedText.setText(myCursor.getDescription()); checkedText.setTag(rowId); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); } On Aug 14, 11:15 pm, Paul Turchenko paul.turche...@gmail.com wrote: I believe the issue is that you're getting rowId from rawContactsCursor (bindView method) which stays on the same record. IMO you should get row id from cursor coming to you in bindView. This way you'll get rowId for the record you are currently binding. To be simple, you are binding to the wrong record. On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that just contains a CheckedTextView. I have a very simple CursorAdapter that populates CheckedTextViews. When I click on an item, I can see that I am responding to the correct row, store the value in my model and the CheckedText gets checked. However, when I scroll down and then back up again, while I see that the model contains the correct value (in #bindView), calling #setChecked on the CheckedTextView has no effect. Ie All items are unchecked. Its gotta be something simple, but I can't see it. Any ideas? public final class SimpleAdapter extends CursorAdapter { private static final String TAG = SimpleAdapter; private final LayoutInflater inflater; private final RowModel rowModel = new RowModel(); public SimpleAdapter(Activity context, MyCursor cursor) { super(context, cursor, true); inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { final CheckedTextView checkedText = (CheckedTextView) inflater.inflate(android.R.layout.simple_list_item_multiple_choice, parent, false); final MyCursor myCursor = (MyCursor) cursor; checkedText.setText(myCursor.getDescription()); final Long rowId = rawContactsCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); checkedText.setTag(rowId); checkedText.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // Toggle whether the Row is selected or not. final Long id = (Long) view.getTag(); Log.v(TAG, toggling rowId= + rowId); final boolean checked = rowModel.toggleSelected(id); final CheckedTextView checkedTextView = (CheckedTextView) view; checkedTextView.setChecked(checked); } }); return checkedText; } @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; checkedText.setText(myCursor.getDescription()); final Long rowId = rawContactsCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); checkedText.setTag(rowId); } } -- 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: Javadoc for ContactContract.RawContacts
Cool, thats a neat feature of the Javadoc. Never seen it before. But according to it, the following are valid constants for ContactsContract.RawContact String DISPLAY_NAME_ALTERNATIVE String DISPLAY_NAME_PRIMARY String DISPLAY_NAME_SOURCE String PHONETIC_NAME String PHONETIC_NAME_STYLE String SORT_KEY_ALTERNATIVE String SORT_KEY_PRIMARY But none of them are availabel in the compiled lasses, nor exist in the source code of the trunk. So what are they for, and where do they come from? On Aug 14, 4:57 pm, RichardC richard.crit...@googlemail.com wrote: Turn on filer by API level (top right on docs) and have a look. On Aug 14, 2:24 am, William Ferguson william.ferguson...@gmail.com wrote: Can someone tell me what for version of Android the online Javadoc has been generated? http://developer.android.com/reference/android/provider/ContactsContr... contains references to several constants such as DISPLAY_NAME_PRIMARY that don't exist in the compiled class for 2.1 or 2.2 and don't exist in the current trunk of the source. And since ContactsContract.RawContacts didn't exist in 1.6 I am struggling to see where the online Javadoc comes from. Can anyone point out its origins? Or enlighten me as to what version of the Android API is actually presented as the online Javadoc? As an awside it would be really useful if there was Javadoc for each version. -- 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] Re: Full screen activity
Sounds like a bug in the framework. What version of the platform are you running against? You may want to consider filing a bug with code to reproduce (after verifying the problem still happens in 2.2 of course). On Sat, Aug 14, 2010 at 11:23 PM, Peter Eastman peter.east...@gmail.comwrote: Thanks. With that change it's better, but still not quite right. Let me try to describe exactly what I'm seeing. My layout consists of a GLSurfaceView that fills most of the screen, and some buttons at the bottom. The hierarchy is as follows: LinearLayout1 GLSurfaceView LinearLayout2 Button1 Button2 ... When I first run the activity, it comes out basically correct. That is, it lays out the view the size of the full screen, but pushed down by the height of the notification bar so the buttons are sticking off the bottom. But you only see that for a fraction of a second. Then the notification bar slides off, and the view slides up to fit the screen. All is good. Now I hit the Home button to return to the home screen. Then I hold down Home to get the list of recent applications and select mine. This time things get drawn differently. When the notification bar slides off, the GLSurfaceView slides up to the correct place. And the buttons slide up within LinearLayout2. But the bounds of LinearLayout2 do NOT get updated. So I'm left with a gap between the GLSurfaceView and the buttons, and the top half of the buttons get cut off. Does that make sense? Peter -- 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%2bunsubscr...@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: Application state when Home pressed
Thanks every one. I thing the post should be closed. I got enough information from TreKing. Let's wait Android 3.0, I`m very happy that OS 2.2 run java tasks with JIT compiler. -- 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: #setChecked in CheckedTextView in ListView not working
OK, further info. As could be seen from #newView, I was handling the onClick on the CheckedTextView myself and this was because I was using a normal Activity instead of a ListActivity. When I switched to a ListActivity, implemented ListActivity#onListItemClick and ditched the OnClickListener code above I noticed 2 things. 1) The CheckedText started staying checked even after scrolling (ie it starting to behave as expected). 2) Every time I toggle a list item, #bindView is being called once for each visible item. Its great that this has made it started working. But a) I don't understand why it wasn't working before b) 2 from above seems pretty wasteful. Why should #bindView be called from all visible items just because one item has been checked/ unchecked? On Aug 15, 4:29 pm, William Ferguson william.ferguson...@gmail.com wrote: Um, sorry, in attempting to simplify the example that I presented to you I didn't manage a full text search and replace. The text for #bindView should have read (and does in the running code) @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; final Long rowId = myCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); checkedText.setText(myCursor.getDescription()); checkedText.setTag(rowId); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); } On Aug 14, 11:15 pm, Paul Turchenko paul.turche...@gmail.com wrote: I believe the issue is that you're getting rowId from rawContactsCursor (bindView method) which stays on the same record. IMO you should get row id from cursor coming to you in bindView. This way you'll get rowId for the record you are currently binding. To be simple, you are binding to the wrong record. On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that just contains a CheckedTextView. I have a very simple CursorAdapter that populates CheckedTextViews. When I click on an item, I can see that I am responding to the correct row, store the value in my model and the CheckedText gets checked. However, when I scroll down and then back up again, while I see that the model contains the correct value (in #bindView), calling #setChecked on the CheckedTextView has no effect. Ie All items are unchecked. Its gotta be something simple, but I can't see it. Any ideas? public final class SimpleAdapter extends CursorAdapter { private static final String TAG = SimpleAdapter; private final LayoutInflater inflater; private final RowModel rowModel = new RowModel(); public SimpleAdapter(Activity context, MyCursor cursor) { super(context, cursor, true); inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { final CheckedTextView checkedText = (CheckedTextView) inflater.inflate(android.R.layout.simple_list_item_multiple_choice, parent, false); final MyCursor myCursor = (MyCursor) cursor; checkedText.setText(myCursor.getDescription()); final Long rowId = rawContactsCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); checkedText.setTag(rowId); checkedText.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // Toggle whether the Row is selected or not. final Long id = (Long) view.getTag(); Log.v(TAG, toggling rowId= + rowId); final boolean checked = rowModel.toggleSelected(id); final CheckedTextView checkedTextView = (CheckedTextView) view; checkedTextView.setChecked(checked); } }); return checkedText; } @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; checkedText.setText(myCursor.getDescription()); final Long rowId = rawContactsCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); checkedText.setTag(rowId); } } -- 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] [ANN]VTD-XML 2.9 (not spam!!)
VTD-XML 2.9, the next generation XML Processing API for SOA and Cloud computing, has been released. Please visit https://sourceforge.net/projects/vtd-xml/files/ to download the latest version. * Strict Conformance #VTD-XML now fully conforms to XML namespace 1.0 spec * Performance Improvement #Significantly improved parsing performance for small XML files * Expand Core VTD-XML API #Adds getPrefixString(), and toNormalizedString2() * Cutting/Splitting #Adds getSiblingElementFragment() * A number of bug fixes and code enhancement including: #Fixes a bug for reading very large XML documents on some platforms #Fixes a bug in parsing processing instruction #Fixes a bug in outputAndReparse() -- 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: Is anyone's active install % dropping like a rock lately?
Aside from app management, the Developer Console is very useful for: 1. Comments (across all languages) - these are updated in real time, even though the numbers (given on the main page) are only updated daily. 2. Errors - analytics usually won't tell you about ANR issues, but this will 3. Download count - its the only place you can get an accurate number for this 4. Active install % - while I don't trust the actual figure given, it does seem to have a strong influence on how high your app will appear in the Market listings Would also like to see a better breakdown of users/devices for the downloads. And also more info on why the user uninstalled. Back to the original question... yes, I've also noticed a bit of a dip in the active install % for my paid apps, though can't be sure exactly when this happened. I also find it hard to believe that so many people buy the app, don't cancel/refund, and then uninstall. On Aug 15, 2:28 am, TreKing treking...@gmail.com wrote: On Sat, Aug 14, 2010 at 6:50 PM, Doug beafd...@gmail.com wrote: Is anyone else seeing this kind of trend in their app? I've seen a drop of a few percentage point over the last few weeks, but nothing that dramatic. There's also been a noticeably higher rate of cancellations. Thanks, Google Checkout! Or maybe I'm placing too much importance on what might be a meaningless number! I think you are - the developer console is useless for pretty much anything besides actually uploading an app (and even that it has trouble with sometimes). That install percent in particular fluctuates so often and so randomly it's hard to imagine it's based on anything legitimate. Worry about the Google Checkout numbers. --- -- 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
Re: [android-developers] Re: App download too less
On Sun, Aug 15, 2010 at 1:04 AM, HIRAK hirak1...@gmail.com wrote: Though the name must be cheesy, but it took me solid efforts to create the jigsaw puzzle logic. I didn't say it didn't. You asked why no one was downloading your app - I'm telling you a big reason is probably the name, plain and simple. So, please don't judge the book from its cover. I'm not judging anything - the masses you distributed your app to are - and they *WILL* judge your book by its cover - or in this case your app by it's title and screenshots. Given the thousands of spam apps titled sexy something that you now appear to be a part of, and given the simplicity of your app, are you really surprised people aren't interested? I promise to create similar games with nice names and nice images of cars, cats etc. Please, please, please - don't make more versions of the same app with just a different name and image(s). There's enough of that nonsense in the Market already. - 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] Problem computing the free space on the external card - only with a single installation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello. My application allow to download files and store them on the external card. To avoid filling it, I've implemented a safety check so it prevents downloading when the free space is less than 20MB. The computation of the free space is done by: public synchronized long getFreeSpace() { if (statFs == null) { statFs = new StatFs(getExternalStorageDirectory().getAbsolutePath()); } return statFs.getAvailableBlocks() * statFs.getBlockSize(); } which I presume is correct. In fact, it works in all my tests and for what I can say for the 99% of users. But a single user notified me that my app is constantly giving the card full message, as if the above method didn't work. He also told me that the problem went away after a while, and returned after upgrading a new release of my app. The user seems an advanced one, and I think he's able to check and correctly manage the contents of his external card. He reported that the card has more than 1.4GB free on the card. Are you aware of any specific issue or bug? The smartphone of the user is a Dell Streak with Android 1.6. Thanks. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxnnlYACgkQeDweFqgUGxcjjACgqoLP3HiHB5r8lsQytu/59Xdb bE8An1t/mt2gKIdisyZc1sI3/lGHp8dh =dZLt -END PGP SIGNATURE- -- 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] Re: Chilling news: Oracle sues Google over Android
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/14/10 23:04 , Sebastián Treu wrote: The problem it's not if Oracle wants to shutdown Android. The problem is how this will *affect* the android platform both acceptance and distribution. Android is new and it's making his way in the market. With this issue on the horizon, how will affect Android to be the choice of phone makers? Will you risk, as a phone maker, to continue supporting Android and distributing it in your phone without knowing what is happening behind the scenes? Good points, but Android has already made its way in the market. The same day Oracle filed the complaint (not a coincidence IMHO) there was the news that Android has passed iPhone in the USA and it's #2 on the USA market. So, it's well consolidated. The Oracle legal issue might certainly make some damage, but it largely depends on how long the trial will go on. I suppose that time is precisely one of the cards that Oracle is playing. If they settle down to an agreement in a relatively short time, we won't be affected by any major problem. So, there are still some months before one should be worried, I think. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxnpDcACgkQeDweFqgUGxcgagCgj82bwFlhqpq0BuyUC2cB9ohp HW8An2zqzHyjRX1inXC8VbBAW1g7qdo2 =bTFY -END PGP SIGNATURE- -- 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] Re: Chilling news: Oracle sues Google over Android
James Gozlin was saying that during discussions with Oracle prior to them taking over Sun that they knew the kind of situation Google was in, and their lawyers' eyes sparkled at the thought of suing Google. Check out the full blog article and the discussion it sparked: http://nighthacks.com/roller/jag/entry/the_shit_finally_hits_the Llies +44(0)7766541551 - Reply message - From: Fabrizio Giudici fabrizio.giud...@tidalwave.it Date: Sat, Aug 14, 2010 15:34 Subject: [android-developers] Re: Chilling news: Oracle sues Google over Android To: android-developers@googlegroups.com Cc: netlander merid...@gmail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/14/10 12:27 , netlander wrote: Now! can anyone (Google guys?) enlighten us on what's the lawsuit about? You can bet that none of Google will talk about this in the mailing lists :-) I suppose only lawyers, spokesmen and some executives will be allowed to talk in the next weeks. My point is that we developers should not be much worried about that. I don't think that Oracle has any real intention to shut down Android, since it's a pot of money. You usually want to have a part of it, or be part of the game, not to destroy it. My principal concerns about Android are the same as one week ago, that is to make my app work at best. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxmqYYACgkQeDweFqgUGxeQQQCgssZ5EBXd5lQQqfC0ZuLNVGZO L6QAoIEWRNQgxbg8mErHgb9Ed23d9ux8 =XOxW -END PGP SIGNATURE- -- 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: Whats first onCreate or the constructor
In java object does not exist until constructor call is complete - so no other methods can be called on it. However, it can be that different constructor was called (default one?) -- 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: #setChecked in CheckedTextView in ListView not working
To those who may follow, if you have a list of CheckedTextView you probably don't want the ListView to have any choice mode. Ie don't set: listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); And then you will be able to handle the checked state in your ListAdapter and wou will also not get #bindView fired a ridiculous number of times. On Aug 15, 5:26 pm, William Ferguson william.ferguson...@gmail.com wrote: OK, further info. As could be seen from #newView, I was handling the onClick on the CheckedTextView myself and this was because I was using a normal Activity instead of a ListActivity. When I switched to a ListActivity, implemented ListActivity#onListItemClick and ditched the OnClickListener code above I noticed 2 things. 1) The CheckedText started staying checked even after scrolling (ie it starting to behave as expected). 2) Every time I toggle a list item, #bindView is being called once for each visible item. Its great that this has made it started working. But a) I don't understand why it wasn't working before b) 2 from above seems pretty wasteful. Why should #bindView be called from all visible items just because one item has been checked/ unchecked? On Aug 15, 4:29 pm, William Ferguson william.ferguson...@gmail.com wrote: Um, sorry, in attempting to simplify the example that I presented to you I didn't manage a full text search and replace. The text for #bindView should have read (and does in the running code) @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; final Long rowId = myCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); checkedText.setText(myCursor.getDescription()); checkedText.setTag(rowId); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); } On Aug 14, 11:15 pm, Paul Turchenko paul.turche...@gmail.com wrote: I believe the issue is that you're getting rowId from rawContactsCursor (bindView method) which stays on the same record. IMO you should get row id from cursor coming to you in bindView. This way you'll get rowId for the record you are currently binding. To be simple, you are binding to the wrong record. On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that just contains a CheckedTextView. I have a very simple CursorAdapter that populates CheckedTextViews. When I click on an item, I can see that I am responding to the correct row, store the value in my model and the CheckedText gets checked. However, when I scroll down and then back up again, while I see that the model contains the correct value (in #bindView), calling #setChecked on the CheckedTextView has no effect. Ie All items are unchecked. Its gotta be something simple, but I can't see it. Any ideas? public final class SimpleAdapter extends CursorAdapter { private static final String TAG = SimpleAdapter; private final LayoutInflater inflater; private final RowModel rowModel = new RowModel(); public SimpleAdapter(Activity context, MyCursor cursor) { super(context, cursor, true); inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { final CheckedTextView checkedText = (CheckedTextView) inflater.inflate(android.R.layout.simple_list_item_multiple_choice, parent, false); final MyCursor myCursor = (MyCursor) cursor; checkedText.setText(myCursor.getDescription()); final Long rowId = rawContactsCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); checkedText.setTag(rowId); checkedText.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // Toggle whether the Row is selected or not. final Long id = (Long) view.getTag(); Log.v(TAG, toggling rowId= + rowId); final boolean checked = rowModel.toggleSelected(id); final CheckedTextView checkedTextView = (CheckedTextView) view; checkedTextView.setChecked(checked); } }); return checkedText; } @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; checkedText.setText(myCursor.getDescription());
[android-developers] Oops, I crashed the phone
The current version of Floating Image (version 2.5.0, code 36) randomly crashes Nexus One phones. Obviously I'm looking into fixing this problem, but I though it would be prudent for me to report this. It's always a problem if you can crash the phone. As I'm working with OpenGL I'm guessing this is the problem, as I'm working directly with the hardware. When the phone crashes it hangs for a couple of minutes, being very chatty in the log, and then reboots. I will post the log after the next crash. Not sure if this will be useful or not, but I thought I ought to report it. :) - Mark -- 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: App download too less
Could anyone use this app and let me know, what is going wrong? It is a free application, so there is no payment involved. I just want to know some feedbacks, what is going wrong. I havn't tried yours, but I imagine there are about a zillion (1z 120k) small puzzle games on the market. Unless you get some kind of promotion, or it's so good that an enthusiastic user starts spreading the word in forums etc you probably won't get more than some hundreds of downloads (like the memory game I threw up a few months ago). Pent -- 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] Re: Is anyone's active install % dropping like a rock lately?
On 15 August 2010 09:40, Mark Carter mjc1...@googlemail.com wrote: Back to the original question... yes, I've also noticed a bit of a dip in the active install % for my paid apps, though can't be sure exactly when this happened. I also find it hard to believe that so many people buy the app, don't cancel/refund, and then uninstall. I did some checks on our stats and I tend to admit there's something wrong with that counter. I see downloads increasing on regular rate but installs go up smaller, at the same time i see no negative comments nor anything that would indicate app failures that could lead to mass uninstall. -- 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] Best way to swap activities
Right now I have 2 activities (A+B) and what I would like is for only 1 of them ever to be on the stack (If A shows B, I want the back button from B to go to the home screen not A). Is their a good way of doing this with activities Or should I change my app to be a bunch of views? -- 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] Best way to swap activities
Sure. Call finish() on the activity you need, after launching the new activity. So in A you'd have: void launchB() { startActivity(new Intent(this, ActivityB.class)); finish(); } And in B: void launchA() { startActivity(new Intent(this, ActivityA.class)); finish(); } 15.08.2010 18:04, dm1973 пишет: Right now I have 2 activities (A+B) and what I would like is for only 1 of them ever to be on the stack (If A shows B, I want the back button from B to go to the home screen not A). Is their a good way of doing this with activities Or should I change my app to be a bunch of views? -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: Oops, I crashed the phone
This is what I get from adb logcat until the phone reboots: I/ActivityManager( 88): Start proc dk.nindroid.rss for activity dk.nindroid.rss/.ShowStreams: pid=6295 uid=10046 gids={3003, 1015} I/global ( 6295): Default buffer size used in BufferedOutputStream constructor. It would be better to be explicit if an 8k buffer is required. D/dalvikvm( 6295): GC_EXTERNAL_ALLOC freed 898 objects / 70704 bytes in 43ms D/dalvikvm( 6295): GC_EXTERNAL_ALLOC freed 268 objects / 13416 bytes in 34ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 4184 objects / 230936 bytes in 48ms V/Floating Image( 6295): 501 files in cache. V/Floating Image( 6295): Old version: 2.5.0, current version: 2.5.0 V/Floating Image( 6295): Resuming main activity D/dalvikvm( 6295): GC_FOR_MALLOC freed 6761 objects / 426352 bytes in 39ms V/Floating Image( 6295): Begin resume... V/Floating Image( 6295): Switching to floating renderer V/Floating Image( 6295): Resume texture bank done... V/Bitmap downloader( 6295): *** Starting asynchronous downloader thread V/Orientation manager( 6295): Resume! V/Floating Image( 6295): End resume... V/Floating Image( 6295): Resetting images V/Floating Image( 6295): Not signed in to Picasa D/libEGL ( 6295): loaded /system/lib/egl/libGLES_android.so D/libEGL ( 6295): loaded /system/lib/egl/libEGL_adreno200.so D/libEGL ( 6295): loaded /system/lib/egl/libGLESv1_CM_adreno200.so D/libEGL ( 6295): loaded /system/lib/egl/libGLESv2_adreno200.so V/Display ( 6295): Display surface changed! V/dk.nindroid.rss.RiverRenderer( 6295): Orientation change received: 0 V/Display ( 6295): Fullscreen is true I/ActivityManager( 88): Displayed activity dk.nindroid.rss/.ShowStreams: 1066 ms (total 1066 ms) V/dk.nindroid.rss.RiverRenderer( 6295): Orientation change received: 2 I/CheckinService( 192): Preparing to send checkin request I/EventLogService( 192): Accumulating logs since 1281881326137 E/Tethering( 88): active iface (usb0) reported as added, ignoring D/BatteryWidget( 483): Updating Views D/dalvikvm( 6295): GC_FOR_MALLOC freed 3732 objects / 397144 bytes in 47ms V/FeedController( 6295): 4 photos found. V/Floating Image( 6295): Showing images from 1 feeds D/dalvikvm( 192): GC_FOR_MALLOC freed 1803 objects / 359704 bytes in 58ms D/NativeCrypto( 192): Freeing OpenSSL session I/CheckinTask( 192): Sending checkin request (4569 bytes) D/dalvikvm( 6295): GC_FOR_MALLOC freed 970 objects / 263552 bytes in 38ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 1038 objects / 226112 bytes in 56ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 515 objects / 236280 bytes in 77ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 733 objects / 225640 bytes in 40ms I/CheckinTask( 192): Checkin success: https://android.clients.google.com/checkin (1 requests sent) I/CheckinService( 192): From server: Intent { act=android.server.checkin.FOTA_CANCEL } D/dalvikvm( 192): GC_FOR_MALLOC freed 4869 objects / 538856 bytes in 76ms D/NativeCrypto( 192): Freeing OpenSSL session D/dalvikvm( 6295): GC_FOR_MALLOC freed 601 objects / 244864 bytes in 43ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 850 objects / 252320 bytes in 45ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 733 objects / 200704 bytes in 49ms D/dalvikvm( 6295): GC_EXTERNAL_ALLOC freed 152 objects / 61448 bytes in 40ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 356 objects / 238848 bytes in 77ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 357 objects / 238944 bytes in 59ms D/dalvikvm( 5388): GC_EXPLICIT freed 217 objects / 11488 bytes in 90ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 352 objects / 238728 bytes in 53ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 352 objects / 238728 bytes in 65ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 352 objects / 238728 bytes in 75ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 352 objects / 238728 bytes in 76ms D/dalvikvm( 6295): GC_FOR_MALLOC freed 352 objects / 238728 bytes in 62ms V/dk.nindroid.rss.RiverRenderer( 6295): Orientation change received: 0 W/KeyCharacterMap( 6295): No keyboard for id 65540 W/KeyCharacterMap( 6295): Using default keymap: /system/usr/keychars/ qwerty.kcm.bin D/MobileDataStateTracker( 88): replacing old mInterfaceName (rmnet0) with rmnet0 for dun D/MobileDataStateTracker( 88): replacing old mInterfaceName (rmnet0) with rmnet0 for hipri D/MobileDataStateTracker( 88): supl Received state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList= * D/MobileDataStateTracker( 88): replacing old mInterfaceName (rmnet0) with rmnet0 for mms D/MobileDataStateTracker( 88): default Received state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList= * D/NetworkLocationProvider( 88): onDataConnectionStateChanged 3 W/SharedBufferStack( 88): waitForCondition(LockCondition) timed out (identity=2, status=0). CPU may be pegged. trying again. W/SharedBufferStack( 88): waitForCondition(LockCondition) timed out (identity=2, status=0). CPU may be pegged. trying again. W/SharedBufferStack( 88): waitForCondition(LockCondition) timed out (identity=2, status=0). CPU may be
Re: [android-developers] Re: App download too less
I must agree with TreKing about making the same application with just some different images. If you want more downloads, change it's name and extend it's functionality. For example add more, way more backgrounds (= puzle images), maybe put together a little campaign with story, make it able to load user images as puzzles etc. 2010/8/15 Pent tas...@dinglisch.net Could anyone use this app and let me know, what is going wrong? It is a free application, so there is no payment involved. I just want to know some feedbacks, what is going wrong. I havn't tried yours, but I imagine there are about a zillion (1z 120k) small puzzle games on the market. Unless you get some kind of promotion, or it's so good that an enthusiastic user starts spreading the word in forums etc you probably won't get more than some hundreds of downloads (like the memory game I threw up a few months ago). Pent -- 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%2bunsubscr...@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: Chilling news: Oracle sues Google over Android
In my opinion the worst outcome would be one where Oracle could extract royalties from Android sales **and** Oracle felt free to do Microsoft-like licensing, where they gave different partners different terms, tied licensing to use of Oracle software, etc. A simple $5-$10 a pop phone license, on the other hand, would be painful but not a killer, and not enough to seriously distort the market. On Aug 15, 3:24 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/14/10 23:04 , Sebasti n Treu wrote: The problem it's not if Oracle wants to shutdown Android. The problem is how this will *affect* the android platform both acceptance and distribution. Android is new and it's making his way in the market. With this issue on the horizon, how will affect Android to be the choice of phone makers? Will you risk, as a phone maker, to continue supporting Android and distributing it in your phone without knowing what is happening behind the scenes? Good points, but Android has already made its way in the market. The same day Oracle filed the complaint (not a coincidence IMHO) there was the news that Android has passed iPhone in the USA and it's #2 on the USA market. So, it's well consolidated. The Oracle legal issue might certainly make some damage, but it largely depends on how long the trial will go on. I suppose that time is precisely one of the cards that Oracle is playing. If they settle down to an agreement in a relatively short time, we won't be affected by any major problem. So, there are still some months before one should be worried, I think. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici -www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iEYEARECAAYFAkxnpDcACgkQeDweFqgUGxcgagCgj82bwFlhqpq0BuyUC2cB9ohp HW8An2zqzHyjRX1inXC8VbBAW1g7qdo2 =bTFY -END PGP SIGNATURE- -- 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] OnCreate does not finish
Hi, I would like to know what is going on with my app and Android system when the onCreate() method in Application class doesn't finish. In onCreate() of the MyApplication extends Application class I have: super.onCreate() //do sth 1 log(1) //do sth 2 log(2) ... Usually when Android is creating the application I see 1 , 2 in my log entries. However a few users have an issue that for 2 days Android is keeping on restarting the app a few times, and always there is only 1 in the log. So the onCreate method hasn't finished. so it must be that while creating the app Android System decided that there are not enough resources for my app. Is my suspicion right? How can I do sth. with this - at least catch and log such an event in a precise and sure way. Thanks for any help, Tomasz Bartczak Automatic Sleep Log. -- 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] Settings.Secure.ANDROID_ID not unique on DROID2?
I'm seeing hundreds (877 at last count) of Froyo equipped devices using our app with the same ANDROID_ID this month. Normally, this ID is a unique thing but now it isn't. I'm guessing this is due to a custom ROM with some invalid settings as the device is a DROID2 and as far as I know, the DROID2 hasn't been released yet. Here's the user agent string: Dalvik/1.2.0 (Linux; U; Android 2.2; DROID2 Build/VZW) Has anyone else run into this problem yet? -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] Re: Application Lock
Hi Sachin, Sorry I couldn't understand. You mean there is already an inbuilt Android settings function that can do this? I have searched for such a setting but couldn't find any, can I know how to access it? It is possible to write an application that will allow user to select camera application for lock and it will make an entry into a database. But when for example the native camera is started how to make sure that it will check against the database before proceeding? Isn't both will be different applications, how to access the same database? Sorry for asking too many questions, I am an Android newbie :) Hope that you will clarify my doubts. Thanks and Regards, Perumal On Aug 13, 4:47 pm, sachin.r...@wipro.com wrote: I think this can be done. In settings application, we need to add privacy lock features to lock the defferent applications. So suppose camera is selected for lock, then this entry has to be maintained in DB. From camera hardware side, 1st function to open the camera is Camera.open(). This function should check for DB entry 1st and then depending on the lock/unlock, return camera handle and error to application who is calling this method. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of perumal316 Sent: Friday, August 13, 2010 1:55 PM To: Android Developers Subject: [android-developers] Application Lock Hi All, I came across an Application in Android Market which locks the use of application. Meaning after locking an application can only unlock it using password. My question is, can this be done for hardware? E.g. Password protect camera for example, so only can unlock it using the same password. While locked, all applications using camera cannot access the camera hardware. Thanks In Advance, Perumal -- 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] Re: Best way to swap activities
Did you try the FLAG_ACTIVITY_NO_HISTORY intent flag ? Here is a nice article about intent flags : http://blog.akquinet.de/2010/04/15/android-activites-and-tasks-series-intent-flags/ Francois On 15 août, 16:04, dm1973 david050...@gmail.com wrote: Right now I have 2 activities (A+B) and what I would like is for only 1 of them ever to be on the stack (If A shows B, I want the back button from B to go to the home screen not A). Is their a good way of doing this with activities Or should I change my app to be a bunch of views? -- 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] Disappearing Alarms
Users are giving me logs showing alarm manager alarms just not going off across many devices and OS versions. I log any calls to the alarm manager. They seem to just disappear into a black hole sometimes. I usually have them chained. One goes off, I do a check, then set another (usually a few hours). They're set by a service. Intent ai = new Intent( this, ReceiverStaticInternal.class ); ai.setAction( Keys.ActionCodes.ACTION_ALARM ); alarmPendingIntent = PendingIntent.getBroadcast( this, 0, ai, PendingIntent.FLAG_CANCEL_CURRENT ); alarmLastTime = some time in the future... alarmManager.set( AlarmManager.RTC_WAKEUP, alarmLastTime, alarmPendingIntent ); I'm checking for alarmLastTime being in the past. Anyone else ? Any ideas ? Pent -- 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] animation is starting with a large black screen....
i am trying to get a slide down animation to work, and it seems to work except that it starts with a big black screen instead of the screen that was there. so I have layout1 and layout2. when I start the animation using ViewFlipper.showNext it puts a big black background over layout1, and then slides in layout2. if I use ViewFlipper.startFlipping() it slides in layout2 out as it is sliding in layout1 -- which is what I would expect. My slide_down.xml looks like this: ?xml version=1.0 encoding=utf-8? set xmlns:android=http://schemas.android.com/apk/res/android; translate android:fromYDelta=0 android:toYDelta=100% android:duration=4000 android:detachWallpaper=true/ /set My java code looks like this: ViewFlipper vf = (ViewFlipper) findViewById(R.id.DropDownList); vf.setAnimation(AnimationUtils.loadAnimation(this, R.anim.slide_down)); vf.showNext();or vf.startFlipping(); 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: App download too less
Okay first off I dont want to hurt your feelings. That being said one possible problem with your app is the actual app's content. If your just going for the numbers you need to think What are Android users looking for in the Market? Are they looking for jigsaw styled games or maybe something more advanced?. Your second problem is in the name Sexy Image Puzzle is a rather long name! You should shorten it to Sexy Puzzles because the fact that it is an image puzzle is an unneeded. It works great and personally I'll keep it for a bit. - Haseren La-Hanesher Productions PS. The dev phone is almost useless for the price unless it is the only way to get one wherever you are. Your better off getting a OTS phone from a carrier. -- 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] position add remove imageview
Guys, I m trying to add remove and position an image but i am not able to. The image always shows up at 0, 0 . I am using an image view to do this. any pointers ? -- 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: Disappearing Alarms
Look for the following log entry: DEBUG/Activity(xx): Process yourappservice (pid:xx) has died In my experience this happens quite a bit on smaller devices. On Aug 15, 8:31 am, Pent tas...@dinglisch.net wrote: Users are giving me logs showing alarm manager alarms just not going off across many devices and OS versions. I log any calls to the alarm manager. They seem to just disappear into a black hole sometimes. I usually have them chained. One goes off, I do a check, then set another (usually a few hours). They're set by a service. Intent ai = new Intent( this, ReceiverStaticInternal.class ); ai.setAction( Keys.ActionCodes.ACTION_ALARM ); alarmPendingIntent = PendingIntent.getBroadcast( this, 0, ai, PendingIntent.FLAG_CANCEL_CURRENT ); alarmLastTime = some time in the future... alarmManager.set( AlarmManager.RTC_WAKEUP, alarmLastTime, alarmPendingIntent ); I'm checking for alarmLastTime being in the past. Anyone else ? Any ideas ? Pent -- 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: Drawing an Image Using OpenGL
See lesson 6: http://insanitydesign.com/wp/projects/nehe-android-ports/ There's also the triangle demo in Android's API demos, although that's just a triangle portion of an image, I think. To show a square image you actually need to map the texture to two triangles that form a square. On Aug 10, 9:54 am, cmh0114 camherrings...@gmail.com wrote: Using OpenGL ES, how do I draw an image from the resources file onto the screen? The image is in png format, if that matters. Thanks! -- 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: Full screen activity
Yes, this is on 2.2. I'll file a bug. Thanks. Peter -- 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: Settings.Secure.ANDROID_ID not unique on DROID2?
Update: It appears the Droid2 has got a mistake in the OS. All Droid2 devices have the same ANDROID_ID: 9774d56d682e549c How in the heck could Motorola and Verizon make such a fatal error? -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] Re: Failed to upload .apk on device
If somebody dealt with this kind of problem, could you give me some advice. I would really appreciate it. Thanks On 12 srp, 14:47, Lukas Adamec luk.ada...@gmail.com wrote: Hi, I have problem with uploading my .apk file on device Highscreen Zeus. In emulator everything works fine, but when I can upload application on the device, I always get following error: [2010-08-12 14:41:25 - BitmapDrawing] Failed to upload BitmapDrawing.apk on device 'ZUSM1M10A02691' [2010-08-12 14:41:25 - BitmapDrawing] java.io.IOException: Unable to upload file: Permission denied [2010-08-12 14:41:25 - BitmapDrawing] Launch canceled! Could somebody advise me, how to solve this problem? Thanks a lot. Lukas -- 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: OnCreate does not finish
What is sth? On Aug 15, 3:57 pm, kretes kretesena...@gmail.com wrote: Hi, I would like to know what is going on with my app and Android system when the onCreate() method in Application class doesn't finish. In onCreate() of the MyApplication extends Application class I have: super.onCreate() //do sth 1 log(1) //do sth 2 log(2) ... Usually when Android is creating the application I see 1 , 2 in my log entries. However a few users have an issue that for 2 days Android is keeping on restarting the app a few times, and always there is only 1 in the log. So the onCreate method hasn't finished. so it must be that while creating the app Android System decided that there are not enough resources for my app. Is my suspicion right? How can I do sth. with this - at least catch and log such an event in a precise and sure way. Thanks for any help, Tomasz Bartczak Automatic Sleep Log. -- 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: htc aria not showing up as a device in eclipse
Either the drivers are not installed, or you haven't enabled the settings for Debug on your phone. -Kumar Bibek http://techdroid.kbeanie.com On Aug 13, 5:57 pm, mhuman1 kthstalli...@gmail.com wrote: Hi, My HTC aria shows up when I run adb devices. It even shows the correct serial number. However, I can't find it as a target in eclipse. I am clicking on Run/Run Configurations. It brings up my project and a target tab. The emulator is the only thing listed, not my HTC aria. Is there another step in setup that I have to do? Thanks, mhuman1 -- 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: Disappearing Alarms
Yeah I was thinking the thing was being killed at first, but I have long-term logs going to SD and I would've seen it happen. Pent On Aug 15, 5:36 pm, JP joachim.pfeif...@gmail.com wrote: Look for the following log entry: DEBUG/Activity(xx): Process yourappservice (pid:xx) has died In my experience this happens quite a bit on smaller devices. On Aug 15, 8:31 am, Pent tas...@dinglisch.net wrote: Users are giving me logs showing alarm manager alarms just not going off across many devices and OS versions. I log any calls to the alarm manager. They seem to just disappear into a black hole sometimes. I usually have them chained. One goes off, I do a check, then set another (usually a few hours). They're set by a service. Intent ai = new Intent( this, ReceiverStaticInternal.class ); ai.setAction( Keys.ActionCodes.ACTION_ALARM ); alarmPendingIntent = PendingIntent.getBroadcast( this, 0, ai, PendingIntent.FLAG_CANCEL_CURRENT ); alarmLastTime = some time in the future... alarmManager.set( AlarmManager.RTC_WAKEUP, alarmLastTime, alarmPendingIntent ); I'm checking for alarmLastTime being in the past. Anyone else ? Any ideas ? Pent -- 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: Failed to upload .apk on device
Can we see your manifest please? On Aug 15, 7:43 pm, Lukas Adamec luk.ada...@gmail.com wrote: If somebody dealt with this kind of problem, could you give me some advice. I would really appreciate it. Thanks On 12 srp, 14:47, Lukas Adamec luk.ada...@gmail.com wrote: Hi, I have problem with uploading my .apk file on device Highscreen Zeus. In emulator everything works fine, but when I can upload application on the device, I always get following error: [2010-08-12 14:41:25 - BitmapDrawing] Failed to upload BitmapDrawing.apk on device 'ZUSM1M10A02691' [2010-08-12 14:41:25 - BitmapDrawing] java.io.IOException: Unable to upload file: Permission denied [2010-08-12 14:41:25 - BitmapDrawing] Launch canceled! Could somebody advise me, how to solve this problem? Thanks a lot. Lukas -- 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: Settings.Secure.ANDROID_ID not unique on DROID2?
have the same ANDROID_ID: 9774d56d682e549c That's not good. This is not going to be fun to work around. That looks like the same ANDROID_ID as here: http://groups.google.com/group/android-developers/browse_thread/thread/f1b229e951114509/bcabfa6b83e153d1#bcabfa6b83e153d1 -seni -- 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] Disappearing Alarms
You sure they're not killing your service with a task killer? On Sun, Aug 15, 2010 at 11:31 AM, Pent tas...@dinglisch.net wrote: Users are giving me logs showing alarm manager alarms just not going off across many devices and OS versions. I log any calls to the alarm manager. They seem to just disappear into a black hole sometimes. I usually have them chained. One goes off, I do a check, then set another (usually a few hours). They're set by a service. Intent ai = new Intent( this, ReceiverStaticInternal.class ); ai.setAction( Keys.ActionCodes.ACTION_ALARM ); alarmPendingIntent = PendingIntent.getBroadcast( this, 0, ai, PendingIntent.FLAG_CANCEL_CURRENT ); alarmLastTime = some time in the future... alarmManager.set( AlarmManager.RTC_WAKEUP, alarmLastTime, alarmPendingIntent ); I'm checking for alarmLastTime being in the past. Anyone else ? Any ideas ? Pent -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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
Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?
So what should be used for the new licensing service on this device? Any ideas? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 15.08.2010 23:20 пользователь Seni Sangrujee sangru...@gmail.com написал: have the same ANDROID_ID: 9774d56d682e549c That's not good. This is not going to be fun to work around. That looks like the same ANDROID_ID as here: http://groups.google.com/group/android-developers/browse_thread/thread/f1b229e951114509/bcabfa6b83e153d1#bcabfa6b83e153d1 -seni -- You received this message because you are subscribed to the Google Groups Android Developers ... -- 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: Problem computing the free space on the external card - only with a single installation
Two possibilities come to mind. First, perhaps the Dell Streak is one of the phones that has more than one set of SD storage, and mounts the true external one on a subirectory under getExternalStorageDirectory(). But the more likely possibility is that the phone has the problem that this reviewer observed, with the storage sometimes not being seen: http://ptech.allthingsd.com/20100811/dells-streak-a-tiny-tablet-that-takes-calls-too/ That would seem to fit the symptoms better -- sometimes it working, sometimes not. On Aug 15, 12:59 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello. My application allow to download files and store them on the external card. To avoid filling it, I've implemented a safety check so it prevents downloading when the free space is less than 20MB. The computation of the free space is done by: public synchronized long getFreeSpace() { if (statFs == null) { statFs = new StatFs(getExternalStorageDirectory().getAbsolutePath()); } return statFs.getAvailableBlocks() * statFs.getBlockSize(); } which I presume is correct. In fact, it works in all my tests and for what I can say for the 99% of users. But a single user notified me that my app is constantly giving the card full message, as if the above method didn't work. He also told me that the problem went away after a while, and returned after upgrading a new release of my app. The user seems an advanced one, and I think he's able to check and correctly manage the contents of his external card. He reported that the card has more than 1.4GB free on the card. Are you aware of any specific issue or bug? The smartphone of the user is a Dell Streak with Android 1.6. Thanks. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici -www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iEYEARECAAYFAkxnnlYACgkQeDweFqgUGxcjjACgqoLP3HiHB5r8lsQytu/59Xdb bE8An1t/mt2gKIdisyZc1sI3/lGHp8dh =dZLt -END PGP SIGNATURE- -- 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] Re: Settings.Secure.ANDROID_ID not unique on DROID2?
On Sun, Aug 15, 2010 at 2:10 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: It appears the Droid2 has got a mistake in the OS. All Droid2 devices have the same ANDROID_ID: 9774d56d682e549c How in the heck could Motorola and Verizon make such a fatal error? I don't think Verizon has much to do with it. Also, bear in mind that CTS-type tests are unlikely to uncover this sort of problem, since they only test one device at a time, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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
Re: [android-developers] Re: #setChecked in CheckedTextView in ListView not working
Actually you want to use CheckedTextView with choiceMode. That's what CheckedTextView is for. However, you should not be calling setChecked from bindView(), but let ListView handle it. The problem was that you were doing ListView's job a second time. You don't need listeners (click on onlistitem), calls to setChecked, etc. On Sun, Aug 15, 2010 at 4:15 AM, William Ferguson william.ferguson...@gmail.com wrote: To those who may follow, if you have a list of CheckedTextView you probably don't want the ListView to have any choice mode. Ie don't set: listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); And then you will be able to handle the checked state in your ListAdapter and wou will also not get #bindView fired a ridiculous number of times. On Aug 15, 5:26 pm, William Ferguson william.ferguson...@gmail.com wrote: OK, further info. As could be seen from #newView, I was handling the onClick on the CheckedTextView myself and this was because I was using a normal Activity instead of a ListActivity. When I switched to a ListActivity, implemented ListActivity#onListItemClick and ditched the OnClickListener code above I noticed 2 things. 1) The CheckedText started staying checked even after scrolling (ie it starting to behave as expected). 2) Every time I toggle a list item, #bindView is being called once for each visible item. Its great that this has made it started working. But a) I don't understand why it wasn't working before b) 2 from above seems pretty wasteful. Why should #bindView be called from all visible items just because one item has been checked/ unchecked? On Aug 15, 4:29 pm, William Ferguson william.ferguson...@gmail.com wrote: Um, sorry, in attempting to simplify the example that I presented to you I didn't manage a full text search and replace. The text for #bindView should have read (and does in the running code) @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; final Long rowId = myCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); checkedText.setText(myCursor.getDescription()); checkedText.setTag(rowId); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); } On Aug 14, 11:15 pm, Paul Turchenko paul.turche...@gmail.com wrote: I believe the issue is that you're getting rowId from rawContactsCursor (bindView method) which stays on the same record. IMO you should get row id from cursor coming to you in bindView. This way you'll get rowId for the record you are currently binding. To be simple, you are binding to the wrong record. On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that just contains a CheckedTextView. I have a very simple CursorAdapter that populates CheckedTextViews. When I click on an item, I can see that I am responding to the correct row, store the value in my model and the CheckedText gets checked. However, when I scroll down and then back up again, while I see that the model contains the correct value (in #bindView), calling #setChecked on the CheckedTextView has no effect. Ie All items are unchecked. Its gotta be something simple, but I can't see it. Any ideas? public final class SimpleAdapter extends CursorAdapter { private static final String TAG = SimpleAdapter; private final LayoutInflater inflater; private final RowModel rowModel = new RowModel(); public SimpleAdapter(Activity context, MyCursor cursor) { super(context, cursor, true); inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { final CheckedTextView checkedText = (CheckedTextView) inflater.inflate(android.R.layout.simple_list_item_multiple_choice, parent, false); final MyCursor myCursor = (MyCursor) cursor; checkedText.setText(myCursor.getDescription()); final Long rowId = rawContactsCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); checkedText.setTag(rowId); checkedText.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { // Toggle whether the Row is selected or not. final Long id = (Long) view.getTag(); Log.v(TAG, toggling rowId= + rowId); final boolean checked = rowModel.toggleSelected(id); final CheckedTextView checkedTextView = (CheckedTextView) view;
[android-developers] Re: Best way to swap activities
FLAG_ACTIVITY_NO_HISTORY doesn't do what I want since I want to be able to switch back. Before I posted I tried the finish and it wasn't working quite right. After thinking about it a bit more, I released that my problem was that the activity I was calling finish on was a Tab Content (not the tab activity) which was causing some issues. Switching it around to call finish on the TabActivity seems to make everything work correctly. On Aug 15, 11:25 am, Francois Masurel fm2...@mably.com wrote: Did you try the FLAG_ACTIVITY_NO_HISTORY intent flag ? Here is a nice article about intent flags : http://blog.akquinet.de/2010/04/15/android-activites-and-tasks-series... Francois On 15 août, 16:04, dm1973 david050...@gmail.com wrote: Right now I have 2 activities (A+B) and what I would like is for only 1 of them ever to be on the stack (If A shows B, I want the back button from B to go to the home screen not A). Is their a good way of doing this with activities Or should I change my app to be a bunch of views? -- 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] Server Error when saving cc info from Android Market
Many of my buyers are getting a Server Error during the purchase process of my app from Android Market. The error occurs only for people who have not purchased from Android Market before and do not have credit card credentials stored in a Google Checkout account. During purchase process from Android Market, users are brought to the screen to enter their credit card info. When they save the data from this page (Done button), they get a Server Error or attention, a server error has occurred. Started happening around August 3rd, 2010, and has been fairly continuous since. Limited response from Google so far, but supposedly they are working on it. There is a convoluted work around, (make sure gmail account is synced to phone, go to checkout.google.com on a PC, enter cc info there, then go back to Market and make the purchase). But Google Checkout and Android Market need to fix this. I suspect the actual error is thrown by Google Checkout, since they are the ones storing the cc info. Developers/Sellers: PLEASE POST IF YOUR BUYERS ARE EXPERIENCING THIS SAME ISSUE. When was the first occurrence? -- 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: Settings.Secure.ANDROID_ID not unique on DROID2?
More on this bizarre error: Here are other devices I see (for the month of August only) that have this probem: 753 DROID2 4 DROIDX 1 European Vogue 2 Full Android on Vogue 90 HTC Desire 15 HTC HD2 1 HTC Vogue FroYo 1 LG-MS690 2 MSM 4 Nexus One 1 boydTouch HD2 2 thunderc Here are the builds: 117 FRF91 2 MASTER 757 VZW Looks like this problem is wider than just Motorola, although it could be the other devices are custom ROM's. -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
Re: [android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?
On Sun, Aug 15, 2010 at 4:47 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Here are other devices I see (for the month of August only) that have this probem: 753 DROID2 4 DROIDX 1 European Vogue 2 Full Android on Vogue 90 HTC Desire 15 HTC HD2 1 HTC Vogue FroYo 1 LG-MS690 2 MSM 4 Nexus One 1 boydTouch HD2 2 thunderc Here are the builds: 117 FRF91 2 MASTER 757 VZW Just to clarify, by this problem you mean having the same ANDROID_ID as others of its model, or having this one magic ANDROID_ID? If the latter...do you distribute your app outside of the Android Market? Looks like this problem is wider than just Motorola, although it could be the other devices are custom ROM's. Custom ROMs would be one possibility -- the ROM mixer might have grabbed the ANDROID_ID value out of the emulator. The reason I asked about distribution is that I seem to recall that ANDROID_ID is somehow tied into Google accounts and the Android Market. I'm wondering if this magic ANDROID_ID is the new default value. If so, devices that are not set up with the Android Market (e.g., emulator) might return this value. That wouldn't explain the DROID2 -- if 100% of DROID2's aren't getting the Market, that'd be *huge* -- but it might explain some of your other ones. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: Sharing data between (tab) activities
I went the database way if anyone else is interested in this matter in future. -- 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] AsyncTask, back button and cancel(boolean)
Hi folks, I'm just wondering what happens to running AsyncTask when the back button is pressed. Doesn't seem to invoke onCancelled or onPostExecute in my AsyncTask. The second thing is I thought that when cancel(true) is invoked inside doInBackground, the onCancelled method should be called, but seems like it doesn't in my implementation (I'm setting an UI message to Cancelled inside onCancelled method so I should be able to see it). When I call cancel(false), onCancelled method is called, but doInBackground continues in execution, what is the convenient way to stop the AsyncTask in onCancelled method? I can somehow sort out the second and third questions (or can live without the answers :) ), but I'm really interested in the first question. Filip Havlicek -- 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] AsyncTask, back button and cancel(boolean)
On Sun, Aug 15, 2010 at 5:37 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: I'm just wondering what happens to running AsyncTask when the back button is pressed. Nothing happens to your AsyncTask when the BACK button is pressed. Doesn't seem to invoke onCancelled or onPostExecute in my AsyncTask. Correct. Bear in mind that AsyncTask does not have to be used by an Activity. It could be used by a Service, for example. When I call cancel(false), onCancelled method is called, but doInBackground continues in execution Correct. Passing false means you do not want to stop the task if it is already started, versus just pending in the work queue. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: App download too less
Should add, though, that if you're doing any sort of true GUI app, especially one with gestures or drag/drop, you MUST test it on a real phone. The emulator is pretty good, but you have no assurance that something you can easily select/move on the emulator will be at all easy on real hardware. Something that's purely text entry and button pushing you can maybe get away with just testing on the emulator, but that doesn't sound like what you built. On Aug 15, 10:59 am, Robert haser...@gmail.com wrote: Okay first off I dont want to hurt your feelings. That being said one possible problem with your app is the actual app's content. If your just going for the numbers you need to think What are Android users looking for in the Market? Are they looking for jigsaw styled games or maybe something more advanced?. Your second problem is in the name Sexy Image Puzzle is a rather long name! You should shorten it to Sexy Puzzles because the fact that it is an image puzzle is an unneeded. It works great and personally I'll keep it for a bit. - Haseren La-Hanesher Productions PS. The dev phone is almost useless for the price unless it is the only way to get one wherever you are. Your better off getting a OTS phone from a carrier. -- 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: OnCreate does not finish
I don't know if it matters, but these are some operations - especially here on Preferences and on SQlite Database, so they need some small amount of processing. On 15 Sie, 20:59, RichardC richard.crit...@googlemail.com wrote: What is sth? On Aug 15, 3:57 pm, kretes kretesena...@gmail.com wrote: Hi, I would like to know what is going on with my app and Android system when the onCreate() method in Application class doesn't finish. In onCreate() of the MyApplication extends Application class I have: super.onCreate() //do sth 1 log(1) //do sth 2 log(2) ... Usually when Android is creating the application I see 1 , 2 in my log entries. However a few users have an issue that for 2 days Android is keeping on restarting the app a few times, and always there is only 1 in the log. So the onCreate method hasn't finished. so it must be that while creating the app Android System decided that there are not enough resources for my app. Is my suspicion right? How can I do sth. with this - at least catch and log such an event in a precise and sure way. Thanks for any help, Tomasz Bartczak Automatic Sleep Log. -- 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] AsyncTask, back button and cancel(boolean)
On Sun, Aug 15, 2010 at 7:43 PM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Aug 15, 2010 at 5:37 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: I'm just wondering what happens to running AsyncTask when the back button is pressed. Nothing happens to your AsyncTask when the BACK button is pressed. Doesn't seem to invoke onCancelled or onPostExecute in my AsyncTask. Correct. Bear in mind that AsyncTask does not have to be used by an Activity. It could be used by a Service, for example. This is right? I mean, I re-write code that I wrote as a Thread/Runnable with an AsyncTask after reading the android dev blog [0]. Should I re-write it again to be a Runnable? [0]: http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html -- If you want freedom, compile the source. Sebastián Treu http://labombiya.com.ar -- 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] AsyncTask, back button and cancel(boolean)
Hi Mark, thanks for your swift reply. I thought my AsyncTask got destroyed somehow, but from your response it seems like just my ProgressDialog got dismissed. Is there a way I can prevent that? I want the computation in AsyncTask to be done before user can interact with the UI again. And second question, can I override the back button somehow so I could catch the call in my AsyncTask and cancel it? Filip Havlicek 2010/8/15 Mark Murphy mmur...@commonsware.com On Sun, Aug 15, 2010 at 5:37 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: I'm just wondering what happens to running AsyncTask when the back button is pressed. Nothing happens to your AsyncTask when the BACK button is pressed. Doesn't seem to invoke onCancelled or onPostExecute in my AsyncTask. Correct. Bear in mind that AsyncTask does not have to be used by an Activity. It could be used by a Service, for example. When I call cancel(false), onCancelled method is called, but doInBackground continues in execution Correct. Passing false means you do not want to stop the task if it is already started, versus just pending in the work queue. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] AsyncTask, back button and cancel(boolean)
On Sun, Aug 15, 2010 at 6:03 PM, Sebastián Treu sebastian.t...@gmail.com wrote: Doesn't seem to invoke onCancelled or onPostExecute in my AsyncTask. Correct. Bear in mind that AsyncTask does not have to be used by an Activity. It could be used by a Service, for example. This is right? I mean, I re-write code that I wrote as a Thread/Runnable with an AsyncTask after reading the android dev blog [0]. Should I re-write it again to be a Runnable? [0]: http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html If you are morally opposed to using code that might be used by a Service, then you may wish to avoid the use of AsyncTask. Otherwise, I fail to see why the fact that AsyncTask can be used by both activities and services would be a problem for you. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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
Re: [android-developers] AsyncTask, back button and cancel(boolean)
On Sun, Aug 15, 2010 at 6:13 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: thanks for your swift reply. I thought my AsyncTask got destroyed somehow, but from your response it seems like just my ProgressDialog got dismissed. Is there a way I can prevent that? Prevent what? I want the computation in AsyncTask to be done before user can interact with the UI again. Personally, I would recommend you design a UI that works both with and without the results of the computation. And second question, can I override the back button somehow so I could catch the call in my AsyncTask and cancel it? onBackPressed() (Android 2.x) and onKeyDown (Android 1.x) can be used to intercept the BACK button. That being said, you should consider whether you really should be implementing onPause() or onStop() instead, since there are more scenarios than merely the BACK button (e.g., HOME button). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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
Re: [android-developers] AsyncTask, back button and cancel(boolean)
The UI works without the results, although I'm worried about other scenarios. The AsyncTask takes let's say 30 seconds to complete, it's invoked in first tab and the results are displayed in second and third tab. If user dismisses the ProgressDialog, he can of course navigate to second or third tab. But if the tab is displayed when AsyncTask completes, the results aren't displayed unless there is some refresh of the tab activity (ie onResume or onCreate). Is there a way to asynchronously update the tab's content upon AsyncTask's completion? For example using Intents? (I'm still not confident about using these in some larger scale than startActivity/startActivityForResult). (About the first question, I thought about preventing the ProgressDialog being dismissed by user pressing BACK button.) 2010/8/16 Mark Murphy mmur...@commonsware.com On Sun, Aug 15, 2010 at 6:13 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: thanks for your swift reply. I thought my AsyncTask got destroyed somehow, but from your response it seems like just my ProgressDialog got dismissed. Is there a way I can prevent that? Prevent what? I want the computation in AsyncTask to be done before user can interact with the UI again. Personally, I would recommend you design a UI that works both with and without the results of the computation. And second question, can I override the back button somehow so I could catch the call in my AsyncTask and cancel it? onBackPressed() (Android 2.x) and onKeyDown (Android 1.x) can be used to intercept the BACK button. That being said, you should consider whether you really should be implementing onPause() or onStop() instead, since there are more scenarios than merely the BACK button (e.g., HOME button). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] AsyncTask, back button and cancel(boolean)
On Sun, Aug 15, 2010 at 6:32 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: The AsyncTask takes let's say 30 seconds to complete, it's invoked in first tab and the results are displayed in second and third tab. If user dismisses the ProgressDialog, he can of course navigate to second or third tab. But if the tab is displayed when AsyncTask completes, the results aren't displayed unless there is some refresh of the tab activity (ie onResume or onCreate). If you don't use activities as the contents of your tabs, but instead use views, this becomes much simpler. Is there a way to asynchronously update the tab's content upon AsyncTask's completion? If you don't use activities as the contents of your tabs, but instead use views, you just update the views, no different than if you didn't have tabs in the first place. (About the first question, I thought about preventing the ProgressDialog being dismissed by user pressing BACK button.) Oh. AFAIK, the ProgressDialog itself handles its BACK button. Call setCancelable() on the ProgressDialog to adjust its behavior. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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
Re: [android-developers] AsyncTask, back button and cancel(boolean)
Oh. AFAIK, the ProgressDialog itself handles its BACK button. Call setCancelable() on the ProgressDialog to adjust its behavior. Oh, actually overlooked this one while reading the documentation, my bad. Yes, that did the trick I wanted, thanks a lot for your help. The discussion about AsyncTask actually helped me understand it better, thanks a lot. Filip Havlicek 2010/8/16 Mark Murphy mmur...@commonsware.com On Sun, Aug 15, 2010 at 6:32 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: The AsyncTask takes let's say 30 seconds to complete, it's invoked in first tab and the results are displayed in second and third tab. If user dismisses the ProgressDialog, he can of course navigate to second or third tab. But if the tab is displayed when AsyncTask completes, the results aren't displayed unless there is some refresh of the tab activity (ie onResume or onCreate). If you don't use activities as the contents of your tabs, but instead use views, this becomes much simpler. Is there a way to asynchronously update the tab's content upon AsyncTask's completion? If you don't use activities as the contents of your tabs, but instead use views, you just update the views, no different than if you didn't have tabs in the first place. (About the first question, I thought about preventing the ProgressDialog being dismissed by user pressing BACK button.) Oh. AFAIK, the ProgressDialog itself handles its BACK button. Call setCancelable() on the ProgressDialog to adjust its behavior. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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.comandroid-developers%2bunsubscr...@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: Settings.Secure.ANDROID_ID not unique on DROID2?
My apps are distributed strictly through the Android market. All the devices I listed have the same exact ANDROID_ID. -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] Re: Emulator bug drawing lines on GLSurfaceView
IV - thanks for your response. You are correct that if LINE_SMOOTH is disabled, the bug does not show up. An important point is the all the lines in this example have the same slope (0) and yet their width varies - with the position of the X coordinates. That is a very odd result, that I don't think can be explained as an artifact of emulation (an in a philosophical sense, if the emulator can produce a display that far off, it just isn't emulating very well in any case) However, I tried your suggestion - I multiplied the second Y coordinate by a variable (tried 1.1 and 1.5). In both cases, the slope is visibly not 0, and the width of the overly wide lines is narrower, but still WAY too wide. -- 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] Freelance game designers / illustrators for game development team
Hi all, I'm the team leader of a small Android development team here in London. We're developing Android games on our spare time and always aim Top 100 in both paid free versions. We need a new friend to join our team that will be holding one or more of these roles: - game designer - art director - illustrator / graph - animation designer We need someone who - is definitely a gamer that loves playing / developing games - will be responsible of all art work of the game. That is screen UI designs, illustrations, animations, modelling etc. - will be willing to work with a revenue-share model. That simply means we'll be sharing both success and failure. - has an idea about common properties of best selling games. They're in Top 100 for some reason. We should always aim Top 100 as well. Hope I could make myself clear. Please send private messages and I'll provide you all details! Thanks in advance. Kind regards. -- 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: Chilling news: Oracle sues Google over Android
But that is exactly why it is so much in Google's interest to attack those weak patents in Court -- and overturn them. Make no mistake about it: most software patents are weak. As Knuth has pointed out at http://eupat.ffii.org/gasnu/knuth/index.en.html and elsewhere, most of them fail to meet the criterion of being non- obvious. Rather, Knuth expects his CS students to be able to solve such problems as homework problems. Now let's not forget: Knuth is still Professor Emiritus at Stanford, where a LOT of Google guys come from. So I am sure they understand quite well why Knuth is right. All we need now is the precedent in Court to get it into case law. But this lawsuit is perfect for setting this precedent. That is why I have been saying since I first heard of this suit: Oracle has made a major mistake, attacking one of the few companies with both the resources and the will to defeat Oracle in Court. On Aug 15, 7:46 am, DanH danhi...@ieee.org wrote: In my opinion the worst outcome would be one where Oracle could extract royalties from Android sales **and** Oracle felt free to do Microsoft-like licensing, where they gave different partners different terms, tied licensing to use of Oracle software, etc. A simple $5-$10 a pop phone license, on the other hand, would be painful but not a killer, and not enough to seriously distort the market. On Aug 15, 3:24 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/14/10 23:04 , Sebasti n Treu wrote: The problem it's not if Oracle wants to shutdown Android. The problem is how this will *affect* the android platform both acceptance and distribution. Android is new and it's making his way in the market. With this issue on the horizon, how will affect Android to be the choice of phone makers? Will you risk, as a phone maker, to continue supporting Android and distributing it in your phone without knowing what is happening behind the scenes? Good points, but Android has already made its way in the market. The same day Oracle filed the complaint (not a coincidence IMHO) there was the news that Android has passed iPhone in the USA and it's #2 on the USA market. So, it's well consolidated. The Oracle legal issue might certainly make some damage, but it largely depends on how long the trial will go on. I suppose that time is precisely one of the cards that Oracle is playing. If they settle down to an agreement in a relatively short time, we won't be affected by any major problem. So, there are still some months before one should be worried, I think. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici -www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iEYEARECAAYFAkxnpDcACgkQeDweFqgUGxcgagCgj82bwFlhqpq0BuyUC2cB9ohp HW8An2zqzHyjRX1inXC8VbBAW1g7qdo2 =bTFY -END PGP SIGNATURE- -- 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] Custom Quick Search Box
Hello all, I'm developing an application that uses quick search box. Is there a way to customize it ? how to add additional button and use custom image for its background like in Twitter ? Thanx in advance -- Kind Regards - Lorensius W. L. T - - http://www.londatiga.net - -- 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: about handle the home key
They did it by cheating, e.g., not relying on a publicly documented API in the SDK. Don't do this. After all, not only is is really poor UI design, but when you stray outside the publicly documented API, you are using unsupported features which may change or disappear in the next release of Android. And yes, it is really poor UI design. The user EXPECTS the home key to work -- just as it does in the overwhelming majority of Android apps, whether Google or third party. On Aug 13, 9:49 am, 李实 lishi1...@gmail.com wrote: thank for response. but in fact ,some android apps like 'wave scure' and 'Toddler Lock' already did this! and I haven't tried lock 2.0, it probably disable too. so I think there must be some method and I'm seeking. 2010/8/13 Mathias Lin m...@mathiaslin.com: You cannot disable the home button via SDK. See http://www.mail-archive.com/android-developers@googlegroups.com/msg52... On Aug 13, 9:19 am, 李实 lishi1...@gmail.com wrote: thank you for help,but you may mistake me. what I really want to do is to disable the home key,when my activity is running . and the code in the xml is my attempt. when home is pressed,then android probably sent an intent home. in my activity,android find it has HOME category,so it does nothing,so the home key is disabled . As i wrote,it works in AVD but not in a SAMSUMG phone. I wonder if there is other way to kick the goal. 2010/8/12 Mathias Lin m...@mathiaslin.com I do the same on a Samsung Galaxy S with 2.1update1 and 2.2 without a problem. The approach you described is correct. My intent filter looks similar: intent-filter action android:name=android.intent.action.MAIN/ category android:name=android.intent.category.LAUNCHER/ category android:name=android.intent.category.HOME/ category android:name=android.intent.category.DEFAULT/ /intent-filter When you press the home button first, you should get a dialog where to choose the home application to use, which is where the user can optionally tick a checkbox to set the selected app as the default home screen, so that the dialog won't show again. So, this dialog only comes up on the emulator but never appeared on your real phone? On Aug 8, 12:47 pm, ʵ lishi1...@gmail.com wrote: I'm working on a slide-unlock program and I want it take the place of Android KeyguardLock. there is one last thing todo.it's the home key. I google it and found we cannnot handle it as the other keys with onkeydown,dispatchkeyevent method. so I add this action android:name=android.intent.action.MAIN / category android:name=android.intent.category.HOME / category android:name=android.intent.category.DEFAULT / to activity. It does works on AVD! I think Android receive home intent when home key is pressed ,then it try to find someone to handle the intent.it found two can handle this.And one of the two happens to my program and my program is on.so it send the intent to my program .So,the home key is disabled when my program is running. But,it does not work on a samsung true phone!! what can I do,is there any other way to make it?? thanks! Simon Lee -- 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 -- execuse me for my poor English -- 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 -- execuse me for my poor English -- 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 write ContentProvider for content not stored in a file nor DB?
Expect to override a lot more methods in ContentProvider and ContentResolver than other people do. You may want to look at the example WidgetExplorer from Unlocking Android. Go to the book's website, download the sample code and look in the code for chapter 5. I suggest this example because here too, the authors override more methods than usual because they are making their own ContentProvider. But of course, the example will not be exactly the same as what you want. On Aug 12, 2:45 pm, Sergey serge...@gmail.com wrote: Hi, I need to write a ContentProvider to provide a dynamically generated audio stream to be playable by MediaPlayer. That is MediaPlayer will use ContentResolver.openInputStream() to play it. I have read a lot of discussions about this problem but no one had a solution yet. The most recent one was in January 2010:http://groups.google.com/group/android-developers/browse_thread/threa... Have anyone found a solution yet? Any ideas are greatly appreciated. Thanks a lot, --Sergey -- 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] Accessing Calendars Synched from MS Outlook
It's my understanding that the Google Calendar API is yet undocumented, although it's pretty obvious how to get at them if you use the correct query string. When I query content://calendar/events I get access to a ton of Calendars, but I noticed that the Calendar I've synched from my MS Outlook aren't showing up. Does anyone know how to get access to this data? The server the Calendars originally came from is no longer available to me, but I can see all the events on my phone via the Calendars app. The MS Outlook server requires authentication but I figured that it isn't necessary to authenticate locally, but perhaps my Calendar API query requires some similar form of authentication? Please assist. -- 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: Chilling news: Oracle sues Google over Android
Having written 13 software patents, I'm well aware that many are very weak, or, if not weak, very narrow. But proving all that in a court of law is the trick -- the presumption is that the patent, having been cleared by the patent office, is valid. (I'd have several more patents if it weren't for the ones the PO rejected because of supposed prior art, even though the quoted prior art had no relation to the area of my applications.) On Aug 15, 8:03 pm, Indicator Veritatis mej1...@yahoo.com wrote: But that is exactly why it is so much in Google's interest to attack those weak patents in Court -- and overturn them. Make no mistake about it: most software patents are weak. As Knuth has pointed out athttp://eupat.ffii.org/gasnu/knuth/index.en.htmland elsewhere, most of them fail to meet the criterion of being non- obvious. Rather, Knuth expects his CS students to be able to solve such problems as homework problems. Now let's not forget: Knuth is still Professor Emiritus at Stanford, where a LOT of Google guys come from. So I am sure they understand quite well why Knuth is right. All we need now is the precedent in Court to get it into case law. But this lawsuit is perfect for setting this precedent. That is why I have been saying since I first heard of this suit: Oracle has made a major mistake, attacking one of the few companies with both the resources and the will to defeat Oracle in Court. On Aug 15, 7:46 am, DanH danhi...@ieee.org wrote: In my opinion the worst outcome would be one where Oracle could extract royalties from Android sales **and** Oracle felt free to do Microsoft-like licensing, where they gave different partners different terms, tied licensing to use of Oracle software, etc. A simple $5-$10 a pop phone license, on the other hand, would be painful but not a killer, and not enough to seriously distort the market. On Aug 15, 3:24 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/14/10 23:04 , Sebasti n Treu wrote: The problem it's not if Oracle wants to shutdown Android. The problem is how this will *affect* the android platform both acceptance and distribution. Android is new and it's making his way in the market. With this issue on the horizon, how will affect Android to be the choice of phone makers? Will you risk, as a phone maker, to continue supporting Android and distributing it in your phone without knowing what is happening behind the scenes? Good points, but Android has already made its way in the market. The same day Oracle filed the complaint (not a coincidence IMHO) there was the news that Android has passed iPhone in the USA and it's #2 on the USA market. So, it's well consolidated. The Oracle legal issue might certainly make some damage, but it largely depends on how long the trial will go on. I suppose that time is precisely one of the cards that Oracle is playing. If they settle down to an agreement in a relatively short time, we won't be affected by any major problem. So, there are still some months before one should be worried, I think. - -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici -www.tidalwave.it/people fabrizio.giud...@tidalwave.it -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iEYEARECAAYFAkxnpDcACgkQeDweFqgUGxcgagCgj82bwFlhqpq0BuyUC2cB9ohp HW8An2zqzHyjRX1inXC8VbBAW1g7qdo2 =bTFY -END PGP SIGNATURE- -- 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] Re: about handle the home key
thank you for response. yes,they cheated. before 2.1,there is an easy way do disable home user the packagemanager, set the default home intent handler to the special activity. so when home is pressed ,android does nothing. but in later version of android ,it's not useful any more. I think we will never know what users expect. And there must be some users who want to replace the default keyguard. so they want home key to be disabled. it's just one example. also the status bar can't be disabled too.I wonder why. statusbarmanager is not open to developers. anyhow,I still want to cheat to disabled the home,any way? thanks again!! 2010/8/16 Indicator Veritatis mej1...@yahoo.com: They did it by cheating, e.g., not relying on a publicly documented API in the SDK. Don't do this. After all, not only is is really poor UI design, but when you stray outside the publicly documented API, you are using unsupported features which may change or disappear in the next release of Android. And yes, it is really poor UI design. The user EXPECTS the home key to work -- just as it does in the overwhelming majority of Android apps, whether Google or third party. On Aug 13, 9:49 am, 李实 lishi1...@gmail.com wrote: thank for response. but in fact ,some android apps like 'wave scure' and 'Toddler Lock' already did this! and I haven't tried lock 2.0, it probably disable too. so I think there must be some method and I'm seeking. 2010/8/13 Mathias Lin m...@mathiaslin.com: You cannot disable the home button via SDK. See http://www.mail-archive.com/android-developers@googlegroups.com/msg52... On Aug 13, 9:19 am, 李实 lishi1...@gmail.com wrote: thank you for help,but you may mistake me. what I really want to do is to disable the home key,when my activity is running . and the code in the xml is my attempt. when home is pressed,then android probably sent an intent home. in my activity,android find it has HOME category,so it does nothing,so the home key is disabled . As i wrote,it works in AVD but not in a SAMSUMG phone. I wonder if there is other way to kick the goal. 2010/8/12 Mathias Lin m...@mathiaslin.com I do the same on a Samsung Galaxy S with 2.1update1 and 2.2 without a problem. The approach you described is correct. My intent filter looks similar: intent-filter action android:name=android.intent.action.MAIN/ category android:name=android.intent.category.LAUNCHER/ category android:name=android.intent.category.HOME/ category android:name=android.intent.category.DEFAULT/ /intent-filter When you press the home button first, you should get a dialog where to choose the home application to use, which is where the user can optionally tick a checkbox to set the selected app as the default home screen, so that the dialog won't show again. So, this dialog only comes up on the emulator but never appeared on your real phone? On Aug 8, 12:47 pm, ʵ lishi1...@gmail.com wrote: I'm working on a slide-unlock program and I want it take the place of Android KeyguardLock. there is one last thing todo.it's the home key. I google it and found we cannnot handle it as the other keys with onkeydown,dispatchkeyevent method. so I add this action android:name=android.intent.action.MAIN / category android:name=android.intent.category.HOME / category android:name=android.intent.category.DEFAULT / to activity. It does works on AVD! I think Android receive home intent when home key is pressed ,then it try to find someone to handle the intent.it found two can handle this.And one of the two happens to my program and my program is on.so it send the intent to my program .So,the home key is disabled when my program is running. But,it does not work on a samsung true phone!! what can I do,is there any other way to make it?? thanks! Simon Lee -- 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 -- execuse me for my poor English -- 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 -- execuse me for my poor English -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this
[android-developers] Re: #setChecked in CheckedTextView in ListView not working
OK, there's a good chance I'm missing something but 1) I don't see anyway to configure choiceMode for a CHeckedTxtView iether programatically or via the layout file. 2) I most definitely DO need to call #setChecked in #bindView because otherwise the CheckedTextViews remain checked even even after the cursor for the ListAdapter has been changed (which is possible in this scenario via user choice). If you have a single cursor feeding your ListAdapter you'll never notice it, but as soon as you switch between different lists of data (and have some memory of user selection on that data) you have to be able to set the checked value on the CheckedTextView based upon the row and rowModel. On Aug 16, 6:22 am, Romain Guy romain...@android.com wrote: Actually you want to use CheckedTextView with choiceMode. That's what CheckedTextView is for. However, you should not be calling setChecked from bindView(), but let ListView handle it. The problem was that you were doing ListView's job a second time. You don't need listeners (click on onlistitem), calls to setChecked, etc. On Sun, Aug 15, 2010 at 4:15 AM, William Ferguson william.ferguson...@gmail.com wrote: To those who may follow, if you have a list of CheckedTextView you probably don't want the ListView to have any choice mode. Ie don't set: listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); And then you will be able to handle the checked state in your ListAdapter and wou will also not get #bindView fired a ridiculous number of times. On Aug 15, 5:26 pm, William Ferguson william.ferguson...@gmail.com wrote: OK, further info. As could be seen from #newView, I was handling the onClick on the CheckedTextView myself and this was because I was using a normal Activity instead of a ListActivity. When I switched to a ListActivity, implemented ListActivity#onListItemClick and ditched the OnClickListener code above I noticed 2 things. 1) The CheckedText started staying checked even after scrolling (ie it starting to behave as expected). 2) Every time I toggle a list item, #bindView is being called once for each visible item. Its great that this has made it started working. But a) I don't understand why it wasn't working before b) 2 from above seems pretty wasteful. Why should #bindView be called from all visible items just because one item has been checked/ unchecked? On Aug 15, 4:29 pm, William Ferguson william.ferguson...@gmail.com wrote: Um, sorry, in attempting to simplify the example that I presented to you I didn't manage a full text search and replace. The text for #bindView should have read (and does in the running code) @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; final Long rowId = myCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); checkedText.setText(myCursor.getDescription()); checkedText.setTag(rowId); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); } On Aug 14, 11:15 pm, Paul Turchenko paul.turche...@gmail.com wrote: I believe the issue is that you're getting rowId from rawContactsCursor (bindView method) which stays on the same record. IMO you should get row id from cursor coming to you in bindView. This way you'll get rowId for the record you are currently binding. To be simple, you are binding to the wrong record. On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that just contains a CheckedTextView. I have a very simple CursorAdapter that populates CheckedTextViews. When I click on an item, I can see that I am responding to the correct row, store the value in my model and the CheckedText gets checked. However, when I scroll down and then back up again, while I see that the model contains the correct value (in #bindView), calling #setChecked on the CheckedTextView has no effect. Ie All items are unchecked. Its gotta be something simple, but I can't see it. Any ideas? public final class SimpleAdapter extends CursorAdapter { private static final String TAG = SimpleAdapter; private final LayoutInflater inflater; private final RowModel rowModel = new RowModel(); public SimpleAdapter(Activity context, MyCursor cursor) { super(context, cursor, true); inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { final CheckedTextView checkedText = (CheckedTextView) inflater.inflate(android.R.layout.simple_list_item_multiple_choice,
Re: [android-developers] Re: #setChecked in CheckedTextView in ListView not working
1) I don't see anyway to configure choiceMode for a CHeckedTxtView iether programatically or via the layout file. choiceMode is set on ListView, not on the CheckedTextView. For instance: http://d.android.com/reference/android/widget/ListView.html#setItemChecked(int, boolean) 2) I most definitely DO need to call #setChecked in #bindView because otherwise the CheckedTextViews remain checked even even after the cursor for the ListAdapter has been changed (which is possible in this scenario via user choice). If you have a single cursor feeding your ListAdapter you'll never notice it, but as soon as you switch between different lists of data (and have some memory of user selection on that data) you have to be able to set the checked value on the CheckedTextView based upon the row and rowModel. Use ListView's various choiceMode related methods to do this. You can On Aug 16, 6:22 am, Romain Guy romain...@android.com wrote: Actually you want to use CheckedTextView with choiceMode. That's what CheckedTextView is for. However, you should not be calling setChecked from bindView(), but let ListView handle it. The problem was that you were doing ListView's job a second time. You don't need listeners (click on onlistitem), calls to setChecked, etc. On Sun, Aug 15, 2010 at 4:15 AM, William Ferguson william.ferguson...@gmail.com wrote: To those who may follow, if you have a list of CheckedTextView you probably don't want the ListView to have any choice mode. Ie don't set: listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); And then you will be able to handle the checked state in your ListAdapter and wou will also not get #bindView fired a ridiculous number of times. On Aug 15, 5:26 pm, William Ferguson william.ferguson...@gmail.com wrote: OK, further info. As could be seen from #newView, I was handling the onClick on the CheckedTextView myself and this was because I was using a normal Activity instead of a ListActivity. When I switched to a ListActivity, implemented ListActivity#onListItemClick and ditched the OnClickListener code above I noticed 2 things. 1) The CheckedText started staying checked even after scrolling (ie it starting to behave as expected). 2) Every time I toggle a list item, #bindView is being called once for each visible item. Its great that this has made it started working. But a) I don't understand why it wasn't working before b) 2 from above seems pretty wasteful. Why should #bindView be called from all visible items just because one item has been checked/ unchecked? On Aug 15, 4:29 pm, William Ferguson william.ferguson...@gmail.com wrote: Um, sorry, in attempting to simplify the example that I presented to you I didn't manage a full text search and replace. The text for #bindView should have read (and does in the running code) @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; final Long rowId = myCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); checkedText.setText(myCursor.getDescription()); checkedText.setTag(rowId); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); } On Aug 14, 11:15 pm, Paul Turchenko paul.turche...@gmail.com wrote: I believe the issue is that you're getting rowId from rawContactsCursor (bindView method) which stays on the same record. IMO you should get row id from cursor coming to you in bindView. This way you'll get rowId for the record you are currently binding. To be simple, you are binding to the wrong record. On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that just contains a CheckedTextView. I have a very simple CursorAdapter that populates CheckedTextViews. When I click on an item, I can see that I am responding to the correct row, store the value in my model and the CheckedText gets checked. However, when I scroll down and then back up again, while I see that the model contains the correct value (in #bindView), calling #setChecked on the CheckedTextView has no effect. Ie All items are unchecked. Its gotta be something simple, but I can't see it. Any ideas? public final class SimpleAdapter extends CursorAdapter { private static final String TAG = SimpleAdapter; private final LayoutInflater inflater; private final RowModel rowModel = new RowModel(); public SimpleAdapter(Activity context, MyCursor cursor) { super(context, cursor, true); inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); } @Override public View
[android-developers] Re: Strange Issue with Return String from Web Service
Please see: http://groups.google.com/group/android-developers/browse_thread/thread/d25a94dc3b92cd84/b4bbf23336c44341#b4bbf23336c44341 On Aug 14, 2:39 am, Tommy droi...@gmail.com wrote: Hi everyone, I have a strange issue. I am using KSOAP2 to create a soap request to a .net webservice. I do this in a few other places and everything works fine. The webservice basically queries a data base and takes the values from the data reader and creates a string. This string is then returned. When I run the webservice on my local machine(Without using android) it works fine. When I run it from the webserver (still not android) it works fine. When I call it from my phone however the line: String hazards = (String)envelope.getResponse().toString(); //Get response from .net Web service Simply is filled with anyType{}. Now if I go to the webservice and I manually type in the contents from the database to represent what the string concatenation should be it works perfectly. The line: String hazards = (String)envelope.getResponse().toString(); //Get response from .net Web service Now returns the string value i need. Does anyone have any idea why this is happening or know a better place to ask this question? As always thanks for your time and help -- 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] Re: Failed to upload .apk on device
AndroidManifest.xml: ?xml version=1.0 encoding=utf-8 ? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=cz.xadamec1.apps.bitmap android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name android:debuggable=true activity android:name=.BitmapDrawing android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / /manifest On 15 srp, 21:13, RichardC richard.crit...@googlemail.com wrote: Can we see your manifest please? On Aug 15, 7:43 pm, LukasAdamecluk.ada...@gmail.com wrote: If somebody dealt with this kind of problem, could you give me some advice. I would really appreciate it. Thanks On 12 srp, 14:47, LukasAdamecluk.ada...@gmail.com wrote: Hi, I have problem with uploading my .apk file on device Highscreen Zeus. In emulator everything works fine, but when I can upload application on the device, I always get following error: [2010-08-12 14:41:25 - BitmapDrawing] Failed to upload BitmapDrawing.apk on device 'ZUSM1M10A02691' [2010-08-12 14:41:25 - BitmapDrawing] java.io.IOException: Unable to upload file: Permission denied [2010-08-12 14:41:25 - BitmapDrawing] Launch canceled! Could somebody advise me, how to solve this problem? Thanks a lot. Lukas -- 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: Settings.Secure.ANDROID_ID not unique on DROID2?
So prior to this month, there were no duplicate ANDROID_IDs? With pre- Froyo devices? On Aug 15, 1:47 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: More on this bizarre error: Here are other devices I see (for the month of August only) that have this probem: 753 DROID2 4 DROIDX 1 European Vogue 2 Full Android on Vogue 90 HTC Desire 15 HTC HD2 1 HTC Vogue FroYo 1 LG-MS690 2 MSM 4 Nexus One 1 boydTouch HD2 2 thunderc Here are the builds: 117 FRF91 2 MASTER 757 VZW Looks like this problem is wider than just Motorola, although it could be the other devices are custom ROM's. -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] Re: Bind the pushpin on image
Thanks Frank. I just forgot basic thing. How can I forgot this. At last its done Thanks for the help. Its working fine now. Thanks, Beena On Aug 14, 10:52 pm, Frank Weiss fewe...@gmail.com wrote: I think I see the problem in your code. The view hierarchy is: sv (abl (layout(iv), iv1)) where sv is a ScrollView and layout is a HorizontalScrollView. Which one actually does the scrolling? Have you tried this view hierarchy: sv (abl (layout(iv, iv1))) -- 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: Settings.Secure.ANDROID_ID not unique on DROID2?
So prior to this month, there were no duplicate ANDROID_IDs? With pre- Froyo devices? I can't say there were or weren't any duplicates pre-Froyo. I can say that every Droid2 that has downloaded my app Radar Now! has the same ANDROID_ID. -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] persistence storage...........
i wan,t my app database remains in phone even after uninstallation .for activation code or something like that... what should i use for that thanks -- A N K ! T.. -- 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] Re: about handle the home key
I assume you intend to have people download this app from the Android Market. If so, what's to keep ANY Android app on Market from disabling the Home key? -- 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] Re: Bind the pushpin on image
It's gratifying to hear that I helped you. Thanks! -- 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] AsyncTask, back button and cancel(boolean)
You might want to try using BroadcastReceivers for that scenario. AsyncTask fires off an intent signaling that operation has been completed with the information on how to obtain the data or include the data in the intent. And have each tab activity register a common receiver to handle the intent. On Sun, Aug 15, 2010 at 3:32 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: The UI works without the results, although I'm worried about other scenarios. The AsyncTask takes let's say 30 seconds to complete, it's invoked in first tab and the results are displayed in second and third tab. If user dismisses the ProgressDialog, he can of course navigate to second or third tab. But if the tab is displayed when AsyncTask completes, the results aren't displayed unless there is some refresh of the tab activity (ie onResume or onCreate). Is there a way to asynchronously update the tab's content upon AsyncTask's completion? For example using Intents? (I'm still not confident about using these in some larger scale than startActivity/startActivityForResult). (About the first question, I thought about preventing the ProgressDialog being dismissed by user pressing BACK button.) 2010/8/16 Mark Murphy mmur...@commonsware.com On Sun, Aug 15, 2010 at 6:13 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: thanks for your swift reply. I thought my AsyncTask got destroyed somehow, but from your response it seems like just my ProgressDialog got dismissed. Is there a way I can prevent that? Prevent what? I want the computation in AsyncTask to be done before user can interact with the UI again. Personally, I would recommend you design a UI that works both with and without the results of the computation. And second question, can I override the back button somehow so I could catch the call in my AsyncTask and cancel it? onBackPressed() (Android 2.x) and onKeyDown (Android 1.x) can be used to intercept the BACK button. That being said, you should consider whether you really should be implementing onPause() or onStop() instead, since there are more scenarios than merely the BACK button (e.g., HOME button). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 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 -- 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] On screen orientation changes activity restarted.
Hi everybody, I know on screen orientation changes activity restarted, but suppose i don't want to restart the activity then what should I do? I had tried it by adding in manifest.xml. android:configChanges=keyboardHidden|orientation and override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } But still activity restarted each time when I change screen orientation. How to resolve this issue? 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] Re: persistence storage...........
Store the database on the external storage instead of as part of your app. On Aug 16, 2:46 pm, A N K ! T ankit.awasth...@gmail.com wrote: i wan,t my app database remains in phone even after uninstallation .for activation code or something like that... what should i use for that thanks -- A N K ! T.. -- 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: #setChecked in CheckedTextView in ListView not working
OK. We seem to be going in circles here. If I set choiceMode on the ListView (which I was doing originally), then you are correct in that I don'I need to setChecked on the CTV. And in fact it just plain won't work as I said previously. There is an Android issue that clued me into this. However, it also means that whether an item is checked or not is held within some internal mechanism of the ListView. This is fine (at least you never notice that its not) as long as you never change the cursor that is backing the CursorAdapter. If you do change the cursor using CursorAdapater#changeCursor, then even though a new set of items get displayed, they will be checked or not checked based upon what was selected from the old cursor. The only way that I could see to get ListView#choiceMode to work in this scenario would be (on change of cursor) to call ListView#clearChoices and then iterate over all the items in my cursor calling ListView#setItemChecked. And since a cursor can be arbitrarily long this seemed like a really daft way to do it. It was also a lot less clear and more code But if I'm missing something, I'm all ears. On Aug 16, 1:36 pm, Romain Guy romain...@android.com wrote: 1) I don't see anyway to configure choiceMode for a CHeckedTxtView iether programatically or via the layout file. choiceMode is set on ListView, not on the CheckedTextView. For instance:http://d.android.com/reference/android/widget/ListView.html#setItemCh..., boolean) 2) I most definitely DO need to call #setChecked in #bindView because otherwise the CheckedTextViews remain checked even even after the cursor for the ListAdapter has been changed (which is possible in this scenario via user choice). If you have a single cursor feeding your ListAdapter you'll never notice it, but as soon as you switch between different lists of data (and have some memory of user selection on that data) you have to be able to set the checked value on the CheckedTextView based upon the row and rowModel. Use ListView's various choiceMode related methods to do this. You can On Aug 16, 6:22 am, Romain Guy romain...@android.com wrote: Actually you want to use CheckedTextView with choiceMode. That's what CheckedTextView is for. However, you should not be calling setChecked from bindView(), but let ListView handle it. The problem was that you were doing ListView's job a second time. You don't need listeners (click on onlistitem), calls to setChecked, etc. On Sun, Aug 15, 2010 at 4:15 AM, William Ferguson william.ferguson...@gmail.com wrote: To those who may follow, if you have a list of CheckedTextView you probably don't want the ListView to have any choice mode. Ie don't set: listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); And then you will be able to handle the checked state in your ListAdapter and wou will also not get #bindView fired a ridiculous number of times. On Aug 15, 5:26 pm, William Ferguson william.ferguson...@gmail.com wrote: OK, further info. As could be seen from #newView, I was handling the onClick on the CheckedTextView myself and this was because I was using a normal Activity instead of a ListActivity. When I switched to a ListActivity, implemented ListActivity#onListItemClick and ditched the OnClickListener code above I noticed 2 things. 1) The CheckedText started staying checked even after scrolling (ie it starting to behave as expected). 2) Every time I toggle a list item, #bindView is being called once for each visible item. Its great that this has made it started working. But a) I don't understand why it wasn't working before b) 2 from above seems pretty wasteful. Why should #bindView be called from all visible items just because one item has been checked/ unchecked? On Aug 15, 4:29 pm, William Ferguson william.ferguson...@gmail.com wrote: Um, sorry, in attempting to simplify the example that I presented to you I didn't manage a full text search and replace. The text for #bindView should have read (and does in the running code) @Override public void bindView(View view, Context context, Cursor cursor) { final CheckedTextView checkedText = (CheckedTextView) view; final MyCursor myCursor = (MyCursor) cursor; final Long rowId = myCursor.getRowId(); checkedText.setChecked(rowModel.isSelected(rowId)); checkedText.setText(myCursor.getDescription()); checkedText.setTag(rowId); Log.v(TAG, rowId= + rowId + settingChecked= + rowModel.isSelected(rowId)); } On Aug 14, 11:15 pm, Paul Turchenko paul.turche...@gmail.com wrote: I believe the issue is that you're getting rowId from rawContactsCursor (bindView method) which stays on the same record. IMO you should get row id from cursor coming to you in bindView. This way you'll get rowId for the
[android-developers] Apply a style to a group of TableRow entries
I want to apply a style to a group of TableRows without loosing the alignment of the enclosing TableLayout. Does anybody have a suggestion for this? I have been looking for a way to 'connect' 2 TableLayouts so that they share the same alignment of their columns, but did not find anything. And everything else just messes up the layout of the table. -- 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] On screen orientation changes activity restarted.
add android:configChanges=orientation to your manifest in each activity activity android:name=Settings android:configChanges=orientation / -- 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] Using C2DM to receive gmail message notifications
I'd like my app to receive notification when new messages arrive in my gmail account. I realize that the Android gmail client does not broadcast notification when it receives messages. Instead I want to utilize the gmail server's Cloud to Device Messaging capabilities to do this. I read the article at http://code.google.com/android/c2dm/ - the only missing piece for me is to understand how my app sends a registration ID to the gmail server. Can someone please point me in the right direction? Thanks, Tom -- 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 to make MapView height take the Android status bar into account?
Hi, Can anyone please answer this question already asked on StackOverflow? http://stackoverflow.com/questions/3475189/how-to-make-mapview-height-take-the-android-status-bar-into-account The Google Map fills the whole screen ignoring the Android status bar. This becomes a problem when dealing with PopupWindow's on the map. Rather I would like the map to start from the lower edge of the Android status bar. 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] Re: Is anyone's active install % dropping like a rock lately?
I've got to believe that there is somebody in a corner office somewhere at google who thinks that google shouldn't operate the Market, and has the clout to ensure that precious little work gets done on it. The thing is so feature deprived and outright broken that I can think of no other reason why it hasn't been improved. On Aug 15, 6:13 am, { Devdroid } webnet.andr...@gmail.com wrote: On 15 August 2010 09:40, Mark Carter mjc1...@googlemail.com wrote: Back to the original question... yes, I've also noticed a bit of a dip in the active install % for my paid apps, though can't be sure exactly when this happened. I also find it hard to believe that so many people buy the app, don't cancel/refund, and then uninstall. I did some checks on our stats and I tend to admit there's something wrong with that counter. I see downloads increasing on regular rate but installs go up smaller, at the same time i see no negative comments nor anything that would indicate app failures that could lead to mass uninstall. -- 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