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

2009-04-01 Thread dillirao malipeddi
When you connect the device to your PC then 1) In the phone notification area it will display connect to USB open the notification and click on mount then it will allow you to access memory card I think it will help you On Thu, Apr 2, 2009 at 3:07 AM, intbt wrote: > > I am trying to access

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

2009-04-01 Thread David Turner
Can you tell us exactly what you do to access it ? On Wed, Apr 1, 2009 at 11:37 PM, intbt wrote: > > 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? > > >

[android-developers] Re: How to make a ListView adapt to dynamic element sizes?

2009-04-01 Thread for android
<> example in api demos --- Views/Lists/6.ListAdapter Collapsed On Wed, Apr 1, 2009 at 1:12 PM, Matthias wrote: > > Hi, > > I am struggling over another layouting problem again. I render a > ListView with ellipsized TextView elements, but those text views can > expand in size when the user cl

[android-developers] Re: How to know SMS and Contacts update?

2009-04-01 Thread jaimin
hi . i am new to android. i have same problem or questio that u have so if u find any answer then plz can u share with me? because i need the solution very badly. On Mar 16, 12:41 pm, Kenny wrote: > Can anybody help? To be clear, I want to write a Android Java program > to monitor the sent-outS

[android-developers] sms database

2009-04-01 Thread jaimin
hi. i am new to android . i want to devlop an appliaction in which i put lots of sms in the phone's sms database and then i would like to send those sms to contacts which user selected. 1)so first i want to know how can i see the sms database. 2)and how can i update those sms database so any sug

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

2009-04-01 Thread manoj
Here is some example.xml: "Manoj" "10th" "male" ... The name field contains ' " ' ("Manoj" as shown in the above example). When I was parsing it using the DOM parser as shown in the previous mail, I am getting only " instead of "Manoj". Not complete strin

[android-developers] Question regarding unexpected application behaviour (reported by market users)

2009-04-01 Thread EvgenyV
Hi all, I just uploaded the application and got couple of negative rates like "force closes on start". On start the tab page populated by Intent which is ListActivity. The list data is loading from resources. List is really small. No internet and file system access triggered on start. The strange

[android-developers] textView

2009-04-01 Thread pramod taragi
Hi How to set position of TextView and EditText using java code. i want to set EditText just after TextView. Thanks in advance. Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.webmessenger.yahoo.com/ --~--~-~--~~~

[android-developers] Re: playing video file

2009-04-01 Thread jaimin mehta
thanks for the suggestion but i have solve that with multiply by 16 to my 320*480px and it runs in full screen On Thu, Apr 2, 2009 at 11:26 AM, Dave Sparks wrote: > > Have you looked at the VideoView widget? > > On Apr 1, 2:41 am, jaimin wrote: > > hi, > > i have problem in playing video file. V

[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 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 occured and h

[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 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 suggestion or solution plz

[android-developers] Re: screen sleeps while playing the video

2009-04-01 Thread Dave Sparks
You need to hold a wakelock to keep the display powered up. On Apr 1, 10:33 pm, manoj wrote: > 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

[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 d

[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] 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 "A

[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 wrote: > Thanks Mark, but I'm debugging the application on a T-Mobile G

[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: Android Physics Engine

2009-04-01 Thread Dianne Hackborn
On Wed, Apr 1, 2009 at 8:10 PM, lkelemen wrote: > Link is working now. I've put > System.exit(0); > to the Activity's onStop and the performance looks stable now. Er, that is very wrong. It sounds like you aren't properly cleaning things up when the activity goes away, perhaps leaving a runnin

[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 wrote: > > Hi Everyone, > > Does anybody know how can I sort out a problem with the > WebView.pageDown(

[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 a

[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 ri

[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: 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 CollisionResolv

[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 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 not acces sd card int

[android-developers] Re: Android Physics Engine

2009-04-01 Thread Streets Of Boston
I'm curious too! :) On Apr 1, 9:25 pm, mscwd01 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 everything to >

[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] 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) wil

[android-developers] Re: Fling on ListView

2009-04-01 Thread Evan Charlton
On Wed, Apr 1, 2009 at 11:40 AM, Romain Guy 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 touch screen. Evan

[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 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 or aidl inter

[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 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

[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, wrote: > > You will need to extend the View you are displaying the drawable and >

[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 i

[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 Goog

[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 wrote: >     I've done some more profi

[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 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 previous one.  I still had

[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 wrote: >

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

2009-04-01 Thread fadden
On Apr 1, 2:01 pm, Wesley 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 > know if that

[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: float

[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 u

[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, t

[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 = Uri.parse

[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" 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. Used in conjunction wi

[android-developers] Re: Signing Problem of an APK

2009-04-01 Thread clark
What OS are you on and what version of Java is installed? Also, could you provide the commands you are running? ~clark On Apr 1, 6:17 am, "androch...@gmail.com" wrote: > Hi > > i try to sign my apk.. i exportet it unsigned.. created my keys and > when i start now jarsigner i get: > > I get th

[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 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 resigning it as strazze

[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 wrote: > It's actually not that much different than modifying any other >

[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 wro

[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 Goo

[android-developers] Re: Byte code format

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

[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 wrote: > Google_Android_discussion wrote: > > Hi, > > > Is it possible to alter the string v

[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: 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] 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 wrote: > I have create

[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: 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 important

[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 a

[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 f

[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: 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 translu

[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 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. > > Possibility of

[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 swi

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

2009-04-01 Thread ndefo arnauld
see the documentation on this link.It cans help you http://www.devx.com/wireless/Article/40842/0/page/1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[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 thing

[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 wrote: > > I have an Activity that plays a brief OGG "p

[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 wrote: > 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=In

[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 (in

[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 wrote: > Hello everyone, > > I was also dis

[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 wrote: > Mark Murphy wrote: > > Cursors are always pointing before the first result. > > Actually, to clarify: Cursors are always pointing before the first > result when you initia

[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 checke

[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 onCrea

[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: 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: 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: 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.database.Cur

[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 ch

[android-developers] Re: Debugging memory leaking

2009-04-01 Thread fadden
On Mar 31, 2:40 am, Filipe Abrantes 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 device)? If so, you can

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

2009-04-01 Thread fadden
On Apr 1, 1:32 am, herain 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  >>> > com.iflytek.service <

[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 l

[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 Waresc

[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 w

[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 legitimate

[android-developers] Re: Which android's version can support file transfer through bluetooth?

2009-04-01 Thread Mark Murphy
Kelly Mao wrote: > Which android's version can support file transfer through bluetooth? None, presently. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~--

[android-developers] Re: Drop entire database?

2009-04-01 Thread sirius
Hi, You can drop the table by writing DROP TABLE tablename IF EXISTS But after that it is good to do a VACUUM (info about that in the link below). I.e the code might look like: private SQLiteDatabase db; private static final String TABLE_NAME = "name_of_table"; try{db.execSQL("DROP TABLE

[android-developers] Re: alsa-lib

2009-04-01 Thread Mark Murphy
l hx wrote: > today i get the master code. when I compile ALSA, and it says > external/alsa-lib/src/shmarea.c:27:21: error: sys/shm.h: No such file or > directory > what should I do now? now i copy the shm.h from the former version > android. can be ok? Questions regarding the Android source cod

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

2009-04-01 Thread Mark Murphy
sirius wrote: > Hi, > I read in the documentation for SQLite that there should be some core > functions and aggregate functions available, but I can't seem to use > them in my code.. Can anyone help? > > Here's the documentation i read: > http://www.sqlite.org/lang_aggfunc.html > http://www.sql

[android-developers] Re: Static Variable Instantiation

2009-04-01 Thread Romain Guy
This is the correct and normal behavior of static fields :) If you need to reset them, you will have to do so manually. On Tue, Mar 31, 2009 at 10:37 PM, wacamoe wrote: > > Hello all, >  I have noticed in my application(s) that after a call to > Activity.finish() that the static variables that I

[android-developers] Bluetooth : RFCOMM connection fails while connecting to a headset which is in discoverable mode.

2009-04-01 Thread Bhargavi
Hi, Iam novice to android and i have seen a issue in G1. can some one help me to proceed further ? Steps to reproduce: 1.Pair and connect to a BT mono / Stereo headset. 2. Disconnect the headset from the G1 phone. 3. Switch off the headset.(Plantronics 320 / Motorola HT820) 4. Put the headset ba

[android-developers] Static Variables after Application life cycle

2009-04-01 Thread wacamoe
Hello all, I have noticed in my application(s) that after a call to Activity.finish() that the static variables that I declared in my classes still hold the values that they were changed to during the activity's life cycle. Upon the re-launch of the activity, the program does not re-instantiate

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

2009-04-01 Thread Joseph Arceneaux
I read somewhere that Google forbids the availability of paid apps to [unlocked] developer phones. It's very frustrating. Also, it seems that dev phones don't get Over The Air (OTA) updates of software. Joe On Tue, Mar 31, 2009 at 6:40 AM, Eric Schott wrote: > > I have a developers phone runni

[android-developers] Re: How to run apk file on SDcard?

2009-04-01 Thread Fred Grott(shareme)
not possible Stephen Le wrote: > Hi all, > How to run one or more apk programmess base on Emulator's SDcard? > Thanks! > -- > Sincerely! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] How to get the current webpage title and url

2009-04-01 Thread Rain
I want to use the webview's getTitle() and getUrl() to get the current webpage title and url,but i don't know how to do... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Some questions about Bluetooth A2DP.

2009-04-01 Thread Kelly Mao
I have got the code of Android 1.5,But i haven't downloaded in the phone. During read the code,I have some question about the A2DP. 1) The bluetooth earphone have connected with the phone,How does it switch to A2DP channel when we play mp3 ? Auto-switch or Depending on events from application? 2)

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

2009-04-01 Thread ambrosehua
It seems that the process(26719) shut down, rather than the service (26726); Do you mean whether the service which loaded the .so shut down or after service loaded .so, the process(26719) which maybe use the service got killed? On 4月1日, 下午4时32分, herain wrote: > I need to load a .so library in m

[android-developers] For Bluetooth File Transfer What I can do?

2009-04-01 Thread Kelly Mao
Android 1.0 can't support file transfer.If I want to do by myself what I can do? It seems don't have OBEX protocol. who knows? Please give me reply. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] setup email account programatically

2009-04-01 Thread reck.wh...@gmail.com
Hello, Does anyone know how to add email accounts to the default email application programatically? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send em

[android-developers] Static Variable Instantiation

2009-04-01 Thread wacamoe
Hello all, I have noticed in my application(s) that after a call to Activity.finish() that the static variables that I declared in my classes still hold the values that they were changed to during the activity's life cycle. Upon the re-launch of the activity, the program does not re-instantiate

[android-developers] SD Card

2009-04-01 Thread l hx
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 not acces sd card int the emulate. who know why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[android-developers] Re: Android Physics Engine

2009-04-01 Thread lkelemen
Hello everyone, I was also disappointed with jbox2d's performance so I checked APE (Actionscript Physics Engine) from http://www.cove.org/ape/ . It was converted to java (http://www.cove.org/ape/java_ape.zip) so I started to convert the java version to Android. The performance is quite OK for 10

[android-developers] Signing Problem of an APK

2009-04-01 Thread androch...@gmail.com
Hi i try to sign my apk.. i exportet it unsigned.. created my keys and when i start now jarsigner i get: I get the following Error .. what can i do?? Enter Passphrase for keystore: Exception in thread "main" java.util.zip.ZipError: jzentry == 0, jzfile = 34283992, total = 22, name = mydays0

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

2009-04-01 Thread Google_Android_discussion
Hi, Is it possible to alter the string values(in resources) in APK after creating it. Br, Vikram --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] Which android's version can support file transfer through bluetooth?

2009-04-01 Thread Kelly Mao
Which android's version can support file transfer through bluetooth? --~--~-~--~~~---~--~~ 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

  1   2   >