[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-11 Thread Muthu Ramadoss
I have an ADP1 bought from market that I use with a local GSM carrier in Chennai. The phone works perfectly, although we use only GPRS and not 3G. But the phone number is always displayed as Unknown. On Apr 10, 9:45 pm, strazzere str...@gmail.com wrote: What type of phone are you using? Does

[android-developers] Re: sdcard

2009-04-11 Thread Mattaku Betsujin
Do you have a real phone? If so, have you tried installing a video player app (from the Market) and play your videos? If you only have emulator, then probably it won't work. I had a video that worked fine in a real G1 phone, but shows up as black in the emulator, and the sound only played for a

[android-developers] Re: showing graph in Application

2009-04-11 Thread jj
Here is good solution http://android.arnodenhond.com/graphview --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: sdcard

2009-04-11 Thread Nithin Varamballi
Thanks for replying... I did like this 1) mksdcard -l mysdcard 200M d:/sdcard.img 2)load the sdcard emulator -sdcard c:/sdcard.img 3)adb push d:/test.mp4 sdcard/test.mp4 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: sdcard

2009-04-11 Thread Nithin Varamballi
Thanks for replying I dont have real phone... I am working in Emulator... But i got error like Cannot paly the video... Thanks Nithin n v --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: ListView not touchable in my Activity - A clue...not the solution though..

2009-04-11 Thread Chander Pechetty
As you mentioned, you are not posting the details for anyone to answer your question? You have not pasted the layout; so again no one can answer, but have a look at the API doc...

[android-developers] SDKs comparison with the iPhone

2009-04-11 Thread Al Sutton
Now before I start on the iPhone comparison I'm going to pre-empt the normal But Android is open source. response by saying lets be honest and admit it as it stands Android is not an open source project because the public open source repository is pretty worthless in its' current state. The

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-11 Thread David Turner
On Sat, Apr 11, 2009 at 2:52 AM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I built from GIT cupcake source as well as the HOME button in the emulator still doesn't do anything. I don't know exactly what you did, but I'm sure that the cupcake branch on the open-source tree is not

[android-developers] Discussion on localizing-android-apps-draft

2009-04-11 Thread Matthias
in case not everyone noticed, this article has been updated and now contains the correct instructions. Thanks Justin! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Need clarification for the SmsManager doc

2009-04-11 Thread chris
Hi , i'm trying to send properly a SMS aka get notified when the sms is not send. here is what the doc says : sentIntent if not NULL this PendingIntent is broadcast when the message is sucessfully sent, or failed. The result code will be Activity.RESULT_OK for success, or one of these

[android-developers] A Gesture Recognition Library

2009-04-11 Thread sydnal
Hi; back around ADC 1; I had developed a simple gesture recognition library for Android (not for accelerometer; I mean touchscreen - finger gestures). I had to abandon it for quite a while, but recently I was able to clean it a bit and port it to 1.0 SDK. It is released under GPL. Here are some

[android-developers] Re: SDKs comparison with the iPhone

2009-04-11 Thread Tom Gibara
Hi Al, I think my response might best have been posted to android-discuss, but I'll reply here anyway. Pre-empting a debate about whether Android is open source with the argument ...let's be honest... isn't adequate. I don't know whether there are established metrics for measuring a degree to

[android-developers] Re: SDKs comparison with the iPhone

2009-04-11 Thread Mariano Kamp
Al, I hope it's not that bad and that over time things will get better and more open. Look at the sorry state of the Android Market. I am not being polemic here when I say that this cannot be so bad on purpose. So there is hope. On the other hand, the issues of Android moving to open source and/or

[android-developers] Re: SDKs comparison with the iPhone

2009-04-11 Thread Al Sutton
Moving to discuss... --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in

[android-developers] Re: SDKs comparison with the iPhone

2009-04-11 Thread Pd
If its any consolation you are not alone in this. We have all been sucked in by Google. I just get the feeling we have already been spat out! While Google continue to make billions of $$$ what they need is additional resource to test their code, the grunt work. That is where we come in.

[android-developers] Re: A Gesture Recognition Library

2009-04-11 Thread mscwd01
That's really impressive and i'd guess a whole lot more intuitive to use than the virtual keyboard for quick text entry. I'll definately have a play around with it when I get a spare minute or two; when I do i'll try and provide some feedback. Thanks for sharing! On Apr 11, 11:56 am, sydnal

[android-developers] Re: WiFi

2009-04-11 Thread mawei1981
emulator has no WIFI device, Sir. what a *** question!!! On Apr 11, 12:26 pm, Nithin nithi...@gmail.com wrote: Hi to all                Can anyone tell me weather emulator support WiFi --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: play video

2009-04-11 Thread Mark Murphy
Nithin wrote: I tried to play the video through sdcard image... But i got a error like Cannot play the video.. Can anyone tell me what is the error in my code... It may be the video file you have is not compatible with Android. -- Mark Murphy (a Commons Guy)

[android-developers] Re: SQLite Pre-populated Database

2009-04-11 Thread Mark Murphy
fg1921 wrote: 1. Included the db as an asset 2. Copied it to the SDCard at startup 3. The above fails with a uncompress_data_max when it's being pulled out of the Assets directory How are you trying to do this? I just ran a test with a 6MB MP4 file and it worked just fine. I renamed it to

[android-developers] draw text as big as possible inside a rectangle

2009-04-11 Thread Michael Bollmann
Is there any convenient method to draw a string (custom true type font) as big is possible inside a supplied rectangle or to calculate the font size of a paint object based on a string and some rectangle dimensions. Thanks in advance Michael --~--~-~--~~~---~--~~

[android-developers] Customize filter with MultiAutoCompleteTextView

2009-04-11 Thread Al
Currently I'm using the default filter but I would like to be able to make it so I can ignore some letters at the beginning of the strings in the adapter. I've had a look at the public methods available on MultiAutoCompleteTextView but can't find anything on how to pass my own filter to it. Any

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-04-11 Thread havexz
Hi Gavin Well tibigiurgiu is right if you just have to remove the db just uninstall the application. But if you want to copy the files from phone to pc den you need to chmod n all. Well the shell provided through adb has a very limited set commands and the commands are also not fully supported.

[android-developers] Exceptions was: Re: Exception locking surface - lockCanvas() returns a null?

2009-04-11 Thread Ward Willats
At 9:28 PM +0300 4/10/09, Stoyan Damov wrote: if acquireResource could throw an error, the correct way to handle it is in an outer try block: as opposed to this anti-pattern (again widely used): Hi Stoyan: What is your reasoning here? Why would it be preferred to make the runtime setup two

[android-developers] Re: SQLite Pre-populated Database

2009-04-11 Thread JP
On Apr 10, 1:41 pm, fg1921 guidedw...@googlemail.com wrote: I must say I am surprised no one at google thinks it's important to provide a better way of including a pre-populated database into a package. ... I don't want to upload the file anywhere as I can't deal with all the extra

[android-developers] Re: Experience of using admob

2009-04-11 Thread Mariano Kamp
The implementation is straight forward. The reporting is nice. I didn't want the ads to show up in horizontal orientation as it takes up too much screen estate this way. As I manage configuration changes (orientation changes) myself that took me hours to get it right and was one of the reasons

[android-developers] Re: WiFi

2009-04-11 Thread Edward Falk
I didn't think it was a dumb question. The emulator could, you know, emulate it. In fact, that would be a useful feature to have. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] FTP on android

2009-04-11 Thread tiwana
HI, I am having problem running FTP client on android. I know there are no FTP libraries on android, so i downloaded commons-net-1.4.1.jar and added it to my project. But my app is not able to connect to any ftp server. This is the code, import org.apache.commons.net.ftp.FTPClient;

[android-developers] Best Practice for Static Headers and Footers

2009-04-11 Thread stanchat
I am trying to display a high score table in my application and wanted to know the Best Practice for displaying static headers or footers. The data for the High Score tableis a REST web service returing up to 100 JSON records. I have looked at some of the previous posts

[android-developers] Multipat messages.

2009-04-11 Thread tiwana
Hi, I am trying to upload a file using multipart HTTP POST. I am using the same method being used in thread http://groups.google.com/group/android-developers/browse_thread/thread/39e0c42001eaff90/b3ddea22c73ce80e?lnk=gstq=multipart#b3ddea22c73ce80e But what server side support do i need for

[android-developers] Re: FTP on android

2009-04-11 Thread Mark Murphy
tiwana wrote: HI, I am having problem running FTP client on android. I know there are no FTP libraries on android, so i downloaded commons-net-1.4.1.jar and added it to my project. But my app is not able to connect to any ftp server. This is the code, import

[android-developers] Re: Are there alternate ways to look up user phone number when TelephonyManager returns null?

2009-04-11 Thread Edward Falk
I encountered the same issue with a new Sim card I bought from the T- Mobile store. In a couple weeks, it started returning the correct phone number, but it initially returned null. I modified my software to allow the user to enter the phone number if I couldn't find it from the telephony

[android-developers] Re: Best Practice for Static Headers and Footers

2009-04-11 Thread Mark Murphy
stanchat wrote: I am trying to display a high score table in my application and wanted to know the Best Practice for displaying static headers or footers. The data for the High Score tableis a REST web service returing up to 100 JSON records. I have looked at some of the previous posts

[android-developers] Re: FTP on android

2009-04-11 Thread tiwana
Yes Mark, I did add the INTERNET permission. I dont think there is an issue with firewall, because i can use ftp from my computer to the same ftp server. I have tried apps with HTTP post and they are working correctly. Thanks for the reply Birjodh On Apr 11, 12:44 pm, Mark Murphy

[android-developers] Re: FTP on android

2009-04-11 Thread Mark Murphy
tiwana wrote: I dont think there is an issue with firewall, because i can use ftp from my computer to the same ftp server. I have tried apps with HTTP post and they are working correctly. Bear in mind that the Android emulator runs in a virtual machine (qemu). Just because you can get to the

[android-developers] Re: FTP on android

2009-04-11 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Murphy wrote: [...] Bear in mind that the Android emulator runs in a virtual machine (qemu). Just because you can get to the FTP server from your desktop does not necessarily mean you can get to it from the virtual machine. Also, don't

[android-developers] Re: FTP on android

2009-04-11 Thread tiwana
Actually my bucket upload is also not working.It is not able to connect to any FTP server. What settings do i need to change? David Given wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Murphy wrote: [...] Bear in mind that the Android emulator runs in a virtual machine (qemu).

[android-developers] Re: Losing Data on Reboot

2009-04-11 Thread ellipsoidmob...@googlemail.com
Are you certain the problem is related to the changes you have made? Just wondering if there could be a simpler explanation, like you're not writing the preferences in or before onPause(), or maybe you're not always calling commit() on the preferences editor?

[android-developers] Re: Problem with Camera and layout orientation

2009-04-11 Thread mobilekid
Huh still haven't found a soultiuon... and I doub't I'm the only person who has faced this issue... On Apr 9, 12:05 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I've been trying to solve this for awhile now, and still couldn't find a solution to it. To properly display

[android-developers] Re: Problem with Camera and layout orientation

2009-04-11 Thread Mark Murphy
mobilekid wrote: Huh still haven't found a soultiuon... and I doub't I'm the only person who has faced this issue... On Apr 9, 12:05 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I've been trying to solve this for awhile now, and still couldn't find a solution to it.

[android-developers] Re: Problem with Camera and layout orientation

2009-04-11 Thread Streets Of Boston
The camera(-surface) only supports landscape view. As Mark said, i too believe they're working on this in the new release. But you can set your camera-activity to 'landscape' in your manifest file, and set all other activities in your app to any other orientation (or the same orientation). On

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-11 Thread Edward Falk
I wrote those concerns to Google and I sent an email to the EFF. The bottom line is that for my application to be restored on the android market, I have to send a DMCA counter-notification. And then the Tetris Company can sue and take the case to Court. Yes, this is how the DMCA works. I

[android-developers] Re: Problem with Camera and layout orientation

2009-04-11 Thread mobilekid
Yes, saddly that's the reality at the moment. I can't afford declaring my camera activity in 'landscape' from the manifest as I need to display other views in the same activity in portait. I guess the only hack here is to extend the views and rotate them -90 degrees... but I don't think I will

[android-developers] Re: Problem with Camera and layout orientation

2009-04-11 Thread mobilekid
Yes, saddly that's the reality at the moment. Yet I can't afford declaring my camera activity in 'landscape' from the manifest as I need to display other views in the same activity in portait. I guess the only hack here is to extend the views and rotate them -90 degrees... but I don't think I

[android-developers] Re: sdcard

2009-04-11 Thread Marco Nelissen
What format and resolution is this file? If it's high res H264, then the emulator is probably too slow to play it. On Sat, Apr 11, 2009 at 12:07 AM, Nithin Varamballi nithi...@gmail.com wrote: Thanks for replying I dont have real phone... I am working in Emulator... But i got error like

[android-developers] adb version

2009-04-11 Thread kwty
hi i am using sdk 1.1 - mac os but i have a source code compatible only with sdk m5-rc15 and when i want to install it on the eclipse there is a msg said (Required minimum version of adb: 1.0.20.Current version is 1.0.18) so what i have to do??? thanks

[android-developers] Default focus on RelativeLayout

2009-04-11 Thread devileper
How can you specify which item gets the default focus on Activity startup? Using requestFocus programmatically does not work. On setContextView the first focusable item listed in the XML is given the default focus. When using RelativeLayout, the first item listed is not always the desired item

[android-developers] Eclipse warning

2009-04-11 Thread Chihau Chau
hi everybody, Since previous releases of android SDK (I think since version 0.9), I have a warning when I run a aplication from Eclipse. Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to

[android-developers] Running exclusively SmallTests

2009-04-11 Thread Gavin Aiken
Hi all, To build a test suite containing only small tests I looked at the source examples and found SmallTests.javahttp://www.google.co.in/codesearch/p?hl=en#SS2by_AKaLs/tests/src/com/android/email/SmallTests.javaq=android%20package:git://android.git.kernel.org%20SmallTestsin the email app test

[android-developers] Writing PerformanceTestCases

2009-04-11 Thread Gavin Aiken
Hi All, Does anyone have a simple example of a PerformanceTestCasehttp://www.google.co.in/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/test/PerformanceTestCase.javaI want to get some timing metrics for certain business logic functions in my ap. Until now I have been using the current

[android-developers] Changing the outgoing call number

2009-04-11 Thread Seer
Hi, I have been using a receiver listening to NEW_OUTGOING_CALL and i can capture the outgoing call broadcast but every time i manipulate the intent that is broadcast it is ignored. What is the best way to change the outgoing call number. ideally i would like to record the call as going to the

[android-developers] Re: Eclipse warning

2009-04-11 Thread Mark Murphy
Chihau Chau wrote: hi everybody, Since previous releases of android SDK (I think since version 0.9), I have a warning when I run a aplication from Eclipse. Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of

[android-developers] Re: Default focus on RelativeLayout

2009-04-11 Thread Mark Murphy
devileper wrote: How can you specify which item gets the default focus on Activity startup? Using requestFocus programmatically does not work. On setContextView the first focusable item listed in the XML is given the default focus. When using RelativeLayout, the first item listed is not

[android-developers] Re: SDKs comparison with the iPhone

2009-04-11 Thread Ralf
On Sat, Apr 11, 2009 at 12:34 AM, Al Sutton a...@funkyandroid.com wrote: Now before I start on the iPhone comparison I'm going to pre-empt the normal But Android is open source. response by saying lets be honest and admit it as it stands Android is not an open source project because the

[android-developers] Re: adb version

2009-04-11 Thread Ralf
It means you have adb from the sdk 1.1 running in the background -- adb is also a background process. You need to kill the existing adb before switching to the m5 one by doing one of the following: - either reboot your mac - run adb kill-server from a terminal - eclipse ddms perspective devices

[android-developers] Re: draw text as big as possible inside a rectangle

2009-04-11 Thread Ralf
Are you looking for Paint.measureText? http://developer.android.com/reference/android/graphics/Paint.html#measureText(java.lang.String) Example here: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/MeasureText.html R/ On Sat, Apr 11, 2009 at 6:42 AM,

[android-developers] Re: FTP on android

2009-04-11 Thread Marco Nelissen
Are you accessing the server through wi-fi, or through the carrier network? If the latter, make sure it's actually accessible from your carrier's network. On Sat, Apr 11, 2009 at 2:39 PM, tiwana tiwana.birj...@gmail.com wrote: By th way the problem is with my dev phone not with emulator,

[android-developers] Re: Changing the outgoing call number

2009-04-11 Thread Seer
well i can change the outgoing number now but i still have not worked out a way to update the call log to use the original number or a way to display the original number as the number been called or a modified one install of the one actually been used. I am using something like a calling card and