[android-developers] Re: Location for common/shared libraries?

2008-10-14 Thread Stoyan Damov
Thanks. It's a shame though - Android is built around reusability - services, content providers, etc. The thing with services is that you're at the grace of the service developer - if he exposed features X and Y from the library, but not Z you're out of luck :( Cheers On Tue, Oct 14, 2008 at

[android-developers] Re: Location for common/shared libraries?

2008-10-14 Thread Stoyan Damov
That's OK but I'd expect (maybe we should do something about it) that there would be a public repository of reusable code, very much like ruby gems, and a way for your Android app to state its dependencies, and then at installation time the dependencies are either satisfied by preinstalled

[android-developers] Re: Replacing Dialer, IM, and SMS Apps

2008-10-14 Thread hackbod
If you were to ship your own device, you could either pre-configure the settings to already have that as the default, or simply build your own version of the OS with your own contacts app (once the source is released). On Oct 13, 4:19 pm, Rohit Mordani [EMAIL PROTECTED] wrote: What I meant is -

[android-developers] Re: Sticky Broadcasts and Concurrency

2008-10-14 Thread hackbod
Er... there is NO reason to use sticky broadcasts for communication within your own app. In fact, I'll go farther and say you just should not do this. Sticky broadcasts are GLOBAL to the system. And because of this, performing a sticky broadcast is multiple orders of magnitude slower than

[android-developers] Android Market - How to Submit?

2008-10-14 Thread Mike Greiner
Is there any information available on how we can submit applications to the Android Market ahead of the T-Mobile G1 release? I've searched this forum and the rest of the web and there's not much information beyond Google's August 28 blog post. Thanks, Mike

[android-developers] How to get Android local IP(192.168.1.18)? not 127.0.0.1..

2008-10-14 Thread MRK
How to get Android local IP(192.168.1.18)? not 127.0.0.1.. String myIP = java.net.InetAddress.getLocalHost().getHostAddress(); return my System local IP as 192.168.1.18 it's working in java - static method but... Like that i coundn't get in Android application. It return as 127.0.0.1 I have

[android-developers] Re: Android on iPhone

2008-10-14 Thread Kennedy
Actually, nvm. the previous site i link is invalid. please discard. but here it is. sorry! http://www.engadget.com/2008/10/13/windows-mobile-ported-to-iphone-we-think/ On Sep 28, 3:09 pm, Pulkit Arora [EMAIL PROTECTED] wrote: A recent post on engadget (http://www.engadgetmobile.com/2008/09/25/

[android-developers] Re: Android on iPhone

2008-10-14 Thread Kennedy
It is very possible actually. dual booting on the iphone has already happened with Windows Mobile. check out the site! http://lifehacker.com/software/hack-attack/turn-your-windows-mobile-phone-into-an-iphone-269055.php I am actually going to try this but i dont know the SDK for the android. to

[android-developers] Delete sms from inbox

2008-10-14 Thread e
plz help me out.. i use for delete sms from in inbox i use: Cursor c = context.getContentResolver().query(Uri.parse(content:// sms/inbox), null,null, null, null); Log.d(TAG, Read + Integer.toString(c.getCount()) + SMS messages from content ( +

[android-developers] Dalvik virtual machine specifiation

2008-10-14 Thread wiki
Are there any official documentaion available for the Dalvik Virtual Machine? --~--~-~--~~~---~--~~ 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: Developing a 2D game on Android

2008-10-14 Thread kristianlm
hi! i'm just a little confused - is the SurfaceView with opengl/egl attached not OpenGl all the way? You are saying this is somewhere in between opengl and android's canvas stuff? is there a way to use opengl directly, without SurfaceView, that would make it all faster? if so, please let me

[android-developers] Re: New Animation Interpolators

2008-10-14 Thread Zach Hobbs
Nice!! -- Zach Hobbs HelloAndroid.com Android OS news, tutorials, downloads On Tuesday 14 October 2008 8:30:28 am skink wrote: hi, just implemented several animation interpolators: Back, Bounce, Circ, Cubic, Elastic, Expo, Quad, Quart, Quint Sine sources with small visualisation

[android-developers] Re: New Animation Interpolators

2008-10-14 Thread skink
On 14 Paź, 14:21, Zach Hobbs [EMAIL PROTECTED] wrote: Nice!! thanks Zach, just uploaded new version with slighly updated ui - now plot appears just after selecting interpolator ;) skink --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Saving a Serialized Object

2008-10-14 Thread chris
Hi Quick(for you) and dirty way : Encode your serialized object in base64 and save it in a text field of your database... Chris On Oct 13, 8:33 pm, aclelland [EMAIL PROTECTED] wrote: Hello, I've been asked to save a Serialized Object to the sqllite database so it can be loaded next time

[android-developers] Clearing Touch Mode?

2008-10-14 Thread Mark Hansen
Is there a way in code to switch an application from Touch Mode to Keyboard mode, or is this handled only via pressed on the screen or keyboard? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Clearing Touch Mode?

2008-10-14 Thread Romain Guy
Only via pressing the screen/keyboard. Do *not* interfere with this mechanism. On Tue, Oct 14, 2008 at 7:28 AM, Mark Hansen [EMAIL PROTECTED] wrote: Is there a way in code to switch an application from Touch Mode to Keyboard mode, or is this handled only via pressed on the screen or

[android-developers] Re: Web-view is not loading external URLs

2008-10-14 Thread schmielson
Hey Tahir, In order for your application to access the web (ex. via a WebView), you'll need to add the Uses Permission Internet. You can add this in the AndroidManifest.xml editor. Best, Dave On Oct 13, 8:06 am, Tahir Akhtar [EMAIL PROTECTED] wrote: I am just starting with Android. I was

[android-developers] Re: ListView Issue in Notepad Application

2008-10-14 Thread JavaAndroid
Hi All, I could trouble shoot my issue. I could insert a new record and delete an existing one..But while editing and updating i m getting rowId as 0. it simply displays 0 for all records... i feel we are setting the rowId to intent in this method.. protected void onListItemClick(ListView l,

[android-developers] Re: Is Theme.Light supported in 1.0?

2008-10-14 Thread hackbod
What do you mean by making a list transparent? I am pretty sure lists -are- transparent. Anyway, the basic theme attributes are listed here: http://code.google.com/android/reference/android/R.styleable.html#Theme On Oct 14, 6:48 am, qvark [EMAIL PROTECTED] wrote: Hi hackbod, thanks for your

[android-developers] Logging URL typed in the browser

2008-10-14 Thread Paolo^
Hi, I'm trying to develop an application that registers URLs typed in the browser, how can I accomplish this? Launching a Service and then? Thanks, Paolo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] prepareAsync called in state 1 error

2008-10-14 Thread Dmitriy
Hi! When creating MediaPlayer with the following code: mp = MediaPlayer.create(context, resID); mp.setOnCompletionListener(this); and calling mp.start(), inside onCompletion (after playback is done) i try to reinit mp in this way: mp.reset(); mp.prepare(); But always got an exception at line

[android-developers] prepareAsync called in state 1 error

2008-10-14 Thread Dmitriy
Hi! I have the following problem when using MediaPlayer with raw resource. mp created like this: mp = MediaPlayer.create(context, resID); mpsetOnCompletionListener(this); When onCompletion is called after mp.start() i do the following code (like the documentation says) public void

[android-developers] Re: How to get Android local IP(192.168.1.18)? not 127.0.0.1..

2008-10-14 Thread shailesh prakash
Hello MRK, I was also trying a lot with Android but not able to find a way. then I implement a listener using java on my desktop. You can try it for time being if you develop some concrete Android application please share to community see :

[android-developers] Help: why can't I use com.google.api.translate in my Android application

2008-10-14 Thread redmapleleaf
Hi all, I wish to use the package com.google.api.translate to write an android translator application. However, I tried all day yesterday and nothing is working. Although I got no error warning, I am not getting anything back from the translator. Do you know if there is something fundamentally

[android-developers] Logging URL typed in the browser

2008-10-14 Thread Paolo Dastoli
Hi, I'm trying to develop an application that registers URLs typed in the browser, how can I accomplish this? Launching a Service and then? Thanks, Paolo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to get Android local IP(192.168.1.18)? not 127.0.0.1..

2008-10-14 Thread shailesh prakash
The code is for local machine not for the Android emulator, it will simpley tunnel the response of 8080 to 6565 so that an Android application can use it with user permission INTERNET. On 10/14/08, for android [EMAIL PROTECTED] wrote: use -- 10.0.2.2 u can hard code it.127.0.0.1..will point to

[android-developers] Re: baffling alert dialog listener behavior: how come local variables dont keep their data

2008-10-14 Thread Romain Guy
//show ad.show(); When you call show(), the dialog is scheduled for display, but the UI thread keeps running which means... //How come the following is null ??? //when it shoudl be hello on a button click return pl.prompt; That this line of code executes right after show()

[android-developers] Re: write_sms and send_sms permissions

2008-10-14 Thread Xolotl Loki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Why does Android need to have 2 distinct permissions? write_sms This permission allows you to write to the SMS *provider*, so you can store and delete messages from your phone. It has nothing to do with sending messages. and send_sms This

[android-developers] Re: baffling alert dialog listener behavior: how come local variables dont keep their data

2008-10-14 Thread Xolotl Loki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 However, is there a way to block show()? No. is the behavior of showDialog(id) the same as well? or is that a blocking call? showDialog(id) is not blocking. The more important question, though, is this: why do you want blocking semantics

[android-developers] Re: Writing file to a shared directory on Android

2008-10-14 Thread Ludwig
I think another solution is to run the three applications under the same userId. (see http://code.google.com/android/devel/security.html#userid)http://code.google.com/android/devel/security.html#userid The advantage is that you are then creating files that are shared only by your applications.

[android-developers] CheckedTextView default setting does not work?

2008-10-14 Thread elephantbug
Hi, Group, I am using CheckedTextView to keep track the list of settings. But I failed to find a way to save the previous settings. No matter how I toggle or setChecked(true) for the CheckedTextView, the view is always displayed as unchecked the very first time. I also tried to toggle or

[android-developers] start SMS activity on the same way as making a call via intents

2008-10-14 Thread HTP
Hi! With the following code I can make a call to a specific number with Androids built-in Phone application: Intent i = new Intent(android.intent.action.CALL, Uri.parse(tel: + phonenumber)); startActivity(i); Is there anyway I can do the same to start the SMS application? I mean start the

[android-developers] Re: baffling alert dialog listener behavior: how come local variables dont keep their data

2008-10-14 Thread Satya Komatineni
Thank you. So that explans it. However, is there a way to block show()? is the behavior of showDialog(id) the same as well? or is that a blocking call? Thanks again Satya On Tue, Oct 14, 2008 at 1:44 PM, Romain Guy [EMAIL PROTECTED] wrote: //show ad.show(); When you call show(), the

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-10-14 Thread haig
I wasn't able to resolve the problem either. Hopefully we can get some resolution to this On Oct 10, 6:52 am, androidian [EMAIL PROTECTED] wrote: Does anyone have a cleaner solution to this problem (i.e. apart from modifying/hacking google's own gdata code)? It seems strange that you'd have

[android-developers] Does Android 1.0 support progressive download of music and video files?

2008-10-14 Thread Billsen
Hi, A question, does Android 1.0 support progressive download of music and video files? Thanks, Billsen --~--~-~--~~~---~--~~ 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] Type and draw in the same view

2008-10-14 Thread Arron
Is it possible to type and draw (like finger paint) on the same view? Would I need to make my own view or does the sdk have an existing one I can possibly use for this? Can someone point me in the right direction? --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Type and draw in the same view

2008-10-14 Thread hackbod
How about just starting with the FingerPaint code if you want to do something like what it is doing? On Oct 14, 1:56 pm, Arron [EMAIL PROTECTED] wrote: Is it possible to type and draw (like finger paint) on the same view? Would I need to make my own view or does the sdk have an existing one I

[android-developers] How do i set onClick image

2008-10-14 Thread zl25drexel
Hi, Does anyone know how to set the onClick image on a button with custom image background? For example, with the standard android button, the button will turn orange on click and then return to its normal color. How do I do the same thing but with custom images? thanks for your help

[android-developers] Use of the Android robot graphic

2008-10-14 Thread david
What is the policy on using the Android robot graphic? Is it free to use to promote a developer's software as being Android-compatible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Does SoundPool work or has anyone successfully used it?

2008-10-14 Thread TjerkW
I also wanted to use the soundpool, but lack of documentation made it impossible to use. I tried it they way i would think it would work, but it didn't. I am using mediaplayers now, i cannot play the same sound multiple times concurrently, Too bad. On 12 okt, 19:32, Robert Green [EMAIL

[android-developers] Playing Sounds, What is the fastest? PCM MP3?

2008-10-14 Thread TjerkW
I am playing sounds from resources using the MediaPlayer, the point is that multiple sounds play simultanously. This decreases the performance of the game, i used stereo 44100 hz mp3 sound. Now i changed it to WAV PCM 33800 (i think) mono. However this increases performance only a little (on

[android-developers] Emulator Performance VS Real Phone Performance

2008-10-14 Thread TjerkW
I am writing a game, the movement in that game is based on the framerate. (speed = pixels/frame) The framerate depends on the speed of the device. I have the feeling that my emulator is running relatively slow compareed to a real phone, ( for example sound stutters). I am getting max 30 fps in a

[android-developers] TabWidget drawables?

2008-10-14 Thread Allan Hsu
Can anybody (Jason? :) give me any information on how to format my own TabWidget indicator and background drawables, preferably in xml? -Allan -- Allan Hsu allan at counterpop dot net --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Is Theme.Light supported in 1.0?

2008-10-14 Thread qvark
Hi hackbod, thanks for your help. I was afraid it was not fully supported :( I would be happy to build my own theme that inherits from Theme.Light overriding the problematic parts. The problem is I cannot find documentation about the styles that apply to each widget to override them. i.e. how

[android-developers] Re: ListView - If you have a item that can focus you can select the Item

2008-10-14 Thread Disco Stu 010
Hi Romain Guy, What is the attribute you mention below that makes ListView items selectable or focusable? i.e., how/what does one change to make ListView items focusable by default (and not selectable)? Thanks, Nitin. On Aug 27, 2008, at 1:28 PM, Romain Guy wrote: So, in conclusion, I

[android-developers] Re: Delete sms from inbox

2008-10-14 Thread e
Anyone??? what Uri use??? On Oct 14, 1:33 pm, e [EMAIL PROTECTED] wrote: plz help me out.. i use fordeletesmsfrom ininbox i use: Cursor c = context.getContentResolver().query(Uri.parse(content://sms/inbox), null,null, null, null); Log.d(TAG, Read +

[android-developers] Re: save file with byte[] argument

2008-10-14 Thread dai
does anyone have an idea? I want to set byte[] as argument.. On 10月13日, 午後11:58, dai [EMAIL PROTECTED] wrote: Hi, could you anybody know how to save data using FileoutputStream like below with byte[] argument? Upon standard java platform, I could save data as zip using FileOutputStream with

[android-developers] save file with byte[] argument

2008-10-14 Thread Jason Proctor
why not use fos.write(buffer) as your standard java platform example does? you don't want to use Writers here, because you're dealing with binary data. i think you might be confused by your corresponding read(), where you presumably (and properly) use Writers to write the encoded Base64

[android-developers] Re: Confused by Android testing framework

2008-10-14 Thread Ludwig
I had put my own experiences with the Android testing framework on a blog post here: http://androidgps.blogspot.com/2008/10/testing-with-android-framework.html It is not super detailed, but as I got both the apidemo tests and my own tests to run that way, it might contain a missing hint for

[android-developers] Re: Does SoundPool work or has anyone successfully used it?

2008-10-14 Thread Robert Green
I used it for my game and it works on both the emulator and a real G1. Just follow my example. On Oct 14, 4:07 pm, TjerkW [EMAIL PROTECTED] wrote: I also wanted to use the soundpool, but lack of documentation made it impossible to use. I tried it they way i would think it would work, but it

[android-developers] Re: Emulator Performance VS Real Phone Performance

2008-10-14 Thread hackbod
The emulator in no way tries to emulate the performance characteristics of real hardware. For this and many other reasons, every developer should run their application on real hardware before considering it to be ready for for release to the public. Re: I thought about decoupling the movement

[android-developers] Re: Confused by Android testing framework

2008-10-14 Thread Andrew Stadler
Ludwig- I just checked your blog and I'd like to add a couple of notes. (1) You're right that the tests don't build properly using the default SDK settings. I don't have the workaround handy, but it is possible to build the tests. I will see if I can get a writeup on that, either here or in

[android-developers] Re: Emulator Orientation Change on Mac

2008-10-14 Thread Andrew Stadler
Of course, with a system this new, everything's undergoing continuing development and improvement. For the most part, tools that report their own help (e.g. emulator -help or emulator -help-keys) will be fairly current. Please don't hesitate to file bugs at code.google.com if you find

[android-developers] What happened to M3's google.googlenav.Placemark and google.googlenav.Search?

2008-10-14 Thread JP
This one goes back to M3. google.googlenav.Placemark and google.googlenav.Search were retired and replaced with a mock provider in M5, if I remember correctly. I have to admit that I never bothered migrating location based search coming out of M3 and lost sight of where these features finally