[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-24 Thread tauntz
I just hope that this time the release date for the official SDK will be BEFORE the update hits the masses. Not like it was with the 1.1SDK - it was released way after 1.1 was released to end-users (the argument from Google was something in the lines of Hey, this is a small release with no mayor

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-24 Thread tauntz
an official SDK - is that too much to ask?) Tauno On Tue, Mar 24, 2009 at 1:47 PM, Mark Murphy mmur...@commonsware.com wrote: tauntz wrote: We need an official SDK - and we need it as soon as the tree is stable enough (and way before it's pushed to the carriers/end-users) Please understand

[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread tauntz
Are you using dialog titles? Somebody from the Android team decided that dialog titles can't be longer than 2 lines anymore. That means they can not be longer than 2 words in some cases/languages. And no, nobody has explained the reasoning behind this move (other than - why are you using so long

[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread tauntz
or AlertDialog). Tauno On Fri, Mar 27, 2009 at 2:52 PM, Sahil Arora sahilz...@gmail.com wrote: Yes, i m using dialog titles. So going ahead do i need to replace my alert dialog with something else?? What is the suitable replacement u recommend?? Thanks. On Fri, Mar 27, 2009 at 5:41 AM, tauntz

[android-developers] Notificationbar on top of a fullscreen application.

2009-03-27 Thread tauntz
I don't know if this is a bug somewhere but I have observer the following odd behavior: Installed an app called Bar Control and made a shortcut to an app called Barcode Scanner (Bar Control puts the shortcut to the notification bar so you can launch random apps directly from there) Once out of

[android-developers] Re: Porting JavaME Midlet to android.

2009-01-29 Thread tauntz
You may want to take a look at MicroEmulator or J2ME runner. They are both projects aimed at running J2ME applications on Android without any (significant) rewrite. http://microemu.blogspot.com/2008/11/running-java-me-applications-on-android.html and http://www.netmite.com/android/index.html

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread tauntz
On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy romain...@google.com wrote: Yes :) Just put two activities in your manifest, both with the LAUNCHER category. I tried that but it seems I'm still doing something wrong (see code at the end of the message). The results I get are: * Two launcher

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread tauntz
distinct apps, you need to give them different task affinities. Please read this before you go farther: http://code.google.com/android/intro/appmodel.html On Thu, Feb 5, 2009 at 7:56 AM, tauntz tau...@gmail.com wrote: On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy romain...@google.com wrote: Yes

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-09 Thread tauntz
Hi Dianne and anyone else who might care about this, I'm a little (ok, more than a little) disappointed regarding RC33 and the lack of communicating UI look/behavior changes to developers. The specific reason is that RC33 seems to also have one more UI change - Dialog titles can't be longer than

[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread tauntz
Did you enable USB debugging on your phone? (Settings - Applications - Development - USB debugging) If not, try enabling it. Tauno On Mon, Sep 14, 2009 at 1:19 PM, André Charles Legendre andre.legen...@gmail.com wrote: Hi I want to install an application apk from a Linux machine to a mobile

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-09-17 Thread tauntz
Applications targeted for 1.0, 1.1 and 1.5 will be able to write to the external storage without any permissions. They will continue to work just like they have till today. http://developer.android.com/sdk/android-1.6.html#api-changes WRITE_EXTERNAL_STORAGE: Allows an application to write to

[android-developers] Re: avoiding Activity stack overflow...

2009-09-17 Thread tauntz
Hi, I guess that's exactly what you are looking for: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT If set in an Intent passed to Context.startActivity(), this flag will cause the launched activity to be brought to the front of its task's

[android-developers] Re: The screen was black case, service sleep?

2009-09-21 Thread tauntz
The problem (it's not a problem, really - it's designed so) is that your device goes to sleep to save battery when the user is not actively using their device. That means that the main CPU will also power down to some state and for applications the time stops. What you can do is: * Use the

[android-developers] Resetting the activity stack

2009-09-22 Thread tauntz
Hi Activities: A B are activities that once you have navigated away from them, it's not logical that you can get back to them using the back button. C ... X are activities that follow the usual can go back to where you came from flow. App flow: * Launch app from Home - starts A * From A start

[android-developers] Re: Resetting the activity stack

2009-09-22 Thread tauntz
/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP On Tue, Sep 22, 2009 at 11:26 AM, tauntz tau...@gmail.com wrote: Hi Activities: A B  are activities that once you have navigated away from them, it's not logical that you can get back to them using the back button. C ... X

[android-developers] Re: Soft Keyboard

2009-09-25 Thread tauntz
The problem with long-pressing-menu not working is this: HTC Hero. It just does NOT work there with the default keyboard. I got also reports about people being not able to open the virtual keyboard on their phones - I suggested them to try long-clicking the menu (following Romain Guys suggestions)

[android-developers] Re: Soft Keyboard

2009-09-25 Thread tauntz
At any rate, long press on menu has ALWAYS been there purely as a very last resort for pre-1.5 apps that couldn't have been written knowing about input methods.  It is a super-sucky mechanism to get to the soft keyboard, and anyone writing an app today really should assume it doesn't exist

[android-developers] Re: Soft Keyboard

2009-09-25 Thread tauntz
On Fri, Sep 25, 2009 at 1:13 PM, James Webster jpbwebs...@gmail.com wrote: On the Hero and I guess other Androids as well, there is the Search hardware button. This works in Hero Contacts AND in Launcher, bringing up the soft keyboard. Not particulary intuitive I grant you, as you tend to

[android-developers] Re: ADC2: Low volume of judges

2009-09-26 Thread tauntz
1) This belongs to android-discuss, it has nothing to do with developing apps using the public SDK :) 2) TV adds? Are you kidding us or you really want to have TV ads in all countries where Android phones are sold? :) Tauno On Sat, Sep 26, 2009 at 7:34 PM, Maps.Huge.Info (Maps API Guru)

[android-developers] Re: ADC2: Low volume of judges

2009-09-26 Thread tauntz
Sorry about TV ads - don't know where I got the idea :) readingComprehension--; On Sat, Sep 26, 2009 at 7:55 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: 1) This belongs to android-discuss, it has nothing to do with developing apps using the public SDK Maybe. There are enough

[android-developers] Question about built-in content providers

2009-10-21 Thread tauntz
In 1.5 and 1.6 the following code snippet works: --- import android.provider.Contacts; import android.provider.Contacts.People; ContentValues values = new ContentValues(); values.put(Contacts.ExtensionsColumns.NAME, name); values.put(Contacts.ExtensionsColumns.VALUE, value); Uri personUri =

[android-developers] Re: Question about built-in content providers

2009-10-21 Thread tauntz
asking because when I'm developing an app that will be published on the Android Market, do I have to design for all cases where a particular built-in content provider (or part of it) is not supported? Tauno On Wed, Oct 21, 2009 at 4:03 PM, Mark Murphy mmur...@commonsware.com wrote: tauntz wrote

[android-developers] Re: Question about built-in content providers

2009-10-22 Thread tauntz
one URI with another URI, that may happen to work, but if you follow the straight-forward definitions there you are using the SDK and thus supported APIs. On Wed, Oct 21, 2009 at 5:53 AM, tauntz tau...@gmail.com wrote: In 1.5 and 1.6 the following code snippet works: --- import

[android-developers] Re: GridView: how to select, programmatically?

2008-10-07 Thread tauntz
I haven't tried it myself but you could try android:focusableInTouchMode. From dox: Boolean that controls whether a view can take focus while in touch mode. If this is true for a view, that view can gain focus when clicked on, and can keep focus if another view is clicked on that doesn't have

[android-developers] Re: [Timing] How to measure time interval for certain process?

2008-10-21 Thread tauntz
I'm not sure that I understand your question correctly but if you want to measure a time interval in real time (eg in ms) then go for android.os.SystemClock.uptimeMillis() or android.os.SystemClock.elapsedRealtime() not System.currentTimeMillis() android.os.SystemClock.uptimeMillis() -

[android-developers] Re: setting the locale

2008-10-21 Thread tauntz
java.util.Locale.setDefault(Locale locale); But I have no idea to what extent this setting works.. Another approach is to start the activity that allows to select the locale but I don't think there is such an Activity in the emulator.

[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread tauntz
Good news! Congratulations Android team! Just a note about the release: This source code (looking at tag android-1.0 or head release-1.0) is clearly not the one that the 1.0r1 SDK uses. There are countless methods/classes in the source that are not present in the 1.0r1 SDK release (for example:

[android-developers] Re: Android Source Code Now Available

2008-10-21 Thread tauntz
the SDK, not against the open source release. Otherwise you can easily use non-public APIs, and thus break in a future release. On Oct 21, 10:14 am, Romain Guy [EMAIL PROTECTED] wrote: It is the same source code. The SDK contains only the public APIs. On Tue, Oct 21, 2008 at 10:12 AM, tauntz

[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread tauntz
On Tue, Oct 21, 2008 at 11:01 PM, hackbod [EMAIL PROTECTED] wrote: On Oct 21, 11:10 am, tauntz [EMAIL PROTECTED] wrote: Ok, understood, these methods are non-public and reserved for Google applications only ;) NO. They are private to the SYSTEM. They are not for application use

[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread tauntz
Thanks for clearing things up! :) On Wed, Oct 22, 2008 at 10:40 AM, hackbod [EMAIL PROTECTED] wrote: On Oct 22, 12:15 am, tauntz [EMAIL PROTECTED] wrote: I think I have a wrong understanding of SYSTEM and APPLICATIONS then :/ I always thought that (for example) the Contacts thingie

[android-developers] Re: Android Source Code Now Available

2008-10-24 Thread tauntz
They are all in the platform/frameworks/base.git @ http://android.git.kernel.org Specifically: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/provider/Sync.java

[android-developers] Re: Run function when EditText text changed

2008-10-26 Thread tauntz
http://code.google.com/android/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher) Example: editText.addTextChangedListener(new TextWatcher() { public void afterTextChanged(Editable s) { //XXX do

[android-developers] Re: Starting new Activity vs. setContentPane(newView)

2008-10-27 Thread tauntz
a) setContentView(new content) b) Send an Intent so the OS can resolve it, start a new Activity (optionally restoring it's state), call the needed methods of the old Activity (onPause() etc..) and finally call setContentView(new content) in the new Activity (I know, it's a simplification..) You

[android-developers] Re: Go from one Screen to another screen

2008-10-28 Thread tauntz
You might consider the [EMAIL PROTECTED] mailinglist. As for the answer - different screens are Activities in Android. To move from one screen to another, you are technically moving from an activity to another - eg starting a new Activity. Navigating between Activities is done by sending

[android-developers] Re: Run function when EditText text changed

2008-10-28 Thread tauntz
it: TabChangeListener listener = new TabChangeListener(); tabHost.setOnTabChangeListener(listener); that goes for all cases of using interfaces :) ) Tauno On Mon, Oct 27, 2008 at 7:10 PM, David [EMAIL PROTECTED] wrote: So that's how I use the TextWatcher...Ok, it works perfectly! Thanks tauntz! (Am I correct

[android-developers] Re: access to getprop from Java?

2008-10-28 Thread tauntz
Not a supported way AFAIK. Currently you can use something like this (modified and taken from http://groups.google.com/group/android-developers/browse_thread/thread/2572d2da0d75de08) private void getProperties() { try { ArrayListString processList = new

[android-developers] Re: ArrayAdapter

2008-10-29 Thread tauntz
Try notifyDataSetChanged() - it has no documentation but it seems to do what you want. Tauno On Tue, Oct 28, 2008 at 9:21 PM, Emery [EMAIL PROTECTED] wrote: How does the ArrayAdapter know when the array has been modified? I am using my own adapter, and I want to add items as they come in

Re: [android-developers] Re: Push Notification

2009-11-11 Thread tauntz
That one is tricky - Android does not support something like the PushRegistry in J2ME-land. Also there's no support for listening only to one specific port and there's also no way to get the destination port of the SMS via a public API(it's there but @hidden for some reason..) so you'd have to

Re: [android-developers] Re: Push Notification

2009-11-11 Thread tauntz
at 9:34 AM, tauntz tau...@gmail.com wrote: That one is tricky - Android does not support something like the PushRegistry in J2ME-land. Also there's no support for listening only to one specific port and there's also no way to get the destination port of the SMS via a public API(it's

Re: [android-developers] Re: Copy protection bug statuses

2009-11-12 Thread tauntz
When a bug is marked as FutureRelease it usually means it will be fixed in the next release at the time the bug is closed. http://code.google.com/p/android/issues/detail?id=2263 was marked as FutureRelease @ Mar 21, 2009 so it should be fixed in Android 1.5 - that was the next version after

Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-20 Thread tauntz
Just saying that an IMEI is not personal data.. in the country where I live in, at least (and that's in the EU). An IMEI alone can uniquely identify a mobile device, not the actual person who is using it. In broad terms, it's the same as the serial number on the back of your TV or fridge. (quoting

Re: [android-developers] How to highlight list item

2009-11-20 Thread tauntz
Can any one tell me how can I highlight any item of my list when mouse cursor passes through that particular item. That is not possible. Android has no mouse cursor. Is this possible to highlight any particular option/item using soft keys?? If yes, please tell me how it can be

Re: [android-developers] default screenwidth of android

2009-11-20 Thread tauntz
There is no default screen width - different devices will have different screen sizes. On Fri, Nov 20, 2009 at 2:21 PM, Jags jag...@gmail.com wrote: whats the default screen width of android devices ? I took a 320 x 460 image for my splash screen, it did not cover the entire screen ! regards

Re: [android-developers] Re: i want to control speed ellipsize=marquee

2010-02-10 Thread tauntz
There you go http://code.google.com/p/android/issues/detail?id=6567 On Wed, Feb 10, 2010 at 4:46 AM, taehun zzang taehun...@gmail.com wrote: Thank you so much.:) On Feb 10, 11:35 am, Romain Guy romain...@android.com wrote: This is not possible at the moment. On Tue, Feb 9, 2010 at 6:04 PM,

[android-developers] Re: EditText Bug?

2009-08-19 Thread tauntz
Smells like a bug to me. It's already in the issue tracker and you can vote for it there: http://code.google.com/p/android/issues/detail?id=2771 Tauno On Wed, Aug 19, 2009 at 3:05 PM, Chirag Patelchi...@gmail.com wrote: Yep that was one of the first things I tried. Doesn't seem to work, I

Re: [android-developers] Forcibly using 3G or CDMA network even though wi-fi is available.

2010-01-15 Thread tauntz
Apps that need to route all client-server communication through the operator infrastructure. One reason for this is that for example for client- server HTTP requests, the operator will add various parameters to the request (like subscriber ID/name/phone number/whatever) so our server side app will

Re: [android-developers] Receive Binary SMS on a specific port?

2010-03-18 Thread tauntz
Listen to android.intent.action.DATA_SMS_RECEIVED instead of android.provider.Telephony.SMS_RECEIVED. This will give you all data SMS messages. Now you have to parse the destination port out of the raw PDU to determine if the SMS was for the specific port that you are interested in (there's a