[android-developers] Re: Paid applications and market feedback/rating

2009-03-16 Thread sm1
I'm not 100% sure but if my understanding of how Android Market works is correct, what you may want to do is keep the same package (aka. signature) for your paid app as the package that you had before, with the comments and ratings, and make a *new* package for the free app., and the new free app

[android-developers] Re: SimpleDateFormat PathClassLoader NullPointerException quandary

2009-03-16 Thread sm1
SimpleDateFormat is known to not be thread-safe, and it's instances must be either unique to each thread or otherwise be synchronized. happened to me a while back. serge On Mar 16, 7:15 pm, Torgny wrote: > Yeah, the code is in its own thread. It's in a class that is > instantiated in the threa

[android-developers] Re: Accessing System Brightness

2009-03-21 Thread sm1
and to read it and log it: int ib = Settings.System.getInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS,-1); Log.d("SCREEN_BRIGHTNESS (0-255) {"+ib+"}"); On Mar 20, 6:53 pm, mark.ka...@gmail.com wrote: > int bright = 50; > Settings.System.putInt(ftaContext.getContentR

[android-developers] Re: Accessing System Brightness

2009-03-21 Thread sm1
make that Log.d("x...@#$% tag :-)","SCREEN_BRIGHTNESS (0-255) {"+ib+"}"); serge On Mar 21, 10:40 am, sm1 wrote: > and to read it and log it: > >     int ib = Settings.System.getInt(getContentResolver(), >         Settings.System.SCREEN_BRIGHTNESS,

[android-developers] Re: How is android's AlertDialog layout define?

2009-03-22 Thread sm1
ot;new message with new info"); 4.2. and you do this somewhere in your code: showDialog(yourUniqueDialogId); 4.3. yourUniqueDialogId must be defined by you, usually as a static field; must be an int. 5. Using an Activity that looks like a Dialog: And you mana

[android-developers] Re: Getting a complete list of android native drawables

2009-03-22 Thread sm1
excellent advice, thanks: > So back to the whole issue of menu icons... if there are standard menu > icons you want to use, I recommend just copying them out of the platform > source and into your app, so you can make sure that the other icons you > design remain consistent with them. the old UI

[android-developers] Bluetooth headset service is always running - Is it normal?

2009-04-04 Thread sm1
On my phone, a dev phone, the bluetooth headset service is always running even though bluetooth connectivity is disable in the Settings app. Is this normal? The ear speaker is not emitting any sound for maybe two weeks now, even if the on-call sound level is at max (5), so I'm checking a few thin

[android-developers] Bluetooth headset service is always running - Is it normal?

2009-04-04 Thread sm1
On my phone, a dev phone, the bluetooth headset service is always running even though bluetooth connectivity is disable in the Settings app. Is this normal? The ear speaker is not emitting any sound for maybe two weeks now, even if the on-call sound level is at max (5), so I'm checking a few thin

[android-developers] Re: Anyone know what happened to Cyrket?

2009-11-02 Thread sm1
androidlib does not list all apps when searching for a specific developer. serge On Nov 2, 8:21 pm, Streets Of Boston wrote: > www.androlib.comis still up. > > On Nov 2, 5:50 pm, dadical wrote: > > > > > I love, love, love that application, and have been missing it terribly > > since it went of

[android-developers] Re: What SensorManager.getOrientation returns?

2009-06-15 Thread sm1
It's still June 15. Here's what is in the documentation: at http://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation(float[], float[]) you'll find: public static float[] getOrientation (float[] R, float[] values) Computes the device's orientation based on the

[android-developers] Re: How to get current time?

2009-06-17 Thread sm1
The documentation for SystemClock will give you a nice summary of your choices of current times with Android at http://developer.android.com/reference/android/os/SystemClock.html serge On Jun 17, 7:15 pm, Delta Foxtrot wrote: > 2009/6/18 Mark Murphy > > > Hrm. I assume the NTP API isn't somew

[android-developers] Re: Measurement of Time

2009-06-19 Thread sm1
look at the documentation for SystemClock class: http://developer.android.com/reference/android/os/SystemClock.html it should tell you all you want to know. serge On Jun 19, 10:32 am, Michelle Silva wrote: >  Hi, > >        i'd like to know how can i measure time to access an aplication in > t

[android-developers] Re: Application Needed

2009-06-23 Thread sm1
I wrote a special app for this. It's free. It's called *)s) Repeat Vibrations*. In the Reference section. By simplecode.inc. Make sure you test it thoroughly before using it in class or during the evaluation. I wrote it today and i only tested it for an hour or so. Let us know how you did after

[android-developers] Re: Application Needed

2009-06-23 Thread sm1
I moved it to the Productivity section. serge On Jun 23, 8:47 pm, sm1 wrote: > I wrote a special app for this. It's free. It's called *)s) Repeat > Vibrations*. In the Reference section. By simplecode.inc. > > Make sure you test it thoroughly before using it in class or d

[android-developers] Re: Application Needed

2009-06-24 Thread sm1
maybe the easiest way to get the app: with your phone, open the Market app and do a search on simplecode. you'll see the app in a short list and select it and install it. The app name is *)s) Repeat Vibrations*, without the stars/asterisks. serge --~--~-~--~~~---~--~---

[android-developers] Re: Is there a way to determine which carrier the phone is using?

2009-07-27 Thread sm1
In TelephonyManager in Network Operator Name: TelephonyManager tm = (TelephonyManager) getSystemService (Context.TELEPHONY_SERVICE) tm.getNetworkOperatorName() You may need to also define some permission in you manifest, maybe READ_PHONE_STATE. serge On Jul 27, 5:27 pm, junker37 wrote: > Is

[android-developers] Re: Identifying a Phone By A Unique ID?

2009-02-14 Thread sm1
There are a few such serial numbers in a G1. For example, using the TelephonyManager you can obtain the SIM Serial Number and also the Device ID. Application {Device Internals for r1} will show you these, as well as other data. --~--~-~--~~~---~--~~ You received th

[android-developers] Re: Market Copy Protection options

2009-02-19 Thread sm1
One of the things that google is now doing is that, since Feb 18 or 19, they are are not showing apps that are copy protected to Dev Phones. From a dev phone you cannot see the copy protected apps on the market. serge --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Stuck with getting package name

2009-02-24 Thread sm1
In free app *Device Internals for r1*, I get the running services this way: StringBuffer getRunningServices(ActivityManager am){ StringBuffer buf = new StringBuffer(); buf.append("\n\nRunning Services:"); List list = null; try{ list = am.getRunningServices(100); }catch

[android-developers] Re: Getting build number/version programatically

2009-02-27 Thread sm1
You could use *Device Internals for r1* which is free in Tools, and scroll to section *android.os.Build*, it will list you the fields and values that you can obtain from this class and you can pick the one that suits your requirements. You can also see other classes that give you other similar val

[android-developers] Re: Getting build number/version programatically

2009-03-06 Thread sm1
ot;}"); buf.append("\nHOST {"+Build.HOST+"}"); buf.append("\nID {"+Build.ID+"}"); Log.d("build",buf); serge On Feb 27, 7:16 pm, mark.ka...@gmail.com wrote: >    I need to do it programmatically, but thanks. > >            

[android-developers] Re: Will 900ms of calcs run faster in another thread?

2010-04-25 Thread sm1
BobG, these numbers seem a bit high to me. Were they taken on an emulator or an ADP? How many voltage samples per array are you using? I usually use background threads for the calf's but usually the drawing needs to be in the GUI/main thread. )s) Serge On Apr 21, 11:15 pm, BobG wrote: > I hav

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
Thanks for the tip Richard. I added SQLite version display in the two apps: )s) Internals for Android 1.5+ )s) Internals for Android 1.6+ They show SQLite 3.6.22 on my 2.2 N1. The info is about 1/4 down the text view. Btw, I also tried to select sqlite_source_id() but this returned an exce

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
got it. Thanks Mark. On Jul 11, 12:38 pm, Mark Carter wrote: > That function is only in SQLite 3.6.18+ (see link in my last comment), so > will only work on 2.2+. > > On 11 July 2010 18:31, sm1 wrote: > > > > > Thanks for the tip Richard. > > > I added SQ

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
)s) Internals for Android 1.6+ version 2010.7.11b will now also display the source_id when running on android v. 2.2+. On my N1, it showed 2010-03-22 followed by a time and a long generated unique id. serge On Jul 11, 1:44 pm, sm1 wrote: > got it. Thanks Mark. > > On Jul 11, 12:38

[android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2010-07-11 Thread sm1
I also moved the SQLite info upward a little in the text view for the 1.6+ app. It is now between sections Settings.Secure and Configuration. This is at about 1/6 of the view. On Jul 11, 2:28 pm, sm1 wrote: > )s) Internals for Android 1.6+ version 2010.7.11b will now also > displ

[android-developers] Re: Eclipse library project problems

2010-08-05 Thread sm1
I have a similar problem: the library classes are not visible from the main project. The library R class is added to the main project gen directory. But the directory for the library classes is not created in the main project. Using eclipse-java-galileo-SR2-win32 under Windows XP. Eclipse is set