[android-developers] How to query the photo of each contact in database

2009-06-06 Thread Lucius Fox
Hi, I am reading this http://developer.android.com/guide/topics/providers/content-providers.html to query the database for all the contacts. Specially, i do this to get the NAME and NUMBER of each contact. But how can I get the PHOTO of each contact? What is the COLUMN I should use? Thank you.

[android-developers] Re: Excluding test files from the compiled Android app

2009-06-06 Thread Brett Chabot
Hi Gustav: I'd recommend creating a second Android app project that contains your tests, and add the original app project to the test project's build path. As an example, lets say your existing app is called Foo. Do the following steps: 1. Create a new Android Project called FooTest. -

[android-developers] Re: android instrumentation framework query

2009-06-06 Thread Brett Chabot
Hi Dev: You might be able to use or build upon the ddmlib library that is part of the Android toolset. To take a look, download the Android source code from source.android.com, and peruse the development/tools/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner package. The Android Eclipse

[android-developers] Re: Bug? Geo fix and sdk 1.5

2009-06-06 Thread Brett Chabot
Hi Lex: Sorry for the delayed response. You'll need to programmatically inject location updates to your test provider. Here's a code snippet: /** * Asynchronously update the mock location provider with given latitude and * longitude * * @param latitude -

[android-developers] Re: 1244113800000l results in 2 different dates?

2009-06-06 Thread ndatta
Hi Twan, Nobody is doing anything wrong. Just change your date format string from HH:mm to HH:mm z. That will print the timezone as well. Regards, Narasimha On Jun 5, 1:05 pm, twan twa...@gmail.com wrote: Hi Jeff, I think your python also does something wrong ;) From a normal plain old

[android-developers] A SurfaceView and 2 Buttons on a Layout cannot be displayed?

2009-06-06 Thread fortold
Hi experts, I have a simple problem which makes me feel like a stupid. I really need help on this. I have a SurfaceView which I created with Java code not XML. I created a MediaPlayer which shows its content on that SurfaceView. When I use, setContentView(mPreview); // where mPreview is a

[android-developers] Re: Does Android support API to find out whether the SIM Card inserted is SIM or USIM ?

2009-06-06 Thread aayush
I also had posted a similar query...got an answer too..and the solution. Ref this thread: http://groups.google.com/group/android-developers/browse_thread/thread/26e53fe952b612ab/846a1cb383cf59cd#846a1cb383cf59cd On Jun 5, 10:40 pm, Android Techies vivek.s...@motorola.com wrote: Hello, Is

[android-developers] Unable to instantiate activity - transferred from Vista to Mac now my projects won't build

2009-06-06 Thread madcoder
I transferred my development from Windows to Mac. I have the latest version of Eclipse, and the 1.5 r2 SDK. I have successfully ran a sample Hello world app to make sure it all fits together properly. I then imported my library projects (called MyLib) that holds many reusable classes of mine.

[android-developers] Re: how to remove a directory on file system?

2009-06-06 Thread deepdr...@googlemail.com
(1) Maybe you do not have the Linux system user rights to delete that directory. On Android I'd assume you only have that permission if it's a directory of the same program that tries to delete it. Expressed in a different way: You can't delete directories from other applications. (2) As the

[android-developers] How to change default google.com page in android browser

2009-06-06 Thread Arun
Hi, I have an specific requirement to change default home page of Android Browser which is by deafult google.com Can any give an idea how to change it like when I click on browser it should come like yahoo.com Arun --~--~-~--~~~---~--~~ You received this

[android-developers] How can Android know that socket is disconnected by server?

2009-06-06 Thread pubu he
Hi, Experts, I wrote one application using socket, which connectes to one server. for some reasone, the server may disconnect the connection, I noticed that once the connection is disconnected, android GC starts to work, and the emulator is freeze, after a while, my application got

[android-developers] Re: How to change default google.com page in android browser

2009-06-06 Thread Urs Grob
When you're in the browser press the Menu Button - more - Settings. Then got to set Homepage and enter the default page you want. -- Urs On Sat, Jun 6, 2009 at 1:19 PM, Arunachoudhary2...@gmail.com wrote: Hi, I have an specific requirement to change default home page of Android Browser

[android-developers] Re: reg playing youtube videos in android

2009-06-06 Thread manoj
Hi, I want to go with the code specified in the following link http://groups.google.com/group/android-developers/browse_thread/thread/8b316e5a3b4805b4/afacc50dc61c0bbf?lnk=gstq=play+youtube+%2B+android#afacc50dc61c0bbf But I want always the youtube url should be played in default yutube player

[android-developers] ADC2 Teams

2009-06-06 Thread wescorp
Hi All, Time for another go with the Android Developer Challenge 2. A couple of months will go quick. If your looking to join a team or become a member to a team, please reply here or privately to the poster. Cheers, Wes --~--~-~--~~~---~--~~ You received this

[android-developers] Re: ADC2 Teams

2009-06-06 Thread wescorp
For the ADC2, I would like to extend my Android realtime mapping tracking application work into something new . I'm looking to assemble a team or become a member of a team to submit an application or applications to the ADC2. If you have a clear vision of how we can help each other win, please

[android-developers] Re: Is there a way for us to show ProgressBarIndeterminate in Theme.Dialog activity?

2009-06-06 Thread Billy Cui
Thanks guy. The code is simple, in AndroidManifest.xml: activity android:name=.CheckPreferences android:label=@string/ appname android:configChanges=keyboardHidden|orientation android:theme=@android:style/Theme.Dialog android:excludeFromRecents=true / In

[android-developers] Re: Is there a way for us to show ProgressBarIndeterminate in Theme.Dialog activity?

2009-06-06 Thread Billy Cui
Yes, I do think of writing my own ProgressBar, but I do hope this one can run in a good way, and I don't want to add more complex code in my app, for it's just a tiny app and keep it small will be better. On 6月3日, 上午10时02分, Mark Murphy mmur...@commonsware.com wrote: Billy Cui wrote: Anybody

[android-developers] Upgrading to 1.5

2009-06-06 Thread radiolistener
Hi All, My phone was updated to 1.5 this week. I have been waiting to update my development environment, until the phone was upgraded. The ide started out smoothly, I even updated my new Colorthon program library and posted the compiled version on the marketplace. Next I decided to upgrade

[android-developers] Re: A SurfaceView and 2 Buttons on a Layout cannot be displayed?

2009-06-06 Thread Mark Murphy
fortold wrote: Hi experts, I have a simple problem which makes me feel like a stupid. I really need help on this. I have a SurfaceView which I created with Java code not XML. I created a MediaPlayer which shows its content on that SurfaceView. When I use, setContentView(mPreview);

[android-developers] Rendering of Android User Interface on different devices.

2009-06-06 Thread aayush
Hello. I had a question. As the android OS will be available on a variety of devices with different screen resolutions, widths and properties, will there be any porting issues/ specific points that will need to be taken care of by the application developer to ensure that his UI renders equally

[android-developers] Re: A SurfaceView and 2 Buttons on a Layout cannot be displayed?

2009-06-06 Thread jusun...@gmail.com
you didn't use layout_weight. you shoud use LayoutParams LinearLayout.LayoutParams (layout_width, layout_height, layout_weight) If you didn't use a LayoutParams, GLSurfaceView is only displayed on full screen. sample code is below. LinearLayout mLayout = new LinearLayout (this);

[android-developers] Detecting Outgoing SMSs

2009-06-06 Thread Uri.Kanonov
Hello, I am writing a Security-oriented application for Android that is supposed to detect abuse of SMS sending. In my work I encountered the problem of not being able to detect outgoing SMSs sent not through the use of conventional applications, i.e. merely by using SMS Manager's sendTextSMS

[android-developers] Re: Rendering of Android User Interface on different devices.

2009-06-06 Thread Mark Murphy
aayush wrote: Hello. I had a question. As the android OS will be available on a variety of devices with different screen resolutions, widths and properties, will there be any porting issues/ specific points that will need to be taken care of by the application developer to ensure that

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread Marco Nelissen
On Sat, Jun 6, 2009 at 6:56 AM, radiolistener radioliste...@optonline.netwrote: Hi All, My phone was updated to 1.5 this week. I have been waiting to update my development environment, until the phone was upgraded. The ide started out smoothly, I even updated my new Colorthon program

[android-developers] Re: Rendering of Android User Interface on different devices.

2009-06-06 Thread André
You can try to use the different emulator skins shipped with the SDK to test different resolutions. Take good care when designing your user interface to utilize the automatic scaling instead of hardcoding width and height values. LinearLayout, RelativeLayout, etc. are your friends. My own game

[android-developers] Check phone sleep status

2009-06-06 Thread coolbho3k
I'm trying to check if the phone is currently asleep in a service. It's currently a very messy implementation (I'm reading a file in the filesystem that says if the phone is asleep or awake every 10 seconds) so I'm wondering if this is possible with PowerManager or something. Thanks in advance!

[android-developers] How to deal with ExpandableList when all the data are coming from datebase?

2009-06-06 Thread stonestrange
I want to the effective like ExpandableList1 Activity in apidemo.But my data is from the database.And th groups's data from the database and the children's data from the database too.All both are comg from different tables. First,i want to konw how to get data from the cursor to String[];

[android-developers] Re: A SurfaceView and 2 Buttons on a Layout cannot be displayed?

2009-06-06 Thread fortold
Jusung and Mark, Thank you very much for your valuable comments. The problem is now solved. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Check phone sleep status

2009-06-06 Thread Mark Murphy
coolbho3k wrote: I'm trying to check if the phone is currently asleep in a service. If your code is running, the phone is not asleep. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

[android-developers] Android .apks running in a Browser

2009-06-06 Thread guruk
Hi, first I like to thank you the whole Android Team and all Users who helped me over time with me Questions. Amazing Work. My simple App My Days is now in the Top 100 from Android Apps. What I like to suggest now for the Android Project is the Option to run .apk's in a Browser. That may sound a

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread radiolistener
This is the exact error: [2009-06-06 15:13:29 - REBC] Automatic Target Mode: using device 'HT849GZ81548' [2009-06-06 15:13:29 - REBC] Uploading REBC.apk onto device 'HT849GZ81548' [2009-06-06 15:13:30 - REBC] Installing REBC.apk... [2009-06-06 15:13:31 - REBC] Application already exists.

[android-developers] can i find the location of NOKIA GPS enabled mobile

2009-06-06 Thread abdalrahman eweiwi
hello guys i am trying to develop a program that will tell me how much time that is needed for my friend to reach me , however still i fall in a problem , that when i extract the address information of my friend (in my contact list in android) i have always that static location that i have

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread Marco Nelissen
The error message confirms what I said earlier: you signed your application with a different key, and this is why updating the app fails. On Sat, Jun 6, 2009 at 12:19 PM, radiolistener radioliste...@optonline.netwrote: This is the exact error: [2009-06-06 15:13:29 - REBC] Automatic Target

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-06 Thread Rob Franz
Depends on who you're selling the app to - are you talking about the average person who wouldn't go outside of the Market to buy an app, or are you talking about those who go to other sites such as Andappstore.com or Slideme.org? I would think that your average user is still in the Market. This

[android-developers] Re: How to deal with ExpandableList when all the data are coming from datebase?

2009-06-06 Thread Marco Nelissen
On Sat, Jun 6, 2009 at 8:45 AM, stonestrange stonestra...@gmail.com wrote: I want to the effective like ExpandableList1 Activity in apidemo.But my data is from the database.And th groups's data from the database and the children's data from the database too.All both are comg from different

[android-developers] Re: VerifyError with Maps Add-ons

2009-06-06 Thread broc
I answer to myself: the licence agreement of the maps api doesn't allow to include the jar in an application... So, I have no answer... Please release a 1.5 r3 with this bug corrected :-)) On 6 juin, 21:21, broc sebastien.peroc...@gmail.com wrote: The only solution that works for me, but is a

[android-developers] Re: Android .apks running in a Browser

2009-06-06 Thread deepdr...@googlemail.com
How do you find out about which apps are in the top 100 ? -- http://www.deepdroid.com On Jun 6, 7:25 pm, guruk ilovesi...@gmail.com wrote: Hi, first I like to thank you the whole Android Team and all Users who helped me over time with me Questions. Amazing Work. My simple App My Days is

[android-developers] Re: reg playing youtube videos in android

2009-06-06 Thread Brian Conrad
From my experiments the MediaPlayer only seems to handle 3GPP format well though somewhat. Now I'm only running the emulator on a 2.4 ghz machine on Ubuntu which may not be fast enough to process video. I had similar results on an 3.4 ghz XP Pro machine. I may install the SDK on a Vista

[android-developers] Re: can i find the location of NOKIA GPS enabled mobile

2009-06-06 Thread abdalrahman eweiwi
guys any one could just guide me for this problem... can i get lastknownlocation of a friend using android development toolkit ??? On Sat, Jun 6, 2009 at 9:34 PM, abdalrahman eweiwi abdalrahman.ewe...@googlemail.com wrote: hello guys i am trying to develop a program that will tell me how

[android-developers] EditText not rendering correctly when added as a header of ListView

2009-06-06 Thread Don Oleary
Hi Guys I have come across a problem where EditText is not rendering correctly when it's added as a header in a ListView. Basically, I have a search box and a list of results from a DB. The Activity extends ListActivity and I add the search box as a header using ListView.addHeaderView(View v).

[android-developers] Re: can i find the location of NOKIA GPS enabled mobile

2009-06-06 Thread Mark Murphy
abdalrahman eweiwi wrote: guys any one could just guide me for this problem... can i get lastknownlocation of a friend using android development toolkit ??? This has nothing to do with Android. Your friend, most likely, is not publicizing his or her location anywhere. After all, many

[android-developers] Re: Android .apks running in a Browser

2009-06-06 Thread guruk
hi deepdroid check: http://androidstats.com/ranking/applications its cool chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread radiolistener
Maybe I'm just not getting it, but I haven't signed this one yet. For Colorthon I used the automatic signing option and uses the export signed option, to utilize the automatic signing and everything worked well. For REE, I am just running it in the ide, any signing is just the default debug, is

[android-developers] Re: can i find the location of NOKIA GPS enabled mobile

2009-06-06 Thread abdalrahman eweiwi
thank you very much for the info. i am thinking now of doing such thing by sending some kind of sms that contain data location , and then extract those data to give the final results. On Sun, Jun 7, 2009 at 12:12 AM, Mark Murphy mmur...@commonsware.comwrote: abdalrahman eweiwi wrote: guys

[android-developers] Runtime.getRuntime().exec() does not return

2009-06-06 Thread Michael Bollmann
I got a rare case on android 1.5 where a call to Runtime.getRuntime ().exec does not return. The call is made from a background thread and it does not throw any exception. It just stays in there forever. The command sent to exec (standard unix command) is always exactly the same and works fine

[android-developers] Re: Dynamic Widget Size

2009-06-06 Thread Alex55
Hi Jeff, I am interested in this approach you mentioned here, but I'm having some difficulty implementing it. I currently have 2 widgets with different sizes (large and small). Both widgets will be sharing 1 service in charge of updating the widgets contents accordingly. Each widget's onUpdate

[android-developers] Re: Upgrading to 1.5

2009-06-06 Thread radiolistener
I found my default debug keystore C:\Users\'TheUser'\.android \debug.keystore It is brand new as of today. I also found where the last debug.key was located c:\users\'TheUser'\local\android. Did a little switcheroo. Then adjusted the manifest, and voila, lift-off. Many Thanks for your

[android-developers] OutOfMemoryError, but there's lots of memory?!

2009-06-06 Thread Keith Wiley
My app is building a relatively large structure (large being a term that is meaningless without context), and I am getting an OutOfMemoryError. Problem is, I'm watching the memory using every metric I can think of, and I don't see how the error was triggered. It's obviously trying to allocate a

[android-developers] Re: ADC2 Teams

2009-06-06 Thread Eric Wong (hdmp4.com)
Are you looking towards building your own team to submit ADC2 based on your idea (Android realtime mapping tracking application?). Or looking to help an existing team to develop their idea/application? Eric On Jun 6, 10:47 pm, wescorp wesc...@gmail.com wrote: For the ADC2, I would like to

[android-developers] Re: HTC Magic Dev phone

2009-06-06 Thread Eric Wong (hdmp4.com)
HTC Magic is already been rooted at XDA. Eric On Jun 7, 5:40 am, JP joachim.pfeif...@gmail.com wrote: It's a device given to developers, but out of the box it's not a development device, so if you need it rooted for development you'll have to yourself. On Jun 5, 3:54 pm, NTDYLF

[android-developers] Re: reg playing youtube videos in android

2009-06-06 Thread brianjtools
Actually I meant the VideoViewDemo. It should read like this: mVideoView.setVideoPath(path); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); mVideoView.start(); // add this line to play BTW, anyone know why I'm not seeing

[android-developers] Re: OutOfMemoryError, but there's lots of memory?!

2009-06-06 Thread Mark Murphy
Keith Wiley wrote: My app is building a relatively large structure (large being a term that is meaningless without context), and I am getting an OutOfMemoryError. Problem is, I'm watching the memory using every metric I can think of, and I don't see how the error was triggered. It's

[android-developers] Could NOT Upgrade App in Market!

2009-06-06 Thread efan
No error message after uploaded new version. But it still shows the old version (and old size). Tried several times, same problem. I managed to recover back my old key and signed the new version. (a little frustrated but I did make it recovered :)) My app is Chinese Doctor Assistant (ZZ)

[android-developers] RE: Help: 1.5 AutoCompleteTextView Problem

2009-06-06 Thread efan
The original post disappeared! (could not find in the forum!) Why?BTW, I solved part of the problem. Now it runs ok in 1.5 Emulator. Details please refer to the source changes.The NullPointException problem in eclipse visual layout still there! Original Message Subject: Help:

[android-developers] How can i build an URI for each person in the contact

2009-06-06 Thread Lucius Fox
Hi, How can i build a URI for each person of the contact so that i can use the following method in Contact.People public static Bitmap loadContactPhoto(Context context, Uri person, int placeholderImageResource, BitmapFactory.Options options) Thank you.

[android-developers] Re: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-06 Thread Numan Ahmed
--- On *Sun, 6/7/09 numan numan@gmail.com* wrote: hello my friends have a nice day sexy summer fashion more fashion show videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Control of background images

2009-06-06 Thread Numan Ahmed
*--- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: How to deal with ExpandableList when all the data are coming from datebase?

2009-06-06 Thread stonestrange stone
hehe,thank you,Marco. i have solved this problem already. 2009/6/7 Marco Nelissen marc...@android.com On Sat, Jun 6, 2009 at 8:45 AM, stonestrange stonestra...@gmail.comwrote: I want to the effective like ExpandableList1 Activity in apidemo.But my data is from the database.And th groups's

[android-developers] Re: CustomButton

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: sdcard on emulator mounted read only !!

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: SubMenu, Dialogs and ActivityGroup

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: How can I listen for WebView page load completed event

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Is there any way to lauhc Google Maps application with direction

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Map Not Working On Device Working on Emulator

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Communication between two android emulators located on two PCs connected via LAN

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Get latitude longitude of center of MapView

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: how to handle HTTP/1.1 416 Requested Range Not Satisfiable

2009-06-06 Thread Numan Ahmed
*-- On Mon, 6/7/09, numan numan@gmail.com wrote: hello my friend how are u latest sexy summer fashion hot fashion videos visit my websitehttp://www.fashioninfokit.com/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google