[android-developers] Re: How do you compile the bundled apps that comes with the Android source code

2008-10-28 Thread Andrew Stadler
Assuming you have downloaded the open source project and you can build it using the given instructions: 1. Make sure you're cd'd into the android/ directory 2. Type . build/envsetup.sh 3. Type lunch 1 4. Type mmm packages/apps/Email Exercise left to the reader as to what each of these

[android-developers] Re: Keeping a service alive?

2008-10-28 Thread hackbod
It's a huge huge waste of resources for you to have the system keep your app running forever to just have a timer go off every 5 minutes or more. Please use the alarm manager instead. On Oct 27, 10:24 pm, Eric B [EMAIL PROTECTED] wrote: I have created a service that runs a Timer and TimerTask.

[android-developers] Re: How to debug the source code using Eclipse

2008-10-28 Thread Andrew Stadler
[ Note, this mailing list is intended for app development, typically using the SDK. Questions about building or debugging the open source release may get better answers discussion in one of android-platform, android-framework, or android-porting. But since we're here ] There is an

[android-developers] G1 Bug: Google Imported Primary Phones

2008-10-28 Thread Anm
I just noticed that contacts imported from GMail do not include a default/primary flag on any of the associated phone numbers. This seems counter to the android framework, since when I input a phone number manually on the phone, a phone number is automatically flagged as the primary phone

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-28 Thread hackbod
Center pressing on the trackball is remapped to DPAD center if nobody handled it themselves. This is why you can long press on the trackball all over the UI to bring up the context menu. On Oct 27, 8:13 pm, s d [EMAIL PROTECTED] wrote: How do we bring up context menu when there is no D-Pad

[android-developers] Re: java.io.IOException: Couldn't open /data/data/com.basic.ui/cache_/data.xml (parser problem)

2008-10-28 Thread Wesley
hi, sorry for late reply... the code is :- SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); ServicesXMLParser parser = new ServicesXMLParser(con, this);

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-28 Thread s d
Thank you very much for your comment! My code was handling MotionEvent in onTrackballEvent(), which is why context menu never showed up. On Mon, Oct 27, 2008 at 11:19 PM, hackbod [EMAIL PROTECTED] wrote: Center pressing on the trackball is remapped to DPAD center if nobody handled it

[android-developers] Re: T-mobile G1 for testing purposes

2008-10-28 Thread whitemice
This could be FUD, as the G1 is reported to have “quad-band GSM plus dual-band UMTS, which means it will work abroad [i.e. outside US] as well“. It turns out that 3G standards are a bit complex: http://www.three-g.net/3g_standards.html Although I do use a T-Mobile Germany laptop PCMCIA 3G card

[android-developers] Re: Google maps not working on G1

2008-10-28 Thread nick fox
I have solved the problem. After going back and carefully re-reading the publish and signing docs, I realized I had made a big mistake. What I was doing wrong was I was using jarsigner on the .apk file that was being automatically built by eclipse. This is incorrect. Here is the correct way to

[android-developers] Re: Possible bug in Market? (about versionCode)

2008-10-28 Thread Peli
Have you used Project / Clean... in Eclipse before rebuilding your file? Sometimes changes in the Manifest are not updated properly. Peli On Oct 28, 9:50 am, Teo [EMAIL PROTECTED] wrote: No one has any idea what might be the problem? Currently users which will bump into this bug will render

[android-developers] Re: Google maps not working on G1

2008-10-28 Thread androlog
So you can save on FedEx to Mountain View now ;) ? Anyways this is very helpful info for those (like me) who are not familiar with Android for Eclipse. jarsigner refuses to sign already signed apk (that is in-fact .jar file). What I did before was compiling in debug mode (with debug key) then

[android-developers] Re: T-mobile G1 for testing purposes

2008-10-28 Thread Ale
Hi Hong, how can I unlock it in US? And what about You can buy a G1 here..., do you refer to the 399$ G1? I've been told they don't sell it in T-Mobile stores. Anyway, if it si unlocked either the 3G and the EDGE will work On Oct 27, 8:10 pm, Hong [EMAIL PROTECTED] wrote: You can buy a G1

[android-developers] Re: Implementing a custom Suggestions Provider

2008-10-28 Thread skink
On 26 Paź, 23:41, shotwave [EMAIL PROTECTED] wrote: Hi, I am trying to implemente a customsuggestionproviderwhich will allow to promt user in selecting email addresses. Unfortunately no matter what I do I keep getting the '10-26 22:22:02.871: WARN/SearchDialog(565): Suggestions cursor

[android-developers] Re: Implementing a custom Suggestions Provider

2008-10-28 Thread skink
On 28 Paź, 11:15, skink [EMAIL PROTECTED] wrote: On 26 Paź, 23:41, shotwave [EMAIL PROTECTED] wrote: Hi, I am trying to implemente a customsuggestionproviderwhich will allow to promt user in selecting email addresses. Unfortunately no matter what I do I keep getting the '10-26

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

2008-10-28 Thread Rahul
I am Begginer for the Android and I want to Go from One Screen to Another Screen But i dont undestand How it is possible plz give me a code for that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[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
Yes, you are correct. (You can also create your own class that implements OnTabChangeListener like this: public class TabChangeListener implements OnTabChangeListener { public void onTabChanged(String tabID) { // XXX do something } } and then use it:

[android-developers] ContentProvider chaining

2008-10-28 Thread denismo
Hi, is there a way to implement content provider chaining? I need something that works like this: - I install a provider which has similar scheme/paths as a known provider - when invoked, I perform some pre-processing - then invoke an old provider - do some post-processing - return results

[android-developers] access to getprop from Java?

2008-10-28 Thread Ray Bellis
Is there any way to access the system properties (as listed by getprop) from within Java on Android? thanks, Ray --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[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: How can I specify message body part in SMS intent?

2008-10-28 Thread HTP
I'm looking for the same thing, but I just want to start the built-in SMS application with a forwarded destionation number. How do I do that? //HTP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: AlertDialog Question

2008-10-28 Thread alan
you need to use AndroidPhoneDialer.this On Oct 27, 10:44 pm, disappearedng [EMAIL PROTECTED] wrote: I have tried using this and it didn't work for me. Could you give me an example in my context? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Updating Imageviews During functions

2008-10-28 Thread Mark Hansen
Some more info: I declared a handler in my class: private Handler mHandler = new Handler(); Then added my runnable private Runnable mUpdateTimeTask = new Runnable() { public void run() { updateDisplay.sendEmptyMessage(0); }

[android-developers] Re: give-up screen (going to sleep)

2008-10-28 Thread Brian
I see... I guess more specifically.. if I use Thread.sleep(100); will the thread wake up 1000 seconds later if the phone is asleep? or must I use the AlarmManager to do something like this? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?

2008-10-28 Thread Thao
Hello all, I'm new to android development. I hope I could find some answer regarding sdcard. I'm trying to access a custom SQlite db file from my emulated SDCARD. The same db file can be access from the application databases folder but not from sdcard. In debug mode I have an

[android-developers] Somehow get RandomAccessFile from getAsset

2008-10-28 Thread Patrick
I am trying to get a RandomAccessFile from either Resources.openRawResource() or getAsset(). I cannot find a direct way to get one. I have been focused on this task for the last few hours and have found nothing of use. Does anyone know how I can somehow get a RandomAccessFile from getAsset()?

[android-developers] How to format data within Cursor before displaying to screen?

2008-10-28 Thread [EMAIL PROTECTED]
Hello, I am working on an application that involves displaying dates from my database. I have the dates formatted within my database using the ISO8601 format: -MM-dd'T'HH:mm:ss.SSS. I run my query which returns a cursor. I then map the DATE field within the cursor to my TextView. My issue

[android-developers] how to read the trace file

2008-10-28 Thread ly niu
Hi all: Now I create a trace file by emulator -trace xxx, but I don't know how to read it. Could you help me? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: mime handler with inline content disposition

2008-10-28 Thread B - Team
I am stuck with the same problem: Starting up my application when a specific mime has been downloaded. Did you manage to get it work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Issue with installing ADT for Eclipse Ganymede 3.4

2008-10-28 Thread Rich
I'm getting this error now. Also using Ubuntu, Sun-Java-6. Ever solve this, Frantz? =/ On Oct 5, 5:23 pm, Fräntz Miccoli [EMAIL PROTECTED] wrote: Nobody has an idea ? On 4 oct, 14:42, Fräntz Miccoli [EMAIL PROTECTED] wrote: Yeah, i've realized after post that the problem wasn't the same.

[android-developers] Button press (vs. release) callback?

2008-10-28 Thread Eric
I'm using setOnClickListener() for my buttons, but I also need a way to get a method called when the button is first pressed (touched), in addition to on release. Is there any easy way to do that? I didn't see anything obvious in the API docs, so I went digging through the source code, and it

[android-developers] Re: Is BrowserCallback missing in my SDK or does it not exist?

2008-10-28 Thread klobag
WebViewClient is the new interface which replaced the old BrowserCallback. If you attach a WebViewClient to your WebView and make sure to { return false; } for shouldOverrideUrlLoading. The url will be loaded in your WebView instead of the platform choice, Browser. On Oct 24, 1:01 pm, Obormot

[android-developers] Re: Sending DTMF

2008-10-28 Thread Adrian A
Then what is the point of this class? On Oct 6, 9:46 pm, j [EMAIL PROTECTED] wrote: I assume you are trying to generate tones for uplink audio path. TheToneGeneratorAPI states that: This API is not for generating tones over the uplink audio path.

[android-developers] First Run Method

2008-10-28 Thread Frew
I am trying to have the typical first run message that prompts the user to accept a contract and then I want it to populate my database with some initial values. I was thinking about adding a table to the database, setting a single value to zero in that table, and then when the user clicks 'ok'

[android-developers] Problem with the onUpdate method of an SQLiteOpenHelper

2008-10-28 Thread Frew
Ok, so everything that I've been doing with my db has been fine until I changed it. I made sure that the onUpgrade was right and I get errors nonetheless. Here is my method: @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

[android-developers] Invoking the web browser from my app

2008-10-28 Thread lopan
How can I invoke the web browser from my app? For example, when i click an item in my ListView I want to open a web browser with a specific URL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Help with cross compile of Android for G1 and flashing the image

2008-10-28 Thread Jacques
Android Developers, I am looking for any help I can get regarding flashing my G1 with new firmware. I don't trust factory firmware on any device. I would like to check out Android and the Linux kernel from git, cross compile them, and then flash a new image to the G1. I have had no

[android-developers] Re: Updating Imageviews During functions

2008-10-28 Thread Mark Hansen
Opps.. I start the Runnable with the following: mHandler.post(mUpdateTimeTask); forgot to add that.. On Oct 28, 10:12 am, Mark Hansen [EMAIL PROTECTED] wrote: Some more info: I declared a handler in my class: private Handler mHandler = new Handler(); Then added my runnable private

[android-developers] Issue accessing DB from SDCARD

2008-10-28 Thread Thao
Hi all. I'm new to android development. I'm trying to access a sqlite3 custom DB from SDcard emulation. When opening the database with SQLiteDatabase.openDatabase(/sdcard/ MyDB.db, null, SQLiteDatabase.OPEN_READONLY) I got : android.database.sqlite.SQLiteDiskIOException: disk I/O error. Is

[android-developers] Userspace Hardware Abstraction layer

2008-10-28 Thread Pivotian
I got to know that android is using a userspace HAL to avoid GPL complications with linux kernel. Can any one give more brief understanding on it? So if you want to port android to a specific hardware do we need to make any changes in this userspace HAL? if yes what are the changes we have to

[android-developers] New site offering free android apps

2008-10-28 Thread Tip
check out http://www.androidapps.org/ for free app downloads. pretty nice selection of apps.. --~--~-~--~~~---~--~~ 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] g1phone

2008-10-28 Thread [EMAIL PROTECTED]
why cant i put my music and pics on the new g1 phone it wont let me do anything are there drivers yhat i need to down load? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: How can I specify message body part in SMS intent?

2008-10-28 Thread sori
You can try this for destination number only: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(sms:1234567890)); startActivity(i); On Oct 28, 6:04 am, HTP [EMAIL PROTECTED] wrote: I'm looking for the same thing, but I just want to start the built-inSMSapplication with a forwarded

[android-developers] Re: Keeping a service alive?

2008-10-28 Thread Eric B
Perfect, that's what I was looking for. Thanks for your help. --~--~-~--~~~---~--~~ 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

[android-developers] Re: g1phone

2008-10-28 Thread Timbobsteve
This post does not belong here. It should be in [android-beginners] please do not post requests for non-development help in this forum. [EMAIL PROTECTED] wrote: why cant i put my music and pics on the new g1 phone it wont let me do anything are there drivers yhat i need to down load?

[android-developers] Re: Invoking the web browser from my app

2008-10-28 Thread Frew
On Oct 28, 2:20 am, lopan [EMAIL PROTECTED] wrote: How can I invoke the web browser from my app? For example, when i click an item in my ListView I want to open a web browser with a specific URL. I don't have my code handy because I'm at work, but you do it with the VIEW intent. Look up

[android-developers] Re: Updating Imageviews During functions

2008-10-28 Thread Mike Reed
ImageView, like all subclass of View, cannot be called from any thread other than the UI thread. That said, what is the update you are try to do? On Oct 28, 2008, at 10:24 AM, Mark Hansen wrote: Opps.. I start the Runnable with the following: mHandler.post(mUpdateTimeTask); forgot to add

[android-developers] Re: Issue accessing DB from SDCARD

2008-10-28 Thread Ludwig
Do you actually have an SD card in the emulator? (By default there is no SDcard in the emulator. You first need to create an SDcard with mksdcard.exe (in tools), then mount it when starting the emulator (with -sdcard mysdcard.iso or something similar in the emulator options). If this might be it,

[android-developers] Re: Userspace Hardware Abstraction layer

2008-10-28 Thread Andrew Stadler
This list [android-developers] is intended primarily for app developers (users of the SDK). You'll probably find more help and better answers for your question on the [android-porting] mailing list. Details here: http://source.android.com/discuss

[android-developers] Re: First Run Method

2008-10-28 Thread Ludwig
One option is do to it in preferences. I have something where if the application is started the first time, it offers to show the help screen first for some explanations. The user can then opt out of seeing the help screen first, but can, by editing the settings, can turn it back on to get the

[android-developers] Re: How to format data within Cursor before displaying to screen?

2008-10-28 Thread Anm
A SimpleAdapter is too simple for your case. Try creating a new class that overrides the CursorAdapter, which gives you two methods: newView(..) and bindView(..). You can still use your XML based layout inside newView(..) using the LayoutInflater and findById(..): @Override

[android-developers] Re: First Run Method

2008-10-28 Thread Andrew Stadler
A lighter-weight solution might be to simply write out a little first.run.has.happened file, and check for it on subsequent launches. For most purposes (e.g. show the welcome page once) the file could be empty, and a simple existence check is sufficient. If you need something more strict, you

[android-developers] Re: Copying an area from a drawable

2008-10-28 Thread Mike Reed
The way to copy a drawable into a bitmap is to draw it there. void draw(Drawable dr, Bitmap bm, int left, int top) { Canvas c = new Canvas(bm); c.translate(-left, -top); dr.draw(canvas); } void loop() { Drawable dr = // your master drawable dr.setBounds(0, 0, 320, 320);

[android-developers] Re: Button press (vs. release) callback?

2008-10-28 Thread Romain Guy
You can simply use an OnTouchListener and listen for MotionEvent.ACTION_DOWN touch events. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-28 Thread g1ster
Guys, I still don't understand how the trackball wakes up the programs after a restart. I have re-mapped ALL the key events, for example: KEYCODE_DPAD_UP to KEYCODE_I (because I dont want to use the DPAD or the trackball). But I still need to first hit the track ball before I could use the new

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-28 Thread Romain Guy
This is because you are launching the application witht he touch screen. Try launching it with trackball instead. The reason is that in touch mode focus does not exist so a key press is required to bring focus back. In the particular case of games, you can make the game's view

[android-developers] Re: Issue accessing DB from SDCARD

2008-10-28 Thread Thao
Hi Ludwig, Unfortunately, I have ran the emulator with -sdcard option. I can browse the sdcard content via the DDMS perspective with eclipse. What I also notice is that if I try to create some folder (via the code) on the SDCARD it fails. Whereas trying to create folder with the same code in

[android-developers] Re: Updating Imageviews During functions

2008-10-28 Thread Mark Hansen
Imagine a clock made up of ImageViews so I have custom images for each digit. I want to be able to update it from within the activity. On Oct 28, 11:01 am, Mike Reed [EMAIL PROTECTED] wrote: ImageView, like all subclass of View, cannot be called from any thread   other than the UI thread.

[android-developers] Available space in device?

2008-10-28 Thread Iroid
Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Invoking the web browser from my app

2008-10-28 Thread Peli
Or consult the table of intents at OpenIntents: Quoted from: http://www.openintents.org/en/node/118 To open a web site use: Intent i = new Intent(Intent.ACTION_VIEW); Uri u = Uri.parse(http://www.openintents.org;); i.setData(u); startActivity(i); Peli www.openintents.org On Oct 28, 3:56 pm,

[android-developers] Re: Available space in device?

2008-10-28 Thread Romain Guy
Use android.os.StatFs. On Tue, Oct 28, 2008 at 9:27 AM, Iroid [EMAIL PROTECTED] wrote: Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! Thanks -- Romain Guy www.curious-creature.org

[android-developers] Download Count Reset on App Upgrade in Android Market

2008-10-28 Thread Ajay
I saw the warning when we upgraded our app about the reviews and ratings being temporarily reset when you do an upgrade. Can someone at Android comment on how long it will be before a fix is pushed that will merge the old comments and ratings with the new ones? Also, the download count was

[android-developers] Re: Button press (vs. release) callback?

2008-10-28 Thread Eric
I asked about handling button press (vs. release), and Romain Guy wrote: You can simply use an OnTouchListener and listen for MotionEvent.ACTION_DOWN touch events. That was the first thing I tried, but it has two problems: 1) The button doesn't behave normally if you do that. For example,

[android-developers] Re: g1 keyboard missing up/down/left/right keys?

2008-10-28 Thread g1ster
Thanks Romain! After issuing setFocusableInTouchMode(true), it worked perfectly! --~--~-~--~~~---~--~~ 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] Re: Possible bug in Market? (about versionCode)

2008-10-28 Thread Teo
Wow, that did the trick :) Thanks! On Tue, Oct 28, 2008 at 11:13 AM, Peli [EMAIL PROTECTED] wrote: Have you used Project / Clean... in Eclipse before rebuilding your file? Sometimes changes in the Manifest are not updated properly. Peli On Oct 28, 9:50 am, Teo [EMAIL PROTECTED] wrote:

[android-developers] Re: Button press (vs. release) callback?

2008-10-28 Thread Romain Guy
If the button doesn't behave normally you probably returned true from your touch listener. Which you should not do in this case :) On Tue, Oct 28, 2008 at 9:44 AM, Eric [EMAIL PROTECTED] wrote: I asked about handling button press (vs. release), and Romain Guy wrote: You can simply use an

[android-developers] Re: Button press (vs. release) callback?

2008-10-28 Thread Eric
Romain Guy wrote: If the button doesn't behave normally you probably returned true from your touch listener. Which you should not do in this case :) I thought I'd tried both, but you're right, returning false does make the highlight work. I'm not sure that all the button behavior is correct,

[android-developers] Taking Camera Pictures in app

2008-10-28 Thread Alvin Yates
Still trying to figure this out, but not getting anywhere on it. Does taking a picture using the camera only require creating the Camera.PictureCallback for onPictureTaken() and passing it into Camera.takePicture() as an input? Or do you have to stop the preview, lock the canvas, and

[android-developers] Re: Button press (vs. release) callback?

2008-10-28 Thread zl25drexel
try this http://bend-ing.blogspot.com/2008/10/android-how-to-implement-custom-button.html it's not exactly a callback, but you can put your logics in the onDraw() method. On Oct 28, 4:59 am, Eric [EMAIL PROTECTED] wrote: I'm using setOnClickListener() for my buttons, but I also need a way to

[android-developers] Can I use my PC's serial port to communicate with my bluetooth reference board

2008-10-28 Thread Jinjun Li
I am running emulator on Ubuntu8.04 virtual machine on top of Windows XP. Is there any way that I can use PC's serial port as emulator's UART to communicate with an external bluetooth reference board? Thanks, Jinjun --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Available space in device?

2008-10-28 Thread Jean-Baptiste Queru
android.os.StatFs JBQ On Tue, Oct 28, 2008 at 9:27 AM, Iroid [EMAIL PROTECTED] wrote: Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! Thanks

[android-developers] Screen Only Numeric Input

2008-10-28 Thread Matthias
I'm wandering through the interwebs and the discussion boards looking for a way to input numeric text only without having to flip open the keyboard. I've fumbled my way across several options, including the NumberKeyListener, the DigitsKeyListener and the DialerKeyListener. These are all helpful

[android-developers] Re: Available space in device?

2008-10-28 Thread Mike Lockwood
You could use the StatFs class (see frameworks/base/core/java/android/os/StatFs.java) to figure out the space available in a file system. You would need to call this for each file system you are interested in. I would suggest using android.os.Environment.getDataDirectory() to get the path to the

[android-developers] Re: give-up screen (going to sleep)

2008-10-28 Thread Jean-Baptiste Queru
This describes the various clocks and their behaviors: http://code.google.com/android/reference/android/os/SystemClock.html AlarmManager is what you're looking for. JBQ On Tue, Oct 28, 2008 at 7:15 AM, Brian [EMAIL PROTECTED] wrote: I see... I guess more specifically.. if I use

[android-developers] Re: give-up screen (going to sleep)

2008-10-28 Thread hackbod
No, there is no guarantee about that. As I said, use the Alarm Manager. Plus it is big waste of resources to have a thread sitting there doing nothing. If you want to want for minutes or more of time, schedule an alarm to wake you up (possibly relaunching your app if it needed to be killed for

[android-developers] Re: keytool usage different, can't generate debug MD5 fingerprint

2008-10-28 Thread Brian
Thanks for your reply. I keep getting 'Usage error, and is not a legal command'. I've looked at my command several times and don't see anything wrong. Here it is: C:\Program Files\Java\jdk1.6.0_07\binkeytool -list -alias androiddebugkey -keystore C:\Documents and Settings\...me...\Local

[android-developers] Audio recorder format

2008-10-28 Thread april
In AudioEncorder class (http://code.google.com/android/reference/ android/media/MediaRecorder.AudioEncoder.html#DEFAULT) there are 2 attribute, DEFAULT and AMR_NB. What is DEFAULT? What is the bandwidth for DEFAULT and AMR_NB? Thanks! April --~--~-~--~~~---~--~~

[android-developers] Re: How fast is the T-Mobile G1?

2008-10-28 Thread PorkChop
My emulator gives a result of 543.94 bogomips, better be careful coding games otherwise they are going to end up sucking on the actual device! On 27 Oct, 18:05, shyamal [EMAIL PROTECTED] wrote: I didn't get a command line on the phone. The phone is hooked in via the USB cable to my

[android-developers] Re: Button press (vs. release) callback?

2008-10-28 Thread Eric
I wrote: Digging through the source suggests that if you use setOnTouchListener(), then dispatchTouchEvent() in the view won't call onTouchEvent(). Looking at it more carefully reveals that I was mistaken, and that if the onTouchListener returns false, onTouchEvent() is invoked. I'm very

[android-developers] Re: Copying an area from a drawable

2008-10-28 Thread PorkChop
Thanks Mike, what I ended up with yesterday looks a lot like your code (sourceImage is a Drawable object, the grid of images): int w=32, h=32; // target size of images int width = sourceImage.getIntrinsicWidth(); int height =

[android-developers] Re: eclipse debug keystore and google maps api key problem

2008-10-28 Thread Justin (Google Employee)
I'm a bit unclear on whta works and what doesn't. The application works in the emulator and you see tiles or not? When you load the application on your phone, are you exporting the unsigned APK and then signing with jarsigner and then using 'adb install'? Cheers, Justin Android Team @ Google

[android-developers] Application install unsuccessful after signing

2008-10-28 Thread Danny
I can not install my application after signing my application when I try to download from my server. I keep getting the error Application install unsuccessful after signing when I try to install it. It was working before I signed it. I am not sure what I am doing wrong. I have added the MIME type

[android-developers] Re: Problems with file permissions on actual G1 platform

2008-10-28 Thread Justin (Google Employee)
Jeff, I checked out the code from the project, and there's an error on line 179 of android.androidVNC.VncCanvas.java. I'd suggest using Bitmap.Config.RGB_565 for the third argument. Once I fixed this I was able to build the project and install fine. My guess would be that the install was failing

[android-developers] Re: Available space in device?

2008-10-28 Thread Peli
Did anyone mention android.os.StatFs already? :-) Peli On Oct 28, 5:27 pm, Iroid [EMAIL PROTECTED] wrote: Hello Everyone, How can I find the available space in the device? I could not find any API for the same :( I would appreciate your help !! Thanks

[android-developers] Launch Voice Dial From Bluetooth Headset Button

2008-10-28 Thread RAMGarden
How easy would it be to write an application for Android that would listen for the bluetooth headset's button press and then launch the same voice dial application that is launched from a long press on the green send button? What's the bluetooth API look like and is there an option to even

[android-developers] Re: Issue accessing DB from SDCARD

2008-10-28 Thread Ludwig
I do not think there is any permission required to write to the SDcard, if it is there.This works for me: File sdcard = Environment.getExternalStorageDirectory(); File destination = new File(sdcard, mydir); if (destination.mkdir()){ Log.e(TAG, made directory); } else { Log.e(TAG, could not

[android-developers] Re: T-mobile G1 for testing purposes

2008-10-28 Thread Hong
I bought one in my local cell phone store for $450. i'm a t-mobile customer so i can unlock the device free of charge. :) On Tue, Oct 28, 2008 at 6:10 AM, Ale [EMAIL PROTECTED] wrote: Hi Hong, how can I unlock it in US? And what about You can buy a G1 here..., do you refer to the 399$

[android-developers] Re: keytool usage different, can't generate debug MD5 fingerprint - resolved

2008-10-28 Thread Brian
I added double-quotes around the path to the keystore and got it to work. On Oct 28, 1:32 pm, Brian [EMAIL PROTECTED] wrote: Thanks for your reply. I keep getting 'Usage error, and is not a legal command'. I've looked at my command several times and don't see anything wrong. Here it is:

[android-developers] Re: Listview click event with button

2008-10-28 Thread flix
I had the same problem. A simple button.setFocusable(false) solved the problem for me. On 16 Okt., 20:03, goldfish [EMAIL PROTECTED] wrote: Hello, I have a custom listview contol that performs on click event handling when a user clicks a list item. When I add a button to each listview item

[android-developers] Re: Issue accessing DB from SDCARD

2008-10-28 Thread Thao
Thank for the folder creation code. It would be helpfull for me later. Since there are much more sample codes done with the former sdk, I usually use those that does'nt work the the last sdk. I'm providing the following with sdcard option : -sdcard E:\_sources\android\filesytem\mySDCard.iso

[android-developers] Re: Issue accessing DB from SDCARD

2008-10-28 Thread Mike Lockwood
That won't work if mySDCard.iso is an ISO (CD-ROM) file system. The image file needs to be FAT16 or FAT32 format. Mike On Tue, Oct 28, 2008 at 12:07 PM, Thao [EMAIL PROTECTED] wrote: Thank for the folder creation code. It would be helpfull for me later. Since there are much more sample

[android-developers] Re: Issue accessing DB from SDCARD

2008-10-28 Thread Ludwig
Maybe it is a typo: you say 'filesytem' -- should it be filesystem? 2008/10/28 Mike Lockwood [EMAIL PROTECTED] That won't work if mySDCard.iso is an ISO (CD-ROM) file system. The image file needs to be FAT16 or FAT32 format. Mike On Tue, Oct 28, 2008 at 12:07 PM, Thao [EMAIL PROTECTED]

[android-developers] ArrayAdapter

2008-10-28 Thread Emery
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 while asynchronously updating the ListView displaying them. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Application install unsuccessful after signing

2008-10-28 Thread Danny
Looks like I had the old key that the debugger had in there so the new key was not working. I went ahead and set it back to factory default. Any way to remove the old key without doing this? On Oct 28, 11:22 am, Danny [EMAIL PROTECTED] wrote: I can not install my application after signing my

[android-developers] Re: How fast is the T-Mobile G1?

2008-10-28 Thread Hong
my G1 output: $ cat /proc/cpuinfo Processor : ARMv6-compatible processor rev 2 (v6l) BogoMIPS: 383.38 Features: swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 6TEJ CPU variant : 0x1 CPU part: 0xb36 CPU revision: 2 Cache type

[android-developers] first Map app getting stopped unexpectedly error - how to get more info?

2008-10-28 Thread Brian
I finally got my Map APIKey and added it to the MapView properties in the layout xml I've added the uses-library android:name=com.google.android.maps / to the manifest xml. I'm developing with Eclipse/ADT and from the Signing and Publishing reference doc, I think I've got the basic setup for

[android-developers] Design decision on Local Service versus Remote Service

2008-10-28 Thread j
I understand that local service runs in the same process as the app and remote service runs in a separate process as the app. Also, Remote service requires IPC to communicate with client. But can someone give me concrete examples of when local service service should be used (and remote

[android-developers] attempting to insert a contact

2008-10-28 Thread RPO
I've looked at the other code fragments in this forum, and at the sample code in the Accessing Content Providers document, but I'm still having problems. The following code fragment dies with an IOException at uri = getContentResolver().insert(Contacts.People.CONTENT_URI, contact); Can

[android-developers] AssetManager asset file path inconsistency

2008-10-28 Thread Patrick
I've found an inconsistency with the AssetManager. I have a file in my package with the path assets/models/cube.xml. Succeeds without FileNotFoundException: getAssets().open(models/cube.xml) getAssets().openXmlResourceParser(assets/models/cube.xml) Notice above that the second call requires the

[android-developers] Re: How fast is the T-Mobile G1?

2008-10-28 Thread PorkChop
So that's odd...different results. Does anyone know how the bogomips are calculated? On Oct 28, 7:31 pm, Hong [EMAIL PROTECTED] wrote: my G1 output: $ cat /proc/cpuinfo Processor       : ARMv6-compatible processor rev 2 (v6l) BogoMIPS        : 383.38 Features        : swp half thumb

  1   2   >