Re: [android-developers] Re: Explain the preparation speed of MediaPlayer in this application
What do you mean ? It's a live-stream - it shouldn't buffer at all 2012/10/1 daulat bachhav daulatbach...@gmail.com u using http service it's actually download then play it's not real streaming. On Friday, 28 September 2012 14:11:24 UTC+5:30, Dmitriy F wrote: Here's an https://play.google.com/**store/apps/details?id=com.** maxxt.pcradiofeature=search_**result#?t=**W251bGwsMSwxLDEsImNvbS5tYXh4dC **5wY3JhZGlvIl0https://play.google.com/store/apps/details?id=com.maxxt.pcradiofeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5tYXh4dC5wY3JhZGlvIl0. that I've found for playing radio live-streams - pcRadio. I made a similar application with pretty simple code inside. // constructing the player mPlayer.setDataSource(**getResources().getString(** mLowQualityStreamId)); mPlayer.prepareAsync(); // start the player in OnPreparedListener I've found a link to a radio-stream(the second one in the main list) that pcRadio consumes: http://radio-shtorm.ru:8000 (32/56/112). When I launch my player it takes it like 5-10 seconds to preparem while pcRadio starts playing instantly. What's the difference and how can I improve my app to achieve the same instant preparation speed ? P.S. tested on Android 2.3.4 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] What is the best phone to buy for Android Development?
I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Button (onClick)
https://docs.google.com/drawings/pub?id=18u7ZqCM-13k_OxO3ecm7UXftoWMcBScpGo-wL4WtRjww=174h=76 Hello! When I add an event handler of button onClick, for example: android:onClick=click, I get a fail: instead of my widget in emulator I have a message Problem loading widget. What do you think, how fix it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hai
Hai Friends, New to this Group, good to see developers lot of active discussion on android, like to join the discussion. Regards, Rajesh kumar A. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hardware reccomendations: Next development laptop
I'm due for a new laptop too and have been thinking about this. Eclipse + ADT are pretty much all I need besides web browser. I have been using Win 7 on a Dell Latitude and have found Eclipse+ADT to be slow and buggy. I would like a better experience. It is my unscientific impression that Google devs use Apple laptops (would love to see some stats). I don't mean to be negative - I think the ADT devs are very good at engaging in the ADT issues tracker - but I think most of their testing is done ad-hoc by the devs, so, if they are using Apple then that is where the testing is happening. It seems a shame to pay such a premium, and I'm not really an Apple fan, but if it works better for Android dev then I guess that is the right answer. Tom On Sunday, September 30, 2012 12:42:46 AM UTC-4, Nathan wrote: Since the hardware would primarily be used for developing Android, I think this is on topic. My three year old Vista laptop does do well at complex builds in Eclipse, I'd just like to do more than one per day. ;) What do you recommend for my next development laptop? I really don't enjoy hardware shopping any more than car shopping. . I have a vague idea that I want plenty of processor speed, plenty of memory, Solid State drive, and probably 15 inch screen. I do have a 17 inch screen now, and that was largely because I didn't even have an external monitor. Now it is docked to an external monitor most of the time, and is just too bulky when I actually do lug it somewhere. This would probably gain me an hour of productivity every day, so I can afford to sink a 1-2,000 or maybe more. I did have the idea of maybe getting a MacBook Pro, since it could do iOS development if I dabbled on the dark side, could possibly run Windows if I did some development on that side. Then again, getting a Windows Laptop and a Mac mini could also solve that problem. I haven't really gotten into Linux for a personal computer, though I do have a remote server running Debian now. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile App in dreamwevaer cs6 audio issue
Hi, I just want to know how can i place a audio mp3 file in jquerymobile app in dreamweaver ? also after packaged is this start plays in mobile which is running on android? need a help how can i build a music player app using jquery mobile phonegab build service in dreamweaver cs6 latest version. thanks skwebbies -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Not getting key events for KEYCODE_BACK on Nexus 7 (Jelly Bean)
Hello,http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK This seems to be a bug but perhaps there is a new step I am not taking for Jelly Bean. On my samsung nexus s (gingerbread) device, my OnKeyListener class will receive KEYCODE_BACK events but on my Nexus 7 (jelly bean) device, it wont get any http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACKKEYCODE_BACK events.http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK Any ideas? Thanks http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hide apps
Hi, I am using HTC One V. I have few apps installed which I want to hide from others. Can you please suggest way to do so, so that apps don't appear in apps drawer. Regards, TK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: I want to know to get browse history on android ?
Hello, have you solved this problem or not? I am also interested in this too. Thanks On Wednesday, September 2, 2009 10:35:40 PM UTC-5, ni wrote: Hi All, I mean, I want to pull out web histroy from content provider for my application. I have some coding. But I got exception so, no running. So, how can I do ?please help me. Here are my coding package com.app.browser; import android.app.ListActivity; import android.database.Cursor; import android.os.Bundle; import android.widget.ListAdapter; import android.widget.SimpleCursorAdapter; public class BrowserApp extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_activity_view); //Cursor browserinfo=android.provider.Browser.getAllVisitedUrls (getContentResolver()); String []proj= new String [] {android.provider.Browser.SearchColumns._ID, android.provider.Browser.SearchColumns.DATE, android.provider.Browser.SearchColumns.SEARCH}; Cursor results= managedQuery (android.provider.Browser.SEARCHES_URI,proj,null,null, android.provider.Browser.SearchColumns.URL+ ASC); ListAdapter adapter = new SimpleCursorAdapter( this, // Context. android.R.layout.two_line_list_item, // Specify the row template to use (here, two columns bound to the two retrieved cursor rows). results,// Pass in the cursor to bind to. proj, // Array of cursor columns to bind to. new int[0]); // Parallel array of which template objects to bind to those columns. // Bind to our new adapter. setListAdapter(adapter); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: is there a way to put entire folder from assets to sdcard? not just individual files.
i know this post is old . im new to programming @aspidoff how did the code work out for you.. i want to do tyhe same thing - copy files from the assets to the sd card but can one of you guy explain how the code works in more detail. On Thursday, October 8, 2009 4:29:29 AM UTC-7, aspidoff wrote: hey guys, i hope this is the right forum. what i am trying to do is simply copy over entire folder full of mp3 files onto sdcard within an app. I am doing this out of assets folder because raw folder does not allow mp3 files to be named the way i need them to. here is what I dug up so far but not sure if this will work. i am lost InputStream ins = getResources().getAssets().open(); int size = ins.available(); // Read the entire resource into a local byte buffer. byte[] buffer = new byte[size]; ins.read(buffer); ins.close(); FileOutputStream fos = new FileOutputStream(/sdcard/myfolder/); fos.write(buffer); fos.close(); can someone help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Nexus 7 can write data to RFID tap?
Hi I am the new Android App developer, I would like to make a app which can read/write RFID tag but I don;t know which model moble/tablet have both read/write RFID function, may I know nexus 7 has read/write function or not? Thank you for your answer :) Patrick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 does Android handle telephony?
Does Android have a Linux kernel driver that controls the phone's baseband modem which handles sms and voice calls? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] No response for click event on my custom button.
Hi All, I am new to android development. Now I've encountered a problem related to the onClick listener. I put a LinearLayout inside a custom view. The linearLayout which contains image view and text is a button. I set it clickable and attach a clickListener with it. But, it has no response on click event. However, I use isClickable and hasClickListener to check the linearlayout. They all return true. So I am really don't know what wrong with my code. Is there anyone can help me out of this problem, Thanks a lot. best regards, Yang -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SEND_TO_VOICEMAIL dont work
Hello all! A table ContactsContract.Contacts has a field SEND_TO_VOICEMAIL. SEND_TO_VOICEMAIL - An indicator of whether calls from this contact should be forwarded directly to voice mail ('1') or not ('0'). When raw contacts are aggregated, this field is automatically computed: if all constituent raw contacts have SEND_TO_VOICEMAIL=1, then this field is set to '1'. Setting this field automatically changes the corresponding field on all constituent raw contacts. - from manual. I set value of SEND_TO_VOICEMAIL to 1 but forward to voice mail is absent. Please tell me what i should do more? Maybe I should change values in other tables? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 login and registration using web services
u using JSONE itis best for u On Thursday, 27 September 2012 12:13:01 UTC+5:30, Girish Sawant wrote: hi, I am using web services to store the database for Login and registration page for the game application we are using glass fish server I am android beginner, how to do it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to make a video player.
hey. i want to play an online live video from a server. for that i want to develop a flash embeded player... can any1 tell me hw can i develop that player the video is on rtsp protocol -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Notifying the fragment when it is currently selected in a viewpager
Thanks Vinay! On Saturday, 29 September 2012 15:18:27 UTC+5:30, Raneez wrote: I use ViewPager loaded with fragments in it .The *onResume()* method of each fragments does some logic and so i get problems when the adjacent fragments(left and right) to the currently selected page are also loaded to provide smooth scrolling between the pages. Does the fragment recieve any *callbacks* when it get actually selected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 為什麼一個遊戲收了十八次款項,是否有錯誤,請回覆,謝謝!!!!!
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hi...
Hi Dear. Can any one help me out how to store and retrive data in sqlite db in android 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] Re: hi...
See the Notepad sample in the SDK: android-sdk\samples\android-16\NotePad On Monday, October 1, 2012 7:59:59 AM UTC+1, Ibrahim wrote: Hi Dear. Can any one help me out how to store and retrive data in sqlite db in android 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
Re: [android-developers] Re: hi...
Dear i dnt have that xample code.. On 1 October 2012 12:38, RichardC richard.crit...@googlemail.com wrote: See the Notepad sample in the SDK: android-sdk\samples\android-16\NotePad On Monday, October 1, 2012 7:59:59 AM UTC+1, Ibrahim wrote: Hi Dear. Can any one help me out how to store and retrive data in sqlite db in android 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: hi...
can you pleasehelp me out... On 1 October 2012 12:43, Ibrahim Sada ibrahim.in...@gmail.com wrote: Dear i dnt have that xample code.. On 1 October 2012 12:38, RichardC richard.crit...@googlemail.com wrote: See the Notepad sample in the SDK: android-sdk\samples\android-16\NotePad On Monday, October 1, 2012 7:59:59 AM UTC+1, Ibrahim wrote: Hi Dear. Can any one help me out how to store and retrive data in sqlite db in android 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: hi...
Lots of Tutorial available on google. try it out -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SEND_TO_VOICEMAIL dont work
My suggestion would be to look at the Android source code and figure out how it's expected to be set. On Monday, October 1, 2012 5:23:07 AM UTC+8, V Romanov wrote: Hello all! A table ContactsContract.Contacts has a field SEND_TO_VOICEMAIL. SEND_TO_VOICEMAIL - An indicator of whether calls from this contact should be forwarded directly to voice mail ('1') or not ('0'). When raw contacts are aggregated, this field is automatically computed: if all constituent raw contacts have SEND_TO_VOICEMAIL=1, then this field is set to '1'. Setting this field automatically changes the corresponding field on all constituent raw contacts. - from manual. I set value of SEND_TO_VOICEMAIL to 1 but forward to voice mail is absent. Please tell me what i should do more? Maybe I should change values in other tables? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Displaying intent launcher in Account settings
I've added an account using the AccountManager and can show preferences directly on the Account Settings pages, but I cannot display an intent launcher. My preferences.xml is as follows: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android; CheckBoxPreference android:key=@string/preference_sync_key android:defaultValue=true android:summary=@string/preference_sync_summary android:title=@string/preference_sync_title/ PreferenceScreen android:key=account_settings android:title=@string/preferences_title android:summary=@string/preferences_summary intent android:action=com.example.activities.Preferences.ACCOUNT_SETTINGS android:targetPackage=com.example android:targetClass=com.example.PreferencesActivity / /PreferenceScreen /PreferenceScreen I put a CheckBoxPreference in just to see if it was reading the XML at all, and it is. The checkbox appears, but the button to the second PreferenceScreen, which I would like to launch my intent will not appear at all. What might I be doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hi..
HI Guys How to store and retrive the image in sqlite database... 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
Re: [android-developers] Re: hi...
HI Dear How to store and retrive the image in sqlite database... Thanx in advance On 1 October 2012 12:47, Asheesh Arya asheesharya...@gmail.com wrote: Lots of Tutorial available on google. try it out -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: hi...
Plz refer here: http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/ On Mon, Oct 1, 2012 at 3:17 PM, Asheesh Arya asheesharya...@gmail.comwrote: Lots of Tutorial available on google. try it out -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the best phone to buy for Android Development?
Hi, I'd suggest using the latest Google Android device, currently that is the (Samsung) Galaxy Nexus, but rumors suggest it is to be updated very soon (?) Main reason is that the Google phones allow you to see your own debug message on the console pretty easily, where as most other phones have so such junk debug messages on the console, that they swamp your own debug messages making it difficult to test debug your own apps. You can filter debug messages but the console fills quickly (in Eclipse) anyway then has to be reset. If you can live without relying on debug messages through Eclipse then any good recent phone will likely do, eg Samsung Galaxy S3, HTC One X, etc. The Google phones get OS updates before other phones as well. Regards On Monday, October 1, 2012 5:54:28 AM UTC+10, Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the best phone to buy for Android Development?
Doesn't really matter. I find myself testing on 4 different devices in the emulator - corresponding to different screen sizes. The only time I load into a real device is just before a release, and that's just habit (see what it looks like on real screen) rather than a requirement. The fact is that you have to test on multiple devices, and just because you own a real device as well doesn't help much. The only time I have ever used a real device for something meaningful is to measure frame-rates in games; the emulator on my PC runs at about 1/5th the rate of my HTC Desire 1 Ghz phone for 2D graphics so occassionally its good to see how fast the game runs on real devices. Most apps aren't real-time, and this is a pretty minor use. I would buy an Android phone/tablet if you need a phone or tablet for other reasons, and buy one for those other reasons. The fact is that a real device doesn't actually help you much in developing apps. On Monday, October 1, 2012 5:54:28 AM UTC+10, Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hi..
guys,you just should learn to search your questions from the search engine like www.google.com. On Mon, Oct 1, 2012 at 3:40 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote: HI Guys How to store and retrive the image in sqlite database... 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Setting onclocklistener on view class
Hai all... I created an application like drawing on canvas by taking image from camera.. I created some custom button using frame layout inside my view class.. But I am not able to create an onclicklistener inside view class Here is my sub activity to draw on canvas public class MesureSizeActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.button); } } and my view class is public class MyView extends View { private Bitmap mBitmap; private Canvas mCanvas; private Path mPath; private Paint mBitmapPaint; private Paint mPaint; boolean calibrate=true; int calibrate_x; int calibrate_y; int calibrate_radius; //Event listener controller boolean listener_calibrate= true; public MyView(Context c) { super(c); mBitmap = MainActivity.getBitmap(); mPath = new Path(); mBitmapPaint = new Paint(Paint.DITHER_FLAG); mPaint = new Paint(); mPaint.setAntiAlias(true); mPaint.setDither(true); mPaint.setColor(0xFF11); mPaint.setStyle(Paint.Style.STROKE); mPaint.setStrokeJoin(Paint.Join.ROUND); // mPaint.setStrokeCap(Paint.Cap.ROUND); mPaint.setStrokeWidth(2); } public MyView(Context context, AttributeSet attrs) { super(context, attrs); mBitmap = MainActivity.getBitmap(); mPath = new Path(); mBitmapPaint = new Paint(Paint.DITHER_FLAG); mPaint = new Paint(); mPaint.setAntiAlias(true); mPaint.setDither(true); mPaint.setColor(0xFF11); mPaint.setStyle(Paint.Style.STROKE); mPaint.setStrokeJoin(Paint.Join.ROUND); // mPaint.setStrokeCap(Paint.Cap.ROUND); mPaint.setStrokeWidth(2); } public MyView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); mBitmap = Bitmap.createScaledBitmap(mBitmap, w, h, true); mCanvas = new Canvas(mBitmap); calibrate_x = w /2; calibrate_y = h/2; calibrate_radius = 50; } @Override protected void onDraw(Canvas canvas) { canvas.drawColor(0xFFAA); canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint); canvas.drawCircle(calibrate_x,calibrate_y,calibrate_radius,mPaint); canvas.drawPath(mPath, mPaint); } private float mX, mY; private static final float TOUCH_TOLERANCE = 4; private void touch_start(float x, float y) { mPath.reset(); mPath.moveTo(x, y); mX = x; mY = y; } private void touch_move(float x, float y) { float dx = Math.abs(x - mX); float dy = Math.abs(y - mY); if (dx = TOUCH_TOLERANCE || dy = TOUCH_TOLERANCE) { // mPath.quadTo(mX, mY, (x + mX)/2, (y + mY)/2); mX = x; mY = y; } } private void touch_up() { mPath.lineTo(mX, mY); // commit the path to our offscreen mCanvas.drawPath(mPath, mPaint); // kill this so we don't double draw mPath.reset(); } @Override public boolean onTouchEvent(MotionEvent event) { float x = event.getX(); float y = event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: touch_start(x, y); invalidate(); break; case MotionEvent.ACTION_MOVE: touch_move(x, y); invalidate(); break; case MotionEvent.ACTION_UP: touch_up(); invalidate(); break; } return true; } public void onClick(View v) { if(v.getId() == R.id.up) { //Do some thing } if(v.getId() == R.id.down) { //Do some thing } } } And my xml look like ?xml version=1.0 encoding=utf-8? FrameLayout android:visibility=visible android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; com.example.sizemesurment_1.MyView android:id=@+id/DrawViewId android:layout_width=fill_parent android:layout_height=fill_parent /com.example.sizemesurment_1.MyView RelativeLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal android:gravity=bottom ImageButton android:id=@+id/up android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentBottom=true android:layout_marginLeft=80dp
Re: [android-developers] Re: What is the best phone to buy for Android Development?
Emulator is enough 4 *new learners*. On Mon, Oct 1, 2012 at 4:09 PM, Peter Webb r.peter.w...@gmail.com wrote: Doesn't really matter. I find myself testing on 4 different devices in the emulator - corresponding to different screen sizes. The only time I load into a real device is just before a release, and that's just habit (see what it looks like on real screen) rather than a requirement. The fact is that you have to test on multiple devices, and just because you own a real device as well doesn't help much. The only time I have ever used a real device for something meaningful is to measure frame-rates in games; the emulator on my PC runs at about 1/5th the rate of my HTC Desire 1 Ghz phone for 2D graphics so occassionally its good to see how fast the game runs on real devices. Most apps aren't real-time, and this is a pretty minor use. I would buy an Android phone/tablet if you need a phone or tablet for other reasons, and buy one for those other reasons. The fact is that a real device doesn't actually help you much in developing apps. On Monday, October 1, 2012 5:54:28 AM UTC+10, Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] contextual action mode vs. floating menu
Hi, According to this page: http://developer.android.com/guide/topics/ui/menus.html#context-menu, Contextual Action Mode is preferred when working on Honeycomb or higher. This is actually very useful when you can apply the same kind of action to several items at a time (eg: delete). But some actions actually only make sense on one item at a time (eg: Edit). If you have only one of these actions, well, you can simply use the single click for it. So: One click = edit Select multiple items = action mode with actions that apply to many items An example of that is the Gmail app: one click = read the email and selecting many items, you can mark them as read, delete them, etc. OK, but what if you have multiple actions that can only a apply to one item at a time? Imagine the following situation. You have a list of profiles.You can do the following actions on the profiles: - delete - export (save in a file) - share These actions could be applied to many items at a time, so you place them in the action mode. But other actions could be: - edit - apply You can only edit or apply one profile at a time. So, in that case, is it OK to continue using floating menus like this: One single click or long-click opens a floating menu with available options on that particular item alone (edit, apply, delete, export, share). Selecting multiple items activates the action mode with actions that apply to all the selected items (delete, export, share) Or maybe is it better to keep using action mode only? When one item is selected, all actions are available (edit, apply, delete, export, share) When more than one item are selected, the actions edit and apply are disabled/removed from the action bar. Both methods can work of course and it could be up to the developer to choose but what would be best practice? 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] On Tap event Maps
Hi! I'm using a OnTap method, and I want to draw over Gmaps the route from where am I, to the point I'm pressing, after seeing all the points on the map. Everything works perfectly, I have the location, I have the destination, but I dont know how to pass latitud and longitud, from the principal file. *protected boolean onBalloonTap(int i, OverlayItem item) { * * * * Toast.makeText(c, Calculando ruta... ,Toast.LENGTH_LONG).show(); * * * * double latitudo = 43.250064;* * double longitudo = -5.774496;* * * * double latitudd = 43.223914;* * double longitudd = -5.781582; * * * * * * String uri = http://maps.google.com/maps?saddr=+latitudo+,+longitudo+daddr=+latitudd+,+longitudd+mode=walking;; * * * * Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));* * intent.setClassName(com.google.android.apps.maps, com.google.android.maps.MapsActivity);* * c.startActivity(intent);* * * * return true;* * * *}* * * How can I pass from the principal file the value for latitudd, longitudd... Is it possible with one kind of bundle? Thanks for the answers! Artemio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to read data from external device using android USB Host Api ?
hiii firstly check that your devices is connected with usb host, if your devices is connected than print device name and vendor id. after that you send command and check response from your device. Thanks Anupam Jain On Wednesday, 31 August 2011 21:06:43 UTC+5:30, Sam wrote: Hello , I've written an app to connect an USB Device and read data from external usb device to my android USB Host 3.1 root tab device. i used http://developer.android.com/guide/topics/usb/host.html android USB Host Api. But every time read data value got zero value in every byte from external device. can anyone send me demo or proper documentation how to read data from external device ? any encoding require for reading data ? 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: USB to PC connection
Getting cryptography right is non-trivial. So take this with caution. As I understand it, you want to generate a key pair on each side and exchange the public keys. That can be done easily via wifi too since you only exchange _public_ keys. The problem is to be sure you got the right ones (i.e. that they have not been faked by e.g. a man in the middle attack). To ensure this, you might e.g. calculate a cryptographic hash of the public keys (to shorten the data that has to be compared) and display them on both sides. The user may then compare the hashes. Am Samstag, 29. September 2012 15:21:51 UTC+2 schrieb Jasper Horn: I have an idea for an app that will both have a component that runs on the computer of the user and a component that runs on the phone. The idea will be that the two will communicate over wifi. To make this secure, I want to set up a public/private key pair on the computer and the phone. In order to do this in a user-friendly way, I want to do so automatically over usb. However, in exploring how much of what I want is actually possible on android, I have been unable to find out how to have an app communicate over usb to a program on the computer. Technically, it would be similar to using the computer as a USB accessory, but I doubt it would actually be similar enough to make this work. I have also read that it might be possible using ADB port forwarding, but this doesn't really look like it would make it more user-friendly for end users. Finally, I suppose I could solve the problems by only using the file system and mounting it, storing the public key in a file on the s-card, but it's not really the ease of use that I am looking for. Is there a way of communicating between an application running on a pc and an app running on an android device that I have missed? Is there a mistake in my current understanding of the possibilities? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: hi...
If you don't have that then you did not install the samples with the SDK. Run the SDK Manager application: http://developer.android.com/sdk/installing/adding-packages.html and add the samples. On Monday, October 1, 2012 8:15:31 AM UTC+1, Ibrahim wrote: Dear i dnt have that xample code.. On 1 October 2012 12:38, RichardC richard...@googlemail.com javascript: wrote: See the Notepad sample in the SDK: android-sdk\samples\android-16\NotePad On Monday, October 1, 2012 7:59:59 AM UTC+1, Ibrahim wrote: Hi Dear. Can any one help me out how to store and retrive data in sqlite db in android 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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] TextureView Canvas
Hi Romain, Thanks for your response. I was experiencing a very interesting behavior. I started using a custom view inside a framelayout, and performed all the primitive operations and called invalidate() to let the system call onDraw. It was choking. I even tried to invalidate a rect, but it was just not fast enough - the 2nd view that was requesting the underlying view to redraw certain primitives based on the actions on the 2nd view was not responsive. I then started using the SurfaceView to see if there is any benefit for the same operation - and voila - it worked like a charm. This is why is used SurfaceView as a substitute - there was an apparent performance benefit. That said, I'm going to take another look at my hierarchy, and all the custom views (there are quite a few), to make sure there are no other leaks. Like you said, I would rather use a View instead of SurfaceView. Thanks for your input though - it does answer the question that I can use a canvas with TextureView if i follow the intended mode of use. -Ajit On Saturday, September 29, 2012 2:47:45 PM UTC-7, Romain Guy (Google) wrote: Hi, If you were using SurfaceView's onDraw() method then you were not getting any benefit. You have to use lockCanvas()/unlockCanvasAndPost() and post on the underlying Surface. TextureView works in a similar way: you can call lockCanvas()/unlockCanvasAndPost(). However, it seems all you need is a View. It's easier to use and since you are not using SurfaceView properly anyway it will do the same thing. On Thu, Sep 27, 2012 at 2:19 PM, Ajit Vasudevan vasu...@gmail.comjavascript: wrote: Hello, I am currently working on an app that requires computations/rendering based on a variety of user inputs. I have implemented the SurfaceView and things work as expected. But I started facing performance issues when I tried to put this inside a horizontal scroll view. Obviously it is not intended to work this way - but I tried anyway :) Based on what I have read - it appears like I have to move to TextureView. But i am unable to override the onDraw, and therefore cannot perform the necessary drawing using the Canvas. This might be a trivial question - but I wanted to know if we can use TextureView to draw primitives on the screen using a Canvas? The only examples I have seen thus far show the use of video/camera/openGL rendering on the TextureView. Any help on this would be great. Thanks much -Ajit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.com javascript: -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: hi...
K thnx... On 1 October 2012 15:22, RichardC richard.crit...@googlemail.com wrote: If you don't have that then you did not install the samples with the SDK. Run the SDK Manager application: http://developer.android.com/sdk/installing/adding-packages.html and add the samples. On Monday, October 1, 2012 8:15:31 AM UTC+1, Ibrahim wrote: Dear i dnt have that xample code.. On 1 October 2012 12:38, RichardC richard...@googlemail.**com wrote: See the Notepad sample in the SDK: android-sdk\samples\android-**16\NotePad On Monday, October 1, 2012 7:59:59 AM UTC+1, Ibrahim wrote: Hi Dear. Can any one help me out how to store and retrive data in sqlite db in android 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-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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] Same color specified in xml file and png appear differently?
Thats it! Thanks Dianne. Am Sonntag, 19. September 2010 01:51:15 UTC+2 schrieb Dianne Hackborn: One thing that could be happening is if your image is entirely opaque then it may be loaded as 16bpp for memory/performance reasons. 2010/9/18 Mark Wyszomierski mar...@gmail.com javascript: Hi Kostya, I'll probably end up doing that, I was just curious as to what is going on with this since everything seems to look ok - I'll make that test app and post back if I find anything, Thanks 2010/9/18 Kostya Vasilyev kman...@gmail.com javascript: Perhaps you can use a small PNG drawable for the view where you currently specify a color constant? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 18.09.2010 19:35 пользователь Mark Wyszomierski mar...@gmail.comjavascript: написал: Yeah I guess that's why I'm confused, the alpha of my png is 100%. So when I set the background color in the xml file to explicitly have alpha = ff, then the layout editor shows the two colors matching. It's just that when I run the app, the emulator (and n1 at least) show the background color (not the png) as the different grey, same as when I was previously *not* setting the alpha = ff. To sum it up: before: background=#ebebeb drawable in photoshop (100% alpha, ebebeb) layout editor and emulator show background as a purplish-grey. now background=#ffebebeb drawable (unchanged from before) layout editor shows background now matching my drawable, but at runtime it looks like the purplish grey from before. I'm not modifying the color at runtime (which could explain the difference), I'll make a separate test app to try and demo it, Thanks On Sat, Sep 18, 2010 at 11:21 AM, Mark Murphy mmu...@commonsware.comjavascript: wrote: On Sat, Sep 18,... -- You received this message because you are subscribed to the Google Groups Android Developers g... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hac...@android.com javascript: 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: Hardware reccomendations: Next development laptop
I find Eclipse on Linux to be able to launch an app on the device much faster than on Windows on the same system (I'm not talking about the build process, but the actual launch once the project is built). I've been doing all my Android development under Linux for a few months now, but before switching, went back and forth long enough to compare. Android tools on Windows seem to suffer from a variety of little, but painful glitches: 1) the not able to delete the directory when upgrading tools (I believe has been fixed for a whlie now, but it took a really long time) 2) issues when tools are installed into directories with non-ascii characters in names, or spaces (juding by messages on this list) 3) command line tools not being able to find x64 Java binaries On the other hand, under Linux, GPU acceleration in the emulator suddenty stopped working for me a month or two ago. I've seen Eclipse lock up (a thread deadlock, it seems) a few times, the UI somtimes has painful, 10-15 second freezes when auto-completing (appears to be in Unix-specific text rendering code). So, as far as I'm concerned, developing under Linux is not perfect either, but the faster launch time, for me, makes the choice clear. Running Linux on new hardware can be an interesting experience though, especially if it's a notebook, but I'm not touching that topic with a ten foot pole, as anyone should be able to do his own research (speaking from my experience with the new Z77 chipset and an Ivy Bridge processor... I can forget about that nightmare now...) -- K 2012/9/30 Tom ento...@gmail.com I'm due for a new laptop too and have been thinking about this. Eclipse + ADT are pretty much all I need besides web browser. I have been using Win 7 on a Dell Latitude and have found Eclipse+ADT to be slow and buggy. I would like a better experience. It is my unscientific impression that Google devs use Apple laptops (would love to see some stats). I don't mean to be negative - I think the ADT devs are very good at engaging in the ADT issues tracker - but I think most of their testing is done ad-hoc by the devs, so, if they are using Apple then that is where the testing is happening. It seems a shame to pay such a premium, and I'm not really an Apple fan, but if it works better for Android dev then I guess that is the right answer. Tom On Sunday, September 30, 2012 12:42:46 AM UTC-4, Nathan wrote: Since the hardware would primarily be used for developing Android, I think this is on topic. My three year old Vista laptop does do well at complex builds in Eclipse, I'd just like to do more than one per day. ;) What do you recommend for my next development laptop? I really don't enjoy hardware shopping any more than car shopping. . I have a vague idea that I want plenty of processor speed, plenty of memory, Solid State drive, and probably 15 inch screen. I do have a 17 inch screen now, and that was largely because I didn't even have an external monitor. Now it is docked to an external monitor most of the time, and is just too bulky when I actually do lug it somewhere. This would probably gain me an hour of productivity every day, so I can afford to sink a 1-2,000 or maybe more. I did have the idea of maybe getting a MacBook Pro, since it could do iOS development if I dabbled on the dark side, could possibly run Windows if I did some development on that side. Then again, getting a Windows Laptop and a Mac mini could also solve that problem. I haven't really gotten into Linux for a personal computer, though I do have a remote server running Debian now. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] lock your camara view to landascape mode
I want to lock my camera view to Landscape mode.When I click on the simple button in my app, that time device's camera will open and and that camera should be locked to Landscape mode. Can anyone know the solution of this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SEND_TO_VOICEMAIL dont work
Value was updated from 0 to 1. I tried with value types Int and String. But forwarding is absent понедельник, 1 октября 2012 г., 10:21:05 UTC+3 пользователь Zsolt Vasvari написал: My suggestion would be to look at the Android source code and figure out how it's expected to be set. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Menu icon contrast
OK. Thanks for the various suggestions. I'll think about things a little more, but it seems UgglyNoodle's suggestion is going to end up being the best. It looks like I should be able to do nice white icons for Honeycomb+ and my existing light gray for everything else. Thanks to all! Andrew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Ordering with SQLITE by nearest latitude longitude coordinates
I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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] lock your camara view to landascape mode
I am using this code inside CaptureImageActivity.java activity. So after execution of this activity my system's camera will open. btn1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i=new Intent(android.provider.MediaStore. ACTION_IMAGE_CAPTURE); i.putExtra(android.provider.MediaStore.EXTRA_SCREEN_ORIENTATION,ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); startActivityForResult(i,1000); } }); And I want to lock that camera view to LandScape Mode. And as per solution activity android:name=.CaptureImageActivity * android:screenOrientation=landscape* android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity Only CaptureImageActivity activity is locked to LandScape Mode. On Monday, October 1, 2012 5:12:36 PM UTC+5:30, Felipe Silveira wrote: You can use attribute android:screenOrientation on the Manifest declaration of your activity. For example: activity android:screenOrientation=landscape android:configChanges=orientation|keyboardHidden ... On Mon, Oct 1, 2012 at 8:21 AM, kush kushc...@gmail.com javascript:wrote: I want to lock my camera view to Landscape mode.When I click on the simple button in my app, that time device's camera will open and and that camera should be locked to Landscape mode. Can anyone know the solution of this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Felipe Silveira http://www.felipesilveira.com.br - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ordering with SQLITE by nearest latitude longitude coordinates
http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: Menu icon contrast
ok but be careful. some manufacturers have skinned the same version of Android with opposite menu background colors. from memory i would compare Samsung and HTC on 2.3. On Monday, October 1, 2012 7:55:01 AM UTC-4, andrewg_oz wrote: OK. Thanks for the various suggestions. I'll think about things a little more, but it seems UgglyNoodle's suggestion is going to end up being the best. It looks like I should be able to do nice white icons for Honeycomb+ and my existing light gray for everything else. Thanks to all! Andrew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the best phone to buy for Android Development?
You dont even need a phone to test your apps. You can test using the eclipse sdk. However, it is nice to have a phone... doesnt matter which one... to see your apps working. That being said, if I were going to buy a new phone I would buy something with the latest system version, but be sure to develop your apps and release for older devices, like 2.3 which is still very popular. On Sunday, September 30, 2012 3:54:28 PM UTC-4, Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bordered ScrollView
Hi, I've had an issue for a couple of months now and given that I've come up against it yet again, I couldn't keep it in two separate sides of my app. My issue is, I have a black border written as an XML drawable in my project, and I've used it a lot. I like to use it to mark small windows within my app by using it as a background for my ViewGroups. My issue comes when the ViewGroup in question is a ScrollView, because the content inside the ScrollView isn't clipped to the black border of its parent, which looks pretty ugly. I've tried and tested setting both *android:clipChildren=** true* and *android:clipToPadding=**true* in the ScrollView with no luck. The Android versions I'm testing on are Honeycomb and ICS. Any suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] File Upload button call does not work in webview
I need to be able to open a file upload menu from AndroidAddMember.aspx page in a web view. I found this fix but I dont think im implementing it correctly. [Fix][1] I get this warning message. Also the file upload button still does not work. The method openFileChooser(ValueCallbackUri) from the type new WebChromeClient(){} is never used locally My file upload button is on this page AndroidAddMember.aspx in my first casestatement below. Any help would be great. Thanks WebView wv; private ValueCallbackUri mUploadMessage; private final static int FILECHOOSER_RESULTCODE=1; @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { if(requestCode==FILECHOOSER_RESULTCODE) { if (null == mUploadMessage) return; Uri result = intent == null || resultCode != RESULT_OK ? null : intent.getData(); mUploadMessage.onReceiveValue(result); mUploadMessage = null; } } public void onCreate1(Bundle savedInstanceState) { super.onCreate(savedInstanceState); wv = new WebView(this); wv.setWebViewClient(new WebViewClient()); wv.setWebChromeClient(new WebChromeClient() { //The undocumented magic method override //Eclipse will swear at you if you try to put @Override here public void openFileChooser(ValueCallbackUri uploadMsg) { mUploadMessage = uploadMsg; Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.addCategory(Intent.CATEGORY_OPENABLE); i.setType(image/*); MyGreatActivity.this.startActivityForResult(Intent.createChooser(i,File Chooser), FILECHOOSER_RESULTCODE); } }); setContentView(wv); } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle item selection switch (item.getItemId()) { case R.id.register: mWebView2 = (WebView) findViewById(R.id.webview); mWebView2.getSettings().setJavaScriptEnabled(true); mWebView2.loadUrl(http://www.Mysite.com/AndroidAddMember.aspx;); mWebView2.setWebViewClient(new HelloWebViewClient()); return true; case R.id.ratewomen: mWebView3 = (WebView) findViewById(R.id.webview); mWebView3.getSettings().setJavaScriptEnabled(true); mWebView3.loadUrl(http://mysite.com/gadgets.aspx;); mWebView3.setWebViewClient(new HelloWebViewClient()); return true; case R.id.ratemen: mWebView4 = (WebView) findViewById(R.id.webview); mWebView4.getSettings().setJavaScriptEnabled(true); mWebView4.loadUrl(http://mysite.com/gadgetsmall.aspx;); mWebView4.setWebViewClient(new HelloWebViewClient()); return true; default: return super.onOptionsItemSelected(item); } } [1]: http://m0s-programming.blogspot.com/2011/02/file-upload-in-through-webview-on.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ordering with SQLITE by nearest latitude longitude coordinates
How can i add that function to my sqlite database in Android? and how can i use it ? thanks El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió: http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: Ordering with SQLITE by nearest latitude longitude coordinates
What function? You need to put more effort into your questions, do not expect others to do all your work for you. On Monday, October 1, 2012 2:34:32 PM UTC+1, saex wrote: How can i add that function to my sqlite database in Android? and how can i use it ? thanks El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió: http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: I want to know to get browse history on android ?
you cannot do this Anymore. Besides the fact that the user may be using a non stock browser, the content provider has been made non accessible even with the permission since Android 2.3 iirc. kris On Sun, Sep 30, 2012 at 9:07 PM, He Jibo hej...@gmail.com wrote: Hello, have you solved this problem or not? I am also interested in this too. Thanks On Wednesday, September 2, 2009 10:35:40 PM UTC-5, ni wrote: Hi All, I mean, I want to pull out web histroy from content provider for my application. I have some coding. But I got exception so, no running. So, how can I do ?please help me. Here are my coding package com.app.browser; import android.app.ListActivity; import android.database.Cursor; import android.os.Bundle; import android.widget.ListAdapter; import android.widget.SimpleCursorAdapter; public class BrowserApp extends ListActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_activity_view); //Cursor browserinfo=android.provider.Browser.getAllVisitedUrls (getContentResolver()); String []proj= new String [] {android.provider.Browser.SearchColumns._ID, android.provider.Browser.SearchColumns.DATE, android.provider.Browser.SearchColumns.SEARCH}; Cursor results= managedQuery (android.provider.Browser.SEARCHES_URI,proj,null,null, android.provider.Browser.SearchColumns.URL+ ASC); ListAdapter adapter = new SimpleCursorAdapter( this, // Context. android.R.layout.two_line_list_item, // Specify the row template to use (here, two columns bound to the two retrieved cursor rows). results,// Pass in the cursor to bind to. proj, // Array of cursor columns to bind to. new int[0]); // Parallel array of which template objects to bind to those columns. // Bind to our new adapter. setListAdapter(adapter); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hide apps
Use a drawer which hides the apps. kris On Sun, Sep 30, 2012 at 2:41 AM, Tarun Gupta tarun...@gmail.com wrote: Hi, I am using HTC One V. I have few apps installed which I want to hide from others. Can you please suggest way to do so, so that apps don't appear in apps drawer. Regards, TK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ordering with SQLITE by nearest latitude longitude coordinates
Obviously the function of the accepted answer. El lunes, 1 de octubre de 2012 15:42:59 UTC+2, RichardC escribió: What function? You need to put more effort into your questions, do not expect others to do all your work for you. On Monday, October 1, 2012 2:34:32 PM UTC+1, saex wrote: How can i add that function to my sqlite database in Android? and how can i use it ? thanks El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió: http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: Ordering with SQLITE by nearest latitude longitude coordinates
So I guess you don't want any help then. On Monday, October 1, 2012 3:11:21 PM UTC+1, saex wrote: Obviously the function of the accepted answer. El lunes, 1 de octubre de 2012 15:42:59 UTC+2, RichardC escribió: What function? You need to put more effort into your questions, do not expect others to do all your work for you. On Monday, October 1, 2012 2:34:32 PM UTC+1, saex wrote: How can i add that function to my sqlite database in Android? and how can i use it ? thanks El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió: http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: geolocation
In other words... public Locationhttp://developer.android.com/reference/android/location/Location.html *getLastKnownLocation *(Stringhttp://developer.android.com/reference/java/lang/String.htmlprovider) *Returns* - the last known location for the provider, or *null* On Sunday, September 30, 2012 11:39:15 PM UTC-5, asheesh arya wrote: again saying you this exception cause due to because your real device cant get last location thats why you didnt got last location on device use if else condition and putToast msg in else condition -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Widget Layout Frustration
As far as you know are all the manufacturer launchers based on the AOSP Launcher2? On Saturday, September 29, 2012 5:39:15 PM UTC-4, Kostya Vasilyev wrote: This can be difficult considering that: - 2.3 pushed home screen icons down relative to widgets (or was it the other way around?), except HTC devices, where 2.3 has a lot of 2.1-2.2 elements... - 4.0 and 4.1 surrounds widgets with additional padding (when it remembers to, and its memory is not perfect) - there are replacement launchers - there are manufacturer-specific launchers Now you really wanted to get a close match, I'd recommend you look in Launcher2 sources. However, IIRC, it uses a custom View subclass to render the shortcuts - something a 3rd party widget can't do (the set of views that can be used in a widget is limited). -- K 2012/9/28 Fred Jones fjone...@gmail.com javascript: I'm having this exact problem.. was anyone ever able to come up with a way of doing this that is consistent across different home screens? It seems like the tCalendar app does it perfectly. Thanks. On Friday, October 30, 2009 12:40:59 AM UTC-4, Evan Ruff wrote: Hey Guys, I was hoping someone could help me with a home screen widget I'm trying to layout. Basically, I'm trying to layout my widget so it matched a standard home screen application shortcut perfectly. Basically, at this point, I'm about ~2px off and it's driving me crazy! Has anyone gotten this to match up just right? Should I be able to find this layout in the source somewhere? Any clues would be much appreciated. Here's my layout thus far: drawable/text_border.xml - For the black background around the text: shape xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android solid android:color=#9900/ padding android:left=5dp android:right=5dp android:bottom=1dp android:top=1dp / corners android:radius=7dp / /shape layout/widget.xml - The widget itself: ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.**android.com/apk/res/http://schemas.android.com/apk/res/ android android:layout_width=fill_**parent android:layout_height=fill_**parent android:layout_gravity=**center LinearLayout xmlns:android=http://schemas.** android.com/apk/res/ http://schemas.android.com/apk/res/ android android:orientation=**vertical android:layout_width=wrap_**content android:layout_height=wrap_**content android:layout_gravity=**center ImageView android:id=@+id/icon android:layout_gravity=**center android:src=@drawable/icon_**gray android:layout_width=wrap_**content android:layout_height=wrap_**content android:paddingBottom=5px android:paddingTop=5px / TextView android:id=@+id/message android:layout_width=wrap_**content android:layout_height=wrap_**content android:background=@**drawable/text_border android:textColor=# android:layout_gravity=**center android:text=Assistant android:textSize=12px / /LinearLayout /FrameLayout Thanks for any help tuning this badboy. Thanks! Evan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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: Widget Layout Frustration
How would I know? But I do remember something from past discussions on this list about Samsung's TouchWiz ignoring view animations in widgets that all(?) the other launchers respect. So that's one difference already. Also, like I said, HTC's launcher in 2.3 positions widgets relative to app shortcuts like before (2.0 - 2.2), whereas other devices position them differently (compared to 2.0-2.2). That's another difference, and an important one. -- K 2012/10/1 Fred Jones fjones8...@gmail.com As far as you know are all the manufacturer launchers based on the AOSP Launcher2? On Saturday, September 29, 2012 5:39:15 PM UTC-4, Kostya Vasilyev wrote: This can be difficult considering that: - 2.3 pushed home screen icons down relative to widgets (or was it the other way around?), except HTC devices, where 2.3 has a lot of 2.1-2.2 elements... - 4.0 and 4.1 surrounds widgets with additional padding (when it remembers to, and its memory is not perfect) - there are replacement launchers - there are manufacturer-specific launchers Now you really wanted to get a close match, I'd recommend you look in Launcher2 sources. However, IIRC, it uses a custom View subclass to render the shortcuts - something a 3rd party widget can't do (the set of views that can be used in a widget is limited). -- K 2012/9/28 Fred Jones fjone...@gmail.com I'm having this exact problem.. was anyone ever able to come up with a way of doing this that is consistent across different home screens? It seems like the tCalendar app does it perfectly. Thanks. On Friday, October 30, 2009 12:40:59 AM UTC-4, Evan Ruff wrote: Hey Guys, I was hoping someone could help me with a home screen widget I'm trying to layout. Basically, I'm trying to layout my widget so it matched a standard home screen application shortcut perfectly. Basically, at this point, I'm about ~2px off and it's driving me crazy! Has anyone gotten this to match up just right? Should I be able to find this layout in the source somewhere? Any clues would be much appreciated. Here's my layout thus far: drawable/text_border.xml - For the black background around the text: shape xmlns:android=http://schemas.android.com/apk/res/androidhttp://schemas.android.com/apk/res/android solid android:color=#9900/ padding android:left=5dp android:right=5dp android:bottom=1dp android:top=1dp / corners android:radius=7dp / /shape layout/widget.xml - The widget itself: ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/http://schemas.android.com/apk/res/ android android:layout_width=fill_**pa**rent android:layout_height=fill_**p**arent android:layout_gravity=**cente**r LinearLayout xmlns:android=http://schemas. android.com/apk/res/ http://schemas.android.com/apk/res/ android android:orientation=**vertical** android:layout_width=wrap_**co**ntent android:layout_height=wrap_**c**ontent android:layout_gravity=**cente**r ImageView android:id=@+id/icon android:layout_gravity=**cente**r android:src=@drawable/icon_**g**ray android:layout_width=wrap_**co**ntent android:layout_height=wrap_**c**ontent android:paddingBottom=5px android:paddingTop=5px / TextView android:id=@+id/message android:layout_width=wrap_**co**ntent android:layout_height=wrap_**c**ontent android:background=@**drawable**/text_border android:textColor=# android:layout_gravity=**cente**r android:text=Assistant android:textSize=12px / /LinearLayout /FrameLayout Thanks for any help tuning this badboy. Thanks! Evan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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] Re: is there a way to put entire folder from assets to sdcard? not just individual files.
The code reads each asset into tempdata, then writes tempdata to a file on the SD card. On Sunday, September 30, 2012 8:06:38 PM UTC-5, gitrite wrote: i know this post is old . im new to programming @aspidoff how did the code work out for you.. i want to do tyhe same thing - copy files from the assets to the sd card but can one of you guy explain how the code works in more detail. On Thursday, October 8, 2009 4:29:29 AM UTC-7, aspidoff wrote: hey guys, i hope this is the right forum. what i am trying to do is simply copy over entire folder full of mp3 files onto sdcard within an app. I am doing this out of assets folder because raw folder does not allow mp3 files to be named the way i need them to. here is what I dug up so far but not sure if this will work. i am lost InputStream ins = getResources().getAssets().open(); int size = ins.available(); // Read the entire resource into a local byte buffer. byte[] buffer = new byte[size]; ins.read(buffer); ins.close(); FileOutputStream fos = new FileOutputStream(/sdcard/myfolder/); fos.write(buffer); fos.close(); can someone help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hardware reccomendations: Next development laptop
I would go with a MacBook Pro. Most Android devices just work with it. On Saturday, September 29, 2012 11:42:46 PM UTC-5, Nathan wrote: Since the hardware would primarily be used for developing Android, I think this is on topic. My three year old Vista laptop does do well at complex builds in Eclipse, I'd just like to do more than one per day. ;) What do you recommend for my next development laptop? I really don't enjoy hardware shopping any more than car shopping. . I have a vague idea that I want plenty of processor speed, plenty of memory, Solid State drive, and probably 15 inch screen. I do have a 17 inch screen now, and that was largely because I didn't even have an external monitor. Now it is docked to an external monitor most of the time, and is just too bulky when I actually do lug it somewhere. This would probably gain me an hour of productivity every day, so I can afford to sink a 1-2,000 or maybe more. I did have the idea of maybe getting a MacBook Pro, since it could do iOS development if I dabbled on the dark side, could possibly run Windows if I did some development on that side. Then again, getting a Windows Laptop and a Mac mini could also solve that problem. I haven't really gotten into Linux for a personal computer, though I do have a remote server running Debian now. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the best phone to buy for Android Development?
Are you sure you want a phone and not a tablet? I would think a tablet like the Google Nexus 7 would be a good starter device. On Sunday, September 30, 2012 2:54:28 PM UTC-5, Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ordering with SQLITE by nearest latitude longitude coordinates
The easiest way is probably to do this outside of the database using this method in the Locationhttp://developer.android.com/reference/android/location/Location.htmlclass: public float *distanceTo *(Locationhttp://developer.android.com/reference/android/location/Location.htmldest) Since: API Level 1http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Returns the approximate distance in meters between this location and the given location. Distance is defined using the WGS84 ellipsoid. *Parameters* *dest* the destination location *Returns* - the approximate distance in meters On Monday, October 1, 2012 6:53:58 AM UTC-5, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: Displaying intent launcher in Account settings
After MANY different trails, it seems to have all stemmed from not having applying the corresponding intent-filter for my activity. On Monday, October 1, 2012 3:32:15 AM UTC-4, Timothy Caraballo wrote: I've added an account using the AccountManager and can show preferences directly on the Account Settings pages, but I cannot display an intent launcher. My preferences.xml is as follows: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android= http://schemas.android.com/apk/res/android; CheckBoxPreference android:key=@string/preference_sync_key android:defaultValue=true android:summary=@string/preference_sync_summary android:title=@string/preference_sync_title/ PreferenceScreen android:key=account_settings android:title=@string/preferences_title android:summary=@string/preferences_summary intent android:action=com.example.activities.Preferences.ACCOUNT_SETTINGS android:targetPackage=com.example android:targetClass=com.example.PreferencesActivity / /PreferenceScreen /PreferenceScreen I put a CheckBoxPreference in just to see if it was reading the XML at all, and it is. The checkbox appears, but the button to the second PreferenceScreen, which I would like to launch my intent will not appear at all. What might I be doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TextureView Canvas
There is an overhead associated to invalidate() but unless your hierarchy is extremely complicated it shouldn't be such an issue. But you're right: SurfaceView can be used to avoid calling invalidate() but don't override it's onDraw() method. You usually create a new thread that renders onto the surface. On Mon, Oct 1, 2012 at 2:53 AM, Ajit Vasudevan vasu.a...@gmail.com wrote: Hi Romain, Thanks for your response. I was experiencing a very interesting behavior. I started using a custom view inside a framelayout, and performed all the primitive operations and called invalidate() to let the system call onDraw. It was choking. I even tried to invalidate a rect, but it was just not fast enough - the 2nd view that was requesting the underlying view to redraw certain primitives based on the actions on the 2nd view was not responsive. I then started using the SurfaceView to see if there is any benefit for the same operation - and voila - it worked like a charm. This is why is used SurfaceView as a substitute - there was an apparent performance benefit. That said, I'm going to take another look at my hierarchy, and all the custom views (there are quite a few), to make sure there are no other leaks. Like you said, I would rather use a View instead of SurfaceView. Thanks for your input though - it does answer the question that I can use a canvas with TextureView if i follow the intended mode of use. -Ajit On Saturday, September 29, 2012 2:47:45 PM UTC-7, Romain Guy (Google) wrote: Hi, If you were using SurfaceView's onDraw() method then you were not getting any benefit. You have to use lockCanvas()/unlockCanvasAndPost() and post on the underlying Surface. TextureView works in a similar way: you can call lockCanvas()/unlockCanvasAndPost(). However, it seems all you need is a View. It's easier to use and since you are not using SurfaceView properly anyway it will do the same thing. On Thu, Sep 27, 2012 at 2:19 PM, Ajit Vasudevan vasu...@gmail.com wrote: Hello, I am currently working on an app that requires computations/rendering based on a variety of user inputs. I have implemented the SurfaceView and things work as expected. But I started facing performance issues when I tried to put this inside a horizontal scroll view. Obviously it is not intended to work this way - but I tried anyway :) Based on what I have read - it appears like I have to move to TextureView. But i am unable to override the onDraw, and therefore cannot perform the necessary drawing using the Canvas. This might be a trivial question - but I wanted to know if we can use TextureView to draw primitives on the screen using a Canvas? The only examples I have seen thus far show the use of video/camera/openGL rendering on the TextureView. Any help on this would be great. Thanks much -Ajit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.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 -- Romain Guy Android framework engineer romain...@android.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] Contacts observer
Hi We are develop a contactobserver to verify when new contact are added, deleted or changed. We need to know when a phone number is updated to sync our contacts db. We try to put a observer to RawContacts.CONTENT_URI and ContactsContract.Data.*CONTENT_URI but the observers launch every time a ingoing call is received.* ** How can i only detect when new contact is adder, deleted o some phone number are changed? 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: Fragment Transactions
Thanks Blake. However when I try to replace one fragment with another using this code, I am still not able to get backstack stuff working. Here is my new code- private void handleRuralRoutesClick(){ FragmentTransaction xact= getSupportFragmentManager().beginTransaction(); xact.replace(R.id.fragment_content, new CountyListFragment(),COUNTY_TAG); xact.addToBackStack(null); xact.commit(); } I am using supportfragmentmanager to support android 2.2. Will that make a difference? Thanks Apurva On Sun, Sep 30, 2012 at 10:42 AM, G. Blake Meike blake.me...@gmail.comwrote: This code works: https://github.com/bmeike/ProgrammingAndroid2Examples/blob/master/SimpleFragment/src/com/oreilly/demo/android/pa/simplefragment/SimpleFragment.java G. Blake Meike Marakana The second edition of Programming Android is now available: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fragment Transactions
Also if I add the fragment then the backstack logic works well. But then my first fragment is not completely hidden by the second fragment that I add over it. On Mon, Oct 1, 2012 at 1:32 PM, Apurva Goyal tech.apu...@gmail.com wrote: Thanks Blake. However when I try to replace one fragment with another using this code, I am still not able to get backstack stuff working. Here is my new code- private void handleRuralRoutesClick(){ FragmentTransaction xact= getSupportFragmentManager().beginTransaction(); xact.replace(R.id.fragment_content, new CountyListFragment(),COUNTY_TAG); xact.addToBackStack(null); xact.commit(); } I am using supportfragmentmanager to support android 2.2. Will that make a difference? Thanks Apurva On Sun, Sep 30, 2012 at 10:42 AM, G. Blake Meike blake.me...@gmail.comwrote: This code works: https://github.com/bmeike/ProgrammingAndroid2Examples/blob/master/SimpleFragment/src/com/oreilly/demo/android/pa/simplefragment/SimpleFragment.java G. Blake Meike Marakana The second edition of Programming Android is now available: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] magnetic signal
I was thinking of having a bunch of devices monitoring the strength of the magnetic signal and then doing a magnet blast (a spike in the magnetic signal strength) to have the devices all perform a task simultaneously. Anyone know if this is possible or how you could do the magnet blast? 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] TrafficStats.getMobileRxBytes crashing on Nexus S 4.1.1 (Jellybean)
Has anybody found a workaround for the Jellybean crash in TrafficStats: 10-01 15:29:43.549 W/dalvikvm( 4412): JNI WARNING: received null jstring 10-01 15:29:43.549 W/dalvikvm( 4412): in Landroid/net/TrafficStats;.nativeGetIfaceStat:(Ljava/lang/String;I)J (GetStringUTFChars) 10-01 15:29:43.549 I/dalvikvm( 4412): main prio=5 tid=1 NATIVE 10-01 15:29:43.549 I/dalvikvm( 4412): | group=main sCount=0 dsCount=0 obj=0x40e45568 self=0x40d70ab0 10-01 15:29:43.549 I/dalvikvm( 4412): | sysTid=4412 nice=0 sched=0/0 cgrp=apps handle=1074845232 10-01 15:29:43.549 I/dalvikvm( 4412): | schedstat=( 0 0 0 ) utm=7 stm=3 core=0 10-01 15:29:43.576 D/NFCJNI ( 466): Terminating client thread... 10-01 15:29:43.635 I/dalvikvm( 4412): #00 pc 1260 /system/lib/libcorkscrew.so (unwind_backtrace_thread+27) 10-01 15:29:43.635 I/dalvikvm( 4412): #01 pc 0005f684 /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+35) 10-01 15:29:43.635 I/dalvikvm( 4412): #02 pc 00053530 /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+303) 10-01 15:29:43.635 I/dalvikvm( 4412): #03 pc 000535ca /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25) 10-01 15:29:43.635 I/dalvikvm( 4412): #04 pc 00038cf2 /system/lib/libdvm.so 10-01 15:29:43.635 I/dalvikvm( 4412): #05 pc 00038fc6 /system/lib/libdvm.so 10-01 15:29:43.635 I/dalvikvm( 4412): #06 pc 0003a076 /system/lib/libdvm.so 10-01 15:29:43.635 I/dalvikvm( 4412): #07 pc 0003c21a /system/lib/libdvm.so 10-01 15:29:43.639 I/dalvikvm( 4412): #08 pc 0005fabc /system/lib/libandroid_runtime.so 10-01 15:29:43.639 I/dalvikvm( 4412): #09 pc 0001de30 /system/lib/libdvm.so (dvmPlatformInvoke+112) 10-01 15:29:43.639 I/dalvikvm( 4412): #10 pc 0004ce72 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+389) 10-01 15:29:43.639 I/dalvikvm( 4412): #11 pc 00027260 /system/lib/libdvm.so 10-01 15:29:43.639 I/dalvikvm( 4412): #12 pc 0002bb38 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180) 10-01 15:29:43.639 I/dalvikvm( 4412): #13 pc 0005f876 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+373) 10-01 15:29:43.639 I/dalvikvm( 4412): #14 pc 00066d4c /system/lib/libdvm.so 10-01 15:29:43.639 I/dalvikvm( 4412): #15 pc 00027260 /system/lib/libdvm.so 10-01 15:29:43.639 I/dalvikvm( 4412): #16 pc 0002bb38 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180) 10-01 15:29:43.639 I/dalvikvm( 4412): #17 pc 0005f5b0 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+271) 10-01 15:29:43.639 I/dalvikvm( 4412): #18 pc 000494ca /system/lib/libdvm.so 10-01 15:29:43.639 I/dalvikvm( 4412): #19 pc 0004698a /system/lib/libandroid_runtime.so 10-01 15:29:43.639 I/dalvikvm( 4412): #20 pc 0004746e /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+389) 10-01 15:29:43.639 I/dalvikvm( 4412): #21 pc 0dce /system/bin/app_process 10-01 15:29:43.639 I/dalvikvm( 4412): #22 pc 00016ea8 /system/lib/libc.so (__libc_init+35) 10-01 15:29:43.643 D/NFCJNI ( 466): phLibNfc_Mgt_UnConfigureDriver() returned 0x[NFCSTATUS_SUCCESS] 10-01 15:29:43.654 I/dalvikvm( 4412): at android.net.TrafficStats.nativeGetIfaceStat(Native Method) 10-01 15:29:43.654 I/dalvikvm( 4412): at android.net.TrafficStats.getRxBytes(TrafficStats.java:359) 10-01 15:29:43.654 I/dalvikvm( 4412): at android.net.TrafficStats.getMobileRxBytes(TrafficStats.java:313) I can see somebody else has found it: http://pastebin.com/aMufDUhg and it doesn't happen every time, the same code only fails once in a while. And I don't have a clue as to how I should defend against it (is there some special action that should be taken to make it so the public member function with no arguments doesn't crash?) Is it limited to JRO03E? (JRO03L isn't being pulled down when I check for system updates for some reason.) Dan Schmitt -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ordering with SQLITE by nearest latitude longitude coordinates
saex, in case you are wondering what just happened, RichardC asked you to increase the effort you put into communicating with those who might volunteer to help you for no reward other than personal goodness. Instead you were rude and condescending, the exact opposite of courtesy, much less effort. From this RichardC reached the valid engineering conclusion that you are not serious about seeking assistance. I share this because I haven't seen your handle before, and I suspect you might not yet possess the context to properly interpret the social interaction. I am giving you the benefit of the doubt that you do not actually intend to be rude, condescending and hostile. I am giving you the advice to be considerate, professional and cooperative. More specifically, the function of the accepted answer. suffers from being semantically null, that is, conveying absolutely no information whatsoever, and from a plethora of superfluous periods. Asking an empty question, then refusing to fill it when asked, is a surefire way to make it impossible to answer the question, and unlikely that anyone will want to. -- Lew On Monday, October 1, 2012 7:17:48 AM UTC-7, RichardC wrote: So I guess you don't want any help then. On Monday, October 1, 2012 3:11:21 PM UTC+1, saex wrote: Obviously the function of the accepted answer. El lunes, 1 de octubre de 2012 15:42:59 UTC+2, RichardC escribió: What function? You need to put more effort into your questions, do not expect others to do all your work for you. On Monday, October 1, 2012 2:34:32 PM UTC+1, saex wrote: How can i add that function to my sqlite database in Android? and how can i use it ? thanks El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió: http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: What is the best phone to buy for Android Development?
gjs wrote: I'd suggest using the latest Google Android device, currently that is the (Samsung) Galaxy Nexus, but rumors suggest it is to be updated very soon (?) Main reason is that the Google phones allow you to see your own debug message on the console pretty easily, where as most other phones have so such junk debug messages on the console, that they swamp your own debug messages making it difficult to test debug your own apps. You can filter debug messages but the console fills quickly (in Eclipse) anyway then has to be reset. I assume that by debug messages you mean the logcat contents. You can filter those by command-line quite readily also, for example into a text file, that you can examine at your leisure. You can also modify the buffer size to capture more data, or run the adb logcat command in the background redirecting to a file for an arbitrary amount of data. If you can live without relying on debug messages through Eclipse then any good recent phone will likely do, eg Samsung Galaxy S3, HTC One X, etc. The Google phones get OS updates before other phones as well. The world doesn't comprise Eclipse alone. Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the best phone to buy for Android Development?
Andrew Cesario wrote: You dont even need a phone to test your apps. You can test using the eclipse sdk. However, it is nice to have a phone... doesnt matter which one... to see your apps working. Actually, no. You can test using the Android SDK, for which there is an Eclipse plugin. Other ways to run the emulator and tests also exist. That being said, if I were going to buy a new phone I would buy something with the latest system version, but be sure to develop your apps and release for older devices, like 2.3 which is still very popular. Nilashis Dey wrote: I am new to Android Development and would like to know which phone I should get to test my apps? Obviously, I would like the phone for which drivers for all devices are easily available and for which I would find the most amount of support discussions online - for when I run into problems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reuse a control
Hi, What I would like to do is create a table layout one time that displays all the data I need and has the code that controls what happens when elements inside the table are clicked. I then want to add this control to each of my activities that need to show this table. As of right now I have all the XML and all the code duplicated on each page that the table needs to be on. Is there a way to do this in Android? If so is there also a way to create one for each of the different screen sizes(small,normal,large,x-large)? If anyone could send some links to examples or if it is simple just briefly explain the steps I need to take to do something like this I would greatly appreciate it! I know with .net I could create a custom User control and design the UI and add the code then I could just add a reference to the control on any webpage I wanted it on. This kept the code clean and short and if I needed to make a change I only had to do it in one place. That is the functionality I am looking for. Thanks in Advance for any help/input, Tommy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Java 7 bytecode and 'dx' tool
Hi, Does anyone know if 'dx' is going to support the Java 7 bytecode someday (major version of the bytecode = 51). AFAICT only Java 6 bytecode can be currently used with dx. Thank 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
Re: [android-developers] Re: Google cancelled this order. Reason: Other
My biggest cluster so far was last week during the week. There were slightly less during the weekend, but still plenty. It's not as high a percentage of people as it is a percentage of orders. Some people just have no luck at all' to quote Pirates of the Caribbean. They seem to be on some sort of secret no-buy list, and they keep trying to buy over and over, even changing credit cards, and still can't buy. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Reuse a control
I found what i was looking for after modifying my search strings. I need to look into Compound Controls. On Monday, October 1, 2012 4:37:03 PM UTC-4, Tommy wrote: Hi, What I would like to do is create a table layout one time that displays all the data I need and has the code that controls what happens when elements inside the table are clicked. I then want to add this control to each of my activities that need to show this table. As of right now I have all the XML and all the code duplicated on each page that the table needs to be on. Is there a way to do this in Android? If so is there also a way to create one for each of the different screen sizes(small,normal,large,x-large)? If anyone could send some links to examples or if it is simple just briefly explain the steps I need to take to do something like this I would greatly appreciate it! I know with .net I could create a custom User control and design the UI and add the code then I could just add a reference to the control on any webpage I wanted it on. This kept the code clean and short and if I needed to make a change I only had to do it in one place. That is the functionality I am looking for. Thanks in Advance for any help/input, Tommy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Ordering with SQLITE by nearest latitude longitude coordinates
He's referring to the function here: http://www.thismuchiknow.co.uk/?p=71 #define DEG2RAD(degrees) (degrees * 0.01745327) // degrees * pi over 180 static void distanceFunc(sqlite3_context *context, int argc, sqlite3_value **argv) { // check that we have four arguments (lat1, lon1, lat2, lon2) assert(argc == 4); // check that all four arguments are non-null if (sqlite3_value_type(argv[0]) == SQLITE_NULL || sqlite3_value_type(argv[1]) == SQLITE_NULL || sqlite3_value_type(argv[2]) == SQLITE_NULL || sqlite3_value_type(argv[3]) == SQLITE_NULL) { sqlite3_result_null(context); return; } // get the four argument values double lat1 = sqlite3_value_double(argv[0]); double lon1 = sqlite3_value_double(argv[1]); double lat2 = sqlite3_value_double(argv[2]); double lon2 = sqlite3_value_double(argv[3]); // convert lat1 and lat2 into radians now, to avoid doing it twice below double lat1rad = DEG2RAD(lat1); double lat2rad = DEG2RAD(lat2); // apply the spherical law of cosines to our latitudes and longitudes, and set the result appropriately // 6378.1 is the approximate radius of the earth in kilometres sqlite3_result_double(context, acos(sin(lat1rad) * sin(lat2rad) + cos(lat1rad) * cos(lat2rad) * cos(DEG2RAD(lon2) - DEG2RAD(lon1))) * 6378.1); } On Monday, October 1, 2012 3:18:33 PM UTC-5, Lew wrote: saex, in case you are wondering what just happened, RichardC asked you to increase the effort you put into communicating with those who might volunteer to help you for no reward other than personal goodness. Instead you were rude and condescending, the exact opposite of courtesy, much less effort. From this RichardC reached the valid engineering conclusion that you are not serious about seeking assistance. I share this because I haven't seen your handle before, and I suspect you might not yet possess the context to properly interpret the social interaction. I am giving you the benefit of the doubt that you do not actually intend to be rude, condescending and hostile. I am giving you the advice to be considerate, professional and cooperative. More specifically, the function of the accepted answer. suffers from being semantically null, that is, conveying absolutely no information whatsoever, and from a plethora of superfluous periods. Asking an empty question, then refusing to fill it when asked, is a surefire way to make it impossible to answer the question, and unlikely that anyone will want to. -- Lew On Monday, October 1, 2012 7:17:48 AM UTC-7, RichardC wrote: So I guess you don't want any help then. On Monday, October 1, 2012 3:11:21 PM UTC+1, saex wrote: Obviously the function of the accepted answer. El lunes, 1 de octubre de 2012 15:42:59 UTC+2, RichardC escribió: What function? You need to put more effort into your questions, do not expect others to do all your work for you. On Monday, October 1, 2012 2:34:32 PM UTC+1, saex wrote: How can i add that function to my sqlite database in Android? and how can i use it ? thanks El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió: http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: SELECT id, name, lat, lng FROM items I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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: Ordering with SQLITE by nearest latitude longitude coordinates
I can't tell you how to add that to an Android app, at least not without doing a fair amount of experimenting that I really don't have the energy to do at the moment, but I will give you some optimization advice instead. I suggest that you reduce the maximum number of results returned in your query by limiting the rows to those within a particular box as defined by a certain number of degrees positive and negative relative to the queried longitude and latitude. The reason is that calculating the distance between any two points in a query is going to be CPU intensive and can take quite a bit of time. This is especially true if you have hundreds, thousands, or millions of rows: each matching row will need to have the distance calculation performed on it, at least once, possibly twice considering you may want the distance to be included in the search result, not just using it to sort. (I haven't really tried with SQLite, but you may or may not be able to sort based on a calculated or function result column... so select item_id, longitude, latitude, calcdistance(longitude, latitude, -0.1199, 51.5053357) as distance from whatevertable order by distance may or may not work.) What I did in one app that used the Google Maps API is get the latitude span and the longitude span, divide both numbers in half, and use those to make the device location (returned by GPS) the center of a search box. That way any row having a latitude and longitude that are within that box are eligible to have the distance calculated and be returned in the data I presented to my users. The query was something like this : select item_id, longitude, latitude from mytable where (latitude = minLatitude and latitude =maxLatitude) and (longitude = minLongitude and longitude = maxLongitude) With that much said, I'll leave it up to you to figure out the details, whether you want to have a fixed range of degrees to search on, how to accomplish that, and how to convert that to a user friendly interface, or whether you want to pay me any heed at all. Raymond On 10/01/2012 09:34 AM, saex wrote: How can i add that function to my sqlite database in Android? and how can i use it ? thanks El lunes, 1 de octubre de 2012 14:11:06 UTC+2, RichardC escribió: http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite http://stackoverflow.com/questions/3168904/sql-query-to-query-nearby-points-of-interest-based-on-lat-long-sqlite On Monday, October 1, 2012 12:53:58 PM UTC+1, saex wrote: I must obtain a SQLite SQL Sentence for ordering by nearest latitude and longitude coordinates, given a initial location. THis is a example sentence for my table in the sqlite database: |SELECT id, name, lat, lng FROM items | I must achieve this with SQLite, and with that table. I can't use another techniques because this is for a existen SQlite database that i can't change. Exists a way to achieve this with Android and SQlite? I checked a lot of stackoverflow posts and i didn't find the way to achieve that 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 -- Raymond Rodgers http://www.badlucksoft.com/ http://anevilgeni.us/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hardware reccomendations: Next development laptop
On Sunday, September 30, 2012 5:42:43 PM UTC-7, Lew wrote: I've used a Mac (tower, but same diff) for Android development. It's fine, simply because Mac looks just like Linux to an Android programmer. I don't know how much tinkering Ubuntu needs if you're programming. I've used Ubuntu for Android development, too, and it, too, just works. It's pretty straightforward as a programmer's OS. I do value the time over money. When I set up the linux server, well, I didn't. I would not attempt installing linux on new hardware. And it'll be fast enough, for a given hardware configuration. But I'd guess you can get a lot more speed for your buck through memory size first, and multi-core architecture second. Get at least a dual-core, preferably more, CPU configuration and tons of RAM. 4 GiB is plenty for Linux. I don't know enough about Mac to set a minimum. More is always better. Solid-state hard drives probably won't affect you as much. They boot Windows faster, but maybe that won't be a problem. What do you mean by complex build? Any Android project I can imagine on any hardware that could reasonably run Vista should not take more than a minute or five to compile in Eclipse. What are you doing wrong? You need to imagine more. ;) Whatever it is, I am not doing it just to torture myself. I do have a library project (ActionBarSherlock) including by another library project that is included by my DEMO and PAID version. But I believe my biggest sin is having about 700 files in my drawables folder. Most of them are for a unique situation where I need a lot of icons. But then again, ActionBarSherlock has about 277 resource files just to make the actionbar look consistent across Android, and it would be more than that if I ever did a custom theme that worked across all Android versions. I have the option checked to defer dexing and packaging until export or launch. I have not done a complete scientific study. Sometimes a build takes a few seconds. Sometimes five minutes. Sometimes 30 seconds. After a fresh build, it does take 1:25 to see the Device Chooser dialog. The next time, it comes up right away. If I export a signed build from Eclipse, I am waiting more than 10 minutes. I usually have to leave the room as the laptop is unusable for much else in the meantime. (Yes, I realize I should be doing this from the command line on a continuous integration server that has a barrage of unit tests and recorded functional tests, but we'll talk about that on another thread.) These things all add up. I definitely have to wait if I've modified one file and I want to modify another one because the autobuild is still running. 1-5 minutes is definitely enough time to get distracted by something else I have to do or some browser window or some email from some pesky customer that wants me to fix some bug instead of completing work on some innovative new feature. ;) Hardware is overdue for refresh, regardless, but I am open to other suggestions. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hardware reccomendations: Next development laptop
Given the story on the build, I'd go SSD for sure. Start-up will be nice and snappy (30s for my MBP), but general I/O is where you'll reap the biggest benefit. If you have a bajillion files in your build, that's probably what's kicking your butt. Get the MBP with as much RAM and SSD as you can afford. It might be a bit more expensive than a similarly equipped Windows box, but it's worth it if you value time over money. Which of the two can you make more of? :-) Larry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google has received a subpoena seeking information related to Android applications
I received this email But i am not interested and want my account to be excluded What do i need to do? Thanks Google has received a subpoena seeking information related to Android applications that may have been made available on alternative markets without the consent of the developer. The subpoena seeks information about those Android applications, including contact information for the developers of the applications. Our records show that your Android developer account will be included in the information Google will provide in response to this subpoena. Google is not in a position to provide you with legal advice or discuss the substance of the process in our possession. For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 has received a subpoena seeking information related to Android applications
I got this too -- anyone know what this is about? On Monday, October 1, 2012 6:45:39 PM UTC-4, Andrei wrote: I received this email But i am not interested and want my account to be excluded What do i need to do? Thanks Google has received a subpoena seeking information related to Android applications that may have been made available on alternative markets without the consent of the developer. The subpoena seeks information about those Android applications, including contact information for the developers of the applications. Our records show that your Android developer account will be included in the information Google will provide in response to this subpoena. Google is not in a position to provide you with legal advice or discuss the substance of the process in our possession. For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 has received a subpoena seeking information related to Android applications
Got the same e-mail. Asked the same question on 'android-discuss' :-) I'm curious what this is all about? BlueStack? Aliyun/Acer? On Monday, October 1, 2012 6:45:39 PM UTC-4, Andrei wrote: I received this email But i am not interested and want my account to be excluded What do i need to do? Thanks Google has received a subpoena seeking information related to Android applications that may have been made available on alternative markets without the consent of the developer. The subpoena seeks information about those Android applications, including contact information for the developers of the applications. Our records show that your Android developer account will be included in the information Google will provide in response to this subpoena. Google is not in a position to provide you with legal advice or discuss the substance of the process in our possession. For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hardware reccomendations: Next development laptop
Thanks to all. I hear votes for both Linux and MacBook. Given the possibility of at least dabbling in iOS development sometime in the next three years, the Macbook probably wins over Linux. And I will probably hire someone else to muck with the linux server since my college intern is on some two year leave of absence. For any of you who are using Mac, have you run Windows programs just fine, or is the reason you would ever want to just slipped away like a distant memory? Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hardware reccomendations: Next development laptop
On 2 October 2012 12:03, Nathan nathan.d.mel...@gmail.com wrote: Thanks to all. I hear votes for both Linux and MacBook. Buy something with linux pre-installed; such as something from : https://zareason.com/ -Joel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 has received a subpoena seeking information related to Android applications
For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. On Monday, October 1, 2012 3:50:20 PM UTC-7, Streets Of Boston wrote: Got the same e-mail. Asked the same question on 'android-discuss' :-) I'm curious what this is all about? BlueStack? Aliyun/Acer? On Monday, October 1, 2012 6:45:39 PM UTC-4, Andrei wrote: I received this email But i am not interested and want my account to be excluded What do i need to do? Thanks Google has received a subpoena seeking information related to Android applications that may have been made available on alternative markets without the consent of the developer. The subpoena seeks information about those Android applications, including contact information for the developers of the applications. Our records show that your Android developer account will be included in the information Google will provide in response to this subpoena. Google is not in a position to provide you with legal advice or discuss the substance of the process in our possession. For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Setting onclocklistener on view class
On Mon, Oct 1, 2012 at 3:14 AM, Haris haris...@gmail.com wrote: While I am pressing the button I got the error like Could not find a method ButtonOnClick(View) in the activity class com.example.sizemesurment_1.MesureSizeActivity for onClick handler on view class android.widget.Button with id 'up' Google this error, minus all the you-app-specific stuff. So something like this: Could not find a method in the activity for onClick handler on view class with id Also, please post less code - only as much as you need to explain the problem. Too much and people's eyes will glaze over and they will move on to something else. - 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] No response for click event on my custom button.
On Sun, Sep 30, 2012 at 6:41 AM, Yang Yang comety...@gmail.com wrote: So I am really don't know what wrong with my code. Show the relevant code. As little as necessary to show your issue. - 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] Button (onClick)
On Sun, Sep 30, 2012 at 8:21 AM, Алексей Фенев alexeyfe...@gmail.comwrote: What do you think, how fix it? Try debugging your app. Look at Logcat, for starters. - 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] Hardware reccomendations: Next development laptop
On Mon, Oct 1, 2012 at 5:03 PM, Nathan nathan.d.mel...@gmail.com wrote: For any of you who are using Mac, have you run Windows programs just fine, or is the reason you would ever want to just slipped away like a distant memory? I use VMware for testing (I do some web development, too...curse you IE!), but that's it. I have everything else I want in OSX. Disclaimer: OSX still sucks sometimes, don't kid yourself. It's just that for me, it sucks less than the alternatives. For now. YMMV. Larry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 has received a subpoena seeking information related to Android applications
I just spoke to a representative who said Google should not have sent those emails. I just said I received an email and she immediately knew what I was referring to, no reference number needed. She told me to forget it was sent, and that the FBI will contact me directly if there is any issue pertaining to my account specifically (someone uploading one of my applications illegally to another application market). Hope that clears things up for people, I feel bad for the representatives at that number who must be receiving tons of calls. Anyway, nothing to worry about (at least for now). On Monday, October 1, 2012 7:14:18 PM UTC-4, Lew wrote: For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. On Monday, October 1, 2012 3:50:20 PM UTC-7, Streets Of Boston wrote: Got the same e-mail. Asked the same question on 'android-discuss' :-) I'm curious what this is all about? BlueStack? Aliyun/Acer? On Monday, October 1, 2012 6:45:39 PM UTC-4, Andrei wrote: I received this email But i am not interested and want my account to be excluded What do i need to do? Thanks Google has received a subpoena seeking information related to Android applications that may have been made available on alternative markets without the consent of the developer. The subpoena seeks information about those Android applications, including contact information for the developers of the applications. Our records show that your Android developer account will be included in the information Google will provide in response to this subpoena. Google is not in a position to provide you with legal advice or discuss the substance of the process in our possession. For more information about the subpoena, you may wish to contact the Federal Bureau of Investigation -- Atlanta Field Office at (404) 679-9000, reference # 2011R00320/FBI/ORKIN. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Buttons in ViewPager pages: Problem swiping/dragging pages when finger starts on top of Button. How can I fix this?
Hi everyone, I have a ViewPager that contains pages, each page with a bunch of Buttons (or clickable TextViews). When I set the buttons to 'setClickable(false)', swiping the ViewPager to another page works fine all the time. However, when the buttons are clickable (OnClick listener is set), the ViewPager won't do anything if the user put his or her finger down on the button when he or she starts a swipe or scroll. If the user swipes, the button 'eats' all the touch-events (MotionEvents). Is there a convenient way to make these buttons/textviews clickable and make the ViewPager swipe even if the user puts his finger on a button initially? (I'd like to avoid hacks and using GestureDetectors if possible) 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] Most recent apps icon on JB
My app is not shown correctly on JB most recent apps screen. Sometimes another app screen is shown for my app, sometimes cutoff of the app activity is shown. What do I need to implement for it to be shown right? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NDK - What is host system?
I am pretty sure host system in this context means the system the build will actually run on, i.e. the phone itself. 'androideabi' looks like a typo. 'armeabi' does occur. Could that be what you meant? 'android' goes without saying, after all. The list of supported abis is in the doc subdir of your ndk installdir, in the file CPU-ARCH-ABIS.html sec. I.1. 'armeabi' is listed, 'androideabi' is not. On Friday, September 28, 2012 12:36:49 PM UTC-7, KNERD wrote: I am getting this error while using the NDK on a project: checking build system type... i686-pc-linux-gnu checking host system type... Invalid configuration `arm-linux- androideabi': system `androideabi' not recognized aconfigure: error: /bin/sh ./config.sub arm-linux-androideabi failed It's obvious what the build system type is, but the documentation seems to not even mention what a HOST SYSTEM TYPE is. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 has received a subpoena seeking information related to Android applications
I think that used to be called a SNAFU. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Setting onclocklistener on view class
I thought it is easier to understand problem if I post my code like thisSorry for that ... Any way I solved my problem by creating a method public void ButtonOnClick(View view) in my MesureSizeActivity class.And I got the solution from http://stackoverflow.com/questions/12671397/onclicklistener-on-view-classfor the same question.. Thanks TerKing for your reply... On Tuesday, 2 October 2012 05:05:48 UTC+5:30, TreKing wrote: On Mon, Oct 1, 2012 at 3:14 AM, Haris hari...@gmail.com javascript:wrote: While I am pressing the button I got the error like Could not find a method ButtonOnClick(View) in the activity class com.example.sizemesurment_1.MesureSizeActivity for onClick handler on view class android.widget.Button with id 'up' Google this error, minus all the you-app-specific stuff. So something like this: Could not find a method in the activity for onClick handler on view class with id Also, please post less code - only as much as you need to explain the problem. Too much and people's eyes will glaze over and they will move on to something else. - 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: Google has received a subpoena seeking information related to Android applications
I received this mail as well. But seems like not many have got this. On Tuesday, October 2, 2012 5:50:25 AM UTC+2, John Coryat wrote: I think that used to be called a SNAFU. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en