[android-developers] Re: how can i check landscap orientation ?

2009-03-25 Thread suhas gavas
Hi make use of sensorListener and it will work . i have used the same .. when u use sensorlistener and sensormanager in ur view it has got an override method as onSizeChanged which return the width and height. so using change in size u will get the orientation Below is a

[android-developers] Drawable or Uri for Notification icon

2009-03-25 Thread android_dev
The Notification API allows to set a drawable resource id for the icon of a notification. This drawable resource id is used to put the icon in the status bar and in the expanded window shade. This is a limitation if the icon images are to be represented by a Drawable or from a content provider

[android-developers] How can I encrypt and decrypt the data

2009-03-25 Thread manoj
Hi, I want to write an app which encrypts the data and decrypts it into original data. But I dont know how to do it. can any one please guide me how to do it. if possible please show me some example. Thanks, Manoj. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to show my ProgressBar

2009-03-25 Thread guishenl...@gmail.com
I still have some question on it. If I put the backgroundWork() in another thread, how can the main UI thread know background thread has finished? And how to pause the main UI thread to wait for backgroundWork(). On Mar 25, 12:44 pm, Marco Nelissen marc...@android.com wrote: The problem is that

[android-developers] Re: How to show my ProgressBar

2009-03-25 Thread iDeveloper
Make use of Handlers to tell the main thread when the other thread has stopped or completed its task. final Handler handler = new Handler() { @Override public void handleMessage(Message message) { //do something here. Will be done on main thread } }; Use

[android-developers] DexClassLoader Feature in the Cupcake

2009-03-25 Thread Asif k
Hi all, Can anyone please provide some information regarding the reflection API DexclassLoader, which will be includeed in cupcake release?? In the latest development of the cupcake, whether this feature is added or still to be done?? I f already included then any reference which will

[android-developers] Re: how can i check landscap orientation ?

2009-03-25 Thread Dianne Hackborn
If you just want to find the current orientation of the screen, the sensor manager is just totally the wrong direction to take. What you want to do is use getResources().getConfiguration() (sorry I incorrectly previously posted to use getDisplayMetrics()). You can follow the docs on

[android-developers] Re: Drop entire database?

2009-03-25 Thread Dianne Hackborn
On Tue, Mar 24, 2009 at 10:53 PM, gudujarlson gudujarl...@gmail.com wrote: The context class is not where I would expect to find the function to delete a SQLite database. Wouldn't it be more intuitive to have this function on the SQLiteDatabase class? The Context class has a suite of

[android-developers] Re: Screen Orientation.

2009-03-25 Thread Dianne Hackborn
Sorry I made a mistake, use getResources().getConfiguration(). On Tue, Mar 24, 2009 at 10:43 PM, for android forandr...@gmail.com wrote: Does that mean from the DisplayMetrics we need to check from the height and width? On Wed, Mar 25, 2009 at 10:55 AM, Dianne Hackborn

[android-developers] photo picker Uri issue

2009-03-25 Thread beachy
In some code I call this; Intent photoPickerIntent = new Intent (Intent.ACTION_PICK); photoPickerIntent.setType(image/*); startActivityForResult(photoPickerIntent, 1); then implement

[android-developers] How to launch C program application at start-up

2009-03-25 Thread vrukesh
HI, We are trying to launch C program application (for example, Helloworld) at start-up on ARM-based target board. We copied the application in /system/bin and modified the init.rc script to add the entry of the application in on boot. But, still, the application does not launch at the

[android-developers] How to setup the DNS to access the external nework

2009-03-25 Thread lianwei
Hi all, I can not access the external network because of DNS problem, below is my steps: 1. Setup DNS ./adb shell setprop net.dns1 xx.xx.xx.xx I can successful access the internal network withou setting the http_proxy, such as my.mycomany.com 2. Setup proxy Setup the http_proxy

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread lianwei Wang
More info, It can access the external network with IP address. 2009/3/25 lianwei lianwei.w...@gmail.com Hi all, I can not access the external network because of DNS problem, below is my steps: 1. Setup DNS ./adb shell setprop net.dns1 xx.xx.xx.xx I can successful access the

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread Eric Chan
Push a Ipconfig file to you phone or emulator Best Regards Eric Chan On Wed, Mar 25, 2009 at 4:00 PM, lianwei Wang lianwei.w...@gmail.comwrote: More info, It can access the external network with IP address. 2009/3/25 lianwei lianwei.w...@gmail.com Hi all, I can not access the external

[android-developers] Re: How to launch C program application at start-up

2009-03-25 Thread vinay harugop
try this, service helloworld /system/bin/helloworld user root oneshot On Wed, Mar 25, 2009 at 1:18 PM, vrukesh vrukesh.pa...@gmail.com wrote: HI, We are trying to launch C program application (for example, Helloworld) at start-up on ARM-based target board. We copied the

[android-developers] How do the services communicate with each other?

2009-03-25 Thread Nio
HI there, I am trying to send AT commands via Ril from LocationManager as there is only one AT port I can use. But it seems like that there is no ways to call the function refer to Ril. Can I just new a commandsinterface and to call ril's functions via it? Any ideas will be great appreciated.

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread lianwei
Where can I find the Ipconfig? is it ifconfig? -Lianwei On Mar 25, 4:11 pm, Eric Chan jude...@gmail.com wrote: Push a Ipconfig file to you phone or emulator Best Regards Eric Chan On Wed, Mar 25, 2009 at 4:00 PM, lianwei Wang lianwei.w...@gmail.comwrote: More info, It can access the

[android-developers] Re: how to get the current matrix mode?

2009-03-25 Thread tcassany
I will write a wrapper as you explain. It's not very beautifull but it's the only solution that I see now. Thank you. Thomas On Mar 24, 8:31 am, Anton socialhac...@gmail.com wrote:     Thomas, I just tested this using the glGetIntegerv method that takes an int array instead of a Buffer.  It

[android-developers] Re: DexClassLoader Feature in the Cupcake

2009-03-25 Thread Ask
Please respond.. Whether DexFile class can solve this purpose? On Mar 25, 11:52 am, Asif k asifk1...@gmail.com wrote: Hi all,    Can anyone please provide some information regarding the reflection API DexclassLoader, which will be includeed in cupcake release?? In the latest

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread David Turner
Are you sure the DNS server you use is capable of returning IP addresses for non-local domains ? On Wed, Mar 25, 2009 at 8:53 AM, lianwei lianwei.w...@gmail.com wrote: Hi all, I can not access the external network because of DNS problem, below is my steps: 1. Setup DNS ./adb shell

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-03-25 Thread David Turner
pull is an adb command, you need to run it on the host (there is no easy way to send a file to your host from the system). E.g. adb pull device-path host-path On Wed, Mar 25, 2009 at 4:34 AM, havexz bali.param...@gmail.com wrote: well i am able to access the folder but still unable to get

[android-developers] Re: Localizing layouts?

2009-03-25 Thread Gulfam
Hi, see this hopes it will help you https://groups.google.com/group/android-developers/web/localizing-android-apps-draft Regards, Gulfam On Mar 24, 10:01 pm, BoD bodl...@gmail.com wrote: Thanks a lot, I saw this doc but I guess I read it a bit too fast, and I was unsure the suffixing applied

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Al Sutton
Tried a checkout and build of the cupcake branch this morning and got; Output: out/host/common/obj/JAVA_LIBRARIES/temp_layoutlib_intermediates/javalib.jar Input : out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar Input :

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread lianwei
No, I check it with nslookup, and found that the DNS server can not return a IP address for the external network. So this is the root cause, but how to make it worked in Android Emulator? Do I need to find a available DNS server, or some other settings? -Lianwei On Mar 25, 5:27 pm, David Turner

[android-developers] Re: Bundles and serializable objects - what is actually stored?

2009-03-25 Thread matthias
Thanks for your in-depth answer, that was really helpful. Cheers, Matthias --~--~-~--~~~---~--~~ 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: How to setup the DNS to access the external nework

2009-03-25 Thread David Turner
On Wed, Mar 25, 2009 at 10:42 AM, lianwei lianwei.w...@gmail.com wrote: No, I check it with nslookup, and found that the DNS server can not return a IP address for the external network. So this is the root cause, but how to make it worked in Android Emulator? Do I need to find a available

[android-developers] Re: How can i check the mode of orientation?

2009-03-25 Thread Amir Alagic
try with: int orientation = getResources().getConfiguration().orientation; On Mar 24, 1:03 pm, Suman ipeg.stud...@gmail.com wrote: Hi all...                  Thanks for replies. Can any one tell me by which method i can check the screen orientation? I mean i want to check

[android-developers] Re: Can we charge some externals stuffs for a paid Android Market game

2009-03-25 Thread jokamax
Here the answers at this topic : http://groups.google.fr/group/android-discuss/browse_thread/thread/f7b87462549b3a3d?hl=fr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: get Certificates from Package

2009-03-25 Thread Lutz Schönemann
Well there is a PackageParser class inside the core which reads the Certificates. But there seems to be no interface to get them via the standard API. Do I have to let my app parse the package it self? Am 23.03.2009 um 18:09 schrieb Lutz Schönemann: Hi, I'm looking for a way to get the

[android-developers] How to get the permission WRITE_SECURE_SETTINGS

2009-03-25 Thread Stanley.lei
Hi all, I am developing the application based on the latest cupcake branch. I met a security issue, which needs the permission WRITE_SECURE_SETTINGS. I have tried to grant it to my application, but when the package is installed, an error is reported: 01-15 06:50:49.780:

[android-developers] Re: How to get the permission WRITE_SECURE_SETTINGS

2009-03-25 Thread Stanley.lei
One more thing as the supplement, is that I met this issue when I tried to call the non-published API BluetoothDevice.disable(), but the API BluetoothDevice.enable() works well. I am just curious about why enabling bluetooth is allowed, while disabling bluetooth is not allowed. I think these two

[android-developers] opencore

2009-03-25 Thread wangxianjian8311
hi all! i want to know whether the g1 use the pv omxcore in opencore . if i do not have any hardware codec. if i just use the pv omxcore. can the system be commercial and steady? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: How to make the music player recognized the AAC file in cupcake?

2009-03-25 Thread wangxianjian8311
i meet same matter before, and i solve it in same way as you .i just change the mediafile.java. i could see the file in the music in my device. but in simulator. i found i could not see any other files if we move them to the sdcard when i mount the sdcard to the system before.

[android-developers] How to update Gallery

2009-03-25 Thread neuzou
Hi: everybody, I want to update Galley items, like change or remove some items, or add new items, after I update my items ArrayList, the Gallery will not update it immediately, I must drag it out of screen, then drag it back, the update item will displayed, I tried invalidate () method, I want

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread a...@tw
I alslo got similar situation. Follow this cupcake/development/tools/eclipse/README_WINDOWS.txt. I already build a SDK for Linux and Windows environment. And ADT 0.9.0 for Eclipse. But I got one trouble. Under Windows environment ( I do not try this in linux yet). I start the Eclipse and create

[android-developers] Re: Cannot delete that URL exception

2009-03-25 Thread T patel
Hi .. u can try this code Cursor c = getContentResolver().query(Phones.CONTENT_URI, null,phones._id =+id, null, null); this code will return a row contain _id. first ... you try with phone no to get _id Cursor c= context.getContentResolver().query

[android-developers] Question about OpenGL literature

2009-03-25 Thread EvgenyV
Hi all, Can you please suggest some book(s) or any other useful references about OpenGL? Thanks in advance, Evgeny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] How to set the video in full screen mode?

2009-03-25 Thread manoj
Hi, I am writing a small video player application. It's working fine. The video is visible on the device, but the app name is visible on the top of the video. I want to avoid this (complete full screen mode, there is no appname only video should be there). Can you please tell me how to

[android-developers] Re: How to set the video in full screen mode?

2009-03-25 Thread Mark Murphy
manoj wrote: Hi, I am writing a small video player application. It's working fine. The video is visible on the device, but the app name is visible on the top of the video. I want to avoid this (complete full screen mode, there is no appname only video should be there). Can you

[android-developers] Re: kill GPS activity when quitting an application

2009-03-25 Thread ellipsoidmob...@googlemail.com
When you 'exit' an application, it isn't necessarily immediately destroyed by the system (see the activity lifecycle documentation), so I suspect that's why the GPS stays active and keeps getting updates. You might want to remove updates in onStop() instead. Probably unrelated, but calling

[android-developers] Re: DexClassLoader Feature in the Cupcake

2009-03-25 Thread Mark Murphy
Questions regarding Android development tools or pre-released versions of the firmware should be addressed to a discussion list for the Android open source project: http://source.android.com/discuss Ask wrote: Please respond.. Whether DexFile class can solve this purpose? On Mar 25,

[android-developers] android http GET 400 error

2009-03-25 Thread zeeshan
Hi Android Experts, i need to make a GET request to the http://www.x.com/server.xml which takes 3 mandatory headers hdr1,hdr2,hdr3 i am trying this code try { String path = http://x.com/server.xml;; HashMap parameters = new HashMap();

[android-developers] Re: How to set the video in full screen mode?

2009-03-25 Thread manoj
Thank you very much Murphy, it helped me a lot. On Mar 25, 5:01 pm, Mark Murphy mmur...@commonsware.com wrote: manoj wrote: Hi, I am writing a small video player application. It's working fine. The video is visible on the device, but the app name is visible on the top of the video.

[android-developers] Re: Local and Remote Services

2009-03-25 Thread Mark Murphy
Vipul Sagare wrote: After spending few days with Services API, here are some of my questions. I would appreciate your answers and any leads to blogs/postings. I have already gone through API reference and APIDemos for AlarmService, LocalService, and RemoteService. - Are there any good

[android-developers] Re: android http GET 400 error

2009-03-25 Thread Mark Murphy
zeeshan wrote: Hi Android Experts, i need to make a GET request to the http://www.x.com/server.xml which takes 3 mandatory headers hdr1,hdr2,hdr3 i am trying this code Your code appears to be setting form variables, which are not HTTP headers. Headers are set via setRequestProperty()

[android-developers] Re: PendingIntent problem

2009-03-25 Thread Blake B.
Intents are cached by the system, and two Intents are not differentiated by their Extras. So your two intents look like the same Intent and the second one is being tossed out. You must differ Intents by their Action/Data/Category. I will sometimes use the Data field to hold a simple ID that is

[android-developers] Re: android http GET 400 error

2009-03-25 Thread zeeshan
well, thanks i added these headers conn.setRequestProperty(hdr-1,this.hdr1); conn.setRequestProperty(hdr-2,this.hdr2); conn.setRequestProperty(hdr-3,this.hdr3); but now i am getting 500 error response i need to use a get method for http://www.x.com/server.xml with the

[android-developers] Re: KeyListener Eating My Keystrokes

2009-03-25 Thread Gesh
What you need is an OnKeyListener and not a KeyListener. On Jan 28, 6:04 pm, Dan danscott0...@gmail.com wrote: Hi, I'm trying to setup aKeyListeneron an EditText widget. My code is as follows: code         mMsgToSend.setKeyListener(newKeyListener()         {                        

[android-developers] Re: android http GET 400 error

2009-03-25 Thread Mark Murphy
zeeshan wrote: well, thanks i added these headers conn.setRequestProperty(hdr-1,this.hdr1); conn.setRequestProperty(hdr-2,this.hdr2); conn.setRequestProperty(hdr-3,this.hdr3); but now i am getting 500 error response i need to use a get method for

[android-developers] Shutdown notification?

2009-03-25 Thread Cyril Jaquier
Hi all, I would like to perform a task just before the phone is shut down. I thought that Application#onTerminate would be called but that does not seem to be the case. Is there a broadcast intent when the phone is going to shutdown? If not, how to run a task just before the phone is turned

[android-developers] How to display 2 ListViews on the screen at the same time

2009-03-25 Thread xinit
Hello I am trying to design a UI which utlizes two ListViews on the screen at the same time. Is this possible ? So here is a quick example of how I was intending to do this. 1) Create an XML which positions 2 ListViews one onto of the other each ListView having there own ID ListView

[android-developers] Re: How to get the handle for one pop-up dialog?

2009-03-25 Thread david liu
Can anyone give me a hand? On Tue, Mar 24, 2009 at 10:19 PM, david liu wanqing.da...@gmail.com wrote: Hi All, Here I have one question about I want to get the handle for one popup dialog, such as, there is one Delete alertDialog pop up when you want to delete one picture. So could anyone

[android-developers] Re: How to display 2 ListViews on the screen at the same time

2009-03-25 Thread Mark Murphy
xinit wrote: Hello I am trying to design a UI which utlizes two ListViews on the screen at the same time. Is this possible ? So here is a quick example of how I was intending to do this. 1) Create an XML which positions 2 ListViews one onto of the other each ListView having there

[android-developers] Re: Question about OpenGL literature

2009-03-25 Thread Streets Of Boston
Google this opengl es I found the links to the khronos web-pages most helpful. Other links found by google can be helpful as well :-) Another source is the OpenGL examples on the APIDemos bundled with the Android SDK. For books; i cannot help you there. On Mar 25, 7:43 am, EvgenyV

[android-developers] Re: how to get the current matrix mode?

2009-03-25 Thread Streets Of Boston
Before you do all the work, take a look these classes bundled in the OpenGL session of the APIDemos of the samples in the Anroid SDK: MatrixTrackingGL.java. In your SDK or online:

[android-developers] Re: photo picker Uri issue

2009-03-25 Thread Streets Of Boston
This Uri is the logical (not physical) path used by the image content provider. If you want to get the physical path to the actual file on the SD- card, query this Uri: Cursor cursor = query(photoUri, new String[] {MediaStore.Images.ImageColumns.DATA}, null, null, null); String

[android-developers] Re: JUnit on the emulator without instrumentation

2009-03-25 Thread gudujarlson
Assuming there is no easy way to make use of android.test without instrumentation, has anyone tried to do their own port of JUnit (or similar framework) to the android platform? On Windows Mobile I am using NUnitLite. Does JUnitLite exist? --~--~-~--~~~---~--~~

[android-developers] Process is not ending ?

2009-03-25 Thread AndRaj
Hi All, Can anyone tell me where can I see the active process and current process. I think we can see in the DDMS -- Devices. But when see the process list, when I launch a application it showing that applications process in the list. after finishing that application also it showing it process

[android-developers] Re: PendingIntent problem

2009-03-25 Thread Blake B.
To correct my previous statement, PendingIntents are cached by the system, not Intents. The note about how to differentiate Intents still holds though, so if you need to replace a current PendingIntent with a new PI that has a new Intent that only differs by its Extras, be sure to use the flag

[android-developers] Re: How to display 2 ListViews on the screen at the same time

2009-03-25 Thread xinit
Thanks ! So yes I got it to work by calling setAdapter on the ListView object. //setListAdapter for ListView 1 setListAdapter(new ArrayAdapterString(this, R.layout.row, R.id.label, mStrings)); //Code to display ListView 2 ListView cities = (ListView)

[android-developers] Re: How to display 2 ListViews on the screen at the same time

2009-03-25 Thread Mark Murphy
xinit wrote: For Example if I have two ListViews one ontop of another, for me to scroll the list in the bottom ListView I have to navigate all the way down through all items in ListView 1 before entering or focussin on List View2. Simple: don't use two lists on the screen at one time. --

[android-developers] Re: ProgressDialog is not showing...

2009-03-25 Thread mat
Anybody knows how to solve the problem ?? Maybe need more info ? Thx On Mar 24, 5:32 pm, mat tomasz.matyszew...@gmail.com wrote: Hi, I know that this is common problem, but still I cannot find the answer... I have two classes: InternetConnection extends Activity ConnectionChangeReceiver

[android-developers] Re: android http GET 400 error

2009-03-25 Thread zeeshan
thanks for the reply Mark! i tried httpget also but same 500 error. is there any sniffing tool i can configure with emulator to check the exact http trafic format? On Mar 25, 1:25 pm, Mark Murphy mmur...@commonsware.com wrote: zeeshan wrote: well, thanks i added these headers  

[android-developers] Re: android http GET 400 error

2009-03-25 Thread Mark Murphy
zeeshan wrote: thanks for the reply Mark! i tried httpget also but same 500 error. is there any sniffing tool i can configure with emulator to check the exact http trafic format? I seem to recall there are various local proxy servers you can use to intercept HTTP traffic, though getting

[android-developers] Re: how can i check landscap orientation ?

2009-03-25 Thread Kather Jailani
Pls add andoid:configChanges=orientation|keyboard And override onConfigurationChanged and check the orientation against Configuration.ORIENTATION_LANDSCAPE or potrait On Mar 25, 2009 12:56 AM, Suman ipeg.stud...@gmail.com wrote: Hi Many thanks for replies. I actually want

[android-developers] Track Ball Problem...

2009-03-25 Thread ANKIT SOMANI
Hi, I want to Develop a Game in which I want to move my object using Track Ball. for this i use onKeyDown() to up,down,left,right,fire movement in my class. Its working fine in Emulator on D-Pad., but when i install in device trackball not working efficiently. on Printing LogCat it says that the

[android-developers] Re: Drop entire database?

2009-03-25 Thread gudujarlson
The Context class has a suite of functions for creating, opening, and deleting databases at the standard location of databases for your app. The SQLiteDatabase class can be used to access a databases at any absolute path. In that case, you are using an absolute path, so use File to delete

[android-developers] Singleton in different service which share same process

2009-03-25 Thread Jove
Hi guys, I meet an issue. I have two services, both of them lies in separate apk, which run in same process. The two service share same jar file by uses-library method. The jar file implement a class, say test, is a singleton. But I found that two instance of test is created under this

[android-developers] Intercept Incoming SMS

2009-03-25 Thread Jorge Fonseca
Hi All, Does anyone known if its possible to intercept incoming SMS to my app? Similar to PushRegister in JME. I try to BroadcastReceiver - works fine but the SMS also goes to Native Inbox app. Regards, Jorge. --~--~-~--~~~---~--~~ You received this message

[android-developers] Questions related to android, please answer

2009-03-25 Thread tharunandr...@gmail.com
1. What is the name of the alliance that supports Android? 2. Which is the kernel that Android relies on for core system services? 3. Is Android a multi-process system? 4. What is an Android installable called ? 5. What are the basic building blocks of an Android Application? 6. Which is the

[android-developers] Can we link Yahoo API classes with Android as GTalkService and other classes from Wireless package have been removed ?

2009-03-25 Thread Sun
I am new to Mobile Developments in Java, so any help would be greatly appreciated. Thanks, Sun --~--~-~--~~~---~--~~ 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] Cupcake Emulator do not mount SD card image

2009-03-25 Thread Victor
I just download a cupcake branch of source code and build it. I configured Eclipse for a new SDK, and appear the things is works great, EXCEPT emulator. 1. I configured a new AVD as parameter i pointed my old sdcard.img then loaded and do not see my sdcard 2. then I back and configure another AVD

[android-developers] I get this message when i enter emulator in my command prompt,Help me.

2009-03-25 Thread tharunandr...@gmail.com
Cannot create data directory:C:\Documents and Settings\Tharun Gowda \Local Settings\Application Data\Android\SDK-1.0 Please specify a writeable drirectory with -datadir. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Creating multiple layouts

2009-03-25 Thread Vijay Bahirji
Hi, I am new to android and trying to create a customized list. Every item in the list has TextView and one Ratingbar. I now want add a couple of command buttons at the end of the list (like BACK, HOME, , NEXT). When I add these extra views to the layout xml file then they get added along with

[android-developers] Task activity stack always reset when launched from Home

2009-03-25 Thread jseghers
I am just starting on an Android app and I am puzzled about why my Task activity stack is being reset any time the application is launched from the Home screen. I used the ADT tools to create the application in Eclipse. The main activity is .UserLaunch and it starts the activity .About when the

[android-developers] sd card

2009-03-25 Thread dezel1216
thanks for advice your a life saver --~--~-~--~~~---~--~~ 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,

[android-developers] .apk install fails: package conflict

2009-03-25 Thread bee
I'm testing an app I'm developing and asked a friend to install on their device. I wanted to make it as easy as possible for them to help me out so I put the .apk up on my website for them to download to the phone (rather than making them download the SDK and use adb to install). The install of

[android-developers] Cupcake Emulator do not mount SD card image

2009-03-25 Thread Victor
I just download a cupcake branch of source code and build it. I configured Eclipse for a new SDK, and appear the things is works great, EXCEPT emulator. 1. I configured a new AVD as parameter i pointed my old sdcard.img then loaded and do not see my sdcard 2. then I back and configure another AVD

[android-developers] All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-25 Thread Zhubham
“All SYMBIAN based end devices accept Java language Applications” (i) Does this mean that the applications made for Android would run in S60 , without any modifications?? (ii)If not then what exactly we mean when we say the above statement?? Is there any web link to which I can refer

[android-developers] Re: Q. Stack trace gives Hex values not function names when core library crashes

2009-03-25 Thread rajat
Hi While trying to debug native C libraries, upon receiving a SIGSEGV, the core dump thrown does not map address values to symbols as seen in DDMS. As mentioned above this is happening due to stripping of binaries. How can we prevent such stripping in Android or obtain detailed stack trace

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread codethief
I think this is the thread you guys are looking for when trying to build cupcake: http://groups.google.com/group/android-platform/browse_thread/thread/775582c99fa2980f?hl=en On Mar 25, 12:21 pm, a...@tw schosnab...@gmail.com wrote: I alslo got similar situation. Follow this

[android-developers] Re: Q. Stack trace gives Hex values not function names when core library crashes

2009-03-25 Thread rajat
Hi While trying to debug native C libraries, upon receiving a SIGSEGV, the core dump thrown does not map address values to symbols as seen in DDMS. As mentioned above this is happening due to stripping of binaries. How can we prevent such stripping in Android or obtain detailed stack trace

[android-developers] Launch / Re-Launch flow

2009-03-25 Thread Brian
I'm trying to get a handle on the onXXX() flow, but am not sure if what I'm seeing is by-design, or is an artifact of repeated debugging sessions on the emulator. android:launchMode=singleInstance The app extends TabActivity, has a few tabs whose content is set via new Intent, but no heavy

[android-developers] Re: shared Jar files between different project

2009-03-25 Thread Jove
Hi Thanks firstly. Both project is running. In fact B is running, I try to instaniante A from B which lies in different apk. but it failed. The type should be com.example.test.(Just a guess, I'll confirm tomorrow) Regarding Is framework/base in project A or B? , I think both. When I put

[android-developers] Research on Android Mobile Platform

2009-03-25 Thread V N Reddy
I am V.Narasimha Reddy, working for Infiniti Research, a business research and consulting company, headquartered in UK. Our Company offers business research and consulting services to many of the Fortune 1000 companies including Cisco, Ferrari and BP. Presently, we are working on organizing a

[android-developers] Security library error

2009-03-25 Thread Ana
Hi all, I have the following error in my Android project: - This is the instruction: Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() ) - And this is the error: com.sun cannot be resolved to a type How can I solve it? Many thanks

[android-developers] UEventObserver

2009-03-25 Thread Charles Lu
I'am trying to monitor the device status in java layer using UEventObserver in my own service, during run time, error occurs. Below is the log: java.lang.RuntimeException: Unable to open socket for UEventObserver From the code tracking, in native, in function int uevent_init(), it will call s

[android-developers] UEventObserver

2009-03-25 Thread Charles Lu
I'am trying to monitor the device status in java layer using UEventObserver in my own service, during run time, error occurs. Below is the log: java.lang.RuntimeException: Unable to open socket for UEventObserver From the code tracking, in native, in function int uevent_init(), it will call s

[android-developers] Switch to SurfaceView

2009-03-25 Thread Deren
Im creating a simple game using a SurfaceView for drawing the Graphics. It works fine, but now I tried to add a title screen, which is (for now) only a LinearLayout and a Start-button, specified in XML. However, when I click this button and try to switch to my SurfaceView (By doing

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Victor
I'm also expirienced some problem with a today build of cupcake I just download a cupcake branch of source code and build it. I configured Eclipse for a new SDK, and appear the things is works great, EXCEPT emulator. 1. I configured a new AVD as parameter i pointed my old sdcard.img then loaded

[android-developers] Re: Switch to SurfaceView

2009-03-25 Thread Ivan Soto
Can you post your code? Ivan Soto Fernandez Web Developer http://ivansotof.com On Wed, Mar 25, 2009 at 7:41 AM, Deren adam.d0...@gmail.com wrote: Im creating a simple game using a SurfaceView for drawing the Graphics. It works fine, but now I tried to add a title screen, which is (for

[android-developers] Re: Creating multiple layouts

2009-03-25 Thread Mark Murphy
Vijay Bahirji wrote: Hi, I am new to android and trying to create a customized list. Every item in the list has TextView and one Ratingbar. I now want add a couple of command buttons at the end of the list (like BACK, HOME, , NEXT). When I add these extra views to the layout xml file then

[android-developers] MSN Messenger protocol issues

2009-03-25 Thread aste
Hi all, I am trying to test a simple messenger app in Android using the JML library. I can login but I can not get the contact list. Sometimes it shows part of my contact list but never the whole list. According to the MSN Protocol website, the message LST is sent once for each contact in the

[android-developers] How to get SMS Delivery Report setting

2009-03-25 Thread JT
Hi, I want to know how to get SMS Delivery Report setting which is stored in the /data/data/com.android.mms/com.android.mms_preferences.xml. I wrote a application to read it with the following code: SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);

[android-developers] Re: Task activity stack always reset when launched from Home

2009-03-25 Thread Dianne Hackborn
You can do adb logcat -b events to see the event log which will include a line the activity manager prints when finishing an activity, with the reason why it is doing it. On Tue, Mar 24, 2009 at 7:24 PM, jseghers jsegh...@cequint.com wrote: I am just starting on an Android app and I am puzzled

[android-developers] Re: Track Ball Problem...

2009-03-25 Thread David Turner
You need to register your activity to the system to tell it that you can handle trackball events directly. If you don't, then the system will emulate the events with key down/up events. I don't know the API to do that. By the way, you can press Delete to enable track-ball mode in the emulator (or

[android-developers] Re: Questions related to android, please answer

2009-03-25 Thread Howie
Learn to Google. http://developer.android.com On Mar 24, 11:04 pm, tharunandr...@gmail.com tharunandr...@gmail.com wrote: 1. What is the name of the alliance that supports Android? 2. Which is the kernel that Android relies on for core system services? 3. Is Android a multi-process system?

[android-developers] Re: Is it possible to pick contacts from a single group ?

2009-03-25 Thread jarkman
Well, I haven't found a way to launch the system picker for a specific group, so I've written a picker using a ListView and an URI of the form: Uri uri = Uri.parse(content://contacts/groups/system_id/ + Contacts.Groups.GROUP_MY_CONTACTS + /members); (with handy clue from here:

[android-developers] Re: All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-25 Thread Avraham Serour
where did you find this declaration? On Wed, Mar 25, 2009 at 6:30 PM, Zhubham sahilz...@gmail.com wrote: “All SYMBIAN based end devices accept Java language Applications” (i) Does this mean that the applications made for Android would run in S60 , without any modifications?? (ii)If

[android-developers] Re: Task activity stack always reset when launched from Home

2009-03-25 Thread jseghers
Thank you for your reply! I am seeing am_task_to_front followed by am_finish_activity. I found the event-log-tags file and apparently the reason is clear. What is not clear to me though is why the activity manager thinks it should clear the the task. The relevant lines of the log are:

  1   2   >