[android-developers] how to implement musicplayer as service in android

2010-03-30 Thread kavitha
Hi All, I have a Music Player application and music plays continuously even user comes out of application UI. I have read that such background processing should be done with service in android. How to do that?any idea? Please help. Thanks Kavitha -- You received this message because you are

[android-developers] Re: Network connectivity checking without wakelock

2010-03-30 Thread Tako Au
Anybody here? On Mar 26, 10:30 pm, Tako Au tak...@gmail.com wrote: I have a terrible bug in my widget.  The widget is waken up using an AlarmManager (the update interval is chosen by users, ranging from 30 mins to 2 hours) to grab some data from the Internet and display it on the widget.  I

[android-developers] Re: Bluetooth file trasfer

2010-03-30 Thread VovaN
Hello, Of course Android can. Please follow guide http://developer.android.com/intl/zh-CN/guide/topics/wireless/bluetooth.html On Mar 30, 5:30 am, Jobs He hemf2...@gmail.com wrote: Hello:      I want to know android can or not transfer through Bluetooth,and now,android have how much

[android-developers] Re: android.location.Location.distanceTo algorithm

2010-03-30 Thread Patrick
Of course, the source code. I didn't think of that. Thank you Andreas. On Mar 30, 2:44 am, Andreas andreas.bex...@gmail.com wrote: Yes. According to the source code (http://source.android.com/download), the section 4 of this document is used to calculate the

[android-developers] New application replacing old application

2010-03-30 Thread Nithin
Hi, From one application, I want to create two apk. So I changed the manifest file. In changed the name of the launcher activity, put a new icon, changed the label etc. But the new apk is replacing the old apk. What I need to do to create a seperate apk. Nithin -- You received this message

[android-developers] Re: New to android

2010-03-30 Thread patbenatar
Yea... Check out the tutorials and API Demos under the Resources tab. Great starting point. On Mar 29, 12:30 pm, Felipe Silveira webfel...@gmail.com wrote: The first place you need to go is:http://developer.android.com Felipe Silveirawww.felipesilveira.com.br On Mon, Mar 29, 2010 at

[android-developers] Re: New application replacing old application

2010-03-30 Thread Tako Au
A new package name On Mar 30, 2:23 pm, Nithin nithin.war...@gmail.com wrote: Hi, From one application, I want to create two apk. So I changed the manifest file. In changed the name of the launcher activity, put a new icon, changed the label etc. But the new apk is replacing the old apk.

[android-developers] Re: R.id cannot be resolved

2010-03-30 Thread Tako Au
Agree. Clean your project and rebuild it. See if you can see the R.java in /src/gen. On Mar 30, 10:16 am, DonFrench dcfre...@gmail.com wrote: Can you show us the contents of R.java.  It is in the gen folder. On Mar 29, 3:17 am, mnavlani monishanavl...@gmail.com wrote: thanks for your

[android-developers] Re: Database : XML or SQLite ?

2010-03-30 Thread ko5tik
JSON is also an option: http://github.com/ko5tik/jsonserializer ( unless you like to write SAX / DOM yourself, you will need kind of data binding) regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: New application replacing old application

2010-03-30 Thread Nithin
Thanks... its working.. On Mar 30, 11:26 am, Tako Au tak...@gmail.com wrote: A new package name On Mar 30, 2:23 pm, Nithin nithin.war...@gmail.com wrote: Hi, From one application, I want to create two apk. So I changed the manifest file. In changed the name of the launcher activity,

Re: [android-developers] Re: New to android

2010-03-30 Thread Prasanjit Deka
just go to *developer*.*android*.com where u can get details and basic knowlege of android On Tue, Mar 30, 2010 at 11:56 AM, patbenatar patbena...@gmail.com wrote: Yea... Check out the tutorials and API Demos under the Resources tab. Great starting point. On Mar 29, 12:30 pm, Felipe

[android-developers] what's the best 2d engine and what's the tools I need to create a game?

2010-03-30 Thread jProg
Hi, I'm a newbie to android and I want to develop my first 2d game..:) I read about engines ..but what do you advice me to go with--for 2d game and what is the best tools I need to create the sprites or characters in addition to the map or the background? Thank you in advance..:) -- You received

[android-developers] Flickr upload API hangs in emulator

2010-03-30 Thread Joseph Sebastian
Hi, I am trying to develop a flickr photosharing application. I have used the flickr C library flickcurl-1.7 The flickr api for uploading a snap hangs in the emulator.But the same api is working fine in any linux platform. To get more clarity, i opened the flickr.com site in the

[android-developers] Re: Question for Admob users

2010-03-30 Thread tobias429
In Germany, Austria, Switzerland and France I also saw pretty much exclusively geo-targeted ads in the local language. The click-through rate with those seems to be much higher. Does anyone know though if the access_coarse_location is really required for this? After all you can get a users

[android-developers] Re: what's the best 2d engine and what's the tools I need to create a game?

2010-03-30 Thread Piotr
Hi, I'm sorry, but there is no official 2d game support, and none of available 2d engine is even close to XNA from M$'s. The only way to get decent performance is to use OpenGL with 2d projection mode. So, prepare for hard work, because 2d game support is weak, besides, platform has some

[android-developers] Animation Jerking when background operation running

2010-03-30 Thread Nithin
Hi, In the background(seperate thread) when extensive operations are going, like create database and parsing, in the UI thread I am displaying an animation. But its not smooth, the view is jerking. How can I remove the jerking and make the animation smooth. Nithin -- You received this message

[android-developers] Re: what's the best 2d engine and what's the tools I need to create a game?

2010-03-30 Thread whitemice
If you want to see how its done, suggest you look here: Replica Island is a free, open-source game for Android. http://replicaisland.net/ -- 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] Regarding language change notification

2010-03-30 Thread Dilip Dilip
Hi All, How to recieve the language change notification in my service? I want to get a notification to my service whenever the user changes the phone language. Thanks and Regards, Dileep -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Checkboxpreference

2010-03-30 Thread emna zeddini
Hello everybody, I would like to override the checkbox preference so that: - the key and title are right aligned - the checkbox icon is on the left side I think I have to modify the checkboxpreference.java, do you know how? Thanks in advance. -- You received this message because you are

[android-developers] checkbox preference

2010-03-30 Thread emna zeddini
Hello everybody, I would like to override the checkbox preference so that: - the key and title are right aligned - the checkbox icon is on the left side I think I have to modify the checkboxpreference.java, do you know how? Thanks in advance. -- You received this message because you are

[android-developers] Re: Animation Jerking when background operation running

2010-03-30 Thread skink
On Mar 30, 6:46 am, Nithin nithin.war...@gmail.com wrote: Hi, In the background(seperate thread) when extensive operations are going, like create database and parsing, in the UI thread I am displaying an animation. But its not smooth, the view is jerking. How can I remove the jerking and

[android-developers] How do I sync MessageQueue thread in Android unit test?

2010-03-30 Thread Ricardo Gladwell
Hi All I'm writing unit tests for a ListActivity in Android that uses a handler to update a ListAdapter. While my activity works in the Android emulator, running the same code in a unit test doesn't update my adapter: calls to sendEmptyMessage do not call handleMessage in my activity's Handler.

[android-developers] How do I sync MessageQueue thread in Android unit test?

2010-03-30 Thread Ricardo Gladwell
Hi All I'm writing unit tests for a ListActivity in Android that uses a handler to update a ListAdapter. While my activity works in the Android emulator, running the same code in a unit test doesn't update my adapter: calls to sendEmptyMessage do not call handleMessage in my activity's Handler.

[android-developers] Re: Integrate IPhone Safari like view in Android?

2010-03-30 Thread javame_android
hi, Can anyone let me know of doing this? Or Can someone tell me the way of adding Listview in Gallery? I need to add multiple Listview in Gallery. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Getting contact phone numbers in a custom data layout.

2010-03-30 Thread Jiri
Hello, i want to build a list view that shows all the contacts and their phone numbers. I have this working but I don't like the following. If a user has one contact that holds multiple phone number ( home, work etc) the cursor I receive will list every phone number with each duplicate name.

[android-developers] Delay before starting

2010-03-30 Thread perumal316
Hi All, I am writing a application which will write to a file. Now I want to show the contents of the file but How do I delay the show function so that there is enough time for the writing to be done before continuing? Thanks In Advance, Perumal -- You received this message because you are

[android-developers] Re: Moving the first gallery item to left

2010-03-30 Thread Matt.P
Hello, I tried but unfortunately, it seems there is no way to do that. I hope to hear any way to place the first item to the left and the last one to the right of the screen. Matt On Mar 22, 1:06 pm, Shyam M shyam.andr...@gmail.com wrote: Hi, Looking at the Gallery example in the

[android-developers] conditional compilation

2010-03-30 Thread Dilip Dilip
Hi All, How to do conditional compilation in JAVA. something like in C, C++ : #ifdef TRUE_CONDITION #else #endif Thanks and Regards, Dileep -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Regarding language change notification

2010-03-30 Thread Keiji Ariyama
Hi Dileep, I suppose that your service can receive broadcast intent that is ACTION_CONFIGURATION_CHANGED. -- Keiji, ml_andr...@c-lis.co.jp (2010/03/30 17:51), Dilip Dilip wrote: Hi All, How to recieve the language change notification in my service? I want to get a notification to my

[android-developers] BroadcastReceiver not receiving an alarm’s broadcast

2010-03-30 Thread Juanjo
I have a code that sets a new repeating alarm (on production I'll use a inexactRepeating), but the BroadCastReceiver I've registered for handling it is not being called. Here is the code where I set the alarm: long newAlarmPeriod = 5000; // For debugging Intent

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

2010-03-30 Thread Flying Coder
NC still waiting (but not complaining -- awesome for Google to do this) On Mar 29, 8:16 pm, Andrei gml...@gmail.com wrote: FL still waiting On Mar 29, 5:58 pm, SoftwareForMe.com SoftwareForMe.com softwareforme@gmail.com wrote: Washington State, USA. Still waiting. On Mon, Mar 29,

[android-developers] Re: Bug or feature?

2010-03-30 Thread Bob Kerns
Be liberal in what you accept, and conservative in what you send. may be Jon Postel's most famous quote, but it is not his best contribution to the internet. It seemed like a good idea at the time, when the number of senders and the complexity were both low. Experience has taught us that being

[android-developers] How to use facebook connect api?

2010-03-30 Thread Maxood
What's the procedure to run Facebook Connect application in android? Here is the link:http://code.google.com/p/fbconnect-android/ Please explain step by step. I'm having errors in my manifest file: activity android:name=com.codecarpet.fbconnect.FBLoginActivity

Re: [android-developers] Re: ADP3? When?

2010-03-30 Thread Abdul Mateen
I agree with JP, Nexus one as development phone is a perfect development phone, but I pray that it should have the better support than ADP1 and ADP2 which are almost dead. On Tue, Mar 30, 2010 at 7:07 AM, JP joachim.pfeif...@gmail.com wrote: On Mar 25, 10:21 am, Disconnect

[android-developers] question for list view

2010-03-30 Thread Sandy
Hi all I call setBackgroundResource to set background for list adapter. it works fine. But the highlight will be disappear. I have to reset setBackgroundResource (0) to show highlight . how to resolved this issue? thanks -Sandy -- You received this message because you are

[android-developers] real ip address

2010-03-30 Thread Engin Arslan
Hi All, Can we get real ip address of android phone? -- 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] real ip address

2010-03-30 Thread Engin Arslan
Hi All , Can I get real ip address of android phone 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] Re: conditional compilation

2010-03-30 Thread Bob Kerns
You do not do that in Java. I suggest you should not do that in C++, as there are better ways to do it. I suggest you do not use C. On Mar 30, 2:57 am, Dilip Dilip dileep2m...@gmail.com wrote: Hi All,  How to do conditional compilation in JAVA. something like in C, C++ : #ifdef

[android-developers] Re: BroadcastReceiver not recei ving an alarm’s broadcast

2010-03-30 Thread Juanjo
Ok, I found the problem, hope this thread helps somebody else with the same stupid errors: My receiver was inside the manifest but outside the application tags :-/ On 30 mar, 11:05, Juanjo juan...@gmail.com wrote: I have a code that sets a new repeating alarm (on production I'll use a

[android-developers] Re: conditional compilation

2010-03-30 Thread Bob Kerns
I suppose I should elaborate... In C++, you should use const to declare TRUE_CONDITION to be true, and then use regular 'if' statements. The compiler will eliminate the clauses that can't be reached. In Java, you can do the same thing. But since Java code generally can run on any platform, you

Re: [android-developers] keyboard

2010-03-30 Thread emna zeddini
Hello, Do you have any idea about integrating arabic keyboard to android. May be by altering /development/samples/softkeyboard? 2010/3/29 emna zeddini zeddini.e...@gmail.com Of course I am focusing on the android platform. 2010/3/29 Mark Murphy mmur...@commonsware.com emna zeddini wrote:

[android-developers] Getting contact phone numbers in a custom data layout.

2010-03-30 Thread Jiri
Hello, i want to build a list view that shows all the contacts and their phone numbers. I have this working but I don't like the following. If a user has one contact that holds multiple phone number ( home, work etc) the cursor I receive will list every phone number with each duplicate name.

[android-developers] Getting contact phone numbers in a custom data layout.

2010-03-30 Thread jiriheitla...@googlemail.com
Hello, i want to build a list view that shows all the contacts and their phone numbers. I have this working but I don't like the following. If a user has one contact that holds multiple phone number ( home, work etc) the cursor I receive will list every phone number with each duplicate name. I am

[android-developers] Dont see my app in share menu for Picasa images in galary

2010-03-30 Thread Naveen
Hi! I have an activity for which I have registered intent.action.SEND Something like this activity android:name=.SelectedImage android:label=@string/app_name intent-filter action android:name=android.intent.action.IMAGE_SELECT /

[android-developers] Re: Nexus One ADB XP 64

2010-03-30 Thread mah
I had issues getting things to work on Win 7 64, but there are a few points of failure you could be hitting. Are you able to install the SDK at all -- meaning you can open its setup and get your GUI to download and install the driver? (If not, you probably need to get a 64 bit version of swt.jar

[android-developers] HttpsUrlConnection and OpenSSL freeing session

2010-03-30 Thread Lee
I've got a problem with my application when I make a number of requests using the HttpsUrlConnection class. My program makes the first request using the HttpsUrlConnection class to retrieve a file. It then makes a second request to the same server to retrieve a different file. What happens

[android-developers] Re: Dynamically load jar files in android runtime

2010-03-30 Thread Mihai Dumitrache
Still no answer to 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] Re: Animation Jerking when background operation running

2010-03-30 Thread Nithin
Thanks skink.. Still a small jerk is in my animation. The jerk is in some particular points only. I think its because when switching between the tasks. I don't know exactly, but I feel so. Nithin On Mar 30, 2:19 pm, skink psk...@gmail.com wrote: On Mar 30, 6:46 am, Nithin

[android-developers] Programmatically remove permission

2010-03-30 Thread westmeadboy
How to programmatically remove a permission? I don't think its possible but would be useful in the scenario where you want to control behaviour of some 3rd party library. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Communication between android Emulator and Real Device !!!

2010-03-30 Thread AJ
Any clue please? - AJ On Mar 29, 10:37 pm, AJ ajeet.invinci...@gmail.com wrote: Hi group, I know we can communicate between 2 instances of Emulator. But Is it possible to communicate between the a read Device and Emulator? Thanks in Advance for your inputs. - AJ -- You received this

[android-developers] Re: Is this is possible in Android ?

2010-03-30 Thread AJ
Any clue please. - AJ On Mar 30, 1:15 am, AJ ajeet.invinci...@gmail.com wrote: Hi Group, As we know the following command is for using Emulator console. telnet localhost console-port But this works only for Emulator. I tried for read android Devices that did not work It says  Connecting

[android-developers] Re: Moving CursorAdapter cursor creation to background thread

2010-03-30 Thread jsdf
On Mar 29, 11:52 am, Mark Murphy mmur...@commonsware.com wrote: jsdf wrote: I then thought of trying to load the cursor in abackgroundthread, but realize that this might be problematic, as theCursorAdapter should be instantiated in onCreate() and should take a cursor as a parameter.

Re: [android-developers] Re: Moving CursorAdapter cursor creation to background thread

2010-03-30 Thread Mark Murphy
jsdf wrote: On Mar 29, 11:52 am, Mark Murphy mmur...@commonsware.com wrote: jsdf wrote: I then thought of trying to load the cursor in abackgroundthread, but realize that this might be problematic, as theCursorAdapter should be instantiated in onCreate() and should take a cursor as a

Re: [android-developers] Programmatically remove permission

2010-03-30 Thread Mark Murphy
westmeadboy wrote: How to programmatically remove a permission? I don't think its possible but would be useful in the scenario where you want to control behaviour of some 3rd party library. You are correct, it is not possible. Sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: getDuration() in VideoView returns -1 !!!

2010-03-30 Thread abowman
I googled getDuration android. The first result showed me that you could be checking the length of the video before it has been loaded. http://www.anddev.org/viewtopic.php?p=23181 On Mar 26, 2:06 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hi, Has anyone tried using the getDuration() method

Re: [android-developers] Re: Custom Dialog help!!!

2010-03-30 Thread ~ TreKing
On Mon, Mar 29, 2010 at 6:05 PM, James jkavana...@gmail.com wrote: Hmmmh, now how do i do that :) How about reading the documentation and / or samples ? :) http://developer.android.com/intl/fr/guide/topics/ui/menus.html http://developer.android.com/intl/fr/guide/topics/ui/menus.html

[android-developers] Re: Is this is possible in Android ?

2010-03-30 Thread Miguel Paraz
On Mar 30, 6:15 am, AJ ajeet.invinci...@gmail.com wrote: Hi Group, As we know the following command is for using Emulator console. telnet localhost console-port But this works only for Emulator. I tried for read android Devices that did not work It says  Connecting To localhost...Could

[android-developers] Re: real ip address

2010-03-30 Thread mscwd01
The only way I found to do this was by opening a socket connection and reading the IP that way. I couldn't find a nice getIP() method. On Mar 30, 11:32 am, Engin Arslan enginarsla...@gmail.com wrote: Hi All , Can I get real ip address of android phone Thanks -- You received this message

[android-developers] Prevent screen rotation

2010-03-30 Thread Isaac Wagner
I've got an app where I don't want the screen to rotate when they rotate their device -- I need to keep the app in portrait mode all the time. How do I do this? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Prevent screen rotation

2010-03-30 Thread Mark Murphy
Isaac Wagner wrote: I've got an app where I don't want the screen to rotate when they rotate their device -- I need to keep the app in portrait mode all the time. How do I do this? Thanks. Add android:screenOrientation=portrait to the activity element in the manifest. See this project for a

Re: [android-developers] Re: android.location.Location.distanceTo algorithm

2010-03-30 Thread mike
On 03/29/2010 11:21 PM, Patrick wrote: Of course, the source code. I didn't think of that. Thank you Andreas. If the differences are small, both the value of pi and the nominal radius of the earth may account for the differences between two implementations. Mike On Mar 30, 2:44 am,

[android-developers] Re: Ads in apps... How to successfully generate a larger revenue?

2010-03-30 Thread Ahmed majaat
try this, http://www.aditic.com/demo, it may helps you to improve your CTR and Revenue. They have more ad formats, splashscreen, interstial, 2/3 banner, strech banner and more for Android. Just for your information I used intro/splashscreen Banner and retractable banner, my CTR is around 0.67.

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

2010-03-30 Thread kanatacrude
Ottawa, got mine 8 days ago. Thank you Google. It is already helping me improve my app. Now if the trackball could just flash in multi- colour... garnet On Mar 30, 6:16 am, Flying Coder av8r.st...@gmail.com wrote: NC still waiting (but not complaining -- awesome for Google to do this) On

[android-developers] Re: Application not installed on Hero

2010-03-30 Thread kanatacrude
I'm interested in this. Please update this thread if you find anything. On Mar 26, 7:26 pm, Jim Blackler jimblack...@gmail.com wrote: Run adb logcat, attempt to install the app and examine the log carefully. I'd wager the error is in there somewhere. Jim On 26 March 2010 09:23, John

[android-developers] Re: real ip address

2010-03-30 Thread HeHe
you need a 'mirror' to tell you the real ip address. the mirror may be a STUN server; or, any peer can do the work. On Mar 30, 5:52 am, mscwd01 mscw...@gmail.com wrote: The only way I found to do this was by opening a socket connection and reading the IP that way. I couldn't find a nice

[android-developers] Re: Communication between android Emulator and Real Device !!!

2010-03-30 Thread Anthoni
Hi, I don't think that you can actually get the emulator to talk to a real device. However, if you use a server where they both connect, you can use that as a proxy mechanism. So the emulator sends a signal to the server which then relays it to the real device and vica versa. I know this is

[android-developers] need someone to try my app on htc hero

2010-03-30 Thread kanatacrude
If you have a couple of minutes, I could really use someone with an HTC hero to try cAndy Apple on the market. I just need to know if it installs and runs. I got a comment on the market that it wouldn't open on an htc hero. -- You received this message because you are subscribed to the Google

[android-developers] Re: need someone to try my app on htc hero

2010-03-30 Thread Yahel
French HTC Hero, Works perfectly !! This is awsome work man !! A bit confusing at first but well explained. Only thing I would say is that when you hit the download diskette or rom, you might want to indicate that download is in progress or done. But no problem on my hero. Yahel On 30 mar,

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

2010-03-30 Thread Arnon
Italy - Still waiting ;-( On Mar 30, 5:02 pm, kanatacrude garnet.ulr...@gmail.com wrote: Ottawa, got mine 8 days ago.  Thank you Google.  It is already helping me improve my app.  Now if the trackball could just flash in multi- colour... garnet On Mar 30, 6:16 am, Flying Coder

[android-developers] Creating a textfile and writing to it

2010-03-30 Thread perumal316
Hi All, I am writing an application that will create a textfile in the /sdcard or /data directory and write messages to the textfile.Each time I want to append the messages and not overwrite the file. I used the following code: public void writeAlert(String message){ FileWriter f;

Re: [android-developers] Creating a textfile and writing to it

2010-03-30 Thread Mark Murphy
perumal316 wrote: Hi All, I am writing an application that will create a textfile in the /sdcard or /data directory and write messages to the textfile.Each time I want to append the messages and not overwrite the file. I used the following code: public void writeAlert(String

[android-developers] Re: BroadcastReceiver not recei ving an alarm’s broadcast

2010-03-30 Thread Kevin S.
Something like that happened to me in the manifest also. It would be nice if it generated a compile error. But thanks for posting the solution. -Kevin On Mar 30, 6:40 am, Juanjo juan...@gmail.com wrote: Ok, I found the problem, hope this thread helps somebody else with the same stupid

[android-developers] Re: Dont see my app in share menu for Picasa images in galary

2010-03-30 Thread Kumar Bibek
Try this one. intent-filter action android:name=android.intent.action.SEND/action category android:name=android.intent.category.DEFAULT/ category data

[android-developers] Weird Thing with my posts

2010-03-30 Thread Kumar Bibek
Whenever I make a post or reply, I get a mail in my INBOX with the following content. First, I though it was junk, but I get a mail for every post i make. Anybody has any idea? fromMail Delivery Subsystem nore...@dreamhost.com to coomar@gmail.com dateTue, Mar 30, 2010 at 8:37 PM

[android-developers] Re: conditional compilation

2010-03-30 Thread Kevin S.
It really isn't very easy to do this. In general, you can do something like public class MyClass { public static final boolean HAS_CHEEZBURGER=true; public void someMethod() { if( MyClass.HAS_CHEEZBURGER) { doCheezburger(); } else {

[android-developers] Re: Delay before starting

2010-03-30 Thread Kevin S.
FileOutputStream implements the java.io.flushable interface. http://developer.android.com/reference/java/io/Flushable.html -Kevin On Mar 30, 5:52 am, perumal316 perumal...@gmail.com wrote: Hi All, I am writing a application which will write to a file. Now I want to show the contents of the

[android-developers] Re: what's the best 2d engine and what's the tools I need to create a game?

2010-03-30 Thread Emmanuel
There are some existing 2D engines, that you can find by googling. The most famous is, I think Rokon, that is quite complete ( with one successful game, and that deal with 2D, Sound, TouchPad, Accelerometer, etc... ) hope it helps, Emmanuel http://androidblogger.blogspot.com/

[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-30 Thread Matt (preinvent)
On Mar 24, 4:40 pm, Doug dougforp...@gmail.com wrote: This problem happened to one of my users just today - he has a Droid. I asked if anything weird had happened before the problem occurred (like the phone misbehaving). He said: The only random weird behavior I noticed before the problem

[android-developers] Re: Creating a textfile and writing to it

2010-03-30 Thread perumal316
Hi, Yes, I have added the permission and have installed SD card in emulator. But how to l look at stack trace to see if got an exception and use android.os.Environment? Regards, Perumal On Mar 30, 11:03 pm, Mark Murphy mmur...@commonsware.com wrote: perumal316 wrote: Hi All, I am writing

[android-developers] Re: ADP3? When?

2010-03-30 Thread JP
On Mar 30, 3:17 am, Abdul Mateen abmat...@gmail.com wrote: than ADP1 and ADP2 which are almost dead. Not sure what you mean by almost dead. I'd recommend to pick one up for cheaps and use it for app testing on a slower device running Android 1.x. -- You received this message because you

Re: [android-developers] Re: Creating a textfile and writing to it

2010-03-30 Thread Mark Murphy
perumal316 wrote: Yes, I have added the permission and have installed SD card in emulator. But how to l look at stack trace to see if got an exception Use adb logcat, DDMS, or the DDMS perspective in Eclipse. and use android.os.Environment? new

[android-developers] Re: Android market - limited distribution

2010-03-30 Thread ole!
Yes... This is what I was hoping for... You guys did give me ideas for workarounds though. Thanks.. On Mar 29, 3:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote: It would be nice if the AndroidMarketwould have some form of an 'enterprise application' section, where companies can

[android-developers] finish parent activity from child

2010-03-30 Thread Paolo
My child activity X is called from Parent activity P through startActivity(intent). I want to close P when X called its finish() method. I override a method finishFromChild(Activity child) in P and called finish() in it. But this functions (finishFromChild(Activity child)) is not being called

[android-developers] Re: Creating a textfile and writing to it

2010-03-30 Thread perumal316
Sorry for asking, But after doing File file = new File(Environment.getExternalStorageDirectory(), alert.txt); I thought of doing something like file.append(string) or file.write(string) but there is no such methods. How do I use the file to write to the alert.txt? The file must be created

Re: [android-developers] Re: Is it possible to use MediaPlayer to play streaming audio?

2010-03-30 Thread dillirao malipeddi
arijasoft has developed android online radio SDK, Capabilities of AOR-SDK 1) Play: a. shoutcast-aac, b. shoutcast-aacp, c.shoutcast-mp3, d. icecast-aac, e. icecast-aacp, f.icecast-mp3; 2) Play: m3u/pls support 3) Player

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

2010-03-30 Thread Maps.Huge.Info (Maps API Guru)
Droid - received via FedEx in Olive Branch, Mississippi Thanks Google! -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,

Re: [android-developers] Re: Creating a textfile and writing to it

2010-03-30 Thread Mark Murphy
perumal316 wrote: Sorry for asking, But after doing File file = new File(Environment.getExternalStorageDirectory(), alert.txt); I thought of doing something like file.append(string) or file.write(string) but there is no such methods. How do I use the file to write to the alert.txt?

[android-developers] Local contact photo uri issues

2010-03-30 Thread Roger L
I have a string of html that I am placing into a WebView widget, and I want to put a local contact photo into it. I understand that if the picture is on sdcard, I would need to put it into a content provider first, and then reference that... Not in my case, as the photo IS ALREADY in the contacts

[android-developers] Re: Weird Thing with my posts

2010-03-30 Thread Robert Green
I got one of those yesterday as well. Here's my theory: Someone somewhere has an account set up so that it automatically replies to emails (vacation responder, etc) They are subscribed to this group and receive an email Their responder responds. The message bounces because the group filters

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

2010-03-30 Thread Matt
Got a door tag Saturday from FedEx, but I was still sleeping at 9AM, and had no idea they'd be delivering it then. I called FedEx last night, and apparently, they are shipping these via FedEx Home so I couldn't pick it up yesterday... more the fault of FedEx than anything, but I will have my

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

2010-03-30 Thread Robert Green
Droid in Minneapolis, MN via FedEx Home Delivery On Mar 30, 11:26 am, Matt thatsthesolut...@gmail.com wrote: Got a door tag Saturday from FedEx, but I was still sleeping at 9AM, and had no idea they'd be delivering it then.  I called FedEx last night, and apparently, they are shipping these

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

2010-03-30 Thread Matt (preinvent)
Chattanooga, TN, USA. Droid arrived today via Fedex ground. Shipped 2010-03-26 from Brightpoint, 501 Airtech Parkway. Very grateful to Google... but if anyone in my area has a Nexus One they'd like to swap, let me now.. I already have a Droid! -- You received this message because you are

[android-developers] Re: conditional compilation

2010-03-30 Thread Bob Kerns
You can download a Java decompiler and investigate yourself. I suggest this one: http://java.decompiler.free.fr/?q=jdgui You'll see that it does indeed optimize when it can. However, unlike a C file which gets linked into a .so or .dll or an executable, Java classes may be combined in different

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

2010-03-30 Thread Thomas Riley
UK - still waiting :( To those who have them now, enjoy! On Mar 30, 5:41 pm, Matt (preinvent) m...@preinvent.com wrote: Chattanooga, TN, USA.  Droid arrived today via Fedex ground.  Shipped 2010-03-26 from Brightpoint, 501 Airtech Parkway. Very grateful to Google... but if anyone in my area

[android-developers] Simple Activity Related

2010-03-30 Thread raqz
I have this main class which displays a button and on click of the button, the NextActivity class should be called. I have defined the NextActivity class in the same package. But when I click the button, the application closes stating there is some error. But when i directly start an intent (un

[android-developers] Re: MediaRecorder prepare() causes segfault

2010-03-30 Thread dwilde1
Further UPDATE: I've tried all combinations of CAMERA and RECORD_* permissions in the Manifest and also tried reducing frame rate to 10 and resolution to 176x144, and preset the surfaceHolder to that same resolution, still no joy, I've also started rebooting the phone every time it crashes. What

Re: [android-developers] Simple Activity Related

2010-03-30 Thread Mark Murphy
raqz wrote: I have this main class which displays a button and on click of the button, the NextActivity class should be called. I have defined the NextActivity class in the same package. But when I click the button, the application closes stating there is some error. Use adb logcat, DDMS, or

Re: [android-developers] finish parent activity from child

2010-03-30 Thread Dianne Hackborn
Parent/child refers to embedded activities (inside of an ActivityGroup), not one activity starting another top-level activity. On Tue, Mar 30, 2010 at 8:45 AM, Paolo brand...@gmail.com wrote: My child activity X is called from Parent activity P through startActivity(intent). I want to close P

Re: [android-developers] Re: what's the best 2d engine and what's the tools I need to create a game?

2010-03-30 Thread Kevin Duffey
Whitemice.. did you create replica island? It looks great. Downloading it now. I gotta be honest.. given the various threads on this forum and the beginner forum about the lacking capabilities of android, be it low latency sound, better 3D performance, native layer issues, etc etc.. and honestly

[android-developers] dumpsys for services

2010-03-30 Thread j
I did a dumpsys to see why my service crashed. Can someone please tell me what callStart means in the output? startRequested=true stopIfKilled=false callStart=false lastStartId=1 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

  1   2   3   >