[android-developers] Re: How read /data directory ?

2009-05-13 Thread Francesco Pace
Ok, thanks for all Dianne, now I try with another way to implement my application. 2009/5/12 Dianne Hackborn hack...@android.com You can't. On Mon, May 11, 2009 at 11:18 PM, Francesco Pace paxa...@gmail.comwrote: Thanks Dianne. But, in my java application, I have to copy total internal

[android-developers] Re: getRuntime().exec(su do seomthing) fails (exit code)

2009-05-13 Thread toto
I have a theory since terminal application is signed with same certificate as the system certificate it has the ability to perform superuser actions What you probably meant is that a 3rd party applications (which are signed with different keys) won't pass the authorization rules. is my theory

[android-developers] change custom title view at run time

2009-05-13 Thread idev
Hi I am using a custom title view in my application for each activity. In one of the activities, based on button clicks I need to change the custom title view. Now this works fine every time when I make a call to setFeatureInt. But if I try to update any items in the custom title (say change

[android-developers] Re: Bluetooth and Serial Port Profile

2009-05-13 Thread Nick Pelly
Just a quick heads up. I'm almost complete on reworking RfcommSocket.java to improve its interface, fix a number of bugs, and eventually make it a public API. I will soon post on android-platform once its ready for more eyes. Cheers, Nick On Tue, May 12, 2009 at 11:01 AM, Zach Hobbs

[android-developers] Android power-on process

2009-05-13 Thread HelloWorld
Dear all, I am studying Android power-on routine (including how many processes are launched in system init stage and the launch sequence of them )these days. Would you please point me if there is any document regarding this topic available? Thank you in advance. Thanks, Xiaolong

[android-developers] Re: VerifyError with Maps Add-ons

2009-05-13 Thread Zach Hobbs
I can run the BroadcastReceiver in another process and it does fix it, only problem is peekService() doesn't appear to be working for me across processes :( Thanks anyways for the info. -Zach On May 11, 8:52 pm, Dianne Hackborn hack...@android.com wrote: Hi, it looks like there is a bug

[android-developers] Re: Android power-on process

2009-05-13 Thread Mark Murphy
I am studying Android power-on routine (including how many processes are launched in system init stage and the launch sequence of them )these days. Would you please point me if there is any document regarding this topic available? Thank you in advance. Questions regarding the Android

[android-developers] Re: Force close msg for few seconds when application starts, why?

2009-05-13 Thread sheik
Thanks...the above refrence and sample code really helped in understanding threads and UI in android... Now i am looking for progress bar examples whr i can add it and make it enable wen i am sending data to the internet.. Kindly suggest on it... regards, sheik On May 11, 5:19 pm, dillirao

[android-developers] Re: Bluetooth and Serial Port Profile

2009-05-13 Thread Alin Radut
On May 13, 9:19 am, Nick Pelly npe...@google.com wrote: Just a quick heads up. I'm almost complete on reworking RfcommSocket.java to improve its interface, fix a number of bugs, and eventually make it a public API. I will soon post on android-platform once its ready for more eyes. That is

[android-developers] How to get the View used my service?

2009-05-13 Thread gguoling
Hi all, I wrote a simple service, how can I get which view the service served? --~--~-~--~~~---~--~~ 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] On Destroy Notification

2009-05-13 Thread Kamal Hasan
Hi All, Any one can please tell me, How to get a notification on dead of my application.Android is killing my app after every 40 mins. Is there any way to restart the App programatically again ? Thanks and Regards Kamal --~--~-~--~~~---~--~~ You received this

[android-developers] APN design is very strange

2009-05-13 Thread taosinker
in Android code, It is a very strange concept to define the APN type (APN_TYPE_MMS). The reason are: 1) APN only is an access pointer, it haven't any special attribute for MMS or other things. 2) Only Application care the APN name, since different APN will provide different service from operator.

[android-developers] Re: android audio

2009-05-13 Thread PI9
Thanks for answering but i don't understand call that with your audio data... That's just what I'd like to do but i don't know how. The function u8*dsp_dtmf_goertzel_decode(struct dsp *dsp, u8 *data, int len, int fmt) receives struct dsp and u8 *data but how can i transform my amr file into

[android-developers] Re: Cannot Retrieve Latitude and Longitude without Internet Connection

2009-05-13 Thread ellipsoidmob...@googlemail.com
I believe the NETWORK_PROVIDER does require Internet access, because it sends details about cell towers (and possibly wifi hotspots) within range to a server and gets an approximate lat/long in return. In other words, Android does not contain internally a complete database of the locations of all

[android-developers] Re: Problems in using android to developing facebook applications .

2009-05-13 Thread daen
I have no idea yet. now I'm using CS to develop my android-facebook application. the PC working as a server,and android phone working as client. may be it will help you. best Daen On May 6, 3:25 am, Mad Donde edersondo...@gmail.com wrote: I'm having the same problem here. Looks like it happens

[android-developers] Re: sound effect using SoundPool

2009-05-13 Thread MrChaz
Apologies for necro-posting but I thought I might as well post the fix I found for the non-looping sounds in the code TJerkW posted. Essentially setLoop() takes the Id of the instance of the sound that is being played not the Id of the loaded sound. So it should look something like this:

[android-developers] Re: Hide the virtual keyboard

2009-05-13 Thread Strickidinho
Ok, I've found the answer myself and it was so easy. EditText.setInputType(InputType.TYPE_NULL); That's all. Or you set the inputType in the XML Attribute to none. On 12 Mai, 13:19, stsandr...@googlemail.com stsandr...@googlemail.com wrote: Hi, I have a similar problem. I want that no

[android-developers] Dynamically getting application context

2009-05-13 Thread jrgraf...@googlemail.com
I am currently encountering issues when extending the GPS LocationListener class. The issue that I am seeing is when I get an update via onProviderEnabled(String provider), I am unable to change the SharedPreferences used by my application. The problem here is that since I am not passed a

[android-developers] Re: how to speciyfy multiple dns servers for emulator

2009-05-13 Thread a druid
Thanks a lot. I overlooked the -help-option switch. This definitely clarifies. On May 12, 4:11 pm, David Turner di...@android.com wrote: comma separated. Try -help-dns-server for more details On Tue, May 12, 2009 at 11:43 AM, a druid klausf...@gmail.com wrote: Hi, I found following

[android-developers] opengl 纹理映射

2009-05-13 Thread xiaofeng
原来色彩很清楚的图片贴在立方体表面后发黄? --~--~-~--~~~---~--~~ 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 to

[android-developers] Can I use hw codec?

2009-05-13 Thread Ethan
As I know, there are SW codec only in android. Can I add my own interface in a). android SDK b) openmax c) PV framework d) to enable HW codec for usage? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-13 Thread scuellar
This is the solution for you problem: When you change the screen orientation, the activity is destroy and then re-created again, so you have to do the following: 1) Get a reference to the preference screen 2) Override onDestroy method in your activity 3) In you onDestroy method, call first

[android-developers] Do Cursor s stay valid across database changes?

2009-05-13 Thread Hamy
Hey All, I am looking to create objects that internally store a few cursors. When asked for data, those objects will use the cursors to get the data from the database. This is to hide my database structure from the rest of my app. My question is, if I get a cursor, and change the database with

[android-developers] Re: treeView in android?

2009-05-13 Thread mirko
Hi, I needed some sort of tree view for my application to show the content of a media server. After some thoughts I decided to use multiple list views with an animation. If you have a media server in your network you can have a look at AndroMote in the market (www.andromote.de) And yes I tried

[android-developers] Existing service?

2009-05-13 Thread arnouf
Hi, I try to use a broadcastreceiver to detect if a contact is online. I would like to detect if a contact present in my contact application is entering or leaving... I don't find an existing service or intent to do this easily using a receiver... Could you help me?

[android-developers] Re: android audio

2009-05-13 Thread PI9
Sorry I was talking about JNI Java Native Interface (instead of GNI ...) On 13 mai, 11:39, PI9 ch.castel...@gmail.com wrote: Thanks for answering but i don't understand call that with your audio data... That's just what I'd like to do but i don't know how. The function      

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-05-13 Thread mirko
http://groups.google.com/group/android-developers/browse_thread/thread/df5a3a1d08b9ae2f On 19 Mrz., 21:16, Keith Wiley kbwi...@gmail.com wrote: Thanks for the various responses.  Well received.  I will consider them in depth when I get a chance to tear myself away from the debugger. Cheers!

[android-developers] Re: include/ in TableRow

2009-05-13 Thread matthias
I have the same problem with including an EditText into a RelativeLayout. All layout parameters are ignored, or at least not recognized properly. The width/height fix doesn't work for me, because the included view must not have fixed width or height. The included view: ?xml version=1.0

[android-developers] Re: opengl 纹理映射

2009-05-13 Thread Wendal Chen
能贴一下代码吗? 图片也可以 On May 13, 8:31 pm, xiaofeng rwgcz...@163.com wrote: 原来色彩很清楚的图片贴在立方体表面后发黄? --~--~-~--~~~---~--~~ 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] How to debug android source code using eclipse?

2009-05-13 Thread Nio
Hi , Is there a way to debug Android source code with eclipse? --~--~-~--~~~---~--~~ 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: include/ in TableRow

2009-05-13 Thread matthias
Correction: Passing the layout_* params to include works, but you MUST provide them there, not in the included view. If you pre-define them in the included view, then they get ignored, so there is no point in defining defaults and only overriding the ones you need to change; you always have to

[android-developers] DexClassLoader caould not invoke method from another application properly

2009-05-13 Thread Asif k
Hi all, I had used DexClassLoader to execute the code of other application dynamically. I am calling method display() of another application from my application. The display() method will just show the Toast pop up. The following is the code of my running application DexClassLoader dLoader

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-13 Thread Scott Slaugh
Here's what I ended up doing when I get the file, which allows me to continue using the file like I was, but also sets the permissions correctly without using a shell command. private File getAudioFile(String extension) throws IOException { String fileName = recording +

[android-developers] Re: Send combination key events

2009-05-13 Thread Marco Nelissen
If you just want to launch email, why not use startActivity() ? On Tue, May 12, 2009 at 4:36 PM, Kai Hu leon.k...@gmail.com wrote: Thanks for your help Marco, I tried exactly the same way but it doesn't work. It brings me search box of google and put e in it, instead of launching email

[android-developers] Re: On Destroy Notification

2009-05-13 Thread Marco Nelissen
On Wed, May 13, 2009 at 2:36 AM, Kamal Hasan kamal.hasa...@gmail.comwrote: Hi All, Any one can please tell me, How to get a notification on dead of my application.Android is killing my app after every 40 mins. When it's in the foreground, or while another app is in the foreground? I'm

[android-developers] Re: recorded audio

2009-05-13 Thread Marco Nelissen
It doesn't show up immediately because your app didn't add it to the media provider. It shows up after a reboot because the media scanner runs at boot and scans the entire sd card. On Wed, May 13, 2009 at 6:32 AM, l hx lihongxia8...@gmail.com wrote: now when i recording a file using sound

[android-developers] Re: ListView filtering with soft keyboard

2009-05-13 Thread Romain Guy
Long press the menu key. This works only on devices with no hard keyboards. On Wed, May 13, 2009 at 6:26 AM, Strickidinho stsandr...@googlemail.com wrote: Hello, how can I use the new soft keyboard to filter a ListView? -- Romain Guy Android framework engineer romain...@android.com

[android-developers] Re: Do Cursor s stay valid across database changes?

2009-05-13 Thread Marco Nelissen
The Cursor holds a copy of the data, so it might be holding data that no longer matches what's in the database. Normally you'd use a ContentObserver or DatasetObserver with your cursor to be notified when the cursor needs to be requeried. On Wed, May 13, 2009 at 6:38 AM, Hamy hamilt...@gmail.com

[android-developers] Re: Dynamically getting application context

2009-05-13 Thread ellipsoidmob...@googlemail.com
You can cache the calling context in your extended LocationListener class when it is created, e.g. add a constructor that does something like: public class LocListen implements LocationListener { protected Activity m_CA; public LocListen(Activity CA) {

[android-developers] Querying ContactMethods gets me an email address for the wrong user

2009-05-13 Thread EboMike
Some users are reporting that I'm using the wrong email address when sending a mail to a contact from my app. I can't repro that locally, so I'm at a loss at how that could happen. Here is roughly what I do: Uri uri = ContentUris.withAppendedId(Contacts.People.CONTENT_URI, contactId); // Note:

[android-developers] Re: Testing GPS based applications - Phone choice

2009-05-13 Thread ellipsoidmob...@googlemail.com
On sites such as http://forum.xda-developers.com/ it's fairly straightforward to find firmware for HTC Magic G1, both hacked versions and official 'stock' releases, with which you can update your phone via SD card. Dunno if this is completely legal...but I expect you'd be able to keep your phone

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-13 Thread Scott Slaugh
It's not an issue right now, but I decided it would probably be wiser to leave the file private in case it becomes an issue in the future, and changed my code to use a file descriptor. Thanks for your help! On May 13, 9:20 am, Marco Nelissen marc...@android.com wrote: That allows any other

[android-developers] Re: [Tabhost] How to have tab button at the bottom of the screen?

2009-05-13 Thread Mark Murphy
When i make a tabhost, the tabs buttons are at the top of the screen. How to have it at the bottom? TabHost itself does not support this, IIRC. You may be able to achieve this using a style, but more likely you would need to clone the tab classes from the Android source code and create your

[android-developers] How to add a Menu

2009-05-13 Thread Nox
Hi everyone, I am developing an app and I want to add a menu. Do you know how to do it??? If I tap to the menu button it should display a menu. Please help me!!! Thanks in regards Viktor --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: How to get the View used my service?

2009-05-13 Thread Dianne Hackborn
Services don't show UI of any kind. On Wed, May 13, 2009 at 1:42 AM, gguoling gguol...@gmail.com wrote: Hi all, I wrote a simple service, how can I get which view the service served? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private

[android-developers] How to add a Menu

2009-05-13 Thread Nox
Hi everyone, I am developing an app and I want to add a menu. Do you know how to do it??? If I tap to the menu button it should display a menu. Please help me!!! Thanks in regards Viktor --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: getRuntime().exec(su do seomthing) fails (exit code)

2009-05-13 Thread Dianne Hackborn
Does su actually work in the terminal app? It shouldn't. Not even the system process can get root. On Tue, May 12, 2009 at 11:02 PM, toto taitel...@gmail.com wrote: I have a theory since terminal application is signed with same certificate as the system certificate it has the ability to

[android-developers] Re: How to add a Menu

2009-05-13 Thread Al
Override onCreateOptionsMenu and onOptionsItemSelected. On May 13, 5:39 pm, Nox v.beh...@googlemail.com wrote: Hi everyone, I am developing an app and I want to add a menu. Do you know how to do it??? If I tap to the menu button it should display a menu. Please help me!!! Thanks in

[android-developers] Re: How to add a Menu

2009-05-13 Thread Mark Murphy
I am developing an app and I want to add a menu. Do you know how to do it??? If I tap to the menu button it should display a menu. http://developer.android.com/guide/topics/ui/menus.html -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: dialog is getting dismissed when I am flipping the device

2009-05-13 Thread Dianne Hackborn
Don't do that. Do the proper thing of saving your state and restoring it, or use the managed dialogs API to get help from the system for that. Doing this just means your app will continue to not work in other situations where the system kills it, such as when it needs memory for something else

[android-developers] Re: How to get the View used my service?

2009-05-13 Thread Nox
Impossible!!! On 13 Mai, 18:37, Dianne Hackborn hack...@android.com wrote: Services don't show UI of any kind. On Wed, May 13, 2009 at 1:42 AM, gguoling gguol...@gmail.com wrote: Hi all, I wrote a simple service, how can I get which view the service served? -- Dianne Hackborn Android

[android-developers] Re: Animated progress in Imageview

2009-05-13 Thread Mark Murphy
Hi, I'm trying to get an indeterminate progress image to show up in my custom listview row. I tried copying the progress animation xml file into my drawable folder and setting the image source to it, but it just shows a static image. How can I get it to animate, like it would in a dialog box

[android-developers] Adb remount fails on Android 1.5

2009-05-13 Thread Kartic
Hi All, I have upgraded my phone's images to Android 1.5 images (from http://www.htc.com/www/support/android/adp.html) Now when I try commands like adb remount, chmod, adb push etc I get Operation not permitted and Permission denied errors I was able to give this command when I had 1.0 images

[android-developers] How does Gallery layout the size of each item in the Gallery

2009-05-13 Thread Daniel Dreiberg
Hi, I have created a gallery and an adaptor for it. The getView() of the adaptor get called but the view for some reason takes up whole screen of the emulator instead of taking the minimum size. Can you please tell me why is that? Did Gallery measure the minimum side of the view of each item?

[android-developers] Digital clock time adjustment

2009-05-13 Thread N V
Hi to all... Can anyone tell me how can i adjust Digital clock time...? Thank You Nithin N V --~--~-~--~~~---~--~~ 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: Polite discussion of lite/trial vs pro distribution

2009-05-13 Thread Sundog
I think you can make the situation a lot better for yourself by accepting that people generally suck. Sadly, yeah. Any moment now there will be an everything-should-be-free freak here saying that you should write code for the sake of your art, not for any expectation of monetary gain.

[android-developers] Re: Animated progress in Imageview

2009-05-13 Thread Jeff Sharkey
ProgressBar widget won't work in this case since the progress animation is shown depending on background activity associated with each list row. The widget approach would seem to work--just use android:visibility=gone until you're ready to show it with setVisibility(View.VISIBLE). -- Jeff

[android-developers] Android Mediaplayer setdatasource(String) issue

2009-05-13 Thread James Lim
I'm trying to set my Android Mediaplayer to play audio by calling mp.setDataSource(url) . It works just fine when the url is an http:// url. But when I set the source to a https://... url the audio does not play. Does media player not support https urls? Any suggestions would be

[android-developers] Change View in ListView if selected

2009-05-13 Thread Mike Lanin
Hi there! I'd like to create my ListView and make it's Views be changed while selected (or, clicked). How could I do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] HTTPS + Sync Ajax == Frozen Cupcake Browser

2009-05-13 Thread Chris
As far as I can tell, this is where to go to submit a bug report, so here it is: I was working on some changes to MythWeb (part of MythTV, which I do some work with) to bring its new iPod theme up to compliance with Android, and was getting some weird behavior from several of my ajax functions.

[android-developers] How to get class com.android.testharness to do unit performance test?

2009-05-13 Thread pipi
I want to extend TestListActivity to do unit test.But when I try to click one item,it report error like this: E/AndroidRuntime( 414): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 414): android.content.ActivityNotFoundException: Unable to find explicit

[android-developers] Anybody create local app in android source code?

2009-05-13 Thread allendroid
Hi,all: Does someone create the local app in source code?(Not sdk) Then modify the makefile, and make sdk. The local app will be the build-in app. I tried, but failed. Any steps to share with me? Thanks. --~--~-~--~~~---~--~~ You received this message because

[android-developers] [XML - XSD] From XML schemas to Android-Java classes for optimizing XML parsing and browsing.

2009-05-13 Thread JBM
Hi! My application has to handle many XML documents based on various XML schemas (XSD). I am looking for tools/libraries, running on Android, and that enable to convert efficiently XML docs into Java objects based on a pre-generated classes from XSD shemas (equivalent of xml- beans? castor?

[android-developers] open socket failed: Permission denied when application to run a native C function

2009-05-13 Thread phoenixan...@gmail.com
Hi I port a tool in native C and builed a executable file or a library, and the executable can work successfully in console (Alt + F1). Then I creat a SimpleJNI to run the executable or library, when I click the SimpleJNI icon, it will occure a error message: :socket err=Permission denied Is

[android-developers] Re: Dynamically getting application context

2009-05-13 Thread adamphillips12
Well there's a few things you can do in this situation. You can do this: public class MyClass { public void doProviderEnabledStuff(String provider){} MyLocListenerClass myListner = new MyLocListenerClass() { public void onProviderEnabled (String provider) {

[android-developers] Re: getting addresses from location

2009-05-13 Thread neoraptor
Hello, I have the same problem. Did someone find a solution? Thanks, Neoraptor. On 16 avr, 17:32, zlu zhao.lu...@gmail.com wrote: This code used to work in SDK1.1 but stopped working in1.5 I have a class that implements LocationListener in the onLocationChanged(Locationlocation) method I

[android-developers] what problem is the log.....

2009-05-13 Thread dduri
hi all... I testing android-1.5 on virtualbox. I compiled x86 porting. success booting and stop dial app. what problem?? 05-13 10:00:37.360: ERROR/AndroidRuntime(1968): Uncaught handler: thread main exiting due to uncaught exception 05-13 10:00:37.360: ERROR/AndroidRuntime(1968):

[android-developers] Custom library for android

2009-05-13 Thread Paul Turchenko
I'm creating custom *.jar library that android application writers can use. This library will provide custom views (custom android controls). Library is to be separated into couple packages. It needs to have the same access to my internal resources as it is done in android.jar library. What is

[android-developers] Se s

2009-05-13 Thread Derawi
Dear *.*, I am trying to create a rotationmatrix, to know and see how the phone is rotating. I didn't quite find any examples of how that could be used. I do have the data values of the accelerometer and the magnetic field values, however they are not aligned in time. So I have two questions: -

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-13 Thread Michael
I'm running fedora 10, and I've had similar issues. Cleaning is part of the solution. However, I had a further problem that needed to be resolved first. As with previous releases of the SDK, I've found that I needed to execute chmod 755 * in the 'tools' directory. With this release, there are

[android-developers] Re: Fring on Android Dev Phone 1 (HTC) ATT provider

2009-05-13 Thread Sunny
Currently, it seems no such software. On 3月31日, 上午11时23分, Vladimir Kelman vkel...@gmail.com wrote: Is Fring VOIP software compatible with Android Dev Phone 1 (ATT provider)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Using mediaplayer class over HTTPS?

2009-05-13 Thread David Liu
Is there any way to get the MediaPlayer class to play files streamed over HTTPS? The project I'm currently working on was working while we used HTTP only, but when we started using HTTPS instead, we found that doing the same thing with MediaPlayer over HTTPS will cause it to do nothing. Is there

[android-developers] Re: About PinyinIME in android-1.5

2009-05-13 Thread Qcshz Ihnus
On Mon, May 11, 2009 at 10:39 AM, moontain chen.worksp...@gmail.com wrote: Hi, When I get code with following repo init command to get the official android 1.5 code, I can't find the PinyinIME project, but it is in the cupcake code(-b cupcake). Why it is dropped in the official version? Is

[android-developers] Re: getting addresses from location

2009-05-13 Thread neoraptor
Hello, I have the same problem. Did someone find a solution? Thanks, Neoraptor. On 16 avr, 17:32, zlu zhao.lu...@gmail.com wrote: This code used to work in SDK1.1 but stopped working in1.5 I have a class that implements LocationListener in the onLocationChanged(Locationlocation) method I

[android-developers] How do I make a ListView scrollbar expand whilst scrolling?

2009-05-13 Thread Joel Wright
Hi, I'm having a little problem with a ListView scrollbar. The scrollbar appears at the side as expected, but how do I get the scrollbar to expand and become controllable in the same way it behaves in the Contact list? Ideally I'd like all the Contacts list functionality for my app - i.e. to

[android-developers] Are DateFormat and DateUtils supposed to be returning localized strings (1.5 emulator)?

2009-05-13 Thread adamphillips12
Hi, I'm currently testing localization on the 1.5 emulator (with sdk target of 3), I'm using the Custom Locale app to apply different locales and also I've tried setting it from Settings also. This seems to update what loads from the res/ folder, so I'm sure this is being applied. However I'm

[android-developers] Re: Do Cursor s stay valid across database changes?

2009-05-13 Thread Hamilton Turner
Marco, Thanks for the reply. Do you happen to have a link to this being used? I though a cursor was similar to PHP's handle, meaning that it did not retrieve the data until the data was actively requested, saving on all sorts of things. So if I had a class with 5 cursors, all pointing to

[android-developers] open socket failed: Permission denied when application to run a native C function

2009-05-13 Thread Terence
Hi I port a tool in native C and builed a executable file or a library, and the executable can work successfully in console (Alt + F1). Then I creat a SimpleJNI to run the executable or library, when I click the SimpleJNI icon, it will occure a error message: :socket err=Permission denied Is

[android-developers] Sensor, Accelerometer, Orientation, RotationMatrix

2009-05-13 Thread Derawi
Dear *.*, I am trying to create a rotationmatrix, to know and see how the phone is rotating. I didn't quite find any examples of how that could be used. I do have the data values of the accelerometer and the magnetic field values, however they are not aligned in time. So I have two questions: -

[android-developers] Should I use Cursors, or and Object[] to return data from a DB

2009-05-13 Thread Hamilton Turner
So I have a database with 2 tables. One is the Polygon table, and each row in Polygon can map to multiple rows in the Points table. I want a fetchAllPolygons function, similar to the sample Notepad application. I could do something like this (I could make it better, but that's the main

[android-developers] Start a program in background

2009-05-13 Thread jhonny
Hello Everybody, I'm trying to do a program...and I wanna know how do I put the program in background!! But it's no put the program in background, the program will start in background and close when the user open again and press close!! Somebody knows where I can find?? I looked in the

[android-developers] Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Streets Of Boston
Hi, Part of my application allows the user to color-correct images. When i open an image for editing, i'd like to know what, more or less, the available bitmap memory is for the device that the app is running on. For the G1, the limit is use is about 6MByte (about a full-size image that can be

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Dianne Hackborn
There is no such thing as bitmap memory really. Bitmap allocations are accounted against your app's overall memory, which is limited to 16MB. On Wed, May 13, 2009 at 10:35 AM, Streets Of Boston flyingdutc...@gmail.com wrote: Hi, Part of my application allows the user to color-correct

[android-developers] Re: Start a program in background

2009-05-13 Thread Mark Murphy
I'm trying to do a program...and I wanna know how do I put the program in background!! Look at services. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You

[android-developers] Re: Sensor, Accelerometer, Orientation, RotationMatrix

2009-05-13 Thread Dianne Hackborn
You can't get them exactly at the same time... I'm not sure the hardware can even do that. But why do you need it? If I am moving my device around in space, I don't see how the two being off by a sample or two is going to cause any problem. And I don't believe the compass actually keeps up to

[android-developers] Re: Change View in ListView if selected

2009-05-13 Thread Mark Murphy
I'd like to create my ListView and make it's Views be changed while selected (or, clicked). How could I do it? Detect clicks or selections, and change the appropriate row View. Could you be more specific in terms of where you need assistance? -- Mark Murphy (a Commons Guy)

[android-developers] Re: Do Cursor s stay valid across database changes?

2009-05-13 Thread Dianne Hackborn
It makes a copy. This is how SQLite works. What things you need to observe is really dependent on your schema... and if this isn't behind a content provider, it is actually entirely up to you to tell your code when things change so you can do that however you want. On Wed, May 13, 2009 at 9:35

[android-developers] updating an AlertDialog after it was created when the AlertDialog displays an array as a list

2009-05-13 Thread gymshoe
I am trying to let the framework manage my alertDialogs. I have no trouble creating the alertDialogs using onCreateDialog(), and I am able to do some on-the-fly updating of these alertDialogs using the following code in onPrepareDialog(): protected void onPrepareDialog(int id, Dialog

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Streets Of Boston
Hi Dianne, Thanks for your response. I know that there is no real thing like bitmap memory. But i also know that when i open a 12MByte bitmap (3MPixel, ARGB_) i *always* get a OOM error. Even if i have more than 12MByte left to work with, according to the heap dump. I'm asking if there is

[android-developers] List items not clickable when using ListAdapter, but clickable with SimpleAdapter

2009-05-13 Thread brian.schim...@googlemail.com
Hi, I was populating a list with a SimpleAdapter like this: final ListMapString, String data = someObject.getData(); SimpleAdapter dataAdapter = new SimpleAdapter (this, data, R.layout.listline, from, to); listView.setAdapter(dataAdapter);

[android-developers] Re: Question on ContentProviders

2009-05-13 Thread Jonathan Herriott
Thanks Dianne. That helps alot. The reason I asked is because my ContentProvider will allow other applications to insert into it, similar to a logging system. Since I can't guarantee an application won't try to abuse it, I was just trying to figure out what type of safeguards to put into it.

[android-developers] Re: Gallery usage without using styleable

2009-05-13 Thread lilbyrdie
I've answered my own question. Net result is the same, just a different way of getting to the default theme resources, but it's what I was missing. Within your attrs.xml file, place a block that looks like the following: declare-styleable name=default_gallery attr

[android-developers] Re: Android Dev Phone 1 activation Problem

2009-05-13 Thread devi prasad
Hi, I'm also facing a similar problem with Airtel SIM in India.I get the following error message: There is a problem communicating with the Google Servers; This could be a temporary problem. Your SIM card may not be provisioned for data services. If it continues, call customer care. Any help

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Dianne Hackborn
According to what heap dump? I am pretty sure that the code just checks to see if there is that amount of space left in the java heap, and if not fail (otherwise allocate it and tell the VM to account for that as part of its heap usage). On Wed, May 13, 2009 at 11:24 AM, Streets Of Boston

[android-developers] Re: Should I use Cursors, or and Object[] to return data from a DB

2009-05-13 Thread Mark Murphy
Please bear in mind that you are writing applications to run on mobile devices whose horsepower is reminiscent of PCs from a decade ago. Programming techniques that you might use on a current PC with tons of RAM, fast CPUs, and access to constant AC power are not necessarily recommended in

[android-developers] Re: How do I make a ListView scrollbar expand whilst scrolling?

2009-05-13 Thread Dianne Hackborn
Use this: http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:fastScrollEnabled On Wed, May 13, 2009 at 3:39 AM, Joel Wright joel.wri...@gmail.com wrote: Hi, I'm having a little problem with a ListView scrollbar. The scrollbar appears at the side as expected,

[android-developers] Re: Should I use Cursors, or and Object[] to return data from a DB

2009-05-13 Thread Dianne Hackborn
And there are of course other ways to do this -- have a PolygonCursor object for instance that lets you iterate over the cursor and provides an API to get the polygon data for the current position. On Wed, May 13, 2009 at 11:40 AM, Mark Murphy mmur...@commonsware.comwrote: Please bear in mind

[android-developers] Re: Change View in ListView if selected

2009-05-13 Thread Mark Murphy
I'd like to create my ListView and make it's Views be changed while selected (or, clicked). How could I do it? Detect clicks or selections, and change the appropriate row View. Could you be more specific in terms of where you need assistance? At the risk of replying to myself, let me

[android-developers] Stuck in landscape mode after launching YouTube

2009-05-13 Thread Chister Nordvik
Hi! 1. User clicks an image in my app 2. The app launches YouTube 3. Screen is rotated in landscape 4. User presses home button 5. User starts my program again 6. My program is launched with the main screen but it's stuck in landscape mode (due to Youtube switching orientation) Nothing I do

[android-developers] Re: How do I make a ListView scrollbar expand whilst scrolling?

2009-05-13 Thread Jeff Sharkey
Also, to get the A-Z overlay when using fastScrollEnabled, you'll need to implement SectionIndexer for your adapter. Something like AlphabetIndexer works great if you have a sorted Cursor. http://developer.android.com/reference/android/widget/SectionIndexer.html j On Wed, May 13, 2009 at

  1   2   >