[android-developers] How to load custom dls or soundfonts to android midi
I have an application that plays midi files thought the sonivox eas library. Is it possible to load my own dls or soundfonts wavetables into the player and have the library use this sounds for midi playback? -- 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: Check permissions
What the others have said is true, but if you want to check the permissions you can with the PackageManager's checkPermission http://developer.android.com/reference/android/content/pm/PackageManager.html#checkPermission(java.lang.String, java.lang.String) On Feb 26, 1:40 am, Miguel Morales therevolti...@gmail.com wrote: Well, since you are modifying the manifest and recompiling a new apk for each version anyway. Simply have a file such as Const.java in which you define some static fields which you can check against at runtime. You'll have to still make changes to two places, but you won't have to touch your code directly. Also, yes permissions have to be accepted for your app to run and there is no need to check at runtime. On Fri, Feb 25, 2011 at 11:17 PM, b_t bartata...@gmail.com wrote: Hi, What is the correct way to check if app has a permission, for example android.permission.READ_SMS. I would like to create different versions of my app with the same code but different manifest xml with different permissions. So I would like to check runtime if this version has a permission or not. Thanks, Tamás -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/revoltingx -- 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 in installing android sdk in proxy network
I has the same problem, you need to setup your own proxy server on your box. I can't remember which proxy server I got but there are a few. You then set the proxy on your box to point at the actual proxy server on your network(including username and password). Then set the sdk to point at the proxy on your box so ip address 127.0.0.1 and then whatever port you set on the proxy on your box. It's crude but it works. Sorry I cant remember which proxy server software i used. On Feb 25, 11:26 am, sourabh '''72''' sourabha...@gmail.com wrote: hey, everybody I use a internet which runs on proxy and asks authentication In androis starter kit there is option for domain name and port no but no option for user-name and password can anybody please suggest anything i have googled my problem and tries various solution but all goes in vein please help me soon -- 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] listview checkbox recycle issue
ViewHolder is not a good place to store data state - as you are doing. A ViewHolder is not associated with the data item, it's associated with the item layout, and when recycling happens, the view holder is also affected. You need to store selection state in MyObject, so it's completely separate from the list item views. With that done, you'll be able to count on selection state being correct when updating the UI (the check box). Make sure to update selection state in an appropriate MyObject based on user actions. -- Kostya 26.02.2011 5:00, Wall-E пишет: I have a ListActivity and an ArrayAdapter that contains a list of an Object for example ArrayAdapterMyObject. Now in my ArrayAdapter I inflate a layout that includes a checkbox. I'm having the issue now that when I click on the checkboxes it's fine until it scrolls past the window. Now I know that the adapter recycles views so let me explain how I have my adapter set up and if anyone could kindly see what I'm doing wrong: I have a ViewHolder class such as the following: public class ViewHolder { View base; CheckBox checkbox; TextView tagTexView; TextView tagIDTextView; public ViewHolder(View base) { this.base = base; } CheckBox getTagCheckBox() { if(checkbox == null) { checkbox = (CheckBox) base.findViewById(R.id.tagInfoCheckBox); } return checkbox; } TextView getTagMainIdentifierTextView() { if(tagTexView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagTexView = (TextView) twoListItem.getText1(); } return tagTexView; } TextView getTagIDTextView() { if(tagIDTextView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagIDTextView = (TextView) twoListItem.getText2(); } return tagIDTextView; } } Now in my getView method, I inflate convertView and create the viewHolder if convertView is null or set the view holder if it's not (holder = (ViewHolder) convertView.getTag()). After that, I set all the values of the views by accessing the views using the holder, for example: holder.getTagCheckBox().setChecked(tag.plot); where tag is MyObject that I get using getItem(position) inside my getView and tag.plot is the boolean value that will indicate if the checkbox should be checked or not. I also created a OnCheckedChangeListener that just sets to tag.plot to whatever the checked state is and then call notifyDataSetChanged(); So the text that I update in my views works just fine but the checkbox seems to get screwed up and although I've read a few suggestions, none of them have worked. @Override public View getView(final int position, View convertView, ViewGroup parent) { mInflater = LayoutInflater.from(context); final MyObject tag = this.getItem(position); // A ViewHolder keeps references to children views to avoid // unneccessary calls to findViewById() on each row. ViewHolder holder; // When convertView is not null, we can reuse it directly, there is // no need to reinflate it. We only inflate a new View when the convertView // supplied by ListView is null. if (convertView == null) { convertView = mInflater.inflate(R.layout.taginfo_layout, null); // Creates a ViewHolder and store references to the two children // views we want to bind data to. holder = new ViewHolder(convertView); convertView.setTag(holder); } else { // Get the ViewHolder back to get fast access to the TextView // and the ImageView. holder = (ViewHolder) convertView.getTag(); } // Set the checkbox value to the value of tag.plot holder.getTagCheckBox().setChecked(tag.plot); holder.getTagCheckBox().setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener() {
[android-developers] Proxy to open blocked sites
Proxy to open blocked sites http://ppropx.4mtm.net OR http://pronet.4mtm.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
Re: [android-developers] Re: Change Keyboard Key label at runtime
That's exactly what I did (though it took me considerably longer as I am very new to Java and Android). I only asked the question b/c that's where I was at in the process when I followed up to my original question. And I hadn't had a whole lot of immediate success in finding answers up until then. It took me 12 hours yesterday to do something that would have taken me 12 minutes in Ruby. I would have followed up again and sooner but I had some trouble finding this post last night (I'm not liking this new groups interface). But why did you answer the question if it irked you so much? I appreciate you providing an answer, and you never know who it might help in the future as an archival. But as a corollary to if you don't have something nice to say, if you are going to say RTFM, don't say anything at all. -- 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: SDcard mount point in portable way?
On Fri, Feb 25, 2011 at 9:32 PM, Dmitry Golubovsky golubov...@gmail.com wrote: So, on a compilant device getExternalStorageDirectory would return a real sdcard mountpoint? There is no such concept as a real sdcard mountpoint in Android. getExternalStorageDirectory(), on a properly-written ROM, should return the same directory that the user would see if they mount external storage on their PC or Mac. Well, I need to use what a random/average customer could pick. As far as I am concerned, your device does not qualify for this criterion. Pick something that legitimately comes with the Android Market. Your device does not support third-party apps, at least according to its manufacturer. Expecting this device to behave properly for third-party apps, therefore, is a mistake. Anyway, if there is no formal answer, I'll need to apply more heuristics... it is a mountpoint anyway, controlled by vold (sp?), I am assuming at least this holds for all devices? If you want a Linux box, don't get an Android device, or plan to create your own firmware. Making *any* assumptions about things outside of the Android SDK -- such as mountpoints, particular daemons, etc. -- is a recipe for trouble. I am worried about the portable way to tell my program where is the sdcard root directory is mounted because part of the usage scenario is user being able to upload certain files to sdcard where my program must be able to find them. Use getExternalStorageDirectory(). -- 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 *Advanced* Android Development_ Version 1.9 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] EditText behaving weirdly
Which code wold you like to see? -- 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: GOOGLE TO BAN PAYPAL?!
I would say it's not only the 30%, but the fact that Google is too slow in implementing app sales globally. I am not aware how hard it is to do it globally, but it is not hard to implement app sales within Europe.(I've actually had a lot of informal discussion with the best accounting lawyers and accountants in several countries) I live in one of the smaller countries in EU and I don't expect to be able to sell or even buy apps for a long time on the AM. And that annoys me a lot! So reading the market agreement, I have to go through all sort of hoops just to earn anything on the AM. And for buying stuff I have to get a SIM from another country. And they wonder why some people say that Android is not easy to use... On 26 фев, 08:24, HeyYouThere newsome...@gmail.com wrote: So as of right now, the major app lookout is subject to removal -- but won't be removed because Google selectively enforces it's TOS. They collect your CC directly into the application. I'm not trying to rag on them, but the facts, are facts. Since using PayPal would probably just get the app removed once google realized they weren't getting their 30% -- Is it a violation to to use the google checkout web api for subscriptions-- building that into the app? Thanks everyone for taking the time to try and help me with this. It's an absolute shame we have NO OFFICIAL SUPPORT to direct these questions toward. On Feb 25, 9:53 pm, rich friedel rich.frie...@gmail.com wrote: unless your special like Slacker Radio and run the subscription through the carrier! i personally dont agree with that double standard... On Feb 25, 2011 10:28 PM, Zsolt Vasvari zvasv...@gmail.com wrote: In-app billing doesn't support the subscriptions model: http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswe... So, yes, I'd say if you are selling an app with subscriptions, you are violating the TOS and your app is subject to removal. On Feb 26, 10:36 am, davemac davemac...@gmail.com wrote: Google announced in-app billing. Seehttp:// developer.android.com/guide/market/billing/index.html. - dave On Feb 25, 9:26 pm, rich friedel rich.frie...@gmail.com wrote: didn't they just do an update to the market which allows in-app billing? On Feb 25, 2011 9:16 PM, HeyYouThere newsome...@gmail.com wrote: Thank you for your reply. Here's what I don't understand: Lookout - They have you enter your payment information directly into the app -- taking a credit card payment for their subscription service Google does not support this yet in the market...So do you think I am SOL? On Feb 25, 7:39 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I am no lawyer, but AFAIK you CANNOT take any 3rd party payments in an app marketed through the Google Android Market. This is not against PayPal per se and it's fair otherwise what would stop you from offering a free app and then charge the user outside of the Market, thus not giving Google their 30% cut? Of course, as opposed to Apple, you have the option to sell your app on your own or on alternate markets and do whatever you want. If you have a subscription tied into your app, and you are not giving Google their cut, you could certainly wake up one morning and find your app pulled -- and rightly so. On Feb 25, 2:53 pm, HeyYouThere newsome...@gmail.com wrote: Well, I am a developer and I understand that you guys have this thing lately where you will randomly pull apps...Even ones that have been there since Genesis 1:1. Anywho, I have a subscription tied into my app, and I am wondering, IF I WILL WAKE UP AND FIND MY SUPENDED PULLED BECAUSE I USE THE PAYPAL ANDROID API FOR SUBSCRIPTION PAYMENTS? Quote: 3.3 You may also choose to distribute Products for free. If the Product is free, you will not be charged a Transaction Fee. You may not collect future charges from users for copies of the Products that those users were initially allowed to download for free. This is not intended to prevent distribution of free trial versions of the Product with an upsell option to obtain the full version of the Product: Such free trials for Products are encouraged. However, if you want to collect fees after the free trial expires, you must collect all fees for the full version of the Product through the Payment Processor on the Market. In this Agreement, free means there are no charges or fees of any kind for use of the Product. All fees received by Developers for Products distributed via the Market must be processed by the Market's Payment Processor. === Now while this IS clearly written, an app called Visual Voicemail was pulled after
[android-developers] Re: what does this code segment do in weatherwidgetprovider: intent.setData(Uri.parse(sameintent.toUri()))
Ok I get it this is to do with (I think) how two *innocent* intents could be deemed the same even if they are different owing to their *extras. The uniqueness of intents when dealing with pending intents does not take into account the EXTRAS but it does take into account the data portion. And hence the following code simulating this uniqueness by converting an intent with extras first to a string (which will include the extras as appended string) and then set that unique string as data URI. :) I get it. Hope this helps another **easily baffled**. Satya On Fri, Feb 25, 2011 at 2:35 PM, Satya Komatineni satya.komatin...@gmail.com wrote: If you could take a look at this segment of code final Intent intent = new Intent(context, WeatherWidgetService.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); // //what is done here??? // intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME))); final RemoteViews rv = new RemoteViews(context.getPackageName(), R.layout.widget_layout); rv.setRemoteAdapter(appWidgetIds[i], R.id.weather_list, intent); This code is taken from: http://developer.android.com/resources/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/WeatherWidgetProvider.html I understand what toUri does for an intent. However in this case 1. the intent is explicitly invoking a service component 2. The service component is free to choose the extra parameters from the intent 3. If so why set the data to itself??? Appeciate if you can throw some light on this Thanks Satya -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.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] TableLayout issue
I'm wrestling with the Android UI to try to create a table layout that has 2 rows each row containing 2 ImageSwitchers, And would like the table to occupies the entire screen. But I simply can not accomplish it, sometimes the emulator shows 1 ImageSwitcher that is aligned to the right of the screen to its entire height, sometimes it shows nothing, sometimes the image aligned to the bottom of the screen (but only 1 of it)... I'm attaching one of the configurations I tested. It is wrong for sure but I really don't know what to do. any ideas are welcome... thanks. TableLayout android:id=@+id/TableLayout01 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; TableRow android:id=@+id/TableRow01 android:layout_width=wrap_content android:layout_height=wrap_content ImageSwitcher android:layout_column=0 android:id=@+id/imsLeftTop/ImageSwitcher ImageSwitcher android:layout_column=1 android:id=@+id/imsRightTop/ImageSwitcher /TableRow TableRow android:id=@+id/TableRow02 android:layout_width=wrap_content android:layout_height=wrap_content ImageSwitcher android:layout_column=0 android:id=@+id/imsLeftBottom /ImageSwitcher ImageSwitcher android:layout_column=1 android:id=@+id/imsRightBottom /ImageSwitcher /TableRow /TableLayout -- 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: Simple Search App -- Help Required
Brilliant Idea. Thanks for the suggestion. Will get back if I have more queries! On Feb 26, 4:36 am, Justin Anderson magouyaw...@gmail.com wrote: Have the constructor in your adapter class read the file and place the names in an array... On Fri, Feb 25, 2011 at 2:14 AM, Arun N R coolgeminia...@gmail.com wrote: Hi, I am new to Android Development. I am trying to write a small search application. My requirement is: I have a list of 1000+ names in a text file. I just want to check whether a particular name is existing or not in the list. My UI should have just have one searh box and menu to add more names from the list. To start off with, I looked at sample programs, which was very helpful. I looked at this particular example: http://developer.android.com/resources/tutorials/views/hello-autocomp... This is exactly what I wanted. But in this example, they are storing all the names in a String Array, which I cannot add more entries in the course of time. So can you tell me how to modify this to search so that the array adapter picks the names from a file instead of the String Array? Or Please suggest if there are any other better ways to achieve it. Thanks in Advance, Arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Check permissions
I know how permissions work. I'm thinking about creating two apk-s with different manifest, different required permissions. I don't want the source code to be changed. That is why I would like to check permission realtime. Kevin, so can I use that method in this way? packageManager.checkPermission(android.permission.READ_SMS, myPackage) == PERMISSION_GRANTED; I didn't know that I should use this method or the SecurityManager. Zsolt, I wish we could declare a permission as optional. This is a very hard decision to add new permission requirement to the app. Maybe it can improve the funcionality of the app, but there will be users who complain about the new permission, uninstall the app or give you 1 star. -- 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: Check permissions
I don't know what would be a good solution for this problem. The problem is that half of the users would like the new features that required personal permissions (read sms, get accounts, ...) and the other half of the users would uninstall or not to update the app because they afraid for their personal data. Maybe it is a bad solution to create two versions with different permissions. Do you know how to solute this problem? I'm thinking of an other solution. I create a new addon apk with these permissions. This is a content provider which provides the required data. The user can make a decision if he installs this app or not. The main app checks if there is a provider and could get this information from it. What do you think about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: listview checkbox recycle issue
Kostya, thanks for your help. I believe I am doing what you suggest but if not let me know: I am setting the data item inside my getView in my OnCheckChangedListener, for example: MyObject.plot = isChecked;// so the plot variable holds the checked state Now when I set the checkbox layout item, I'm getting the value from my data item, for example: holder.getCheckBox.setChecked(MyObject.plot); So I may not be understanding fully what you suggest. Do you think I should store the checkbox layout item in MyObject? Kapil, thanks for your suggestion, I might go that route if I can't get this checkbox issue figured out. On Feb 26, 4:19 am, Kostya Vasilyev kmans...@gmail.com wrote: ViewHolder is not a good place to store data state - as you are doing. A ViewHolder is not associated with the data item, it's associated with the item layout, and when recycling happens, the view holder is also affected. You need to store selection state in MyObject, so it's completely separate from the list item views. With that done, you'll be able to count on selection state being correct when updating the UI (the check box). Make sure to update selection state in an appropriate MyObject based on user actions. -- Kostya 26.02.2011 5:00, Wall-E пишет: I have a ListActivity and an ArrayAdapter that contains a list of an Object for example ArrayAdapterMyObject. Now in my ArrayAdapter I inflate a layout that includes a checkbox. I'm having the issue now that when I click on the checkboxes it's fine until it scrolls past the window. Now I know that the adapter recycles views so let me explain how I have my adapter set up and if anyone could kindly see what I'm doing wrong: I have a ViewHolder class such as the following: public class ViewHolder { View base; CheckBox checkbox; TextView tagTexView; TextView tagIDTextView; public ViewHolder(View base) { this.base = base; } CheckBox getTagCheckBox() { if(checkbox == null) { checkbox = (CheckBox) base.findViewById(R.id.tagInfoCheckBox); } return checkbox; } TextView getTagMainIdentifierTextView() { if(tagTexView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagTexView = (TextView) twoListItem.getText1(); } return tagTexView; } TextView getTagIDTextView() { if(tagIDTextView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagIDTextView = (TextView) twoListItem.getText2(); } return tagIDTextView; } } Now in my getView method, I inflate convertView and create the viewHolder if convertView is null or set the view holder if it's not (holder = (ViewHolder) convertView.getTag()). After that, I set all the values of the views by accessing the views using the holder, for example: holder.getTagCheckBox().setChecked(tag.plot); where tag is MyObject that I get using getItem(position) inside my getView and tag.plot is the boolean value that will indicate if the checkbox should be checked or not. I also created a OnCheckedChangeListener that just sets to tag.plot to whatever the checked state is and then call notifyDataSetChanged(); So the text that I update in my views works just fine but the checkbox seems to get screwed up and although I've read a few suggestions, none of them have worked. @Override public View getView(final int position, View convertView, ViewGroup parent) { mInflater = LayoutInflater.from(context); final MyObject tag = this.getItem(position); // A ViewHolder keeps references to children views to avoid // unneccessary calls to findViewById() on each row. ViewHolder holder; // When convertView is not null, we can reuse it directly, there is // no need to reinflate it. We only inflate a new View when the convertView // supplied by ListView is null. if (convertView == null) { convertView = mInflater.inflate(R.layout.taginfo_layout, null); // Creates a ViewHolder and store references to the two children // views we want to bind data to. holder = new
Re: [android-developers] Re: Check permissions
I think if you are honest up front and make it very clear in the description that you are adding these new permissions you should not have many issues. If you try to do anything that is perceived as shady then your app will be called out as such. On Sat, Feb 26, 2011 at 9:50 AM, b_t bartata...@gmail.com wrote: I don't know what would be a good solution for this problem. The problem is that half of the users would like the new features that required personal permissions (read sms, get accounts, ...) and the other half of the users would uninstall or not to update the app because they afraid for their personal data. Maybe it is a bad solution to create two versions with different permissions. Do you know how to solute this problem? I'm thinking of an other solution. I create a new addon apk with these permissions. This is a content provider which provides the required data. The user can make a decision if he installs this app or not. The main app checks if there is a provider and could get this information from it. What do you think about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: GOOGLE TO BAN PAYPAL?!
So then how does all of this apply to you? According to what you just said your application isn't even being sold on the market thus you need not worry about it being removed for going through a third-party vendor or accepting payment without including Google in the process. On Sat, Feb 26, 2011 at 8:47 AM, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: I would say it's not only the 30%, but the fact that Google is too slow in implementing app sales globally. I am not aware how hard it is to do it globally, but it is not hard to implement app sales within Europe.(I've actually had a lot of informal discussion with the best accounting lawyers and accountants in several countries) I live in one of the smaller countries in EU and I don't expect to be able to sell or even buy apps for a long time on the AM. And that annoys me a lot! So reading the market agreement, I have to go through all sort of hoops just to earn anything on the AM. And for buying stuff I have to get a SIM from another country. And they wonder why some people say that Android is not easy to use... On 26 фев, 08:24, HeyYouThere newsome...@gmail.com wrote: So as of right now, the major app lookout is subject to removal -- but won't be removed because Google selectively enforces it's TOS. They collect your CC directly into the application. I'm not trying to rag on them, but the facts, are facts. Since using PayPal would probably just get the app removed once google realized they weren't getting their 30% -- Is it a violation to to use the google checkout web api for subscriptions-- building that into the app? Thanks everyone for taking the time to try and help me with this. It's an absolute shame we have NO OFFICIAL SUPPORT to direct these questions toward. On Feb 25, 9:53 pm, rich friedel rich.frie...@gmail.com wrote: unless your special like Slacker Radio and run the subscription through the carrier! i personally dont agree with that double standard... On Feb 25, 2011 10:28 PM, Zsolt Vasvari zvasv...@gmail.com wrote: In-app billing doesn't support the subscriptions model: http://www.google.com/support/androidmarket/bin/answer.py?hl=enanswe. .. So, yes, I'd say if you are selling an app with subscriptions, you are violating the TOS and your app is subject to removal. On Feb 26, 10:36 am, davemac davemac...@gmail.com wrote: Google announced in-app billing. Seehttp:// developer.android.com/guide/market/billing/index.html. - dave On Feb 25, 9:26 pm, rich friedel rich.frie...@gmail.com wrote: didn't they just do an update to the market which allows in-app billing? On Feb 25, 2011 9:16 PM, HeyYouThere newsome...@gmail.com wrote: Thank you for your reply. Here's what I don't understand: Lookout - They have you enter your payment information directly into the app -- taking a credit card payment for their subscription service Google does not support this yet in the market...So do you think I am SOL? On Feb 25, 7:39 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I am no lawyer, but AFAIK you CANNOT take any 3rd party payments in an app marketed through the Google Android Market. This is not against PayPal per se and it's fair otherwise what would stop you from offering a free app and then charge the user outside of the Market, thus not giving Google their 30% cut? Of course, as opposed to Apple, you have the option to sell your app on your own or on alternate markets and do whatever you want. If you have a subscription tied into your app, and you are not giving Google their cut, you could certainly wake up one morning and find your app pulled -- and rightly so. On Feb 25, 2:53 pm, HeyYouThere newsome...@gmail.com wrote: Well, I am a developer and I understand that you guys have this thing lately where you will randomly pull apps...Even ones that have been there since Genesis 1:1. Anywho, I have a subscription tied into my app, and I am wondering, IF I WILL WAKE UP AND FIND MY SUPENDED PULLED BECAUSE I USE THE PAYPAL ANDROID API FOR SUBSCRIPTION PAYMENTS? Quote: 3.3 You may also choose to distribute Products for free. If the Product is free, you will not be charged a Transaction Fee. You may not collect future charges from users for copies of the Products that those users were initially allowed to download for free. This is not intended to prevent distribution of free trial versions of the Product with an upsell option to obtain the full version of the Product: Such free trials for Products are encouraged. However, if you want to collect fees after the free trial expires, you must collect
Re: [android-developers] Re: Check permissions
BTW, I've seen apps in Market that explain (in the now-much-extended description field) why they need the permissions they do, one by one. Not sure if that can address potential doubts of each and every user (there are some paranoid types out there), but it certainly creates a good impression, hopefully increasing the level of trust. -- Kostya 26.02.2011 18:23, rich friedel ?: I think if you are honest up front and make it very clear in the description that you are adding these new permissions you should not have many issues. If you try to do anything that is perceived as shady then your app will be called out as such. On Sat, Feb 26, 2011 at 9:50 AM, b_t bartata...@gmail.com mailto:bartata...@gmail.com wrote: I don't know what would be a good solution for this problem. The problem is that half of the users would like the new features that required personal permissions (read sms, get accounts, ...) and the other half of the users would uninstall or not to update the app because they afraid for their personal data. Maybe it is a bad solution to create two versions with different permissions. Do you know how to solute this problem? I'm thinking of an other solution. I create a new addon apk with these permissions. This is a content provider which provides the required data. The user can make a decision if he installs this app or not. The main app checks if there is a provider and could get this information from it. What do you think about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-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 -- Kostya Vasilyev -- 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
Re: [android-developers] Re: listview checkbox recycle issue
Ah, yes, you are. Sorry, I missed that tag is a reference to your data object item. Now I can't see anything obviously wrong with the code you posted. In fact, I have code almost like this, including ViewHolder-type helper classes right in front of me, and it works. I have two suggestions for debugging: - add log statements inside onCheckedChanged, print the data object, its position, and new state; - get rid of ViewHolder thingies, call convertView.findViewById(...) directly. -- Kostya 26.02.2011 18:21, Wall-E пишет: Kostya, thanks for your help. I believe I am doing what you suggest but if not let me know: I am setting the data item inside my getView in my OnCheckChangedListener, for example: MyObject.plot = isChecked;// so the plot variable holds the checked state Now when I set the checkbox layout item, I'm getting the value from my data item, for example: holder.getCheckBox.setChecked(MyObject.plot); So I may not be understanding fully what you suggest. Do you think I should store the checkbox layout item in MyObject? Kapil, thanks for your suggestion, I might go that route if I can't get this checkbox issue figured out. On Feb 26, 4:19 am, Kostya Vasilyevkmans...@gmail.com wrote: ViewHolder is not a good place to store data state - as you are doing. A ViewHolder is not associated with the data item, it's associated with the item layout, and when recycling happens, the view holder is also affected. You need to store selection state in MyObject, so it's completely separate from the list item views. With that done, you'll be able to count on selection state being correct when updating the UI (the check box). Make sure to update selection state in an appropriate MyObject based on user actions. -- Kostya 26.02.2011 5:00, Wall-E пишет: I have a ListActivity and an ArrayAdapter that contains a list of an Object for example ArrayAdapterMyObject. Now in my ArrayAdapter I inflate a layout that includes a checkbox. I'm having the issue now that when I click on the checkboxes it's fine until it scrolls past the window. Now I know that the adapter recycles views so let me explain how I have my adapter set up and if anyone could kindly see what I'm doing wrong: I have a ViewHolder class such as the following: public class ViewHolder { View base; CheckBox checkbox; TextView tagTexView; TextView tagIDTextView; public ViewHolder(View base) { this.base = base; } CheckBox getTagCheckBox() { if(checkbox == null) { checkbox = (CheckBox) base.findViewById(R.id.tagInfoCheckBox); } return checkbox; } TextView getTagMainIdentifierTextView() { if(tagTexView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagTexView = (TextView) twoListItem.getText1(); } return tagTexView; } TextView getTagIDTextView() { if(tagIDTextView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagIDTextView = (TextView) twoListItem.getText2(); } return tagIDTextView; } } Now in my getView method, I inflate convertView and create the viewHolder if convertView is null or set the view holder if it's not (holder = (ViewHolder) convertView.getTag()). After that, I set all the values of the views by accessing the views using the holder, for example: holder.getTagCheckBox().setChecked(tag.plot); where tag is MyObject that I get using getItem(position) inside my getView and tag.plot is the boolean value that will indicate if the checkbox should be checked or not. I also created a OnCheckedChangeListener that just sets to tag.plot to whatever the checked state is and then call notifyDataSetChanged(); So the text that I update in my views works just fine but the checkbox seems to get screwed up and although I've read a few suggestions, none of them have worked. @Override public View getView(final int position, View convertView, ViewGroup parent) { mInflater = LayoutInflater.from(context); final MyObject tag = this.getItem(position); // A ViewHolder keeps references to children views to avoid // unneccessary calls to findViewById() on each row. ViewHolder holder; // When convertView is not null, we can reuse it directly, there is // no need to reinflate it. We only
Re: [android-developers] How to i adjust the width of an imageview in the java code
Yeah i tried that yesterday and it dident work, but it was because my width was to short to begin width, so if your image starts out small you go with setminwidth If your image starts out wide you go with setmaxwidth On Feb 26, 2011 2:44 AM, Miguel Morales therevolti...@gmail.com wrote: Have you tried the setMaxWidth() as per the ImageView docs? You *may* have to use setLayoutParams. Haven't tried this myself, but again it's what the docs say. On Fri, Feb 25, 2011 at 10:05 PM, brian purgert brianpurge...@gmail.com wrote: I have a battery and on top of the battery i have a patch 9 png image that is the battery filler my question is how do i change the with of this image view. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx -- 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
Re: [android-developers] Launching an app from the quick search box creates a new instance of the app?
Hi, Set your Activity Launch mode to singleTask. On Fri, Feb 25, 2011 at 11:53 AM, ZEAN QIN qinz...@gmail.com wrote: When my application is running, I can click the HOME button to send the app to the background. Then I can get back to the application by using one of the 4 ways: 1. click the icon in the launch menu 2. or click the shortcut icon on the home screen 3. or long click the HOME button to see the Recent used apps and then click the app icon 4. or search for the app in the quick launch box and then click the icon. The first 3 ways seem to work fine for me, all of them can send my app back to the foreground and keep the data I have entered. None of them seems to create a new instance of the app. While the 4th way seems to create a new instance of my app and crashes my app. Is this always the case? Or because I did not write my code properly ? I set add the FLAG_ACTIVITY_REORDER_TO_FRONT flag to most of the intents I use, so no new instance of an activity should be created. Maybe the problem is somehow related to this, but I don't know. Please help me. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: listview checkbox recycle issue
Thanks I'll try your suggestions. On Feb 26, 10:38 am, Kostya Vasilyev kmans...@gmail.com wrote: Ah, yes, you are. Sorry, I missed that tag is a reference to your data object item. Now I can't see anything obviously wrong with the code you posted. In fact, I have code almost like this, including ViewHolder-type helper classes right in front of me, and it works. I have two suggestions for debugging: - add log statements inside onCheckedChanged, print the data object, its position, and new state; - get rid of ViewHolder thingies, call convertView.findViewById(...) directly. -- Kostya 26.02.2011 18:21, Wall-E пишет: Kostya, thanks for your help. I believe I am doing what you suggest but if not let me know: I am setting the data item inside my getView in my OnCheckChangedListener, for example: MyObject.plot = isChecked; // so the plot variable holds the checked state Now when I set the checkbox layout item, I'm getting the value from my data item, for example: holder.getCheckBox.setChecked(MyObject.plot); So I may not be understanding fully what you suggest. Do you think I should store the checkbox layout item in MyObject? Kapil, thanks for your suggestion, I might go that route if I can't get this checkbox issue figured out. On Feb 26, 4:19 am, Kostya Vasilyevkmans...@gmail.com wrote: ViewHolder is not a good place to store data state - as you are doing. A ViewHolder is not associated with the data item, it's associated with the item layout, and when recycling happens, the view holder is also affected. You need to store selection state in MyObject, so it's completely separate from the list item views. With that done, you'll be able to count on selection state being correct when updating the UI (the check box). Make sure to update selection state in an appropriate MyObject based on user actions. -- Kostya 26.02.2011 5:00, Wall-E пишет: I have a ListActivity and an ArrayAdapter that contains a list of an Object for example ArrayAdapterMyObject. Now in my ArrayAdapter I inflate a layout that includes a checkbox. I'm having the issue now that when I click on the checkboxes it's fine until it scrolls past the window. Now I know that the adapter recycles views so let me explain how I have my adapter set up and if anyone could kindly see what I'm doing wrong: I have a ViewHolder class such as the following: public class ViewHolder { View base; CheckBox checkbox; TextView tagTexView; TextView tagIDTextView; public ViewHolder(View base) { this.base = base; } CheckBox getTagCheckBox() { if(checkbox == null) { checkbox = (CheckBox) base.findViewById(R.id.tagInfoCheckBox); } return checkbox; } TextView getTagMainIdentifierTextView() { if(tagTexView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagTexView = (TextView) twoListItem.getText1(); } return tagTexView; } TextView getTagIDTextView() { if(tagIDTextView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagIDTextView = (TextView) twoListItem.getText2(); } return tagIDTextView; } } Now in my getView method, I inflate convertView and create the viewHolder if convertView is null or set the view holder if it's not (holder = (ViewHolder) convertView.getTag()). After that, I set all the values of the views by accessing the views using the holder, for example: holder.getTagCheckBox().setChecked(tag.plot); where tag is MyObject that I get using getItem(position) inside my getView and tag.plot is the boolean value that will indicate if the checkbox should be checked or not. I also created a OnCheckedChangeListener that just sets to tag.plot to whatever the checked state is and then call notifyDataSetChanged(); So the text that I update in my views works just fine but the checkbox seems to get screwed up and although I've read a few suggestions, none of them have worked. @Override public View getView(final int position, View convertView, ViewGroup parent) { mInflater = LayoutInflater.from(context); final MyObject tag = this.getItem(position);
[android-developers] Re: listview checkbox recycle issue
Thanks I'll try your suggestions. On Feb 26, 10:38 am, Kostya Vasilyev kmans...@gmail.com wrote: Ah, yes, you are. Sorry, I missed that tag is a reference to your data object item. Now I can't see anything obviously wrong with the code you posted. In fact, I have code almost like this, including ViewHolder-type helper classes right in front of me, and it works. I have two suggestions for debugging: - add log statements inside onCheckedChanged, print the data object, its position, and new state; - get rid of ViewHolder thingies, call convertView.findViewById(...) directly. -- Kostya 26.02.2011 18:21, Wall-E пишет: Kostya, thanks for your help. I believe I am doing what you suggest but if not let me know: I am setting the data item inside my getView in my OnCheckChangedListener, for example: MyObject.plot = isChecked; // so the plot variable holds the checked state Now when I set the checkbox layout item, I'm getting the value from my data item, for example: holder.getCheckBox.setChecked(MyObject.plot); So I may not be understanding fully what you suggest. Do you think I should store the checkbox layout item in MyObject? Kapil, thanks for your suggestion, I might go that route if I can't get this checkbox issue figured out. On Feb 26, 4:19 am, Kostya Vasilyevkmans...@gmail.com wrote: ViewHolder is not a good place to store data state - as you are doing. A ViewHolder is not associated with the data item, it's associated with the item layout, and when recycling happens, the view holder is also affected. You need to store selection state in MyObject, so it's completely separate from the list item views. With that done, you'll be able to count on selection state being correct when updating the UI (the check box). Make sure to update selection state in an appropriate MyObject based on user actions. -- Kostya 26.02.2011 5:00, Wall-E пишет: I have a ListActivity and an ArrayAdapter that contains a list of an Object for example ArrayAdapterMyObject. Now in my ArrayAdapter I inflate a layout that includes a checkbox. I'm having the issue now that when I click on the checkboxes it's fine until it scrolls past the window. Now I know that the adapter recycles views so let me explain how I have my adapter set up and if anyone could kindly see what I'm doing wrong: I have a ViewHolder class such as the following: public class ViewHolder { View base; CheckBox checkbox; TextView tagTexView; TextView tagIDTextView; public ViewHolder(View base) { this.base = base; } CheckBox getTagCheckBox() { if(checkbox == null) { checkbox = (CheckBox) base.findViewById(R.id.tagInfoCheckBox); } return checkbox; } TextView getTagMainIdentifierTextView() { if(tagTexView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagTexView = (TextView) twoListItem.getText1(); } return tagTexView; } TextView getTagIDTextView() { if(tagIDTextView == null) { TwoLineListItem twoListItem = (TwoLineListItem) base.findViewById(R.id.taginfo_layoutTwoLineListItem); tagIDTextView = (TextView) twoListItem.getText2(); } return tagIDTextView; } } Now in my getView method, I inflate convertView and create the viewHolder if convertView is null or set the view holder if it's not (holder = (ViewHolder) convertView.getTag()). After that, I set all the values of the views by accessing the views using the holder, for example: holder.getTagCheckBox().setChecked(tag.plot); where tag is MyObject that I get using getItem(position) inside my getView and tag.plot is the boolean value that will indicate if the checkbox should be checked or not. I also created a OnCheckedChangeListener that just sets to tag.plot to whatever the checked state is and then call notifyDataSetChanged(); So the text that I update in my views works just fine but the checkbox seems to get screwed up and although I've read a few suggestions, none of them have worked. @Override public View getView(final int position, View convertView, ViewGroup parent) { mInflater = LayoutInflater.from(context); final MyObject tag = this.getItem(position);
[android-developers] Re: WSDL Classes generation
Is there any tool that generates java classes from a WSDL file? i used axis2 to perform this task in the past (from command line) http://axis.apache.org/axis2/java/core/ and ksoap2-android for android-side support of SOAP webservices -- .enjoy. Alfredo home: http://www.rainbowbreeze.it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: who prevails with audio in simultaneous cell phone and VOIP calls?
bump On Feb 24, 10:27 am, longingtoadopt.com anil.r...@gmail.com wrote: I asked a co-worker to make a Linphone VOIP call to me and while the call was in progress, I made a regular cell phone call to my wife. I was able to hear their voices simultaneously. This was surprising. When I play an audio clip on my cell phone and then make a cell phone call out, the media player correctly pauses and does not play until the call ends – thereupon it resumes playing. What decides that the media player audio should be muted during a cell phone call? Why didn't it get muted during the VOIP call? (Android 2.1. HTC Slide) -- 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: noob question I guess - input requires enter key
I too have this same issue and would appreciate some help. So far, I have just been ignoring the problem because it doesn't happen on actual Android devices. I tried searching the Eclipse Help for things mentioned by TreKing but came up empty. On Feb 24, 7:21 am, Duskox dus...@gmail.com wrote: Hi all, so I just started meddling with android and have started putting together an app. I used edit text boxed for input but when I run my app and try to input text in my field (in emulator) a keyboard pops up and no matter what I type it does not appear in the edit text box until I press Enter key? Is this normal behavior or is there a way to make letters appear as I type them? Second thing I notice is that when I type it suggests Chinese characters, so I guess I might need to change the keyboard input perhaps? I checked what coding I use and it is UTF-8. So, can anyone help me with this, what should I do to get character appear as I type in edit box. Thanks! D. -- 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: noob question I guess - input requires enter key
On Sat, Feb 26, 2011 at 10:33 PM, Russell DuRoss r2s...@gmail.com wrote: I too have this same issue and would appreciate some help. So far, I have just been ignoring the problem because it doesn't happen on actual Android devices. I tried searching the Eclipse Help for things mentioned by TreKing but came up empty. Not Eclipse settings, but your Android emulator's settings. -- Harsh J www.harshj.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: Adobe Air for Andoid App - Trouble Bringing App to Foreground (actionscript 3)
It turns out that my error was a null error because AIR doesn't support stage.nativeWindow on mobile devices. Through all my searching I'm no closer to finding a way to bring the app the the foreground, any suggestions? On Feb 25, 5:31 am, TreKing treking...@gmail.com wrote: On Thu, Feb 24, 2011 at 2:26 PM, RJM mccormack2...@googlemail.com wrote: I don't actually know what the error is, I wasn't debugging on the phone at the time (not sure how to do that), Please learn to debug your app. There's not much anyone can do for you without so much as an error message to from. Also, since you're using NativeApplication I'm assuming you're using the NDK, in which case you probably want to direct your query to that group. all I know is that the method stopped and the code after the call to nativeWindow.activate didn't get called. And all I know is that that is not enough information to help you. ----- 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 in installing android sdk in proxy network
hey guys I am a beginner in android development. I have been trying to install android sdk since last 10 days. I use a campus internet which ask proxy domain name and password In starter kit of android of android there are option for domain name and port no but not for username and password. I also tried ntlmaps but it is not working too please help me. I dont want this issue. please please help me thanx 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] http pipelining
does somebody know a library with the http pipelining support ? 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] Re: noob question I guess - input requires enter key
Go to MenuSettingsLanguage and Keyboard Settings and disable everything except Android Keyboard On Sat, Feb 26, 2011 at 12:09 PM, Harsh J qwertyman...@gmail.com wrote: On Sat, Feb 26, 2011 at 10:33 PM, Russell DuRoss r2s...@gmail.com wrote: I too have this same issue and would appreciate some help. So far, I have just been ignoring the problem because it doesn't happen on actual Android devices. I tried searching the Eclipse Help for things mentioned by TreKing but came up empty. Not Eclipse settings, but your Android emulator's settings. -- Harsh J www.harshj.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 -- 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] Controlling Android init process / staged boot
On Fri, Feb 25, 2011 at 5:28 AM, ale ale.noval...@googlemail.com wrote: Any help on that subject is very much appreciated. I think you're in the wrong group. Try the platform group if you're mucking with the source code. - 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] intents or activities run during app install/uninstall like rpm %post/%postun?
RPM lets you specify scripts that can be run at different phases of the install/unstall process. Is there any equivalent for Android apps? I'd like to do things like create and populate a DB for instance. Ted -- 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] intents or activities run during app install/uninstall like rpm %post/%postun?
On Sat, Feb 26, 2011 at 1:14 PM, tedx txt...@gmail.com wrote: RPM lets you specify scripts that can be run at different phases of the install/unstall process. Is there any equivalent for Android apps? I'd like to do things like create and populate a DB for instance. http://stackoverflow.com/questions/5128703/can-you-run-an-intent-or-script-when-your-app-gets-installed-on-android A related post: http://stackoverflow.com/questions/2127044/how-to-start-android-service-on-installation includes this comment from Ms. Hackborn: Yes, [not allowing apps to run on install] is deliberate. Application installation happens automatically in the background when the app is downloaded. We prefer that no app code run until the user explicitly goes to the app the first time. -- 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 *Advanced* Android Development_ Version 1.9 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] Bitmap Question
Hello Group, I was wondering how do you scale a bitmap to look good on any screen size (Using surfaceview and canvas). I already know the canvas width and canvas height. So, what would the calculation be? Example lets say I have a picture that is 100x100 and the phone size is 1920x1200 (just for the sake of it). Now when displaying that on the phone, it will look small. So, how do i scale that up to be bigger based on the aspect ratio or resolution. Just say the developed phone resolution was 480x854 (so all pics was created after that res). So, if the resolution is smaller i want to scale the bitmap down, and if it is bigger, i want to scale it up. Any feedback is appreciated, 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] bitmap drawable resource gravity ignored in layer list?
I'm trying to build a seek bar with text in/under it to make something akin to the slide to unlock bar on the iPhone. I figured I'd change the style of the seek bar and added: layer-list ... item android:id=@android:id/background layer-list item shape corners android:radius=10dip / gradient android:startColor=#88747674 android:centerColor=#885a5d5a android:centerY=0.25 android:endColor=#889d9e9d android:angle=270 / /shape /item item bitmap android:src=@drawable/slide_to_finish_label android:gravity=fill_horizontal/ /item /layer-list /item ... /layer-list slide_to_finish_label is a 9-patch PNG. The default tile mode is listed as none. When I use this nested layer-list as the background of my app it works as I expect. My bitmap shows up stretched side to side but not up and down. When I use this as the style for the seek bar the bitmap shows up not stretched and repeating. Changing the gravity attribute has no affect on the repeating. I thought it might have something to do with the nesting of the layer list, like that the item in the parent-list is being repeated. The guide on Drawable Resources seemingly warns on this issue and suggests using a bitmap to control stretching and repeating but even when I reduce the item to just a bitmap (not a nested layer-list) gravity still has no affect. -- 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: Check permissions
There are users who don't read the app description nor the comments. They don't write an email to ask just write a bad comment. So explaining it doesn't help because they don't read. I always try to answer comments but the next comments keep asking the same questions. So I'm not satisfied with this permission model, what about you? -- 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] [Monkeyrunner]: How to simulate short press on power button
Hello guys, Any help on how to simulate short key press on Power button using MonkeyRunner? I am using the following code but to no avail device.press('KEYCODE_POWER','DOWN') Really appreciate!!! -- 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: Out of memory - despite being way under 16mb
I have an even more frustrating version of that bug. We use a mapview that supports rotation and thus is slightly larger than the screen area. When users zoom in a few times they can very easily cause the OOM condition. I have no control over the way the Google Maps API works, do I? By the way, OOM is catchable. Not that it would help much though... Here's my current code public void onClick(View v) { v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); System.gc(); try { mMapView.getController().zoomIn(); } catch (OutOfMemoryError e) { e.printStackTrace(); } System.gc(); zoomLevel = mMapView.getZoomLevel(); SharedPreferences.Editor editor = settings.edit(); editor.putInt(zoomLevel, zoomLevel); editor.commit(); } On Feb 25, 6:07 pm, String sterling.ud...@googlemail.com wrote: Sounds to me like you are probably hitting the bitmap deallocation problem:http://code.google.com/p/android/issues/detail?id=8488 In summary, the issue is that bitmap memory takes several GC passes to deallocate, so it's really easy to get ahead of the GC and run out of memory. AFAIK, there's no fix. You can help the situation somewhat by calling System.gc() after every Bitmap.recycle() call, and again before every bitmap allocation. But that's only somewhat. I've also found that setting bitmap variables to null after recycling them makes matters worse, but YMMV. String -- 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: Bitmap Question
Ok, so I figured out how to resize bitmaps, but now I am trying to figuare out how to resize a Media (which plays a gif...unless there is a better way to play gifs?). For those looking on how to resize a bitmap do the following: 1. get the width and height of screen/view. 2. set a ratioWidth var to ScreenWidth/WidthDevelopedFor 3. set a ratioHeight var to ScreenHeight/HeightDevelopedFor 4. then in your bitmap after you decode the resource, next do Bitmap.createScaledBitmap. In the new x do BitmapVar.getWidth()*ratioWidth and in the new y do BimapVar.getHeight()*ratioHeight. Hope that helps. So, back to my question, how do you resize some Media class? I was thinking canvas.scale and canvas.translate, but that really isnt working. Again..if there is a better way to play gifs, i am all ears. Thanks. On Feb 26, 10:21 am, Scott Deutsch surger...@gmail.com wrote: Hello Group, I was wondering how do you scale a bitmap to look good on any screen size (Using surfaceview and canvas). I already know the canvas width and canvas height. So, what would the calculation be? Example lets say I have a picture that is 100x100 and the phone size is 1920x1200 (just for the sake of it). Now when displaying that on the phone, it will look small. So, how do i scale that up to be bigger based on the aspect ratio or resolution. Just say the developed phone resolution was 480x854 (so all pics was created after that res). So, if the resolution is smaller i want to scale the bitmap down, and if it is bigger, i want to scale it up. Any feedback is appreciated, 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: Android 2.3: Music content providers for artists, albums and songs
Well I don't think so. It was really cool to build apps like a mesh up of activities others implemented. I know a lot of developers who used exactly this intents and this change really killed all of them. Only Google apps like Search are still able to use these intents. This is not what I expect from an open platform where 3rd party developers should be able to write apps with the same quality as Google. But ok if your argumentation goes that way, what shall I say, well done my app is dead. I'm pretty sure others too. On 25 Feb., 20:03, TreKing treking...@gmail.com wrote: On Fri, Feb 25, 2011 at 7:45 AM, Daniel daniel.himmel...@googlemail.comwrote: The activities ArtistAlbumBrowserActivity, AlbumBrowserActivity and TrackBrowserActivity cannot be started anymore by an Intent (e.g. using action.PICK and vnd.android.cursor.dir/album) since the attribute android:exported is set to false for those activities since Android 2.3 Is (or was) it documented somewhere that this is the proper way to do this? That is really annoying because the Intent stuff was once one of Android's strength's and now you are not allowed to use this stuff any more. That's a shame... Intent stuff is still one of Android's strengths - when used correctly. It looks like you were exploiting private implementation details to get this to work. You should not be surprised that it has changed. --- -- 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: Check permissions
BTW, I've seen apps in Market that explain (in the now-much-extended description field) why they need the permissions they do, one by one. Not sure if that can address potential doubts of each and every user (there are some paranoid types out there), but it certainly creates a good impression, hopefully increasing the level of trust. I know it really makes me feel all warm and fuzzy inside when the dev explains why they need certain permissions in the description! There are users who don't read the app description nor the comments. They don't write an email to ask just write a bad comment. So explaining it doesn't help because they don't read. I always try to answer comments but the next comments keep asking the same questions. There will ALWAYS be those people who don't pay attention, don't care, are jerks, having a bad day and take it out on you, are moronic, etc... (ex. Lady buys HOT coffee :: due to her clumsyness, lady spills HOT coffee in her own lap :: lady gets pissed off and successfully sues business that sold her the HOT coffee... **because the coffee was too hot and burned her!!!** GO FIGURE!!!) I find peace just trying to control those things that I actually have control over. -- 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: Android 2.3: Music content providers for artists, albums and songs
Btw, the problem is not that something was changed (yes I know it was not documented). But the platform lost some of its openness for 3rd party developers. On 26 Feb., 21:26, Daniel daniel.himmel...@googlemail.com wrote: Well I don't think so. It was really cool to build apps like a mesh up of activities others implemented. I know a lot of developers who used exactly this intents and this change really killed all of them. Only Google apps like Search are still able to use these intents. This is not what I expect from an open platform where 3rd party developers should be able to write apps with the same quality as Google. But ok if your argumentation goes that way, what shall I say, well done my app is dead. I'm pretty sure others too. On 25 Feb., 20:03, TreKing treking...@gmail.com wrote: On Fri, Feb 25, 2011 at 7:45 AM, Daniel daniel.himmel...@googlemail.comwrote: The activities ArtistAlbumBrowserActivity, AlbumBrowserActivity and TrackBrowserActivity cannot be started anymore by an Intent (e.g. using action.PICK and vnd.android.cursor.dir/album) since the attribute android:exported is set to false for those activities since Android 2.3 Is (or was) it documented somewhere that this is the proper way to do this? That is really annoying because the Intent stuff was once one of Android's strength's and now you are not allowed to use this stuff any more. That's a shame... Intent stuff is still one of Android's strengths - when used correctly. It looks like you were exploiting private implementation details to get this to work. You should not be surprised that it has changed. --- -- 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: Check permissions
I do have a suggestion for you - you could implement additional functionality as an add-on, a companion application. Android has features that make it pretty easy to implement (shared user ids, intents, services, being able to query installed packages and intent resolution). Some applications that are available in Market already do this (e.g. Smart Keyboard, ES File Explorer, those are just the ones I use, there are certainly many more). 26.02.2011 22:18, b_t пишет: There are users who don't read the app description nor the comments. They don't write an email to ask just write a bad comment. Yes, users are a pain - they are ignorant, paranoid, moronic, inarticulate. The world would a better place without them :) /irony So explaining it doesn't help because they don't read. I always try to answer comments but the next comments keep asking the same questions. True. But I also find that sometimes there are things you can do to address certain often asked questions or misunderstood functionality - like adding a help button, or tweaking how the information is presented, so it's more obvious. So I'm not satisfied with this permission model, what about you? Well, my two current application are so simple, it's not even funny. The permissions they request are obvious, so my experience doesn't really apply here. -- Kostya Vasilyev -- 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] LVL and new SDKs
I finally downloaded the 2.3.3 and 3.0 SDKs and like 2.3 LVL does not work with the emulators. Anyone else seeing this? A number of people reported seeing it with 2.3 and I've never seen a resolution to the problem. Is there something extra we have to do for these platforms? Kinda makes it difficult to support new platforms if want to use licensing. -- 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: Android 2.3: Music content providers for artists, albums and songs
The music app is an implementation detail; I don't do the app, but I assume this was done because people shouldn't be relying on the implementation detail of it being implemented as separate activities. The media provider is still in the SDK, and is the same thing the media application uses for this UI. You can just copy the code you want and use it in your own activity. This didn't lose its openness for third party developers in any way, shape, or form. If you want to define openness that way, well then Linux desktops aren't open because they don't allow apps to launch pieces of other apps at all. On Sat, Feb 26, 2011 at 12:30 PM, Daniel daniel.himmel...@googlemail.comwrote: Btw, the problem is not that something was changed (yes I know it was not documented). But the platform lost some of its openness for 3rd party developers. On 26 Feb., 21:26, Daniel daniel.himmel...@googlemail.com wrote: Well I don't think so. It was really cool to build apps like a mesh up of activities others implemented. I know a lot of developers who used exactly this intents and this change really killed all of them. Only Google apps like Search are still able to use these intents. This is not what I expect from an open platform where 3rd party developers should be able to write apps with the same quality as Google. But ok if your argumentation goes that way, what shall I say, well done my app is dead. I'm pretty sure others too. On 25 Feb., 20:03, TreKing treking...@gmail.com wrote: On Fri, Feb 25, 2011 at 7:45 AM, Daniel daniel.himmel...@googlemail.comwrote: The activities ArtistAlbumBrowserActivity, AlbumBrowserActivity and TrackBrowserActivity cannot be started anymore by an Intent (e.g. using action.PICK and vnd.android.cursor.dir/album) since the attribute android:exported is set to false for those activities since Android 2.3 Is (or was) it documented somewhere that this is the proper way to do this? That is really annoying because the Intent stuff was once one of Android's strength's and now you are not allowed to use this stuff any more. That's a shame... Intent stuff is still one of Android's strengths - when used correctly. It looks like you were exploiting private implementation details to get this to work. You should not be surprised that it has changed. --- -- 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 -- 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
Re: [android-developers] Re: Android 2.3: Music content providers for artists, albums and songs
Oh also, the media app still does support the proper way to have it pick a music track for you, through GET_CONTENT if audio/*. On Sat, Feb 26, 2011 at 1:09 PM, Dianne Hackborn hack...@android.comwrote: The music app is an implementation detail; I don't do the app, but I assume this was done because people shouldn't be relying on the implementation detail of it being implemented as separate activities. The media provider is still in the SDK, and is the same thing the media application uses for this UI. You can just copy the code you want and use it in your own activity. This didn't lose its openness for third party developers in any way, shape, or form. If you want to define openness that way, well then Linux desktops aren't open because they don't allow apps to launch pieces of other apps at all. On Sat, Feb 26, 2011 at 12:30 PM, Daniel daniel.himmel...@googlemail.comwrote: Btw, the problem is not that something was changed (yes I know it was not documented). But the platform lost some of its openness for 3rd party developers. On 26 Feb., 21:26, Daniel daniel.himmel...@googlemail.com wrote: Well I don't think so. It was really cool to build apps like a mesh up of activities others implemented. I know a lot of developers who used exactly this intents and this change really killed all of them. Only Google apps like Search are still able to use these intents. This is not what I expect from an open platform where 3rd party developers should be able to write apps with the same quality as Google. But ok if your argumentation goes that way, what shall I say, well done my app is dead. I'm pretty sure others too. On 25 Feb., 20:03, TreKing treking...@gmail.com wrote: On Fri, Feb 25, 2011 at 7:45 AM, Daniel daniel.himmel...@googlemail.comwrote: The activities ArtistAlbumBrowserActivity, AlbumBrowserActivity and TrackBrowserActivity cannot be started anymore by an Intent (e.g. using action.PICK and vnd.android.cursor.dir/album) since the attribute android:exported is set to false for those activities since Android 2.3 Is (or was) it documented somewhere that this is the proper way to do this? That is really annoying because the Intent stuff was once one of Android's strength's and now you are not allowed to use this stuff any more. That's a shame... Intent stuff is still one of Android's strengths - when used correctly. It looks like you were exploiting private implementation details to get this to work. You should not be surprised that it has changed. --- -- 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 -- 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. -- 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
Re: [android-developers] Re: Check permissions
Yes a help application works well. Just be sure that if you do such a thing it is in a secure way -- for example if this is structured as a Service that your main application binds to in order to have it do stuff with SMS messages, declare a signature permission in the help that restricts access to it, and use it in your main app. This way other applications can't get the permission and can't find to your service and abuse you as a security hole (in which case your helper app will get the blame, since it is the one accessing the SMS data). On Sat, Feb 26, 2011 at 12:32 PM, Kostya Vasilyev kmans...@gmail.comwrote: I do have a suggestion for you - you could implement additional functionality as an add-on, a companion application. Android has features that make it pretty easy to implement (shared user ids, intents, services, being able to query installed packages and intent resolution). Some applications that are available in Market already do this (e.g. Smart Keyboard, ES File Explorer, those are just the ones I use, there are certainly many more). 26.02.2011 22:18, b_t пишет: There are users who don't read the app description nor the comments. They don't write an email to ask just write a bad comment. Yes, users are a pain - they are ignorant, paranoid, moronic, inarticulate. The world would a better place without them :) /irony So explaining it doesn't help because they don't read. I always try to answer comments but the next comments keep asking the same questions. True. But I also find that sometimes there are things you can do to address certain often asked questions or misunderstood functionality - like adding a help button, or tweaking how the information is presented, so it's more obvious. So I'm not satisfied with this permission model, what about you? Well, my two current application are so simple, it's not even funny. The permissions they request are obvious, so my experience doesn't really apply here. -- Kostya Vasilyev -- 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 -- 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: LVL and new SDKs
Yeah the problem still seems to exist. Thankfully it's only in the emulator though, at least for 2.3.3 (I'm testing on a Nexus One and it works properly). Can anybody vouch for 3.0? -- 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: GOOGLE TO BAN PAYPAL?!
On Fri, Feb 25, 2011 at 10:24 PM, HeyYouThere newsome...@gmail.com wrote: Thanks everyone for taking the time to try and help me with this. It's an absolute shame we have NO OFFICIAL SUPPORT to direct these questions toward. Have you tried going to the Market support forum? http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5c590cd22eehl=en There are people from Market support answering questions there. They are not here; this group is for developing applications against the SDK. -- 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: Android 2.3: Music content providers for artists, albums and songs
Hello Dianne, ah ok, I will try the GET_CONTENT with audio/*. But can I also use it for artists and albums? And yes ok, I can copy the code of your activities (I will try this out now). But I would really appreciate to eat Google's dogfood here and don't want to invent the wheel again by myself. I also think this is not what the users expect from the Android platform, because maybe my activity will be somehow different from Googles (maybe in future versions) and the users will not understand why... For me the intent stuff really makes up some of Android's modularity and openness. Yes it is right that desktop Linux does not have this feature. That's why I like Android much more than desktop Linux :-). But I really don't want to start a flamewar on this topic. I simply do not understand why these activities are not available anymore to 3rd party developers. Maybe it is because of task stacks, but I don't know. Best regards, Daniel On 26 Feb., 22:10, Dianne Hackborn hack...@android.com wrote: Oh also, the media app still does support the proper way to have it pick a music track for you, through GET_CONTENT if audio/*. On Sat, Feb 26, 2011 at 1:09 PM, Dianne Hackborn hack...@android.comwrote: The music app is an implementation detail; I don't do the app, but I assume this was done because people shouldn't be relying on the implementation detail of it being implemented as separate activities. The media provider is still in the SDK, and is the same thing the media application uses for this UI. You can just copy the code you want and use it in your own activity. This didn't lose its openness for third party developers in any way, shape, or form. If you want to define openness that way, well then Linux desktops aren't open because they don't allow apps to launch pieces of other apps at all. On Sat, Feb 26, 2011 at 12:30 PM, Daniel daniel.himmel...@googlemail.comwrote: Btw, the problem is not that something was changed (yes I know it was not documented). But the platform lost some of its openness for 3rd party developers. On 26 Feb., 21:26, Daniel daniel.himmel...@googlemail.com wrote: Well I don't think so. It was really cool to build apps like a mesh up of activities others implemented. I know a lot of developers who used exactly this intents and this change really killed all of them. Only Google apps like Search are still able to use these intents. This is not what I expect from an open platform where 3rd party developers should be able to write apps with the same quality as Google. But ok if your argumentation goes that way, what shall I say, well done my app is dead. I'm pretty sure others too. On 25 Feb., 20:03, TreKing treking...@gmail.com wrote: On Fri, Feb 25, 2011 at 7:45 AM, Daniel daniel.himmel...@googlemail.comwrote: The activities ArtistAlbumBrowserActivity, AlbumBrowserActivity and TrackBrowserActivity cannot be started anymore by an Intent (e.g. using action.PICK and vnd.android.cursor.dir/album) since the attribute android:exported is set to false for those activities since Android 2.3 Is (or was) it documented somewhere that this is the proper way to do this? That is really annoying because the Intent stuff was once one of Android's strength's and now you are not allowed to use this stuff any more. That's a shame... Intent stuff is still one of Android's strengths - when used correctly. It looks like you were exploiting private implementation details to get this to work. You should not be surprised that it has changed. --- -- 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 -- 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. -- 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
[android-developers] CountDownTimer + updating textview and imageview
My Goal: display time in second on the screen and display battery (in my game) left. (its a time limit) My problem: the battery is only updating at certain times (like when I click open or close my in game menu, which just takes a layout and makes it visible and then invisible) My Second problem: I have no Idea how to make a text view update the time properly, just about every time the game crashes, Here Is some of my code if it helps.(I took out stuff that was not relevant) public TextView mTime; private static long timelimit; public static int batteryleft; public static int timeleft; private int BLock = 0; .. onCreate(){ timelimit = 3; MyCount counter = new MyCount(timelimit,1000); counter.start(); ... } // this is in the main loop private void batteryUpdate(){ ImageView batteryfill = (ImageView) findViewById(R.id.batteryfill); batteryfill.setMinimumWidth(batteryleft); batteryfill.setMaxHeight(batteryleft); // batteryfill.refreshDrawableState(); // this did not do anything } // my actual count down timer public static final class MyCount extends CountDownTimer{ public MyCount(long millisInFuture, long countDownInterval) { super(millisInFuture, countDownInterval); } @Override public final void onFinish() { System.out.println(Finished); } @Override public final void onTick(long millisUntilFinished) { batteryleft = (int) ((double)millisUntilFinished/timelimit * 130); timeleft = (int) (millisUntilFinished/1000); // mTime.setText(timeleft) // I dont know where to put the constructor for m time } } -- 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] CountDownTimer + updating textview and imageview
Brian Running a counter can not be in the UI (main thread),try this: http://developer.android.com/reference/android/os/CountDownTimer.html http://developer.android.com/reference/android/os/CountDownTimer.html Let me know how it's going. -- 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: Android 2.3: Music content providers for artists, albums and songs
Another observation, which could be a bug in the package manager: I have also a small life-wallpaper (the infamous discomagic) which starts a musicplayer with the intent: Intent intent = new Intent(Intent.ACTION_PICK); intent.setDataAndType(Uri.EMPTY, vnd.android.cursor.dir/track); intent.putExtra(Constants.ALBUM, ...); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); The funny thing is, that this leads also to a SecurityException (as long as no other Application is installed that filters for this intent). When I install e.g. MixZing which also supports this intent I get the regular ActivityChooser (with music and mixzing) and if I choose Music it works. Good or Bad? -- 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: Android 2.3: Music content providers for artists, albums and songs
On Sat, Feb 26, 2011 at 3:05 PM, gizmomogwai christian.koest...@gmail.comwrote: Intent intent = new Intent(Intent.ACTION_PICK); intent.setDataAndType(Uri.EMPTY, vnd.android.cursor.dir/track); That is a bogus Intent. The definition for the PICK intent is that the data URI is the location of the data from which to pick from; you do not specify the MIME type because that is implied by the given data URI. (Btw I think the old implementation of the music did do something with this kind of Intent, but it is wrong, and is probably another reason why it is explicitly not allowing it to be used like this.) -- 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
Re: [android-developers] Re: Android 2.3: Music content providers for artists, albums and songs
At the end of the day, these are not documented in the SDK, the music app is something vendors tend to replace and customize, and trying to use these things in it is very likely to cause you problems across devices as they don't behave the same (at all) as what you are assuming. On Sat, Feb 26, 2011 at 1:32 PM, Daniel daniel.himmel...@googlemail.comwrote: Hello Dianne, ah ok, I will try the GET_CONTENT with audio/*. But can I also use it for artists and albums? And yes ok, I can copy the code of your activities (I will try this out now). But I would really appreciate to eat Google's dogfood here and don't want to invent the wheel again by myself. I also think this is not what the users expect from the Android platform, because maybe my activity will be somehow different from Googles (maybe in future versions) and the users will not understand why... For me the intent stuff really makes up some of Android's modularity and openness. Yes it is right that desktop Linux does not have this feature. That's why I like Android much more than desktop Linux :-). But I really don't want to start a flamewar on this topic. I simply do not understand why these activities are not available anymore to 3rd party developers. Maybe it is because of task stacks, but I don't know. Best regards, Daniel On 26 Feb., 22:10, Dianne Hackborn hack...@android.com wrote: Oh also, the media app still does support the proper way to have it pick a music track for you, through GET_CONTENT if audio/*. On Sat, Feb 26, 2011 at 1:09 PM, Dianne Hackborn hack...@android.com wrote: The music app is an implementation detail; I don't do the app, but I assume this was done because people shouldn't be relying on the implementation detail of it being implemented as separate activities. The media provider is still in the SDK, and is the same thing the media application uses for this UI. You can just copy the code you want and use it in your own activity. This didn't lose its openness for third party developers in any way, shape, or form. If you want to define openness that way, well then Linux desktops aren't open because they don't allow apps to launch pieces of other apps at all. On Sat, Feb 26, 2011 at 12:30 PM, Daniel daniel.himmel...@googlemail.comwrote: Btw, the problem is not that something was changed (yes I know it was not documented). But the platform lost some of its openness for 3rd party developers. On 26 Feb., 21:26, Daniel daniel.himmel...@googlemail.com wrote: Well I don't think so. It was really cool to build apps like a mesh up of activities others implemented. I know a lot of developers who used exactly this intents and this change really killed all of them. Only Google apps like Search are still able to use these intents. This is not what I expect from an open platform where 3rd party developers should be able to write apps with the same quality as Google. But ok if your argumentation goes that way, what shall I say, well done my app is dead. I'm pretty sure others too. On 25 Feb., 20:03, TreKing treking...@gmail.com wrote: On Fri, Feb 25, 2011 at 7:45 AM, Daniel daniel.himmel...@googlemail.comwrote: The activities ArtistAlbumBrowserActivity, AlbumBrowserActivity and TrackBrowserActivity cannot be started anymore by an Intent (e.g. using action.PICK and vnd.android.cursor.dir/album) since the attribute android:exported is set to false for those activities since Android 2.3 Is (or was) it documented somewhere that this is the proper way to do this? That is really annoying because the Intent stuff was once one of Android's strength's and now you are not allowed to use this stuff any more. That's a shame... Intent stuff is still one of Android's strengths - when used correctly. It looks like you were exploiting private implementation details to get this to work. You should not be surprised that it has changed. --- -- 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 -- 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
Re: [android-developers] bitmap drawable resource gravity ignored in layer list?
The seek bar is not a slide to unlock UI. Honestly, write your own custom view for this. On Sat, Feb 26, 2011 at 10:38 AM, nkijak nki...@gmail.com wrote: I'm trying to build a seek bar with text in/under it to make something akin to the slide to unlock bar on the iPhone. I figured I'd change the style of the seek bar and added: layer-list ... item android:id=@android:id/background layer-list item shape corners android:radius=10dip / gradient android:startColor=#88747674 android:centerColor=#885a5d5a android:centerY=0.25 android:endColor=#889d9e9d android:angle=270 / /shape /item item bitmap android:src=@drawable/slide_to_finish_label android:gravity=fill_horizontal/ /item /layer-list /item ... /layer-list slide_to_finish_label is a 9-patch PNG. The default tile mode is listed as none. When I use this nested layer-list as the background of my app it works as I expect. My bitmap shows up stretched side to side but not up and down. When I use this as the style for the seek bar the bitmap shows up not stretched and repeating. Changing the gravity attribute has no affect on the repeating. I thought it might have something to do with the nesting of the layer list, like that the item in the parent-list is being repeated. The guide on Drawable Resources seemingly warns on this issue and suggests using a bitmap to control stretching and repeating but even when I reduce the item to just a bitmap (not a nested layer-list) gravity still has no affect. -- 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 -- 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
Re: [android-developers] Re: SDcard mount point in portable way?
On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky golubov...@gmail.comwrote: I am not worried about Market at all. I am worried about the portable way to tell my program where is the sdcard root directory is mounted because part of the usage scenario is user being able to upload certain files to sdcard where my program must be able to find them. To clarify, this is a port of Squeak (Smalltalk) [1], [2] to Android which I am trying to alter to fit my needs; in particular the original port loaded the image from assets, but I would like to be able to load it from sdcard where user may place it after customization using an instance of Squeak on user's PC. The correct way to do this is Environment.getExternalStorageDirectory(). If you want to make your application work on an incompatible device that has this API broken, you will need to write code specifically for that device. There is no magical solution that makes your app work regardless of what someone has done to Android. -- 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
Re: [android-developers] CountDownTimer + updating textview and imageview
The thing I'm confused about is where do I put this and how to i set it up TextView mTime = (TextView) findViewById(R.id.TextView06); so that this works mTime.setText(timeleft); in the counter On Sat, Feb 26, 2011 at 5:40 PM, J Handal jhand...@gmail.com wrote: Brian Running a counter can not be in the UI (main thread),try this: http://developer.android.com/reference/android/os/CountDownTimer.html http://developer.android.com/reference/android/os/CountDownTimer.html Let me know how it's going. -- 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
Re: [android-developers] CountDownTimer + updating textview and imageview
*WOW* *lol* *All I Had to do was change *TextView mTime = (TextView) findViewById(R.id.TextView06); to mTime = (TextView) findViewById(R.id.TextView06); lol you cant declare something twice On Sat, Feb 26, 2011 at 6:46 PM, brian purgert brianpurge...@gmail.comwrote: The thing I'm confused about is where do I put this and how to i set it up TextView mTime = (TextView) findViewById(R.id.TextView06); so that this works mTime.setText(timeleft); in the counter On Sat, Feb 26, 2011 at 5:40 PM, J Handal jhand...@gmail.com wrote: Brian Running a counter can not be in the UI (main thread),try this: http://developer.android.com/reference/android/os/CountDownTimer.html http://developer.android.com/reference/android/os/CountDownTimer.html Let me know how it's going. -- 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
Re: [android-developers] Focus is not coming on list in slidingDrawer
On Fri, Feb 25, 2011 at 7:58 AM, Manish Garg mannishga...@gmail.com wrote: now focus is on my child activity when I am clicking on slidingDrawer, it is getting opened but focus is not coming on the list That's not really surprising. If you need focus on the ListView in the sliding drawer, call requestFocus() on it when the sliding drawer is opened. But why is this a problem? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [Monkeyrunner]: How to simulate short press on power button
Hello guys, Any help on how to simulate short key press on Power button using MonkeyRunner? I am using the following code but to no avail device.press('KEYCODE_POWER','DOWN') Really appreciate!!! -- 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: Using Facebook API in Android
That may be what you wanted to do, and the desire is justifiable, but the way you went about it is not. What you need even more desperately than info about using the API is http://www.catb.org/~esr/faqs/smart-questions.html On Feb 25, 2:30 pm, mohammad arif mohammad.arif.f...@gmail.com wrote: That is not the case so. In Fact i made static applications but accessing API was kind of fuzzy thing with the JSON things etc. Thats why i just wanted to take an over view of how API are used. -- 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: Storing Date and Time in SQLite
But if you have already seen the link, then you should be able to figure it out on your own. Asking for the exact code sounds too much like asking for us to do your homework for you. That is NOT why we are here. Again, as I have mentioned to so many, see http://www.catb.org/~esr/faqs/smart-questions.html. On Feb 25, 2:08 pm, Brad Stintson geek.bin...@gmail.com wrote: I saw that link. It would be great if someone can provide me example of the same.On Sat, Feb 26, 2011 at 1:40 AM, DanH danhi...@ieee.org wrote: http://www.sqlite.org/datatype3.html On Feb 25, 1:38 pm, Brad Stintson geek.bin...@gmail.com wrote: Hi, I am developing an application in which I need to save date and time as two different sqlite database entries and input is taken from two different date and time dialogs. How to store date and time in database, so that they can be retrieved in date format? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SDcard mount point in portable way?
What does this API do on a phone that has two SD cards? Does it just pick only one of them? Or do all such devices fail CDD and so are not on the Google Android Market? On Feb 26, 3:41 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky golubov...@gmail.comwrote: I am not worried about Market at all. I am worried about the portable way to tell my program where is the sdcard root directory is mounted because part of the usage scenario is user being able to upload certain files to sdcard where my program must be able to find them. To clarify, this is a port of Squeak (Smalltalk) [1], [2] to Android which I am trying to alter to fit my needs; in particular the original port loaded the image from assets, but I would like to be able to load it from sdcard where user may place it after customization using an instance of Squeak on user's PC. The correct way to do this is Environment.getExternalStorageDirectory(). If you want to make your application work on an incompatible device that has this API broken, you will need to write code specifically for that device. There is no magical solution that makes your app work regardless of what someone has done to Android. -- 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
Re: [android-developers] Do existing scheduled items on the AlarmManager get cancelled after an application update from the Marketplace?
On Fri, Feb 25, 2011 at 11:07 AM, Matt Quigley matthew.quig...@gmail.comwrote: If an application update is available, and the user updates the application at 10 AM through the Marketplace app, does that update remove all scheduled events from the AlarmManager? Or will the service still start at noon? AFAIK, your alarms are wiped, it will not start at noon. On the other hand, if the AlarmManager DOES remove all the scheduled events, how is your application supposed to restart the services? On startup of your main app. Or catching one of the package updated broadcasts. I believe I saw a thread a while back (couldn't find it, sorry) where someone had this same issue and was able to use this broadcast to know when their app was updated and it was time to reset the alarms. 1. You can't tell on the application startup whether or not your previous services have been cancelled, because there is no way for your application to query AlarmManager to see if your services are still scheduled or not. It doesn't matter. Assume it's been wiped and reschedule your alarms - matching PendingIntents will overwrite anything already set. 2. You can't blindly start your service at app startup, because you don't want a service that is supposed to run every 24 hours to run 5 times a day if the user starts your app 5 times that day. No, but you can check if you app has been updated (simple setting you can keep and check against) and if so reschedule your alarms, to be safe. 3. Even if you persist a flag to disk indicating that your service is running, your application doesn't receive an event that the service was stopped (that I know of), so you can't turn that flag off if the service is cancelled during an application update. Yeah, no, don't even try that. Does anyone have any advice on how to reliably keep a service scheduled consistently after an application update? Try the package updated broadcast. - 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: SDcard mount point in portable way?
It returns the main partition, that you can count on being populated; for a device with a built-in USB mass storage and an external SD card it will return the built-in one. Android does not yet define the behavior for dealing with multiple SD cards. Devices that use that configuration are outside of the core platform, and should provide their own mechanism for them if they want -- such as a shared library to find out about the secondary storage. The platform really needs to define a good UX story around this before just throwing APIs at developers. On Sat, Feb 26, 2011 at 4:11 PM, Indicator Veritatis mej1...@yahoo.comwrote: What does this API do on a phone that has two SD cards? Does it just pick only one of them? Or do all such devices fail CDD and so are not on the Google Android Market? On Feb 26, 3:41 pm, Dianne Hackborn hack...@android.com wrote: On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky golubov...@gmail.comwrote: I am not worried about Market at all. I am worried about the portable way to tell my program where is the sdcard root directory is mounted because part of the usage scenario is user being able to upload certain files to sdcard where my program must be able to find them. To clarify, this is a port of Squeak (Smalltalk) [1], [2] to Android which I am trying to alter to fit my needs; in particular the original port loaded the image from assets, but I would like to be able to load it from sdcard where user may place it after customization using an instance of Squeak on user's PC. The correct way to do this is Environment.getExternalStorageDirectory(). If you want to make your application work on an incompatible device that has this API broken, you will need to write code specifically for that device. There is no magical solution that makes your app work regardless of what someone has done to Android. -- 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 -- 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
Re: [android-developers] Multiple TextViews vs Spannable
On Fri, Feb 25, 2011 at 7:01 AM, Andre int...@gmail.com wrote: 1) Create 3 separate TextView's, each with it's own static style 2) One TextView then using Spannable to apply styles to those lines dynamically I don't know and if no one has an answer for you, it shouldn't be too hard to try both and profile to find out for yourself. - 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: bitmap drawable resource gravity ignored in layer list?
I was going to go that route but SeekBar does 99% of what I need. You guys did most of the work, keeping the moving part horizontally stable, animations, etc. I literally had to add 6 lines of code to get what I needed logically and then add some style. I should have made the question clearer. The meat of the question is about layer-lists with bitmaps. Which would be the same if I just wanted to style a horizontal progress bar with an image. So is it expected that the gravity attribute be ignored or do I need to specify something elsewhere to not have the images repeating? Thanks, Nick On Feb 26, 6:38 pm, Dianne Hackborn hack...@android.com wrote: The seek bar is not a slide to unlock UI. Honestly, write your own custom view for this. On Sat, Feb 26, 2011 at 10:38 AM, nkijak nki...@gmail.com wrote: I'm trying to build a seek bar with text in/under it to make something akin to the slide to unlock bar on the iPhone. I figured I'd change the style of the seek bar and added: layer-list ... item android:id=@android:id/background layer-list item shape corners android:radius=10dip / gradient android:startColor=#88747674 android:centerColor=#885a5d5a android:centerY=0.25 android:endColor=#889d9e9d android:angle=270 / /shape /item item bitmap android:src=@drawable/slide_to_finish_label android:gravity=fill_horizontal/ /item /layer-list /item ... /layer-list slide_to_finish_label is a 9-patch PNG. The default tile mode is listed as none. When I use this nested layer-list as the background of my app it works as I expect. My bitmap shows up stretched side to side but not up and down. When I use this as the style for the seek bar the bitmap shows up not stretched and repeating. Changing the gravity attribute has no affect on the repeating. I thought it might have something to do with the nesting of the layer list, like that the item in the parent-list is being repeated. The guide on Drawable Resources seemingly warns on this issue and suggests using a bitmap to control stretching and repeating but even when I reduce the item to just a bitmap (not a nested layer-list) gravity still has no affect. -- 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 -- 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
Re: [android-developers] Re:installation
On Fri, Feb 25, 2011 at 3:02 AM, prasad seemakurthi prasad.seemakur...@gmail.com wrote: But when I try to install the ADT plugin I am getting an error Posting what the error is usually helps. - 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] TableLayout issue
On Sat, Feb 26, 2011 at 8:11 AM, rael_yoni yoni.stoff...@gmail.com wrote: any ideas are welcome... thanks. Ideas: Give you rows width=fill_parent. Give each of your ImageSwitchers weight=1. Theoretically this would make your rows fill the width of the screen and the switcher each take up equal space within them. - 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] Launching an app from the quick search box creates a new instance of the app?
On Fri, Feb 25, 2011 at 12:23 AM, ZEAN QIN qinz...@gmail.com wrote: While the 4th way seems to create a new instance of my app and crashes my app. If the fourth way crashes your app, why not figure out why your app is crashing instead of masking the problem by preventing it from being launched that way? - 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: bitmap drawable resource gravity ignored in layer list?
So is it expected that the gravity attribute be ignored or do I need to specify something elsewhere to not have the images repeating? It should work as gravity is a documented attribute for a BitmapDrawable. Maybe it's time to dwelve into the source code and see if it is actually does anything. -- 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: Multiple TextViews vs Spannable
My guess, all else being equal, is that a View is a much heavier object than a Spannable. But which one is better is impossible to say because it requires to know what you want for and how you want to use the text lines for. On Feb 25, 9:01 pm, Andre int...@gmail.com wrote: Let's say you have three lines of text to display. Which is more resource efficient: 1) Create 3 separate TextView's, each with it's own static style 2) One TextView then using Spannable to apply styles to those lines dynamically -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Detecting Package Update
How can a package determine that it has been updated and that it, therefore, must stop and restart itself? Specifically, if my appwidget is installed on the homescreen and the user downloads a new version, I have to make sure that the widget is uninstalled and reinstalled so that it executes the later version of the app. I don't think that happens automatically, does it? -- Jake Colman -- Android Tinkerer -- 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: GOOGLE TO BAN PAYPAL?!
On Sat, Feb 26, 2011 at 3:27 PM, Dianne Hackborn hack...@android.comwrote: Have you tried going to the Market support forum? http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5c590cd22eehl=en There are people from Market support answering questions there. LOL - Seriously? With all due respect Dianne, have you actually been over there? I spend about as much time there as I do here and I assure you, there is ***no one*** from the Market team answering *anything* over there. There was a time when you could count on Dontae to at least chime in with a bulls*** canned we're looking into it response, but in the last like 6 months or so I have not seen a single response from a Google Employee in that support forum. Sometimes, if you win a lottery, they'll respond to direct developer support requests when major stuff breaks (like the stats that are always breaking). But no one, and I mean NO ONE, from the Market has ever taken even 5 seconds to answer questions only someone from Google could answer, like the points of the TOS discussed here (and this issue has come up quite a few times). At least AFAIK - if you happen to know where these types of questions have been answered, I'm sure we'd all like to know where to go look. I mean, look at what you, Romain, Xavier, and others do here: spending your own free time helping us out wherever you can with issues others can't. I presume you all do this because you care about the product and want us to have a good experience using it. That's why it truly boggles my mind that not a single individual on the Market Team gives enough of a damn about *their* product to respond to even a single post. So, unfortunately, the OP is absolutely correct. Support for the Android Market for both users and developers is essentially non-existent. And this lack of support (and for me personally the fact that no one on that team seems to give a damn) is the chief reason why so many developers have such a terrible perception of everything and anything that has to do with the Android Market. - 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] Preventing Multiple AppWidget Instances
Is there a way to prevent multiple instances of an appwidget from being installed on the home screen? I do not do any special handling, nor is it intended, for there to multiple instances. Therefore, I should probably prevent it or at least warn about it. Is this possible? -- Jake Colman -- Android Tinkerer -- 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] (Newbie warning) Adding one of the sample projects to Eclipse
Hey! I am learning Android development via a book and one of the exercises it mentions is to Add to your Eclipse workspace one of the Android sample projects provided with the Android SDK. Browse through the project files and then create a run configuration and launch the sample application in the emulator. I'm confused as to how to do this, can someone please walk me through this? Thanks in advance! Ryan -- 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] (Newbie warning) Adding one of the sample projects to Eclipse
On Sat, Feb 26, 2011 at 9:09 PM, Ryan S music...@gmail.com wrote: I'm confused as to how to do this Which part? - 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] (Newbie warning) Adding one of the sample projects to Eclipse
I did not elaborate because pretty much the whole thing. I mean I click on File-import-General-Existing projects into workspace-next, browsed to C:\Program Files (x86)\Android\android-sdk\samples\android-11 and clicked ok... but then it says no projects were found to import :( Confused... On Sun, Feb 27, 2011 at 5:11 AM, TreKing treking...@gmail.com wrote: On Sat, Feb 26, 2011 at 9:09 PM, Ryan S music...@gmail.com wrote: I'm confused as to how to do this Which part? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] (Newbie warning) Adding one of the sample projects to Eclipse
You need to go one more directory further and select one of the sample project directories, such as Snake. On Sat, Feb 26, 2011 at 9:23 PM, Ryan S music...@gmail.com wrote: I did not elaborate because pretty much the whole thing. I mean I click on File-import-General-Existing projects into workspace-next, browsed to C:\Program Files (x86)\Android\android-sdk\samples\android-11 and clicked ok... but then it says no projects were found to import :( Confused... On Sun, Feb 27, 2011 at 5:11 AM, TreKing treking...@gmail.com wrote: On Sat, Feb 26, 2011 at 9:09 PM, Ryan S music...@gmail.com wrote: I'm confused as to how to do this Which part? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Playing music in Background
Hi, I have developed an application in Android using Webview. Now i want to play a music in background. The Mp3 file will come from a URL dynamically. Any pointers would be helpful. I tried to search online but couldnt find much help. Thanks and regards, Ankur -- 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] (Newbie warning) Adding one of the sample projects to Eclipse
Ok, went one further to: C:\Program Files (x86)\Android\android-sdk\samples\android-11\Snake Still same message :( No projects were found to import On Sun, Feb 27, 2011 at 5:25 AM, Justin Giles jtgi...@gmail.com wrote: You need to go one more directory further and select one of the sample project directories, such as Snake. On Sat, Feb 26, 2011 at 9:23 PM, Ryan S music...@gmail.com wrote: I did not elaborate because pretty much the whole thing. I mean I click on File-import-General-Existing projects into workspace-next, browsed to C:\Program Files (x86)\Android\android-sdk\samples\android-11 and clicked ok... but then it says no projects were found to import :( Confused... On Sun, Feb 27, 2011 at 5:11 AM, TreKing treking...@gmail.com wrote: On Sat, Feb 26, 2011 at 9:09 PM, Ryan S music...@gmail.com wrote: I'm confused as to how to do this Which part? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: GOOGLE TO BAN PAYPAL?!
+100 The fact that Google takes 30% of sales, which, for my app, is well into 5 digits/yr and you cannot get any kind of support, is despicable. I cannot think of another enterprise that earns that much money from you and won't support you. Hopefully, when the Amazon Market goes up and running, it will provide competition to the Android Market and this will all improve, but I am not holding my breath. On Feb 27, 10:44 am, TreKing treking...@gmail.com wrote: On Sat, Feb 26, 2011 at 3:27 PM, Dianne Hackborn hack...@android.comwrote: Have you tried going to the Market support forum? http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5... There are people from Market support answering questions there. LOL - Seriously? With all due respect Dianne, have you actually been over there? I spend about as much time there as I do here and I assure you, there is ***no one*** from the Market team answering *anything* over there. There was a time when you could count on Dontae to at least chime in with a bulls*** canned we're looking into it response, but in the last like 6 months or so I have not seen a single response from a Google Employee in that support forum. Sometimes, if you win a lottery, they'll respond to direct developer support requests when major stuff breaks (like the stats that are always breaking). But no one, and I mean NO ONE, from the Market has ever taken even 5 seconds to answer questions only someone from Google could answer, like the points of the TOS discussed here (and this issue has come up quite a few times). At least AFAIK - if you happen to know where these types of questions have been answered, I'm sure we'd all like to know where to go look. I mean, look at what you, Romain, Xavier, and others do here: spending your own free time helping us out wherever you can with issues others can't. I presume you all do this because you care about the product and want us to have a good experience using it. That's why it truly boggles my mind that not a single individual on the Market Team gives enough of a damn about *their* product to respond to even a single post. So, unfortunately, the OP is absolutely correct. Support for the Android Market for both users and developers is essentially non-existent. And this lack of support (and for me personally the fact that no one on that team seems to give a damn) is the chief reason why so many developers have such a terrible perception of everything and anything that has to do with the Android Market. ----- 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] (Newbie warning) Adding one of the sample projects to Eclipse
On Sat, Feb 26, 2011 at 9:30 PM, Ryan S music...@gmail.com wrote: Ok, went one further to: C:\Program Files (x86)\Android\android-sdk\samples\android-11\Snake Still same message :( No projects were found to import File - New - Project - Android Project - Create Project From Existing Source - Browse to Snake. - 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] (Newbie warning) Adding one of the sample projects to Eclipse
Ah! That worked! Thanks! If my questions are too much of newbie questions for this group (it feels like it is) can anybody suggest a forum for total newbs like me to get basic answers to my questions? Thanks! Ryan On Sun, Feb 27, 2011 at 5:52 AM, TreKing treking...@gmail.com wrote: On Sat, Feb 26, 2011 at 9:30 PM, Ryan S music...@gmail.com wrote: Ok, went one further to: C:\Program Files (x86)\Android\android-sdk\samples\android-11\Snake Still same message :( No projects were found to import File - New - Project - Android Project - Create Project From Existing Source - Browse to Snake. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GOOGLE TO BAN PAYPAL?!
I cannot think of another enterprise that earns that much money from you and won't support you. It's especially funny (? not the right word for it) when compared to our users. We write apps that the user pays $1 or $2 for and then demands customer support and updates for the rest of their lives. The Google Market provides a service and takes 30% of our income, but doesn't even provide a method of contacting support. 1 star. Like TreKing, I'm very appreciative of Dianne, Romain and others Android developers that regularly post and help with Android development. I'm always happy when I'm googling for help on something and come across a post by one of them as I know it'll be interesting and detailed. -Kevin On Feb 26, 9:33 pm, Zsolt Vasvari zvasv...@gmail.com wrote: +100 The fact that Google takes 30% of sales, which, for my app, is well into 5 digits/yr and you cannot get any kind of support, is despicable. I cannot think of another enterprise that earns that much money from you and won't support you. Hopefully, when the Amazon Market goes up and running, it will provide competition to the Android Market and this will all improve, but I am not holding my breath. On Feb 27, 10:44 am, TreKing treking...@gmail.com wrote: On Sat, Feb 26, 2011 at 3:27 PM, Dianne Hackborn hack...@android.comwrote: Have you tried going to the Market support forum? http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5... There are people from Market support answering questions there. LOL - Seriously? With all due respect Dianne, have you actually been over there? I spend about as much time there as I do here and I assure you, there is ***no one*** from the Market team answering *anything* over there. There was a time when you could count on Dontae to at least chime in with a bulls*** canned we're looking into it response, but in the last like 6 months or so I have not seen a single response from a Google Employee in that support forum. Sometimes, if you win a lottery, they'll respond to direct developer support requests when major stuff breaks (like the stats that are always breaking). But no one, and I mean NO ONE, from the Market has ever taken even 5 seconds to answer questions only someone from Google could answer, like the points of the TOS discussed here (and this issue has come up quite a few times). At least AFAIK - if you happen to know where these types of questions have been answered, I'm sure we'd all like to know where to go look. I mean, look at what you, Romain, Xavier, and others do here: spending your own free time helping us out wherever you can with issues others can't. I presume you all do this because you care about the product and want us to have a good experience using it. That's why it truly boggles my mind that not a single individual on the Market Team gives enough of a damn about *their* product to respond to even a single post. So, unfortunately, the OP is absolutely correct. Support for the Android Market for both users and developers is essentially non-existent. And this lack of support (and for me personally the fact that no one on that team seems to give a damn) is the chief reason why so many developers have such a terrible perception of everything and anything that has to do with the Android Market. --- -- 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: GOOGLE TO BAN PAYPAL?!
For someone like me just starting on chapter 3 of a Learn Android book this has been a very educational, enlightening... and frightening thread :( The reason I came into Android is because I have a background in Java and didn't want to get stuck with Apple's iron first crap (CrApple) Looks like there is plenty of other kind of crap here :( On Sun, Feb 27, 2011 at 6:42 AM, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: I cannot think of another enterprise that earns that much money from you and won't support you. It's especially funny (? not the right word for it) when compared to our users. We write apps that the user pays $1 or $2 for and then demands customer support and updates for the rest of their lives. The Google Market provides a service and takes 30% of our income, but doesn't even provide a method of contacting support. 1 star. Like TreKing, I'm very appreciative of Dianne, Romain and others Android developers that regularly post and help with Android development. I'm always happy when I'm googling for help on something and come across a post by one of them as I know it'll be interesting and detailed. -Kevin On Feb 26, 9:33 pm, Zsolt Vasvari zvasv...@gmail.com wrote: +100 The fact that Google takes 30% of sales, which, for my app, is well into 5 digits/yr and you cannot get any kind of support, is despicable. I cannot think of another enterprise that earns that much money from you and won't support you. Hopefully, when the Amazon Market goes up and running, it will provide competition to the Android Market and this will all improve, but I am not holding my breath. On Feb 27, 10:44 am, TreKing treking...@gmail.com wrote: On Sat, Feb 26, 2011 at 3:27 PM, Dianne Hackborn hack...@android.com wrote: Have you tried going to the Market support forum? http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5... There are people from Market support answering questions there. LOL - Seriously? With all due respect Dianne, have you actually been over there? I spend about as much time there as I do here and I assure you, there is ***no one*** from the Market team answering *anything* over there. There was a time when you could count on Dontae to at least chime in with a bulls*** canned we're looking into it response, but in the last like 6 months or so I have not seen a single response from a Google Employee in that support forum. Sometimes, if you win a lottery, they'll respond to direct developer support requests when major stuff breaks (like the stats that are always breaking). But no one, and I mean NO ONE, from the Market has ever taken even 5 seconds to answer questions only someone from Google could answer, like the points of the TOS discussed here (and this issue has come up quite a few times). At least AFAIK - if you happen to know where these types of questions have been answered, I'm sure we'd all like to know where to go look. I mean, look at what you, Romain, Xavier, and others do here: spending your own free time helping us out wherever you can with issues others can't. I presume you all do this because you care about the product and want us to have a good experience using it. That's why it truly boggles my mind that not a single individual on the Market Team gives enough of a damn about *their* product to respond to even a single post. So, unfortunately, the OP is absolutely correct. Support for the Android Market for both users and developers is essentially non-existent. And this lack of support (and for me personally the fact that no one on that team seems to give a damn) is the chief reason why so many developers have such a terrible perception of everything and anything that has to do with the Android Market. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Math question
Hello Group, I have a couple of questions. 1. Lets say I calculate a circle say 14 points in a circle. I have an object following those points for so many times for an animation. Now, since there are different screen sizes, The speed of following those points will vary on each mobile device. So my first question is how can I make it constant no matter the radius size and screen size? 2, The following code to the points in the circle works, but sometimes, the will jerk the object because it overshot it or something. I am checking by distance between two points. What is a better way to do follow points in a circle that doesnt jerk? I am all ears, but this one is not as critical as the first question. Thanks group. -- 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: Android 2.3: Music content providers for artists, albums and songs
Ok ... I understand, that this Intent is not supposed to use that way. My actual question now is, why the behavior of the system changes depending of the installed or not installed MixZing-App. Case 1 (no MixZing): - startActivity leads to an securityexception Case 2 (with MixZing installed): - startActivity opens up the ActivitiyChooser as usual (with Music and MixZing, because they both filter this intent). - choosing the stock music player opens up the music.app with the album preselected (no securityexception). 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: Math question
Try polar coordinates. Go an angular distance theta in a given amount of time. -- 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: Math question
I know that v = 2piR/T. How would polar coord work? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to show JSON data into list view
I am bringing mysql data from mysql database using JSON and Putting data into JSONArray. Now i have ListView in my Main.xml. I am facing problems in mapping this JSONArray data to the ListView. *Here is my Sample Code* for (int i=0;iJSONArray.length();i++) { String data=JSONArray.getJSONObject(i).getString(Name); server.add(data); // ArrayAdapterString server=new ArrayAdapterString(this,android.R.layout.simple_list_Item_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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] EditText behaving weirdly
May be You r using setText(). Cursor will come to begining position. On Sat, Feb 26, 2011 at 5:58 PM, Richard Marsh richardandrewma...@gmail.com wrote: Which code wold you like to see? -- 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
Re: [android-developers] Tabbed View
I need code or GUI Images to Understand ur problem. On Sat, Feb 26, 2011 at 1:58 AM, TreKing treking...@gmail.com wrote: On Thu, Feb 24, 2011 at 7:16 AM, David Williams dwilli...@dtw-consulting.com wrote: Can anyone provide any help on this? I'd really appreciate it. I've not used tabbed, but two suggestions: 1 - post a screenshot if you can to better illustrate the problem. 2 - consider scrapping the child activities and use Views instead. From everything I've read around here, they cause nothing but problems. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListView/ExpandableListView Imageview flicking
Rather than Base Adapter use ArrayAdapter.NotifyDataSetChanged will call for all views which are currently Visible.Try to invalidate layout.I hope it will work. On Sat, Feb 26, 2011 at 6:31 AM, Justin Anderson magouyaw...@gmail.comwrote: We can help better if you post your code... On Feb 24, 2011 10:01 PM, Sao Kim Beng kbsa...@gmail.com wrote: Hi All, i have a listview/ExpandableListView contain Imageview and some text. I facing a problem when there is a new entry in and i try to update the list , after i try to refresh the BaseAdapter/ BaseExpandableListAdapter by calling notifyDataSetChanged, every imageview will flicking once. It like loading all the image again from top to bottom again, is it any way to just update those data and show to the user without flicking? -- 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
Re: [android-developers] Re: Android 2.3: Music content providers for artists, albums and songs
It is a bug that the activity choose allows activities to be launched from itself instead of the original caller. This will be fixed in a future release. On Sat, Feb 26, 2011 at 10:11 PM, gizmomogwai christian.koest...@gmail.comwrote: Ok ... I understand, that this Intent is not supposed to use that way. My actual question now is, why the behavior of the system changes depending of the installed or not installed MixZing-App. Case 1 (no MixZing): - startActivity leads to an securityexception Case 2 (with MixZing installed): - startActivity opens up the ActivitiyChooser as usual (with Music and MixZing, because they both filter this intent). - choosing the stock music player opens up the music.app with the album preselected (no securityexception). 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 -- 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: GOOGLE TO BAN PAYPAL?!
The Single-Click Checkout app is used by many developers today. If Google has an issue with credit card transactions (or third party) then expect them to reject/eliminate applications from the follow merchants: Amazon, Best Buy, Macys, Borders, Barnes and Noble, etc... Why haven't they? Anyone selling physical and some digital goods would never accept a 30% rev share. On Feb 25, 10:39 pm, oldskool73 oldskoo...@gmail.com wrote: ...Google set themselves up when they didn't define payment processors. um, but they do, at the top they clearly define this as... Payment Processor(s): Any party authorized by Google to provide payment processing services that enable Developers with optional Payment Accounts to charge Device users for Products distributed via the Market. ...so unless you guys are authorized by Google to do this surely someone using your system is just as open to being pulled as anyone else? -- 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] Installing on SD card for Honeycomb
It looks like for honeycomb, there are new groupings on how items are stored? Like in the settings page, I see media and apps being grouped separately. Are there any information about this? It also appears that SD card support isn't available yet but will be added. Will installing apps on SD cards still be supported? -- 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] EditText behaving weirdly
The code relevant to the problem... That way we might be able to see what is causing the behavior On Feb 27, 2011 12:08 AM, Rajesh Kumar rajnitj.g...@gmail.com wrote: May be You r using setText(). Cursor will come to begining position. On Sat, Feb 26, 2011 at 5:58 PM, Richard Marsh richardandrewma...@gmail.com wrote: Which code wold you like to see? -- 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