[android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?

2010-03-10 Thread Carlo
c# and .net will be like having java, nothing can beat native code, so the NDK is the way to go, soon the debugging features will be implemented and that will boost original game development, if you look at ExZeus arcade built upon NDK, we are already far from the logical bricks/ball/falling

[android-developers] Re: Can´t create an AudioRecor der object

2010-03-10 Thread Gabriel Simões
Well, after spending my free time for the last 5 days working on the AudioRecord class I´m here again to post my findings. But first let me make myself clear: - What I´m about to write is the result of my tests and findings after having a lot of trouble to use the basic routines of the class. I

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-10 Thread Achanta
I too have the same issue and Mark, we discussed it earlier in another thread. I was trying to use the onStop and onDestroy to stop Location updates and other background threads that I start from onCreate method. Here is what I observed. Here is what I have seen. I am using Nexus one [2.1].

[android-developers] Re: what is the detailed relation between contacts and raw_contacts?

2010-03-10 Thread Jerome Deng
^_^Oh, fail to connect to android developer site in China if don't use proxy. Thanks brain. You are right, there is no document about this. Any one can help interpret with details? On 3月9日, 上午8时29分, brian br...@bwalsh.com wrote: +1 - the documentation in this area needs some work. To do the

[android-developers] Drawing failure?

2010-03-10 Thread dwilde1
The following routine in a subclass of view attempts to draw a bell curve on a canvas and display it. It calculates an array of points, erases the previous pass, and then draws a new set of lines. Tried with both drawLines() and drawPoint() in a loop; no joy. Basic code worked when done in

[android-developers] Re: Looking to becoming a developer part time

2010-03-10 Thread Jerome Deng
SDK is the best assistant. On 3月10日, 上午3时36分, TreKing treking...@gmail.com wrote: On Mon, Mar 8, 2010 at 1:12 PM, omnilaw omni...@gmail.com wrote: I plan on spending a little time a night trying to learn the programming needed and get familiar with the SDK once I'm up to speed but wasn't

[android-developers] Re: how can I put a newline into a format string

2010-03-10 Thread Bob Kerns
Well, I was taking this page as definitive: http://developer.android.com/intl/de/guide/topics/resources/available-resources.html#stringresources Which is where I got my count of 3 tags. However, in searching for that, I found this (which links to that):

Re: [android-developers] Re: how can I put a newline into a format string

2010-03-10 Thread Mark Murphy
Bob Kerns wrote: Well, I was taking this page as definitive: http://developer.android.com/intl/de/guide/topics/resources/available-resources.html#stringresources Which is where I got my count of 3 tags. However, in searching for that, I found this (which links to that):

[android-developers] Number of ratings decreased??

2010-03-10 Thread Justin
Since 9:00am on March, 10, the ratings for one of my apps has DECREASED by 6, from 45 ratings down to 39. What would the cause of this be? Is this a sign of another breakage of the market stats/ ratings? I have a question regarding this posted at the blackhole that is the Market Forum, but have

[android-developers] Creating Simple Serial Output:

2010-03-10 Thread joshbeck
I've got a fairly unique situation: -I'm a teacher with a magnet school that focuses on rocketry and technology. -I've got a rocket payload that has a video overlay board which does the following: -Takes input from a camera. -Takes input from a serial

[android-developers] Re: How to reset the price of application

2010-03-10 Thread Carlo
Google folks are very wise and kudos to them for installing such of good market policy to prevent the market to be hijacked by the promote your app free for 24H or more , what about a promote your very good paid app for 24H or more ? ;) You cannot make a free application not-free, sorry! --

[android-developers] Need Bluetooth UUID clarification

2010-03-10 Thread Arun
I am trying to connect to a Bluetooth headset, and it fails at the time of connect with an error: Service Discovery Failed. Following is the code snippet. BluetoothSocket btsock = device.createRfcommSocketToServiceRecord(UUID.fromString(0003--1000-8000-00805F9B34FB)); btsock.connect();

[android-developers] Regardinf #define or build flag

2010-03-10 Thread Dilip Dilip
Hi All, Please tell me how to declare equivalent of #define in java ? whats the best way and best place in android to define equivalent of it. my requirement is some thing like this ... if the flag is enabled that part of the code should get complile else it should not compile. something like

Re: [android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-10 Thread Dianne Hackborn
Hi, there is an issue in 2.1 with the new launcher that causes the onStop()/onDestroy() to be delayed longer than typical when going back to home. Note these are not delayed -forever-, but just until later in the future (when the next activity switch happens). These methods are defined to happen

[android-developers] Re: Webview textbox and keypad

2010-03-10 Thread Farha Ansari
try using :- android:windowSoftInputMode=adjustPan this is what i am using. Thanks, Farha On Mar 11, 1:57 am, nikhil nik...@gmail.com wrote: Worst part is the manual scroll...if I move it up and then touch the keypad ...it rolls back down .. On Mar 8, 2:49 pm, nikhil nik...@gmail.com

[android-developers] Re: Google Latitude JSON/KML feed - getting user ID

2010-03-10 Thread monica
Anybody can give answers? 2010/3/10 monica chen.h2...@gmail.com I'm using the Google Latitude to get location data for select users. What I'm wondering is if it is possible to get additional information from the user ids than is provided in the JSON feed? Because right now I am unable to get

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-10 Thread Samsyn
Thanks, Robert! yes, don't worry, I wasn't doing that. :-) Basically the server has the master time, each client has a dynamic ping value to the server, which is also shared with the other clients for suitable adjustments. at key moments a client notes the local currentMillis() value matching

Re: [android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Disconnect
Just FYI I set up a device swap site. Aimed partially at people in the seed program (since it is random droid vs nexus) but also for general users - its getting on to 2nd gen of devices, lots of people are replacing older units, etc. http://andblogs.net/2010/03/android-device-exchange/ has the

Re: [android-developers] Re: what is the detailed relation between contacts and raw_contacts?

2010-03-10 Thread Dmitri Plotnikov
There is basic API documentation here: http://developer.android.com/reference/android/provider/ContactsContract.html 2010/3/10 Jerome Deng deng.jer...@gmail.com ^_^Oh, fail to connect to android developer site in China if don't use proxy. Thanks brain. You are right, there is no document

Re: [android-developers] Re: what is the detailed relation between contacts and raw_contacts?

2010-03-10 Thread Dmitri Plotnikov
Here's documentation on status updates: http://developer.android.com/reference/android/provider/ContactsContract.StatusUpdates.htmlIs it insufficient? 2010/3/10 Dmitri Plotnikov dplotni...@google.com There is basic API documentation here:

[android-developers] Which API Level to target

2010-03-10 Thread jb
Hi, Very basic, newbie question. I'm new to the Android world. I'm nearing completion of a port of my iPhone app to Android. The uncertainty I have is what API Level to target. I've only tested on the emulator at 2.1 and 1.6. Any suggestions, ideas, things to consider? TIA, jb -- You

[android-developers] Re: Which API Level to target

2010-03-10 Thread Kumar Bibek
Targetting 1.5 would be the safest. But, you can gradually shift to 1.6 when the next SDK comes out. But again, it depends on your app. If you are using some things that are only available on 16 and up, you do not have a choice. And also, if you have taken care of multiple screen sizes, which is

[android-developers] Re: Possible to Detect if OnResume is because Back button was hit?

2010-03-10 Thread Sam
Are you saying if you're on Activity A - Activity B, hit Back Button from Activity B, a static flag is set to true on the back key, When Activity A resumes, you check that static variable, and do your logic, then set the flag back to false? On Mar 10, 8:27 pm, Robert Green rbgrn@gmail.com

[android-developers] Re: How to reset the price of application

2010-03-10 Thread Kumar Bibek
promote your app free for 24H or more That's a nice idea. Ummm, Google doesn't seem to be working on the Android Market. :( Thanks and Regards, Kumar Bibek On Mar 11, 8:22 am, Carlo ca...@hyperdevbox.com wrote: Google folks are very wise and kudos to them for installing such of good market

[android-developers] Re: Android MYSQL

2010-03-10 Thread saru
Who told to develop mysql application in android. Android does not support mysql database. rather try to use SQlite database On Mar 9, 4:45 am, Si458 simonsmith5...@googlemail.com wrote: Hiya, Im currently trying to develop a mysql app on the android, ive got the basics working and ive also

[android-developers] Re: Client Twitter and Android

2010-03-10 Thread Kumar Bibek
I think you should re-use the apps that already exist without re- writing. Contact Twidroid and Seismic and see if they have any feature wherein you can send a tweet through there apps. Twidroid has. Don't know about Seismic. The whole purpose of the implicit Intent Mechanism is for different

[android-developers] Re: Restart LogCat without restarting eclipse?

2010-03-10 Thread Kumar Bibek
From the command line, run these commands, adb kill-server adb start-server Thanks and Regards, Kumar Bibek On Mar 10, 11:25 pm, Mike dg vinb...@gmail.com wrote: Click the DDMS tab and ini the device tab there should be a down arrow button next to the screenshot button. Press that and all the

[android-developers] Re: Which API Level to target

2010-03-10 Thread Maps.Huge.Info (Maps API Guru)
Check out one of my app's companion site: http://www.radarnow.net Click on the stats link. You'll see the percentage for each version, also the devices that are being used. That may help make up your mind. -John Coryat Radar Now! What Zip Code? -- You received this message because you are

Re: [android-developers] Re: Client Twitter and Android

2010-03-10 Thread David Toledo
Thanks. exists api similar for the facebook? 2010/3/10 Thomas Riley tomrile...@googlemail.com +1 on JTwitter. Was playing around with it the other week and it works well. On Mar 10, 7:56 pm, Mark Murphy mmur...@commonsware.com wrote: David Toledo wrote: Excuse me. some client that is

Re: [android-developers] Possible to Detect if OnResume is because Back button was hit?

2010-03-10 Thread TreKing
On Wed, Mar 10, 2010 at 6:47 PM, Sam samm...@gmail.com wrote: I wanted to know if it is possible to Detect in an Activitiy's OnResume if the Activity is resuming because the devices Back button was hit or not? A) Why do you want to do this? Sounds hacky. B) If you start the Activity with

Re: [android-developers] Re: Client Twitter and Android

2010-03-10 Thread Greg Donald
On Wed, Mar 10, 2010 at 10:52 PM, Kumar Bibek coomar@gmail.com wrote: I think you should re-use the apps that already exist without re- writing. Yeah, that's why Google wrote Buzz. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to

[android-developers] Re: How to launch YouTube with specified keywords?

2010-03-10 Thread Kumar Bibek
Try this. Intent intent = new Intent(Intent.ACTION_SEARCH); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Here, you will get a Chooser activity. Now when you select Youtube, you will get video results for Android. Thanks and Regards,

[android-developers] Re: Client Twitter and Android

2010-03-10 Thread Kumar Bibek
There are apis for almost everything. You just need to search for them. You would find those most probably on facebook developer site itself On Mar 11, 10:00 am, David Toledo dtole...@gmail.com wrote: Thanks. exists api similar for the facebook? 2010/3/10 Thomas Riley

Re: [android-developers] Re: Using MediaPlayer - multiple sound files

2010-03-10 Thread kavitha
You can prepare Mediaplayer asynchronously and store them in a collection. after that call MediaPlayer.start() wherever needed. On Thu, Mar 11, 2010 at 5:29 AM, Mark Murphy mmur...@commonsware.comwrote: Neilz wrote: Anyone? I'm sure this must be a common problem... Actually, this is the

[android-developers] Everything for your mobile. The search is over

2010-03-10 Thread Omer Farooq
Tired of searching software for your mobile Phone. Well the search is over now. Wether you have Andriod, Symbian or Iphone. WHether you have NOKIA, HTC, IPHONE, SONY ERICSON, SAMSUNG. It doesn't matter for this product. Search any software, themes, ringtones, wallpapers, screensave. You will

[android-developers] Prevent LED/camera Flash requiring APPS from marketplace

2010-03-10 Thread Prem Thilagar
Hi, Is there a particular flag that we can use to prevent apps showing up in marketplace which require the phone to have a Camera Flash /LED. typical apps are ones which make the phone act like a torchlight in dark , i have seen a tag which prevents apps requiring autofocus in a camera from

Re: [android-developers] Prevent LED/camera Flash requiring APPS from marketplace

2010-03-10 Thread Dianne Hackborn
There is a feature for that: http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_CAMERA_FLASH http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_CAMERA_FLASHPut this in uses-feature in your manifest. On Wed, Mar 10, 2010 at

[android-developers] Re: How Add Rating Bar on App Widget???

2010-03-10 Thread Gulfam
Thanks Mark and Kumar. On Mar 10, 5:22 pm, Mark Murphy mmur...@commonsware.com wrote: Gulfam Hassan wrote: One Thing more I am using 1.5 SDK On Wed, Mar 10, 2010 at 4:06 PM, Gulfam gulfa...@gmail.com mailto:gulfa...@gmail.com wrote:     Hi all,     I am trying to make an app widget,

Re: [android-developers] Re: How to reset the price of application

2010-03-10 Thread Dianne Hackborn
On Wed, Mar 10, 2010 at 8:48 PM, Kumar Bibek coomar@gmail.com wrote: promote your app free for 24H or more That's a nice idea. Ummm, Google doesn't seem to be working on the Android Market. :( Yep, no more development on android market. It is perfect how it is. Now we can go see a

[android-developers] Re: Webview textbox and keypad

2010-03-10 Thread nikhil
yeah tried that as well On Mar 10, 9:38 pm, Farha Ansari farha45ans...@gmail.com wrote: try using :- android:windowSoftInputMode=adjustPan this is what i am using. Thanks, Farha On Mar 11, 1:57 am, nikhil nik...@gmail.com wrote: Worst part is the manual scroll...if I move it up and

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-10 Thread Tako Au
It's already 9 days from my submission of form :'(. I've sent an email 2 days ago but they haven't replied me yet On Mar 11, 5:51 am, Rootko roo...@gmail.com wrote: Yeah, sounds reasonable. Although I kind of expected that they would at least confirm me that zip code has been corrected in my

[android-developers] Re: Number of ratings decreased??

2010-03-10 Thread Farproc
Do you notice the Clear my review option menu of Market app? On Mar 11, 11:10 am, Justin jtgi...@gmail.com wrote: Since 9:00am on March, 10, the ratings for one of my apps has DECREASED by 6, from 45 ratings down to 39.  What would the cause of this be?  Is this a sign of another breakage of

Re: 答复: [android-developers] Where is the source project location of YouTube in Eclair?

2010-03-10 Thread Kumar Bibek
Intent intent = new Intent(Intent.ACTION_SEARCH); intent.putExtra(query, Android); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Try this. It will open a Resolver activity. When you choose Youtube, it will show you video

[android-developers] Re: Custom Spinner

2010-03-10 Thread Kumar Bibek
It is possible. But we need to know first what your requirements are. You can fully customize any widget. Thanks and Regards, Kumar Bibek. On Mar 9, 6:42 pm, mmkr manutd...@gmail.com wrote: Hi all,         The default drop down view of the spinner occupies the entire width of the screen. I

[android-developers] How to use phone internal memory to store user data......

2010-03-10 Thread Girish
Hi all.. I want to access phone internal memory to store some data, similar to that of sdcard. but the problem is that the data written by one application is not accessed by other applications. because of uid mismatches. any solution ? Thanks ... -- You received this

[android-developers] Re: Creating first game

2010-03-10 Thread Bob Kerns
No problem with your English. I see others have pointed you at templates and such. So let me talk a bit about strategy. First, it's a lot of work. Don't EVER try to do some big grand thing all at once. It's OK to have a grand idea -- but always work on the next SMALL step toward that idea. (And

[android-developers] Re: How to reset the price of application

2010-03-10 Thread Carlo
We really appreciate the way the android market is right now, hope it won't change in the future... there is still some issues with the customer in review status for the customer who are unable to download, are not aware of the 7 days delay before the order is automatically canceled and complain

[android-developers] Highlight text in WebView

2010-03-10 Thread treetop
Hi all, I hava a WebView to load a string contains javascript html content with bookWebView.loadDataWithBaseURL method. For example, html head script type=text/javascript function test() { var bc =

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Bob Kerns
I suppose it's too late then, to send lots of pointless responses like this one, in hopes of getting in? :) Anyway, I've got a Nexus One. What I need is a few old clunkers for testing, if people are looking to sell... On Mar 10, 2:57 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I don't

[android-developers] Re: Questions to comic contents developer

2010-03-10 Thread Bob Kerns
My suggestion: Don't deliver the entire comic with the app -- just a sample. (DO make it clear in the market description!) Then download additional sections of the comic on a daily basis over the next week or month, or if it's an ongoing serial, make it an ongoing subscription. Give them enough

[android-developers] Re: Restart LogCat without restarting eclipse?

2010-03-10 Thread Bob Kerns
I think you're probably seeing what I see -- that LocCat just starts showing the last line, briefly, and then going blank. What I find is that CLEARING logcat with the little Clear Log icon at the right of the icon bar above the log restores it to functionality (though, of course, losing any

[android-developers] Re: Need Bluetooth UUID clarification

2010-03-10 Thread moneytoo
0003--100­0-8000-00805F9B34FB is 128 bit UUID. 0003 is 32 bit UUID. 0003 is 16 bit UUID. To create record advertising serial service, use the SPP 16 bit UUID and add the BT part. 1101--100­0-8000-00805F9B34FB is UUID for SPP on Android. On Mar 11, 4:26 am, Arun

[android-developers] Re: Using MediaPlayer - multiple sound files

2010-03-10 Thread Nightwolf
Another way is to use single MediaPlayer and call reset(), setDataSource(), prepare() and start(). There could be some delays though, at least for the first time. BTW the last time I tried SoundPool it was impossible to have more than 1 MB of sounds. SoundPool uses uncompressed audio and I didn't

[android-developers] Re: Creating Simple Serial Output:

2010-03-10 Thread Bob Kerns
I'm not clear on what you're trying to do. Are you trying to get a phone to talk to an Arduino, or are you trying to replace the Arduino with a phone? Phone USB ports aren't generally set up to act as hosts, but as devices. Supposedly some phone USB ports are hardware capable of doing so, but I

[android-developers] Re: how can I put a newline into a format string

2010-03-10 Thread Bob Kerns
But without the doc -- even WITH the doc -- we don't know when these are/were supported. img works in fromHtml(), but does it work in format()? On Mar 10, 7:07 pm, Mark Murphy mmur...@commonsware.com wrote: Bob Kerns wrote: Well, I was taking this page as definitive:

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-10 Thread Robert Green
FYI - Good that you're doing it that way. I have to recommend switching to nanoTime, though. I've witnessed multi-second time updates (from the system, not from me) while playing my games and it's not pretty. I've switched everything to nanoTime / 100 since then (which gives milliseconds)

[android-developers] java.lang.ClassCastException when using self-defined ListAdapter in Listview

2010-03-10 Thread windstorm
Hi all: I am writing a adapter for a specific app, the problem I met is: I have only 1 listview in main.xml, and the row style is defined in file_row.xml. If I simply use list.setAdapter(new ArrayAdapterString(this, R.layout.file_row, R.id.file_name, items)); where items is a ArrayListString,

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-10 Thread Robert Green
I've been really wanting an extra device to run OS builds on. Also, I get reports of people running my live wallpaper off of G1s and other devices. Having another device for those custom builds would be great. On Mar 11, 12:45 am, Bob Kerns r...@acm.org wrote: I suppose it's too late then, to

Re: [android-developers] java.lang.ClassCastException when using self-defined ListAdapter in Listview

2010-03-10 Thread Romain Guy
You are returning the parent from getView()? Why? The parent is the ListView itself, you are telling ListView to add itself to itself :) On Wed, Mar 10, 2010 at 11:26 PM, windstorm likunarmstr...@gmail.com wrote: Hi all: I am writing a adapter for a specific app, the problem I met is: I have

[android-developers] Re: currentTimeMillis() doesnt match on two concurrent emulators

2010-03-10 Thread Kaj Bjurman
Have you checked all entried in logcat to see if you can see anything odd? I had e.g. a loop where each iteration did something like: Log.i(TAG, Forecast expires at + aJavaDateInstanceRepresentingExpirationDateTime); Each execution of that log statement took about 1-2 seconds since

[android-developers] Re: The life cycle of a static

2010-03-10 Thread westmeadboy
I implemented the singleton approach in the end, and it works pretty well. I pass the application context to get the instance and that's enough to open the database and do various other pieces of initialisation I need across the app. In Activity1.onDestroy() I close the database. However, is

[android-developers] Re: Which API Level to target

2010-03-10 Thread Kaj Bjurman
I don't think that that is totally correct. You can handle multiple screen sizes, and still make the app work on 1.5. The new entries in the manifest will be ignored by 1.5, so you are safe as long as you don't use any new APIs/methods. On 11 mar, 05:46, Kumar Bibek coomar@gmail.com wrote:

[android-developers] Re: Which API Level to target

2010-03-10 Thread Kaj Bjurman
Really nice to see some statistics, but I don't think that they are applicable for the rest of the world. It's e.g. not possible to buy any phones with Android 2.1 in many countries in europe, and it looks like your app mostly is used in US, where you have the Droid and the N1. I would expect the

<    1   2   3