[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-04-01 Thread Jean-Baptiste Queru
Dev phones indeed explicitly don't get OTA updates, for several reasons: -developers are assumed to be capable of manually updating their phones. -those phones are designed to allow running custom versions of the system, and an automated update could cause some damage. -developers have

[android-developers] Re: Altering the resource values in the APK after creating it

2009-04-01 Thread Mark Murphy
Google_Android_discussion wrote: Hi, Is it possible to alter the string values(in resources) in APK after creating it. Not easily. The resources are in a compiled form in the APK and are not designed to be modified. In addition, if your APK is signed, any modification to the contents would

[android-developers] Re: Some questions about Bluetooth A2DP.

2009-04-01 Thread Mark Murphy
Kelly Mao wrote: I have got the code of Android 1.5 Questions regarding the Android source code are best asked on a mailing list devoted to the Android source code: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-developers] Re: Error creating file on SD card

2009-04-01 Thread Mark Murphy
BJP wrote: I would like to write a file to the SD card from my application, but the following code throws an IOException when debugged on a T-Mobile G1: String p = Environment.getExternalStorageDirectory() + /log.txt; File recfile = new File(p); recfile.createNewFile(); The last line

[android-developers] Re: Help! Process down after loadlibrary in Service

2009-04-01 Thread fadden
On Apr 1, 1:32 am, herain herainw...@gmail.com wrote: I need to load a .so library in my Service onCreate method, but the process just down after System.load. On the other hand, the same code can work in Activity. [...] 04-01 07:57:25.901: INFO/DEBUG(26719): pid: 26726, tid: 26726  

[android-developers] Re: Debugging memory leaking

2009-04-01 Thread fadden
On Mar 31, 2:40 am, Filipe Abrantes filipe.abran...@gmail.com wrote: so can the the XML inflater be causing this leak? can we get a leak from the xml itself? How would you propose to proceed from here... im running out of options... Can you make this happen on the emulator (or on a rooted

[android-developers] Get File Path With URI

2009-04-01 Thread Bobbie
I am launching an image picker (from the gallery) and my code crashes every single time. I tried to get some help in another post, but people quit responding to the post. Please help. When I do a debug, it tells me this (there are TONS of errors, but these looked the most important - also, I

[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Bobbie
The exception is: 04-01 14:09:30.274: ERROR/AndroidRuntime(719): java.lang.RuntimeException: Failure delivering result ResultInfo {who=null, request=1, result=-1, data=Intent { data=content://media/ external/images/media/7 }} to activity {com.app.name/ com.app.name.activity}:

[android-developers] Re: Get File Path With URI

2009-04-01 Thread Mark Murphy
Bobbie wrote: I am launching an image picker (from the gallery) and my code crashes every single time. I tried to get some help in another post, but people quit responding to the post. Please help. When I do a debug, it tells me this (there are TONS of errors, but these looked the most

[android-developers] Re: Get File Path With URI

2009-04-01 Thread Mark Murphy
Mark Murphy wrote: Cursors are always pointing before the first result. Actually, to clarify: Cursors are always pointing before the first result when you initially get the Cursor from a query (whether of a content provider or database). -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-04-01 Thread dm1973
Correlation is not causation. Yes android is slower than it could be. But jazelle isn't the only reason. I wouldn't be surprised if the j2me variant isn't even using jazelle as jits tend to be faster in a lot of applications. A simple jit would probably give a 5-10x+ speed up of the java (not

[android-developers] Re: Static Variable Instantiation

2009-04-01 Thread Streets Of Boston
Short answer: Don't use static variables :-) Somewhat longer answer: If sub-activities need to access some data held by my main activity, i usually do create one static variable: public MyActivity extends Activity { public static final MyActivity ACTIVE_INSTANCE; protected void

[android-developers] Re: RESTful user authentication

2009-04-01 Thread Wouter
Sorry I never created a web service before. I only want to use this web service now to send HTTP request (HTTP POST and HTTP GET) in my Google Android application. If a user logins at my application (with username and password) the username and password would be sended to my web service and

[android-developers] Re: Get File Path With URI

2009-04-01 Thread Bobbie
Thank you SO much! I hate those 1-liners that kill your app, haha. Thanks again!!! On Apr 1, 2:14 pm, Mark Murphy mmur...@commonsware.com wrote: Mark Murphy wrote: Cursors are always pointing before the first result. Actually, to clarify: Cursors are always pointing before the first

[android-developers] Re: Android Physics Engine

2009-04-01 Thread mscwd01
Thanks Lajos for pointing APE out, I hadn't heard of it until now. Unfortunately your link to your Android port is broken, can you mend it as I dont fancy spending another hour porting another library to Android :D Thanks On Mar 31, 9:50 pm, lkelemen tridc...@gmail.com wrote: Hello everyone,

[android-developers] Re: Some of the strange JAVA syntax - android specifics?

2009-04-01 Thread Streets Of Boston
@Override is a so-called annotation. It does not generate any byte-code/runnable-code. It just tells the compiler that the method below it is an override of its super-class' method. If your super-class changes its signature of onDraw, your compiler will warn you about the fact that your method

[android-developers] Re: photo picker Uri issue

2009-04-01 Thread Streets Of Boston
You have to call moveToNext or moveToPosition first before you can use the cursor. On Apr 1, 2:13 pm, Bobbie bobbie.st...@gmail.com wrote: The exception is: 04-01 14:09:30.274: ERROR/AndroidRuntime(719): java.lang.RuntimeException: Failure delivering result ResultInfo {who=null, request=1,

[android-developers] Re: MediaPlayer sluggish to play sounds

2009-04-01 Thread Marco Nelissen
I'm surprised that calling start() has no effect, and that it takes several seconds for playback to work again. Do you have the same issue when playing a file in the music player, for example? On Tue, Mar 31, 2009 at 5:35 PM, Eric M. Burke burke.e...@gmail.com wrote: I have an Activity that

[android-developers] How to draw directly on screen without calling invalidate?

2009-04-01 Thread Tomei Ningen
I need to animate at a very fast rate (without using OpenGL). Now I am calling View.invalidate() to paint to the screen, but this has the effect of A: clearing the screen with black B: drawing the content view C: drawing the child view (which occupies only part of the screen, and is the only

[android-developers] Re: SQLite functions - how to use them?

2009-04-01 Thread nEx.Software
I have found that, if you will be doing a lot of data access, compiled statements will cut the time to complete most operations in half. This is particularly true of inserts. Used in conjunction with beginTransaction()/endTransaction(), using compiled statements can make your data access quite

[android-developers] Re: looking for developer to write an image application

2009-04-01 Thread Fred Grott(shareme)
You will not find anyone at that price hence the revenue share proposal On Mar 29, 4:36 pm, androidinsider eldev...@gmail.com wrote: Eldev LLC is looking for android developer familiar with google image search API to write a new application. This is a contract job with a budget of $3000.

[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-04-01 Thread Dianne Hackborn
This is one of the things SurfaceView is for. For a regular view hierarchy you can't draw outside of updates, period. I don't know what you mean by clearing the screen with black. We don't do that. Within your window, if the window is translucent, we will clear the update region back to

[android-developers] Re: Scroll and drag a TileView widget around by finger / touch

2009-04-01 Thread acrosser
Thanks for the suggestion... but ScrollView only scrolls vertically up/ down, not horizontally left/right. At least that's what my experience has been trying the ScrollView widget out, and what I have read about ScrollView. Is there a way to make it scroll left/right as well? On Apr 1, 8:53 am,

[android-developers] Re: Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-04-01 Thread blindfold
A simple jit would probably give a 5-10x+ speed up of the java Yes, this is what I observed in my tests of Nokia 6680 and Sony Ericsson X1 versus Android G1 for the same computational benchmark. It is not good for battery life either when the CPU has to spend 5-10 times as many clock cycles for

[android-developers] Re: Scroll and drag a TileView widget around by finger / touch

2009-04-01 Thread Dianne Hackborn
Just do the scrolling yourself. You are going to need to do some significant optimizations to be able to efficiently draw a board that size anyway (checking update rects and such to minimize drawing); to have smooth scrolling, you may well need to do more than that, such as having it rendered in

[android-developers] Re: Unused java hardware acceleration on the G1 (was Re: Android game developers desperately need optimised game engine example code ...)

2009-04-01 Thread dm1973
Just remember that for a lot of applications most of the time is spent calling native routines not executing java code. It isn't great for battery life but it isn't as bad as you first think since in a lot of apps, you spend almost all your time in wait loops so the CPU drain isn't as

[android-developers] Remote debugger not connecting to DDMS

2009-04-01 Thread Wesley
Hi, It seems that DDMS does not accept that a debugger in another host connects to it (a scenario where host A has the Emulator and DDMS running, and host B has the debugger). It appears that DDMS is binding to the loopback address. Does anyone know if that is intentional ? Regards, Wesley

[android-developers] Re: BroadcastReceiver for data SMS - static works, dynamic does not

2009-04-01 Thread thesquib
It should be noted that there is a spelling mistake in the code version, this is how it should read: IntentFilter mFilter = new IntentFilter (android.intent.action.DATA_SMS_RECEIVED); I typed it up in a browser and made the mistake. Thanks. On Mar 30, 11:24 am, thesquib thesq...@gmail.com

[android-developers] Re: Android Telephony

2009-04-01 Thread TAKEphONE
Hi, Is there a way to read the transmitter signal strength ? TIA --~--~-~--~~~---~--~~ 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

[android-developers] Reading transmitter signal strength

2009-04-01 Thread TAKEphONE
Hi all, Is there a way to read the cellular radio transmitter signal strength ? (TxPower or something similar). TIA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Altering the resource values in the APK after creating it

2009-04-01 Thread strazzere
It's actually not that much different than modifying any other compiled program -- especially a normal jar. Though like you said, it must be resigned after being modified. On Apr 1, 1:34 pm, Mark Murphy mmur...@commonsware.com wrote: Google_Android_discussion wrote: Hi, Is it possible to

[android-developers] Re: Byte code format

2009-04-01 Thread strazzere
There is some relevant informaiton http://strazzere.com/blog/?cat=5paged=3 and http://dedexer.sourceforge.net/ from Gabor. Hope that helps. On Apr 1, 10:28 am, Zhubham sahilz...@gmail.com wrote: Hi, I am keen on understanding how the DVM works and finally what's the format of the generated

[android-developers] Vista does not access G1 memory card

2009-04-01 Thread intbt
I am trying to access the memory card but Vista says please insert a disk into removable disk H: and will not permit me to load files into the card. Any ideas as to what is wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: MediaPlayer sluggish to play sounds

2009-04-01 Thread Dave Sparks
Agreed. It takes about 100 msecs to spin up the audio output once it goes to standby. You will seeing something like this in the log: W/AudioFlinger( 35): write blocked for 103 msecs If it's taking several seconds, there must be something else involved. On Apr 1, 11:51 am, Marco Nelissen

[android-developers] Re: Altering the resource values in the APK after creating it

2009-04-01 Thread clark
You should check out the xda-developers forums regarding creating themes on the Dream a.k.a. G1. Those guys are doing just what you mentioned, and resigning it as strazzere mentioned. ~clark On Apr 1, 2:32 pm, strazzere str...@gmail.com wrote: It's actually not that much different than

[android-developers] Re: Altering the resource values in the APK after creating it

2009-04-01 Thread strazzere
Wait what? What does altering strings in an self-compiled apk have to do with themes? On Apr 1, 6:31 pm, clark clarkd...@gmail.com wrote: You should check out the xda-developers forums regarding creating themes on the Dream a.k.a. G1.  Those guys are doing just what you mentioned, and

[android-developers] Re: SQLite functions - how to use them?

2009-04-01 Thread Glen Humphrey
I've used this and it works for me. c.getCount(); On Apr 1, 12:34 pm, nEx.Software justin.shapc...@gmail.com wrote: I have found that, if you will be doing a lot of data access, compiled statements will cut the time to complete most operations in half. This is particularly true of inserts.

[android-developers] Re: Am I leaking bitmaps from adapter's getView ?

2009-04-01 Thread jefferyfry
Are you recycling your bitmaps? I'm not sure what your getThumbnailBitmap is doing, but I have something that sounds similar where I rescale my bitmaps like so: public static Bitmap getBitmap(Context context,String photoUriPath) throws Exception { Uri photoUri =

[android-developers] Re: Text in of a custom drawable

2009-04-01 Thread jefferyfry
You will need to extend the View you are displaying the drawable and override the draw method to add your custom text like this: @Override public void draw(Canvas canvas) { super.draw(canvas); canvas.drawText(Title, x, y,

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Anton
I've done some more profile based hand optimization and I now have it running superfast. :) I've put the new version in the same location as the previous one. I still had some floating point code that was slowing me down. The difference between floating point and fixed point is not to be

[android-developers] Sliding Text just like the phone's icon texts??

2009-04-01 Thread Moto
Could someone let me know how exactly android makes the sliding text on an icon slide up to the end of the text? Currently I'm using TranslateAnimation to slide the text, but this is hard since text can change lengths and just gets too complex... :( Help!? Thanks! Moto! my current code:

[android-developers] Re: Remote debugger not connecting to DDMS

2009-04-01 Thread fadden
On Apr 1, 2:01 pm, Wesley wesle...@gmail.com wrote: It seems that DDMS does not accept that a debugger in another host connects to it (a scenario where host A has the Emulator and DDMS running, and host B has the debugger). It appears that DDMS is binding to the loopback address. Does anyone

[android-developers] Re: SQLite functions - how to use them?

2009-04-01 Thread Marco Nelissen
While that works, it will create a Cursor with 'N' rows and then counts the number of rows. If you instead retrieved count(*) as a column, you'd have a Cursor with 1 row, with a field that contains the count. The latter is more efficient. On Wed, Apr 1, 2009 at 5:03 PM, Glen Humphrey

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Streets Of Boston
Awesome. It is visually much smoother than your first version. Three thumbs up! On Apr 1, 8:48 pm, Anton socialhac...@gmail.com wrote:     I've done some more profile based hand optimization and I now have it running superfast.  :)  I've put the new version in the same location as the

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Streets Of Boston
About open-sourcing it: Thanks! That would be great and i'll be happy to do some work on it to make it even better (if i *can* do this; you already did a great job). Let us know when your api is ready to be put on open-source. :-) On Apr 1, 8:48 pm, Anton socialhac...@gmail.com wrote:    

[android-developers] Remove binaries after I download and compile android source

2009-04-01 Thread Meryl Silverburgh
Hi, I have download and built android source on my local machine. Can you please tell me how can I remove all the binaries (*.o, executables) to clean up everything? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Android Physics Engine

2009-04-01 Thread mscwd01
I have some good news too, I have successfully ported APE (http:// www.cove.org/ape/) to Android and have a simulation of 50 objects running extremely smoothly. Considering I have only spent an hour or so converting everything to Android and making minimal optimisations this is really good news

[android-developers] Re: Text in of a custom drawable

2009-04-01 Thread Dianne Hackborn
The drawable's draw() method takes a canvas, so there is no problem having a drawable use that to draw text. Also you should almost always implement View.onDraw(), not View.draw(). On Wed, Apr 1, 2009 at 5:23 PM, jeffery...@gmail.com wrote: You will need to extend the View you are displaying

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Anton
Yes, I'd love to see the results of that. -Anton On Apr 1, 6:25 pm, mscwd01 mscw...@gmail.com wrote: I have some good news too, I have successfully ported APE (http://www.cove.org/ape/) to Android and have a simulation of 50 objects running extremely smoothly. Considering I have

[android-developers] Re: Fling on ListView

2009-04-01 Thread Evan Charlton
On Wed, Apr 1, 2009 at 11:40 AM, Romain Guy romain...@google.com wrote: Using gestures to navigate within an app has a HUGE problem: it is totally undiscoverable. Additionally, it poses a problem with future devices: you shouldn't assume that every device that will run Android will have a

[android-developers] Re: How to get MemoryFile object from other process?

2009-04-01 Thread quill
Maybe not an object, something like object ID, anyone who knows? On Apr 1, 4:51 pm, quill quill...@163.com wrote: Hi, all, I have created a MemoryFile object in my client application, and how can I get it in my server application? The object is large enough that I can't tranfer it by Intent

[android-developers] Issue of focus setting

2009-04-01 Thread jianwei
Hi all, I want to set default focus in the first focusable view when entering a new screen, and i use view.requestFocus(View.FOCUS_DOWN) (view is the root ViewGroup), but it doesn't work. The method alway return false. And i also found a strange situation: view.getFocusables (View.FOCUS_DOWN)

[android-developers] Re: Current Preference Screen? (easyy)

2009-04-01 Thread Noam
Is my code worth anything? --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Streets Of Boston
I'm curious too! :) On Apr 1, 9:25 pm, mscwd01 mscw...@gmail.com wrote: I have some good news too, I have successfully ported APE (http://www.cove.org/ape/) to Android and have a simulation of 50 objects running extremely smoothly. Considering I have only spent an hour or so converting

[android-developers] Re: SD Card

2009-04-01 Thread Eric Chen
I met the same problem from two weeks ago, if any one fixed it pls help me. Best Regards Eric Chen On Wed, Apr 1, 2009 at 5:54 PM, l hx lihongxia8...@gmail.com wrote: Hi. today i get the newest code and make it .but when i mksdcard, and mount it as same as i did before. but now i can

[android-developers] Re: Android Physics Engine

2009-04-01 Thread lkelemen
Hi, Link is working now. I've put System.exit(0); to the Activity's onStop and the performance looks stable now. The state of the physics world is not preserved when you push home and long push home and swithch back to the app. What do you think: Would using a Vector pool in class

[android-developers] How to get the view instinct left and instinct top relative to the window?

2009-04-01 Thread Ernest
Hi, I want to get the left and top of a view in relative layout.But the value alway are relative to its father view.So how can I get the instinct left and top relative to the window? Thank you very much. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Error creating file on SD card

2009-04-01 Thread BJP
Thanks Mark, but I'm debugging the application on a T-Mobile G1 with installed SD card (real hardware) ~ no emulator, just the real thing. Is there a permission needed that I'm not recognizing? Or, is there a special exclusive way to deal with files on the SD card? Any help or pointing in the

[android-developers] WebView bug with pageDown() ?

2009-04-01 Thread pperotti
Hi Everyone, Does anybody know how can I sort out a problem with the WebView.pageDown( boolean ) method that simple does not remains in the bottom of the web view after invoking loadData() ? The behavior in the emulator moves to the bottom and right after that moves back to the top. Thanks in

[android-developers] Re: WebView bug with pageDown() ?

2009-04-01 Thread Romain Guy
pageDown() does not mean scroll the web page to the bottom it means scroll down by one page. Just like the page down key on a computer keyboard. On Wed, Apr 1, 2009 at 9:33 PM, pperotti pablo.pero...@gmail.com wrote: Hi Everyone, Does anybody know how can I sort out a problem with the

[android-developers] imageswitcher

2009-04-01 Thread jaimin
hi. i want to develop a application like imageswitcher but instead of images that show in gallery i want to display a videos in that gallery.i want to develop application same as in APIDEMOS- IMAGESWITHCER . so any help for that? thanks. jaimin

[android-developers] Re: Error creating file on SD card

2009-04-01 Thread ambrosehua
Are you sure that you have write permission to /sdcard ( sdcard mounted with RW and the directory /sdcard i writable) ? I suggest you run another app to store some information in /sdcard for a test On 4月2日, 下午12时23分, BJP bjpcalt...@gmail.com wrote: Thanks Mark, but I'm debugging the

[android-developers] Question about zoom a picture

2009-04-01 Thread guishenl...@gmail.com
Hi all, I'm learning how to show pictures now, and following the example ApiDemos given by sdk.I want to add the zoom function to the ImageSwitcher, but I didn't find useful code in sdk. Can anyone give me some code to help me about zooming the picture in ImageSwitcher? Here is the code of

[android-developers] screen sleeps while playing the video

2009-04-01 Thread manoj
Hi, I have written a video player app. Its working fine, but the problem is the screen is going to in sleep mode after playing some time. When I click on Menu button on the device, then only it wakes up. How can I solve this? Thanks, Manoj. --~--~-~--~~~---~--~~

[android-developers] How can I show the escape characters of a xml file in my app

2009-04-01 Thread manoj
Hi I am writing an application which reads the xml data and just prints it. The xml data consists of some escape sequence characters like , ... I am using DOM parser for this. When trying to print the data, I am not able to get the original data. The code, I am using is: Document

[android-developers] Re: playing video file

2009-04-01 Thread Dave Sparks
Have you looked at the VideoView widget? On Apr 1, 2:41 am, jaimin jaiminmeht...@gmail.com wrote: hi, i have problem in playing video file. Video file is playing nice but i want to play video file in the whole emulator (size).Right now video file is playing but in small size. so any

[android-developers] Re: Media player -38 Error

2009-04-01 Thread Dave Sparks
Looks like you are repeatedly calling the MediaPlayer.start() method when it is in an uninitialized state. On Apr 1, 12:42 am, Ramesh uthir...@gmail.com wrote: Hi, I am trying to play media player.Its working fine but in log i am getting this kind of error Can anybody tell me why this error

<    1   2