Re: [android-developers] Re: Application wake up

2010-05-11 Thread Timo Prill
Send binary SMS to the specific port on the phone, they won't be shown in the inbox.. (except the HTC Tattoo sometimes shows binary SMS in the inbox.. seems to be a device-specific bug) cheers Am 11.05.2010 15:36, schrieb SAM: Hi, Has anyone found any solution for Port directed SMS OR App d

[android-developers] Possible to call intent image gallery with scrolling to specific image?

2010-05-05 Thread Timo Prill
hi, is it possible to call the native image gallery intent and pass an image uri (or s.th. else identifying an image) as an intent's extra so that the gallery automatically scrolls to the specific image? or maybe something similar? cheers -- You received this message because you are subscri

Re: [android-developers] Re: APK files

2010-05-05 Thread Timo Prill
yes, just rename it to .zip and you can extract some informations e.g. images / sound... Am 05.05.2010 12:13, schrieb grace: hi, i don't think so we can extract information from a apk file. On May 5, 1:45 pm, Neilz wrote: Hi all. I just wondered, if someone has an application's APK

Re: [android-developers] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Timo Prill
just pass your context over to the utility class via getter/setter or in constructor... Am 04.05.2010 17:40, schrieb TreKing: On Tue, May 4, 2010 at 2:02 AM, Michael J > wrote: For example, I have an activity that uses a utility class. I would like to

[android-developers] Widget with scrollable list of items

2010-04-27 Thread Timo Prill
hi, i cannot find any example of a widget showing a scrollable list of items (e.g. text) since the widget api says there is no listview, no scrollview etc.. at all, how to implement a scrollable list inside a widget? for example a list like friends-stream from HTC shows or many other widgets

Re: [android-developers] How to show "Low Battery Alert", when the battery power reduces to 15%.

2010-04-26 Thread Timo Prill
register a broadcastreceiver from a service or activity like this: registerReceiver(myBatteryBroadcastReceiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); then in the receiver call: intent.getIntExtra("level",0); this will get you the current battery-charge Am 26.04.2010 11:49, schri

[android-developers] How to delete a RAW contact in android 2.x without having the Aggregation contact ID

2010-04-21 Thread Timo Prill
hi i am fighting against the 2.x contact api... my problem is, i only have the RAW_CONTACT_ID of a contact. i want to delete this raw contact programmatically. i tried the following (even in a row): this.cr.delete(ContactsContract.Contacts.CONTENT_URI, ContactsC

Re: [android-developers] updating a contact in 2.x Contacts API

2010-04-19 Thread Timo Prill
stupid-me! :) cheers timo Am 19.04.2010 16:01, schrieb Dmitri Plotnikov: What's the _id here? It should be the data row id, not the contact id. Also, you shouldn't specify the mime type in an update statement - it is not updatable. Cheers, Dmitri On Apr 19, 2010 2:44 AM, "Ti

[android-developers] updating a contact in 2.x Contacts API

2010-04-19 Thread Timo Prill
hi all, i got a problem updating a contact's details. i use the following code to update the contact name: "operations" is a ArrayList of ContentProviderOperation. operations.add(ContentProviderOperation.newUpdate( ContactsContract.Data.CONTENT_URI) .with

Re: [android-developers] Backporting an app to 1.5

2010-04-14 Thread Timo Prill
the dpi-specific folders were not available on 1.5. they were introduced in 1.6. you have to stick to the default-drawable-folder called "drawable" same goes for the layout-folder and other DPI-dependant folders... cheers timo Am 14.04.2010 16:50, schrieb Bob Lee: We initially built our app fo

Re: [android-developers] How to detect "blowing in to the microphone"?

2010-04-08 Thread Timo Prill
check AudioRecord. this should do what you need. http://developer.android.com/intl/de/reference/android/media/AudioRecord.html cheers Am 08.04.2010 10:04, schrieb Kakyoin: How to detect "blowing in to the microphone"? I saw an iPhone app which simulate flute instrument. You blow through the m

Re: [android-developers] setting button images in drawable/xml

2010-03-25 Thread timo prill
you should go "menu->Project->clean" and let eclipse clean your project. the android R files are then rebuilt so everything should be fine afterwards. cheers Wayne Wenthin schrieb: I'll toss out what works for me. The first thing I see is that I use ImageButton instead of just Button ht

Re: [android-developers] Re: Maximum character that we can send to SMS application.

2010-03-24 Thread timo prill
http://en.wikipedia.org/wiki/SMS [...] it was necessary to limit the length of the messages to 128 bytes (later improved to 140 bytes, or 160 7-bit characters), so that the messages could fit into the existing signaling formats[...] cheers Bob Kerns schrieb: It doesn't matter. The first S

Re: [android-developers] Re: Proper way of importing contacts to the device/contacts operations are very slow

2010-03-23 Thread timo prill
other operations) would take 1500sec = 25min. On 23 Mar, 11:55, timo prill wrote: hi, which SDK version are you using? 1.5? 1.6? 2.0? 2.1? there were some changes to the contact api from 1.6 to 2.0... and maybe give a short snippet of how you insert the contacts to the database. maybe you do some

Re: [android-developers] Proper way of importing contacts to the device/contacts operations are very slow

2010-03-23 Thread timo prill
hi, which SDK version are you using? 1.5? 1.6? 2.0? 2.1? there were some changes to the contact api from 1.6 to 2.0... and maybe give a short snippet of how you insert the contacts to the database. maybe you do some (wrong) very time-consuming database-queries or you just missed something, bec

Re: [android-developers] Developing a dictionary

2010-03-23 Thread timo prill
hi, best way is to use a database to store your data. have a look at this: http://developer.android.com/intl/fr/guide/topics/providers/content-providers.html#creating cheers. angushir...@googlemail.com schrieb: Dear all, I am currently learning to develop Android applications, and

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

2010-03-18 Thread timo prill
hey there, is it possible to receive a binary SMS on a specific port? i am currently receiving SMS via Action: "android.provider.Telephony.SMS_RECEIVED" from a BroadcastReceiver. But i have no luck with binary SMS. I only get notified for text messages. any suggestions? cheers timo -- You

[android-developers] Update a contact's company & title field in Android 1.6

2010-03-12 Thread timo prill
hello, i am trying to update an addressbook contact's company & title field in Android SDK 1.6. i am trying to update the company field like this: [...] values.put(Contacts.Organizations.COMPANY, organisation); values.put(Contacts.Organizations.TYPE, Contacts.Org