[android-developers] Re: MediaPlayer in 0.9?

2008-09-02 Thread blindfold
With SDK 0.9 beta, MediaPlayer plays from the application's data area, provided that proper paths are used (the Android conventions appear here a bit inconsistent concerning when to include the full path, and when one must use only the filename). I use this all the time and it works just fine,

[android-developers] Re: How to get the location provider's status?

2008-09-02 Thread Guillaume Perrot
A registered LocationListener object is triggered (onStatusChanged function) when location provider status changes. I don't know if this is the only way to manage that but you can give it a try. On 1 sep, 11:55, Ernest [EMAIL PROTECTED] wrote:       In the new SDK,the api

[android-developers] Re: Problems working with Mocked Location providers

2008-09-02 Thread Guillaume Perrot
There already several topics dealing about that problem, I found no solution but some claim to have made it work... Here some threads to check out: http://groups.google.com/group/android-developers/browse_thread/thread/32c0e799290b4854/a380d181eb3e3165

[android-developers] how to display a local image in the browser android

2008-09-02 Thread yu.hj
I want to display a image in with WebView ,in m5 it can display a image WebView wv; wv = (WebView) findViewById(R.id.wv1); wv.loadData(img src=\file:///android_asset/p1.jpg\, mimeType, encoding); but in sdk 0.9 it can't display the image!

[android-developers] Re: MediaPlayer in 0.9?

2008-09-02 Thread David Given
blindfold wrote: [...] openFileOutput(myfile.wav, Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE); Play using MediaPlayer with setDataSource(/data/data/mypackage/files/myfile.wav); I bet the problem (or possibly feature) is that MediaPlayer doesn't run with app privileges,

[android-developers] Re: Easter eggs

2008-09-02 Thread qvark
Well, it isn't an easter egg, but most of the wallpapers and sample pictures included in the emulator are from Romain Guy, one of the engineers of the Android team (http://www.flickr.com/photos/ romainguy/) I think he could make a living as a photographer if he leaves Google ;) On Sep 1, 5:10 

[android-developers] Comming back to your application from a phone call

2008-09-02 Thread Jose María González
Hello, I have a problem with the new android 0.9 version. In the previous version when I lauch from my application the execution comes back to my application after I finish the call. But with the new version a Call log application appears, I need to press the back button to return to my

[android-developers] Re: RelativeLayout in ListView item

2008-09-02 Thread Mark Murphy
Spencer Riddering wrote: On Sep 2, 1:53 am, Mark Murphy [EMAIL PROTECTED] wrote: Spencer Riddering wrote: Notice how only the lower half of Left Center is displayed. Also, notice that Upper is not displayed. Can someone confirm that this is a bug or point out my mistake? I think the point

[android-developers] Re: how to display a local image in the browser android

2008-09-02 Thread Mark Murphy
yu.hj wrote: I want to display a image in with WebView ,in m5 it can display a image WebView wv; wv = (WebView) findViewById(R.id.wv1); wv.loadData(img src=\file:///android_asset/p1.jpg\, mimeType, encoding); but in sdk 0.9 it can't display the image! You cannot load files into

[android-developers] 2 tier view of tab list

2008-09-02 Thread dai
ciao, do you know it's possible to set multi-tier view of tab host? Because sideway width of tab host is fixed (meaning there is no sideways scroll), I want to add multi-tab host view.. Thank yuo so much --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Start an activity without declaring it in manifest file

2008-09-02 Thread semaka
Hi guys, I have a project in which I have to start an activity which is not declared in AndroidManifest.xml. Is that possible to register an activity dynamically by code? Or is it possible to overwrite the AndroidManifest.xml from an installed .apk or to replace it without reinstalling the .apk

[android-developers] Re: unable to open AndroidManifest.xml

2008-09-02 Thread Featheast Lee
i have the same problem with u, at the beginning it works well, but later comes to the same result can anybody give a help? On Aug 21, 12:24 am, walterc [EMAIL PROTECTED] wrote: am i the only one having this problem?  i've reinstalled eclipse 3.4 twice and during both times, the editor worked

[android-developers] Irda support

2008-09-02 Thread defrit
Hello, I was wondering whether Android will support any infrared connectivity - since the bluetooth API will be fairly limited. I couln't find any information on that. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: RelativeLayout in ListView item

2008-09-02 Thread Mark Murphy
Spencer Riddering wrote: You seem to have missed the problem entirely. Please compile next time. I did you one better. I wrote up a whole blog post on my diagnostic steps: http://androidguys.com/2008/09/02/diagnosing-layout-problems/ The upshot is that I fixed the problem with the stacked

[android-developers] Re: Start an activity without declaring it in manifest file

2008-09-02 Thread Mark Murphy
semaka wrote: I have a project in which I have to start an activity which is not declared in AndroidManifest.xml. Is that possible to register an activity dynamically by code? Not that I'm aware of. Or is it possible to overwrite the AndroidManifest.xml from an installed .apk or to

[android-developers] Re: How to re-use the photo picker activity in my application

2008-09-02 Thread Cheryl Sedota
Thanks Megha - it started working when I relaunched Android - I have no idea why it wasn't working before - I definitely had the SD card installed because I was selecting from images on the SD card in the photo picker. On Aug 29, 5:28 pm, Megha Joshi [EMAIL PROTECTED] wrote: Did you launch this

[android-developers] Re: Easter eggs

2008-09-02 Thread Peli
Other easter eggs: * Sensor manager includes constants for GRAVITY_DEATH_STAR_I , GRAVITY_THE_ISLAND , and a SENSOR_TRICORDER : http://code.google.com/android/reference/android/hardware/SensorManager.html * In the release notes for the 0.9 SDK: We regret to inform developers that Android 1.0

[android-developers] Re: Easter eggs

2008-09-02 Thread Casey Borders
The guy with the coffee cup is from the movie Office Space. On Tue, Sep 2, 2008 at 10:28 AM, Peli [EMAIL PROTECTED] wrote: Other easter eggs: * Sensor manager includes constants for GRAVITY_DEATH_STAR_I , GRAVITY_THE_ISLAND , and a SENSOR_TRICORDER :

[android-developers] Re: How to Send SMS?

2008-09-02 Thread Jeff Hamilton
You can use the SmsManager class to send SMS messages. The docs are located here: http://code.google.com/android/reference/android/telephony/gsm/SmsManager.html. -Jeff On Mon, Sep 1, 2008 at 4:15 AM, Dj [EMAIL PROTECTED] wrote: Hi all Any budy know how to send SMS. Plz give any example or

[android-developers] Re: Audio cache strategies

2008-09-02 Thread Josh Guilfoyle
This is exactly the sort of problems my application (http:// five.googlecode.com) must contend with, and unfortunately I have came to the conclusion that for 1.0, Android will simply not be able to support our type of application. Their current official recommendation is to work around this by

[android-developers] Re: Audio cache strategies

2008-09-02 Thread David Given
Josh Guilfoyle wrote: This is exactly the sort of problems my application (http:// five.googlecode.com) must contend with, and unfortunately I have came to the conclusion that for 1.0, Android will simply not be able to support our type of application. Oh, dear. [...] I constructed simple

[android-developers] How can get the source code of the embedded app Pictures?

2008-09-02 Thread Anthony
Hi All, I like this app very much, and want to add some SNS features to it. How/Where can I get the source code of the embedded app Pictures? Or maybe I should wait for google open source all of android. Thanks. Anthony --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Easter eggs

2008-09-02 Thread Peli
It is funny that only Death Star and Island gravity are known to 6 digits while the planets of our solar system only have 2 digit accuracy. GRAVITY_DEATH_STAR_I =3.5303614E-7 GRAVITY_THE_ISLAND =4.815162 There must be some hidden code in there. I guess the first person to

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-02 Thread Chris Chiappone
Marcel, Thanks for that seems to work as you described. The only thing that doesn't seem right is the way the map draws the markers shadow. Any idea on how to correct that. Thanks. On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 [EMAIL PROTECTED] wrote: Hi everyone, I finally got this thing

[android-developers] Re: Easter eggs

2008-09-02 Thread Peli
GRAVITY_THE_ISLAND         =    4.815162 4 8 15 16 23 42 First riddle solved: These are the cursed numbers from the TV series Lost. http://forum.worldwindcentral.com/showthread.php?t=2462 http://www.4815162342.com/ Now we know which island was really meant :-) (see discussion here:

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-02 Thread marcel-182
No, I don't know how to change that behavior. But if you don't like the shadow just disable it :-): @Override public void draw(Canvas pCanvas, MapView pMapView, boolean pShadow) { super.draw(pCanvas, pMapView, false); } On 2 Sep., 18:03, Chris Chiappone [EMAIL PROTECTED] wrote: Marcel,

[android-developers] Re: Irda support

2008-09-02 Thread hackbod
No support for irda in 1.0. On Sep 1, 11:46 pm, defrit [EMAIL PROTECTED] wrote: Hello, I was wondering whether Android will support any infrared connectivity - since the bluetooth API will be fairly limited. I couln't find any information on that. Thanks

[android-developers] Re: Comming back to your application from a phone call

2008-09-02 Thread hackbod
This has nothing to do with your application, it is how the UI is designed to work. I don't believe there is any way to modify it. On Sep 2, 4:16 am, Jose María González [EMAIL PROTECTED] wrote: Hello, I have a problem with the new android 0.9 version. In the previous version when I lauch

[android-developers] Re: Sensor values returned by tricorder

2008-09-02 Thread Peli
Of course, that depends on where The Island is. Given the value, I suspect you have the wrong island. At the moment, the island matching the listed value is, um, lost. Now I got it :-) The value is the secret number from lost. http://www.4815162342.com/ GRAVITY_THE_ISLAND = 4.815162 I

[android-developers] Re: Audio cache strategies

2008-09-02 Thread Josh Guilfoyle
These tests were against 0.9, and I have complained loudly about it with any Google engineer that would listen. The outlook looks bleak to get these fixes in for 1.0. Also, in my tests, the MediaPlayer buffers poorly. It seems to take 2 - 5 seconds to even gear up and make a connection for

[android-developers] now that nothing interesting can be done with audio in 1.0...

2008-09-02 Thread ashayk
That is, no reading from any kind of byte stream, ie. AudioInputStream, when can we expect this promised functionality. It's the one thing that really interested me in Android and I'm really sorry to see it go. Any ETA or news about when this will become available? I haven't seen anything in

[android-developers] Re: Easter eggs

2008-09-02 Thread michael . klatskin
Mark, Shouldn't you be updating your book :) On Sep 2, 12:48 pm, Mark Murphy [EMAIL PROTECTED] wrote: Peli wrote: Now we know which island was really meant :-) (see discussion here:http://groups.google.com/group/android-developers/browse_frm/thread/9... ) Aw, c'mon! At the moment,

[android-developers] Re: Easter eggs

2008-09-02 Thread Mark Murphy
[EMAIL PROTECTED] wrote: Shouldn't you be updating your book :) Sheesh! Tough crowd! -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: 0.9 and simple database management issue ? [SOLVED]

2008-09-02 Thread Jorge D Ortiz
Hi, I am having the same problem here. It is the getWritableDatabase() that fails showing the following error: sqlite3_open_v2(/data/data/com.powwau.gtd.android/databases/gtd, handle, 6, NULL) failed I have been porting my app from m5 to 0.9 and followed the Notepad tutorial. Any ideas?

[android-developers] Re: inserting email address into ContactMethods table in 0.9 beta

2008-09-02 Thread kingkung
It's not a failure, it's just that 0 addresses are added. On Aug 29, 6:53 pm, Jeff Hamilton [EMAIL PROTECTED] wrote: Does anything show up in the log when you see the failure? -Jeff On Fri, Aug 29, 2008 at 6:50 PM, kingkung [EMAIL PROTECTED] wrote: Slightly confusing code... the

[android-developers] opening H264 file in binary format

2008-09-02 Thread Raza
anybody can help me how to open h264 video file in binary format? --~--~-~--~~~---~--~~ 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: Port JSON client to SDK 0.9

2008-09-02 Thread Francisco
If I can acess my web service trough this link what should the String in the httpget constructior be? i have the following but i always get an axception and its alwas an Unknown error. This is calling a .NET web service in my local machine. HttpClient client = new DefaultHttpClient();

[android-developers] Re: Port JSON client to SDK 0.9

2008-09-02 Thread Francisco
I have just double checked and i always get a SocketException with an Unknown error Detailed messase. Do you have any idea what could it be? Thanks Francisco Ortega On Sep 2, 10:52 am, Francisco [EMAIL PROTECTED] wrote: If I can acess my web service trough this link what should the String

[android-developers] Re: RelativeLayout in ListView item

2008-09-02 Thread Spencer Riddering
Hi Mark, Thanks, I really like your post. I actually started out using LinearLayout but I ran into the same centering problem that you ended your post on. It was my obsession with centering Upper and Lower horizontally across the entire list item that drove me to RelativeLayout. I've finally

[android-developers] Re: Easter eggs

2008-09-02 Thread Peli
Aw, c'mon! At the moment, the island matching the listed value is, um, lost wasn't a big enough clue? Yes, but I didn't get it in the first place :-) I've never seen the show. Peli --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: 0.9 and simple database management issue ? [SOLVED]

2008-09-02 Thread Jorge D Ortiz
emulator -wipe-data solved it. Thanks. Jorge On Sep 2, 7:18 pm, Jorge D Ortiz [EMAIL PROTECTED] wrote: Hi,   I am having the same problem here. It is the getWritableDatabase() that fails showing the following error: sqlite3_open_v2(/data/data/com.powwau.gtd.android/databases/gtd,

[android-developers] Re: How to Send SMS?

2008-09-02 Thread Megha Joshi
+ sample code: http://groups.google.com/group/android-developers/files 2008/9/2 Jeff Hamilton [EMAIL PROTECTED] You can use the SmsManager class to send SMS messages. The docs are located here: http://code.google.com/android/reference/android/telephony/gsm/SmsManager.html . -Jeff On

[android-developers] Re: Start an activity without declaring it in manifest file

2008-09-02 Thread Justin (Google Employee)
As mark has said, nope, its not possible. The manifest registers your application with the system. This is the only way the system becomes aware of executable targets. Cheers, Justin Android Team @ Google On Sep 2, 7:21 am, Mark Murphy [EMAIL PROTECTED] wrote: semaka wrote: I have a project

[android-developers] Re: Port JSON client to SDK 0.9

2008-09-02 Thread Francisco
Thanks a Lot Mark! I Finally was able to make it work! i had a while without working with the new SDKs so i didnt know that permission was added. Thank you!. By the way. I am getting a new error now. ?xml version=1.0 encoding=utf-8?soap:Envelope

[android-developers] Re: Bug in Bitmap.compress when used on JPEGs?

2008-09-02 Thread Justin (Google Employee)
Out of all images downloaded, ~10% fail to be written with a NullpointerException Is it always the same images that fail or does the same image work on one run and not another? Cheers, Justin Android Team @ Google On Sep 1, 4:36 am, snowcrash [EMAIL PROTECTED] wrote: Hi there, I

[android-developers] Setting highlight text color (textColorHighlight doesn't do it)

2008-09-02 Thread Andrew Dupont
Despite its name, the global textColorHighlight attribute controls the color of the highlight itself, rather than the highlighted text. So if I've got gray text and a dark blue highlight color, it appears as gray on blue, and I can't make the selected text white on blue no matter what I try. None

[android-developers] Re: inserting email address into ContactMethods table in 0.9 beta

2008-09-02 Thread kingkung
Never mind, my types are set to 0, and there is no 0 type anymore. On Sep 2, 10:21 am, kingkung [EMAIL PROTECTED] wrote: It's not a failure, it's just that 0 addresses are added. On Aug 29, 6:53 pm, Jeff Hamilton [EMAIL PROTECTED] wrote: Does anything show up in the log when you see the

[android-developers] Re: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-09-02 Thread Megha Joshi
Please refer to the audio Recording sample code at the link below: http://groups.google.com/group/android-developers/files 2008/8/31 code_android_festival_way [EMAIL PROTECTED] Did you get the Audio recording managed right now? I'm getting the same error again after adding all the fields.

[android-developers] Re: getScale replacement for BaseAdapter in 0.9 beta?

2008-09-02 Thread Chris Cicc
Hi Romain Guy, How would I go about doing this? I'd really like to enable two pieces of functionality that were removed in the 0.9 Beta, a smaller scale for the not-in-focus images, and the ability to automatically loop (and rotate through) the gallery. Alpha on the edges would be nice, but I can

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-02 Thread Cretin45
I got the shadow to draw properly by calling boundCenterBottom(Drawable); @Override public void draw(Canvas arg0, MapView arg1, boolean arg2) { super.draw(arg0, arg1, arg2); MyItemizedOverlay.boundCenterBottom(defaultMarker); } Not sure if

[android-developers] Re: changing owner of a file in Windows environment

2008-09-02 Thread Justin (Google Employee)
(1) you can change the owner of your file in the shell, lookup how to use the 'chown' command (2) This is probably *not* what you want to do? Where is your database file located? It should be in your application's data directory. If it is, you should have access to it. If its not, it seems like

[android-developers] Re: changing owner of a file in Windows environment

2008-09-02 Thread Justin (Google Employee)
Oops, 'chown' is not available on the emulator. So, let's look at my second point. Cheers, Justin Android Team @ Google On Sep 2, 1:31 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: (1) you can change the owner of your file in the shell, lookup how to use the 'chown' command (2) This

[android-developers] Re: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-09-02 Thread code_android_festival_way
Thank you very much for offering the sample code. On 2 Sep., 22:16, Megha Joshi [EMAIL PROTECTED] wrote:  Please refer to the audio Recording sample code at the link below:  http://groups.google.com/group/android-developers/files 2008/8/31 code_android_festival_way [EMAIL PROTECTED] Did

[android-developers] Re: changing owner of a file in Windows environment

2008-09-02 Thread Yalcin Akdogan
Hi Justin, my database is in: /data/data/com.zmc.android.provider/databases i populate my database outside of the emulator, this is my problem. if i push it to emulator, then owner is root. Yalcin - Original Message - From: Justin (Google Employee) To: Android Developers

[android-developers] Re: getScale replacement for BaseAdapter in 0.9 beta?

2008-09-02 Thread Romain Guy
Hi, Just override the method getChildStaticTransformation() in ViewGroup and for the given child, set the transformation to a smaller scale. Then in your constructors, make sure you set the flag FLAG_SUPPORT_STATIC_TRANSFORMATIONS in mGroupFlags: mGroupFlags |=

[android-developers] Re: MediaMetadataRetriever works?

2008-09-02 Thread Megha Joshi
On further investigation ...I found that MediaMetadataRetriever.captureFrame() does not work and will be removed from the future SDK. It requires special permissions which are not available to user apps. Sorry for the confusion! The other MediaMetaDataRetriever apis will still work...only

[android-developers] Drap and drop an OverlayItem in aMapView

2008-09-02 Thread Magellan
Hi, I'm searching for a sample code that allow to drag and drop an OverlayItem on a map (via an ItemizedOverlay). I sea onTap methods but they can only be used for aon click item, not for on hold item event. Somebody tried ? --~--~-~--~~~---~--~~ You received

[android-developers] Re: MediaMetadataRetriever works?

2008-09-02 Thread Peli
Is there another way to extract a thumbnail from a video file? Peli On 2 Sep., 23:42, Megha Joshi [EMAIL PROTECTED] wrote: On further investigation ...I found that MediaMetadataRetriever.captureFrame() does not work and will be removed from the future SDK. It requires special permissions  

[android-developers] Re: MediaMetadataRetriever works?

2008-09-02 Thread Megha Joshi
Not in the current sdk... 2008/9/2 Peli [EMAIL PROTECTED] Is there another way to extract a thumbnail from a video file? Peli On 2 Sep., 23:42, Megha Joshi [EMAIL PROTECTED] wrote: On further investigation ...I found that MediaMetadataRetriever.captureFrame() does not work and will be

[android-developers] Re: Audio cache strategies

2008-09-02 Thread David Given
Josh Guilfoyle wrote: [...] Also, in my tests, the MediaPlayer buffers poorly. It seems to take 2 - 5 seconds to even gear up and make a connection for some reason, and then it seems to buffer more than is necessary in certain circumstances. I'd like to load a simple test up on the HTC Vogue

[android-developers] Re: Port JSON client to SDK 0.9

2008-09-02 Thread Francisco
Hi everybody! I finally was able to call the web service i wanted from my application, i have a problem now. The String i get from the response method is removing my xml tags. I get Strings like the following: ?xml version=1.0 encoding=utf-8? string

[android-developers] Mock Location Provider [SOLVED]

2008-09-02 Thread Justin (Google Employee)
I just posted some code at http://groups.google.com/group/android-developers/web/mock_provider.zip that implements a mock location provider. This runs entirely in the emulator, so it should work across all platforms. It allows you to specify a set of coordinates and will the just loop through

[android-developers] Re: REST + JSON Web Service Client

2008-09-02 Thread Francisco
Hi everybody! I finally was able to call the .NET web service i wanted from my application, i have a problem now. The String i get from the response method is removing my xml tags. I get Strings like the following: ?xml version=1.0 encoding=utf-8? string

[android-developers] Re: ServiceTestCase instrumentation and remote callbacks

2008-09-02 Thread Josh Guilfoyle
I have discovered more information about this issue which seems far more troubling. I created a simple test which I thought would demonstrate this bug but instead the test worked. So I returned to my functional code and analyzed the logcat differences only to find the following after I launch

[android-developers] Adding standard Moreicon to More submenu

2008-09-02 Thread Joa
Polishing my app, I am trying to add the standard http://code.google.com/android/reference/android/R.styleable.html#IconMenuView_moreIcon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Database - Content Provider - Syncable

2008-09-02 Thread joebowbeer
On Aug 29, 4:43 pm, Megha Joshi [EMAIL PROTECTED] wrote: Android framework does not provide any inbuilt service to sync your app's database with with a network database. You could use the the HttpClient library to communicate with the Server...apart from the the sync logic is something you