[android-developers] Re: Getting the email address of the Google Account tied to the handset
Have you considered using the unique phone id rather than the g acct? The phone id is a much more reliable method especially since tthe email can be changed with a phone reset. On Tuesday, July 7, 2009, mscwd01 mscw...@gmail.com wrote: Hey, Simple question - but i'm finding it difficult finding the answer. I want to get the email address of the Google account tied to the phone (the one the user enters upon setup). I need it to uniquely identify the user of my app - however I do not want their password as it would, understandably, scare most users away from using the app. So I need a way of getting the email address without having to include permissions that suggest I am accessing account info etc... Is there a simple way of doing this? 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: Adobe Flash
No official word has come from the android team but I believe it safe to assume that in the coming months it is quite plausible that an ota update could be announced to coincide with the Hero's release that would provide support for flash. Being a web developer in my day job, I'm still not sure the benefits of having flash support on the phone. Even if it is true, it is extremely likely that the player wrapper will only support flash lite which although it will provide support at some level it is far more restrictive than many might think. It will certainly allow a much wider array of gui type elements (similar to adobe air) but is the overhead worth all of that? On Tuesday, July 7, 2009, chris.compo chris.co...@googlemail.com wrote: I heard the HTC Hero was coming with Adobe flash installed. does this mean previous android phones did not? and will we get an update for it ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to get current time?
Or you can do something like this... Date d = new Date(); d.getTime(); I personally prefer this but only because I have access to other functions for outputing the time in a human readable form without having to write a bunch of extra code. 2009/6/9 Mike Lanin mike.la...@gmail.com Thanks! I'll just use currentTimeMillis(). On 9 июн, 16:01, Mark Murphy mmur...@commonsware.com wrote: Jeff Sharkey wrote: So just a heads up that Android uses NITZ events provided by a carrier to properly set the system date and time. Android also falls-back to network NTP automatically when no cellular network is available. http://en.wikipedia.org/wiki/NITZ The time provided by currentTimeMillis() will typically be the best available time, and it's what all of the services on the device use, like Calendar and Alarm Clock. Does Android fall back to NTP when there is cellular but no NITZ? NITZ isn't terribly widespread. Thanks! -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy Need help for your Android OSS project?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help with Hello Android app
Rebuild your project and then try to recompile. I had similar problems the first time I ran my app in 3.4 with the latest sdk. On Tuesday, June 9, 2009, Pavan pavan.tamm...@gmail.com wrote: I tried all different possibilities but i can't get the hello android to work. I am using eclipse 3.4.2 and java 1.6 and when I am launching the sample app it says 'Cannot find HelloAndroid.apk' file. I have googled this and I couldn't find any solution that fixes this. Any help would be appreciated. Thanks, Pavan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SDK 1.5 and Eclipse problem
Did you set your path in system settings? On Wednesday, June 10, 2009, jphdsn jph...@gmail.com wrote: Hi, I'm just trying the SDK 1.5 with a new installation of Eclipse and the eclipse plugin When I import a project and run it, I have an error message : [2009-06-10 12:20:09 - Lunc] The connection to adb is down, and a severe error has occured. [2009-06-10 12:20:09 - Lunc] You must restart adb and Eclipse. [2009-06-10 12:20:09 - Lunc] Please ensure that adb is correctly located at '/Developer/android-sdk-mac_x86-1.5_r2/tools/adb' and can be executed. The problem is that adb is correctly located... And when I restart Eclipse the problem is still the same. Does anyone know a solution of that problem? 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: Justify a TextView?
If you are in the eclipse ide with the android plugin, select the text view (open the xml file) and go to the properties tab. There should be an option called gravity. Set gravity to vertical-center|horizontal-center and that should do the trick. On Wed, Jun 3, 2009 at 10:33 AM, Anna PS annapowellsm...@googlemail.comwrote: Hi all, I can see this question has been asked a couple of times before, but with no answer. How do I set the text in a TextView to be justified? That is, I would like it to look like the left-hand example here: http://en.wikipedia.org/wiki/Justification_(typesetting) Thanks, Anna -- Mike Garcia There is no coincidence! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 upgrade to 1.5 safe???
Yes. I have had the OTA update now for over a week and it is working as I would expect. If you are developing in the Eclipse IDE and have the 1.5SDK installed, I'd strongly recommend updating your phone ASAP! On Wed, Jun 3, 2009 at 4:00 AM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: hi, i am saurav mukherjee n i am working on a g1 mobile on android. there is a dialog box appearing for upgrading the os to 1.5. i jus wanted to know if anybody has done the same and is it safe (ie if the 1.5 os version is stable)? -- Mike Garcia There is no coincidence! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SimpleCursorAdapter and setListAdapter problems
Nevermind, I found the solution... The final fillData function does exactly what I need. Hope this helps someone... private void fillData(){ Cursor c = mDbHelper.fetchAllClients(); startManagingCursor(c); // Set Client Row Title String[] from = new String[]{ FinanceDbAdapter.KEY_TITLE, FinanceDbAdapter.KEY_BODY }; int[] to = new int[]{ android.R.id.text1, android.R.id.text2}; // Now create an array adapter and set it to display using our row SimpleCursorAdapter clients = new SimpleCursorAdapter(this, android.R.layout.two_line_list_item, c, from, to); setListAdapter(clients); } On Thu, Mar 19, 2009 at 1:18 AM, sddandroid sddm...@gmail.com wrote: I am trying to fill the data in two text views in a single row (see xml) and am trying to use SimpleCursorAdapter to do it. As I understand the function, it is allowed to take an array of strings and an array of ids which you see in the list below. When I run the application from the phone, it errors out at start (the client view is the default view to show which is where this function is executed from). Can anyone fill me in on what I am missing? XML ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=60px TextView android:id=@+id/client_row_title android:textSize=20px / TextView android:id=@+id/client_row_body android:textSize=10px / /TextView private void fillData(){ Cursor c = mDbHelper.fetchAllClients(); startManagingCursor(c); // Set Client Row Title String[] from = new String[]{ FinanceDbAdapter.KEY_TITLE, FinanceDbAdapter.KEY_BODY }; int[] to = new int[] { R.id.client_row_title, R.id.client_row_body }; // Now create an array adapter and set it to display using our row SimpleCursorAdapter clients = new SimpleCursorAdapter(this, R.layout.client_row, c, from, to); setListAdapter(clients); } -- Mike Garcia There is no coincidence! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: first app
Check the android-beginners group on google and also go through the sample HelloWorld tutorials on the developers site. On Tue, Mar 10, 2009 at 6:06 AM, Jignesh Kakkad jig2n...@gmail.com wrote: Dear All, Can you guide me from where to start writing application using Android SDK? Waiting for the reply Regards Jiggy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---