[android-developers] Re: Why calendar APP don't run in Android 1.5?

2009-08-13 Thread Jack Ha
Assuming you are referring to running the Calendar app in the emulator. The reason is that the Google Service is not available. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their

[android-developers] About Custom Views

2009-08-13 Thread Bishesh Manandhar
*I have used three custom views... playpanel works fine.. but drawHeaderpanel does not workk..* public class MainPanel extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout ll = new

[android-developers] Re: About Custom Views

2009-08-13 Thread Sujay Krishna Suresh
An onLayout is required. On Thu, Aug 13, 2009 at 11:55 AM, Bishesh Manandhar coldda...@gmail.comwrote: *I have used three custom views... playpanel works fine.. but drawHeaderpanel does not workk..* public class MainPanel extends Activity { @Override protected void onCreate(Bundle

[android-developers] hide application

2009-08-13 Thread Honest
I want to start my application when phone start and after that i do not want that user can know that my application is running. Is there any way i can do it ? In phone when we press home screen for some times it display all running application. I do not want my application to display in that

[android-developers] Re: receiver enabled=false , problems after instantiation to set to listen

2009-08-13 Thread Jeff Sharkey
When building the ComponentName, you need to reference the correct BroadcastReceiver. In your case, it looks like you're enabling org.dadata.demo.Dots, when the receiver is over in the .model. subpackage. You can also create more robust ComponentNames by using the (Context, Class) constructor,

[android-developers] Re: How to make chat window for IM?

2009-08-13 Thread Jeff Sharkey
If you'll be working with long conversations, you should look at using a ListView to keep scrolling efficient. Also, ListView offers android:transcriptMode, which will can help automatically scroll back to the bottom when new messages arrive. j On Wed, Aug 12, 2009 at 7:28 AM,

[android-developers] Re: receiver enabled=false , problems after instantiation to set to listen

2009-08-13 Thread Dianne Hackborn
If you don't want android instantiating a component, there is no reason to declare it in a manifest. If you just want to listen for broadcasts while other code of yours is running, just write your class deriving from BroadcastReceiver, and instantiate it and hand that instance to

[android-developers] Re: problems purchasing my own app

2009-08-13 Thread michael maitlen
I stand corrected, it is documented, ran across this the other day and finally had time to look through all the links...at the bottom of this page is specifically states that developers are not able to purchase their apps. Now I know!

[android-developers] Re: reading package name from apk file

2009-08-13 Thread Dianne Hackborn
Use the aapt command's dump subcommands. For example aapt dump badging /path./to/.apk will print various interesting meta-data about the app. On Wed, Aug 12, 2009 at 10:45 PM, Sudha sudhaker...@gmail.com wrote: Hello Zero, What i want is just knowing the package name I donot wish to

[android-developers] Re: Updating Views in a ListView when they may have been recycled

2009-08-13 Thread Jeff Sharkey
One way of doing this would be to convertView.setTag() to a well-known value when binding each child item. Then, when a progress event occurs, use ListView.findViewWithTag() to find the target View, or fail silently if it doesn't exist. Each time a view is recycled, your bind step above would

[android-developers] Re: reading package name from apk file

2009-08-13 Thread rk
Sudha, Do you have automated test solution for Andorid? thanks raj On Aug 13, 11:42 am, Dianne Hackborn hack...@android.com wrote: Use the aapt command's dump subcommands.  For example aapt dump badging /path./to/.apk will print various interesting meta-data about the app. On Wed, Aug

[android-developers] Re: Crashes with no usefull stacktrace

2009-08-13 Thread Jeff Sharkey
It's a known platform issue, and an engineer has been assigned to fix it. Here's the decoded stack trace: v--free af22.text 0003eac6uprv_free_3_8 0003849cicu_3_8::UMemory::operator v--~DecimalFormatSymbols 0005018a

[android-developers] Re: hide application

2009-08-13 Thread String
On Aug 13, 7:29 am, Honest honestsucc...@gmail.com wrote: I want to start my application  when phone start and after that i do not want that user can know that my application is running. Is there any way i can do it ? In phone when we press home screen for some times it display all running

[android-developers] Re: ambiguous column name: _id when querying the contacts list

2009-08-13 Thread Jeff Sharkey
Ouch, there isn't a good solution in the current SDK. In Eclair we're restructuring this code, which would break the people._id solution you mentioned. :( And you're right, there otherwise isn't a good way of selecting multiple _ids. Ironically, the same change that breaks the people._id

[android-developers] Re: YAFFS2 filesystem in Android linux?

2009-08-13 Thread Jeff Sharkey
The internal partitions on current Android devices are already using YAFFS2: http://android.git.kernel.org/?p=platform/external/yaffs2.git;a=summary j On Wed, Aug 12, 2009 at 8:11 PM, Hugoluster.w...@gmail.com wrote: Hi all, I am a newbie to Android development.  The robustness of the

[android-developers] Re: hide application

2009-08-13 Thread Honest
Thanks for your reply. Can you tell me how i can create background service ? On Aug 13, 12:06 pm, String sterling.ud...@googlemail.com wrote: On Aug 13, 7:29 am, Honest honestsucc...@gmail.com wrote: I want to start my application  when phone start and after that i do not want that user

[android-developers] Re: How to DROP a Database in Android ?

2009-08-13 Thread Alessio Grumiro
you have drop all tables, or using a new version of db of change database name. 2009/8/13 Emre A. Yavuz eayl...@hotmail.com Hi, Does anybody know how to DROP a database in Android ? I've tried ContextWrapper.deleteDatabase(), mDb.close(), mDbHelper.close() etc. methods with no luck so

[android-developers] Re: Query GroupMembership cannot find contacts in a specific group

2009-08-13 Thread Andrew Zhang
On Thu, Jul 30, 2009 at 10:38 PM, ZHOU Peng peng.zhou...@gmail.com wrote: Hi all, I try to query contacts in a specific group by GroupMembership. But It only works fine with system built-in group Starred in Android. My codes is like this: -- private static

[android-developers] scale animaions goes behinde the screen.

2009-08-13 Thread Saurav Mukherjee
this is my scale animaation code. inAnimation = new ScaleAnimation(0.5f, 1f, 0.5f, 1f, Animation.RELATIVE_TO_SELF, -20f, Animation.RELATIVE_TO_SELF, -50f); outAnimation = new ScaleAnimation(1f, 0.5f, 1f, 0.5f, Animation.ABSOLUTE, (screenWidth), Animation.ABSOLUTE,

[android-developers] Re: Is there a way to control the Android phone or do a automated test using a remote PC?

2009-08-13 Thread chicochen
UP On 8月7日, 上午9时31分, android.bu...@gmail.com android.bu...@gmail.com wrote: Hi Anil, Regarding sendevent command, could you please explain it with more detail? Thanks in advance! BR android.buger On Aug 6, 12:14 pm, Anil Sasidharan anil...@gmail.com wrote: Hi, Yes,

[android-developers] Re: receiver enabled=false , problems after instantiation to set to listen

2009-08-13 Thread Jiri
If you don't want android instantiating a component, there is no reason to declare it in a manifest. Thank you for the clear answer. And yes it should have been ComponentName(org.dadata.demo,.model.Dots); Jiri Dianne Hackborn wrote: If you don't want android instantiating a component,

[android-developers] Re: Connection status

2009-08-13 Thread SkySte
Ar ok, thanks :) On Aug 13, 1:34 am, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: Sorry, forgot to define this     private String mWifiService = Context.WIFI_SERVICE; For being able to obtain a WifiMgr instance you need a handle to a context. When you do this within your

[android-developers] how to show dialog with only the progress image

2009-08-13 Thread Sundar
Hi, how to show dialog with only the progress image without the rectangle, background color and text. I want only the spinning image in the dialog. Thanks in advance. V.Sundar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: how to show dialog with only the progress image

2009-08-13 Thread Atif Gulzar
create a simple layout xml which has progressbar in it and set the contetview of dialog to this layout. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Thu, Aug 13, 2009 at 2:07 PM, Sundar vmsund...@gmail.com wrote: Hi, how to show dialog with only the progress image without

[android-developers] Re: receiver enabled=false , problems after instantiation to set to listen

2009-08-13 Thread Jiri
One more question. In my Activity.onDraw method I have this: Dots dotModel = new Dots(); IntentFilter iFilter = new IntentFilter(); iFilter.addAction(org.dadata.demo.ON_UPDATE); this.registerReceiver(dotModel, iFilter); Then later in a click handler I wrote this: Intent intent = new Intent();

[android-developers] Exclude directory with adb pull

2009-08-13 Thread Francesco Pace
Hy guys, I need a help. With my java application I have created a private directory in my /data/data/org.android.myapplication. The name is backup. I want that when anyone execute adb pull /data my directory must not be copied. Can someone help me? Thanks for all.

[android-developers] Re: Is there a way to control the Android phone or do a automated test using a remote PC?

2009-08-13 Thread quill
Does that mean I can simulate multitouch events through emulator? On Aug 6, 12:14 pm, Anil Sasidharan anil...@gmail.com wrote: Hi, Yes, this is possible. Android supports a bench tools for testing the device from host-pc. Please check out the following: 1. adb am args - am is

[android-developers] Is it possible to change text color of all child TextViews

2009-08-13 Thread Atif Gulzar
Is it possible to change text color of all child TextViews? Actually I want to change text color of all columns(TextViews) of a TableRow when it is clicked. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ --~--~-~--~~~---~--~~ You received this message

[android-developers] Help with WiFinder

2009-08-13 Thread Hunter Peress
Hi. I'm the author of wifinder on android, a way to find wifi hotspots. Anyone interested in helping out? I'm willing to set up a profit-share arrangement. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] cannot find htonl

2009-08-13 Thread taosinker
Hi all: When I build my native lib, an error find. undefined reference to `htonl' Do you have any advice? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] default measuring units px or dp

2009-08-13 Thread Atif Gulzar
in xml file we can define measuring units along with the values. If I want to set some property through code it only takes int value. What is the default unit for this int? px(pixels) or dp(density indipendent pixels) ? -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ

[android-developers] Re: How to make chat window for IM?

2009-08-13 Thread Gulfam
Hi, I have tried way recommended by Jeff but i think its not perfect solution any one can help more regarding this. Jeff V V Thanks for your response. Regards Gulfam Hassan On Aug 13, 11:36 am, Jeff Sharkey jshar...@android.com wrote: If you'll be working with long conversations, you

[android-developers] Re: Crashes with no usefull stacktrace

2009-08-13 Thread Klaus Kartou
Thank you for your answer! Is there anything I can do to prevent this error? I certainly not want my app to crash when I release it :) One more question: How did you get the decoded stack trace? Cheers! On Thu, Aug 13, 2009 at 9:00 AM, Jeff Sharkey jshar...@android.com wrote: It's a known

[android-developers] canvas.save() / restore() , what is this?

2009-08-13 Thread Jiri
Could someone explain to me the canvas.save() and restore(). I come from a flash background, and this is a new concept for me. Reading the documentation is not helpfull. Jiri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: YAFFS2 filesystem in Android linux?

2009-08-13 Thread Hugo
Oh?! Thanks very much. I will look into the URL for details. --Hugo On Aug 13, 3:19 pm, Jeff Sharkey jshar...@android.com wrote: The internal partitions on current Android devices are already using YAFFS2: http://android.git.kernel.org/?p=platform/external/yaffs2.git;a=summary j On

[android-developers] Safely render to bitmap.

2009-08-13 Thread Klaus Kartou
Hi! I have a custom view that extends ImageView. In onDraw I render directly into the bitmap that I have set using setImageBitmap on the ImageView. Is this a safe thing to do? Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: reading package name from apk file

2009-08-13 Thread Sudha
hello rk, What am doing is not exactly automated test solution but partially yes. using ant scripts and tools in SDK like monkey (check below Link)... http://developer.android.com/guide/developing/tools/monkey.html I am generating some random input for testing games on Android Platform. -

[android-developers] add images to gallery view after downloading

2009-08-13 Thread Sagar
Hello everyone, I want to add images to gallery view after downloading them (like in android market application). All examples of gallery uses images stored in drawable folder. So how can I add images to gallery when image gets downloaded?? --~--~-~--~~~---~--~~

[android-developers] Is BOOT_COMPLETED prioritized?

2009-08-13 Thread alkar
I want to do some initialization for a widget, as soon as the phone boots and before the first update on the widget happens. Would a BroadcastReceiver on BOOT_COMPLETED ensure that this initialization is done prior to the widgets' first onUpdate() call? Is there a priority or is it completely

[android-developers] Listview and scrolling

2009-08-13 Thread Wouter
I have some problems when creating a ListActivity. I have a listview and some other widgets and my listview is filled with a custom adapter. You can see the images of this activity here: http://www.grabup.com/uploads/ecd0d0eeb7b947e98b2e0d6c1be5478f.png?direct Now the problem is. I have a

[android-developers] Re: Listview and scrolling

2009-08-13 Thread Mark Murphy
Wouter wrote: Now the problem is. I have a scrollview and all the other views and widgets are placed inside of it. One of those other widgets is a ListView. Do not put widgets that do their own scrolling (e.g., ListView) in a ScrollView. How can I fix this? Come up with some other approach

[android-developers] Recruiting one developer to help code for an ADC2 idea

2009-08-13 Thread Eric Wong (hdmp4.com)
Hi everyone, I am recruiting ONE developer to help me produce an apk for ADC2. Requirements: 1) able to work at least half a day until 31th August or until apk completion 2) have demonstrated ability to produce Android application 3) able to accept the fact that I would not tell you exactly

[android-developers] Re: Listview and scrolling

2009-08-13 Thread Wouter
Is the use of your MergeAdapter a good idea for me? On 13 aug, 14:30, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: Now the problem is. I have a scrollview and all the other views and widgets are placed inside of it. One of those other widgets is a ListView. Do not put widgets

[android-developers] build/core/main.mk:458: *** No TARGET_CPU_ABI defined by board config

2009-08-13 Thread Vinu
Hello, When i am building the Android package, i am getting the below error. build/core/main.mk:458: *** No TARGET_CPU_ABI defined by board config: . Stop. Let me know,If anybody has encounter this problem what is the solution. Regards Vinay

[android-developers] Re: Listview and scrolling

2009-08-13 Thread Wouter
How can i use addHeaverView with widgets i have setup in the layout xml file? On 13 aug, 14:48, Wouter wouterg...@gmail.com wrote: Is the use of  your MergeAdapter a good idea for me? On 13 aug, 14:30, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: Now the problem is. I have a

[android-developers] create service only

2009-08-13 Thread Honest
Hello, I want to hide my application from user so i just want to create service. Can some one tell me how can i create service only with out activity. Can some one tell me can i create only the service in whole project instead of activity. Is it feasible ?

[android-developers] Re: Process.setThreadPriority() high priorities

2009-08-13 Thread Dmitry.Skiba
This issue is pretty important for my game, as simply changing the priority to a higher value makes it (much) more comfortable to play. Can I rely to this effect or should I go and cut my geometry in half? (again...) Google guys, please answer :) Dmitry On 13 авг, 01:40, Dmitry.Skiba

[android-developers] Re: Getting certain information off a web page

2009-08-13 Thread niko20
On Aug 12, 1:44 pm, Bagz craigmjo...@hotmail.co.uk wrote: Hi All, I was wondering if anyone can help me out and point me in the right direction... For an example, lets say i have a url which returns stats about a certain football team (the team name is a parameter on the url) and it

[android-developers] Re: Have ListView and other widgets scroll as a whole

2009-08-13 Thread Wouter
Hey, This worked for you? I have a layout like this.. LinearLayout ... Button ListView Button /LinearLayout But i cant scroll when my listview reaches the bottom of the screen. And there are other widgets like button beneath it.. Is it good to implement this MergeAdapter for that?

[android-developers] Getting Friends list from Facebook

2009-08-13 Thread Y2U
Hey Guys, hope you are doin well, can any one guide me how to get Friends List from Facebook using Code. Thanks in advance, Regards, Y2U --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Listview and scrolling

2009-08-13 Thread Mark Murphy
How can i use addHeaverView with widgets i have setup in the layout xml file? You can't. Either construct them in Java or move them into a separate layout file, inflate them by hand (i.e., getLayoutInflater().inflate()), and add them that way. Is the use of  your MergeAdapter a good idea for

[android-developers] Re: Slow GPS updates

2009-08-13 Thread Paul Thomas
2009/8/12 CG christian.glee...@gmail.com: Even tough the updates ticks with 500ms, it still takes about 3-4 seconds for the device to discover that I stopped moving. 500ms? I'm up to a fairly consistent 1000ms now ah but that's on the HTC Dream. I wonder if the Magic has a faster GPS?

[android-developers] help with scale animation

2009-08-13 Thread Saurav Mukherjee
hi all, can anyone please tell how can i make my animation visible above other views on the layout. i tried with the zorder adjustment but it didnot work out. please help. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] IOException while reading resource with available bytes

2009-08-13 Thread Jonathan
I'm getting an IOException using the following code: InputStream is = getResources().openRawResource(R.raw.myfile); byte[] data = new byte[is.available()]; is.read(data); is.close(); The IOException occurs during the read. What's weird is that if I do a single byte read there is no

[android-developers] Re: hide application

2009-08-13 Thread String
On Aug 13, 8:23 am, Honest honestsucc...@gmail.com wrote: Can you tell me how i can create background service ? No, I can't. It's a big topic. I use background service as a generic term for a process which is accomplishing something without direct user intervention. Specifically what you need

[android-developers] How to parse this web service response in Android?

2009-08-13 Thread Raj
Hi, I am using KSOAP2 to call a .NET webservice from android application,and the response from the web service is in the following format anyType{ UserName=anyType{}; Password=anyType{}; ApplicationCode=JOB; ActionType=Query; MessageParameters=anyType{Parameters=anyType{}; };

[android-developers] Re: ambiguous column name: _id when querying the contacts list

2009-08-13 Thread yao chen
On Thu, Aug 13, 2009 at 3:15 PM, Jeff Sharkey jshar...@android.com wrote: Ouch, there isn't a good solution in the current SDK. In Eclair we're restructuring this code, which would break the people._id solution you mentioned. :( And you're right, there otherwise isn't a good way of

[android-developers] Re: Strange Bug in GPS!

2009-08-13 Thread dkolegayev
Ran into the same problem. This hack (http://code.google.com/p/android/ issues/detail?id=2545#c19) fixes the problem in emulator but I was hoping to find a better solution than removing/adding listener on every location update. On Aug 9, 10:49 pm, JP joachim.pfeif...@gmail.com wrote: I've

[android-developers] Scrollable area like in Robo Defense game(both horizontal and vertical)

2009-08-13 Thread Maksim
I'm trying to implement something very similar in my application, but looks like it's impossible to do this with standard components. I read several topics about such scrolling feature in the group, but all the topics ends with suggestion to write your own scroll view. I wonder did somebody

[android-developers] GridView inside a Linear Layout displayed in a tab

2009-08-13 Thread sai
Hello, I am trying to display a bunch of image icons in a grid view, with some basic inductive text on the top. This layout is inside a tab pane. For some reason my application just Fore closes without any stack trace when I do this Here is my lay out file.. and the corresponding code that uses

[android-developers] Animation.AnimationListener.onAnimationEnd() called before animation end ???

2009-08-13 Thread Nivek
Hello, I am using a ViewFlipper to switch between pictures with translation animations. I have set an AnimationListener on one of the in/out animations, and use the onAnimationEnd() callback to start a new bitmap decoding at the end of the animation. My problem is that the bitmap decoding is

[android-developers] got a black screen after no operation on app for a while

2009-08-13 Thread eric.D
Hi guys in my app, I came into an Activity from the pre Activity's UI (such as:click a TextView which has added OnClickListener), like this way, after several times, I came into a deeper Activity. I left it for a while (such as left away) , when I came back ,I returned the Activity before

[android-developers] Implementing L2CAP

2009-08-13 Thread Mahesh Sharma
Hi, Can you tell me how can I proceed with implementing L2CAP sockets? Please. -- With Regards, Mahesh Sharma --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] [Bluetooth]Implementing L2CAP

2009-08-13 Thread MaheshSharma
With reference to the current work at : http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/bluetooth;hb=master Can you tell me how can I implement L2CAP Socket? I need to do it ASAP for a university project. Hoping for optimistic reciprocation.

[android-developers] Programmatically setting style attribute

2009-08-13 Thread Nigel
This question is about setting the style attribute programmatically, but it needs a bit of background first. I wish to create a custom component which will looks like a EditText box but not actually allow direct input. (When focused or touched it will pop up a dialog to allow data to be

[android-developers] Re: Listview and scrolling

2009-08-13 Thread android.fan
+1 to addFooterView(). This is the very right solution. On Aug 13, 8:30 pm, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: Now the problem is. I have a scrollview and all the other views and widgets are placed inside of it. One of those other widgets is a ListView. Do not put

[android-developers] How to get key events in keylock state.

2009-08-13 Thread Ramesh Anandhan
Hi, Basically I have handle the volume UP/DOWN key events when device in key lock state. How I can do this?. If anybody know this, please help me Regards, Ramesh A. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: problem sending an email with an attachment programmatically

2009-08-13 Thread Fin
On 7 Aug, 14:25, mudit mudit.a...@gmail.com wrote: hello.. i`m trying tosendan email using native email client on android phone. I have tried following ways to add anattachmentto the mail... method--1 Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType(image/jpeg);

[android-developers] AutoCompleteTextView in an AppWidget?

2009-08-13 Thread moorederodeo
Is it possible to add an AutoCompleteTextView to a widget? Every time i've tried, it gives me a Problem loading widget error. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: add images to gallery view after downloading

2009-08-13 Thread android.fan
You can use BitmapFactory.decodeFile(String pathName, BitmapFactory.Options opts) to get a Bitmap instance. After that , you could do every thing as the examples does. Adjust the BitmapFactory.Options.inSampleSize to avoid OutOfMemeryException On Aug 13, 7:24 pm, Sagar sagar.india...@gmail.com

[android-developers] Re: Listview and scrolling

2009-08-13 Thread 王开发
Hi In your ListActivity : View v = LayoutInflater.from(this).inflate(your_layout_xml,..); getListView().addHeaderView(v,); 2009/8/13 Wouter wouterg...@gmail.com How can i use addHeaverView with widgets i have setup in the layout xml file? On 13 aug, 14:48, Wouter

[android-developers] capturing images

2009-08-13 Thread Roushdat
Hi, I am trying to capture images on android but the sample codes I have got so far are for SDK 1 and am using 1.5. Anybody can help me out with some samples? I am new to android. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Detecting Long Press on a Map Overlay

2009-08-13 Thread mscwd01
Hey, I want to be able to detect where a user has long pressed on my Map Overlay. The idea being to get the GeoPoint of the location the user pressed. I can detect where a user taps, but cannot find how to detect a long press. Any ideas? Thanks

[android-developers] onRetainNonConfigurationInstance confusion

2009-08-13 Thread Keith Wiley
When I perform an orientation flip, I see the following methods called in the following order: onSaveInstanceState onPause onStop onRetainNonConfigurationInstance ...then... onCreate onRestoreInstance onResume I specifically want to use onRetainNonConfigurationInstance to *avoid* saving a large

[android-developers] [Bluetooth]Implementing L2CAP

2009-08-13 Thread MaheshSharma
Hi, Has anyone implemented L2CAP sockets? I have been trying out , but no success as yet. Please help! :) --~--~-~--~~~---~--~~ 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: Listview and scrolling

2009-08-13 Thread Wouter
Ok did a small test and that works. But now the other widgets also have a listselector (background) when going over it. How can i disable that? On 13 aug, 15:19, 王开发 android.fan...@gmail.com wrote: Hi  In your ListActivity :     View v =

[android-developers] Re: Getting the user's own email address

2009-08-13 Thread Jonas Petersson
Dear experts, I've attempted to implement what Jeff describes below on 1.1 as well as 1.5 (both real device and emulated), but as far as I can tell it never succeeds. I have the permission to read contact data (otherwise I get an exception). Maybe I've made some very basic mistake. Has

[android-developers] how to play video from raw folder?

2009-08-13 Thread zeeshan
Hi Dear, i am trying to play a video in my activity before i load my main page of my application. i have created another activity PlayIntro as follows private void playVideo() { try { /* * TODO: Set the path variable to a local media file

[android-developers] Re: receive post using a DefaultHttpServerConnection object

2009-08-13 Thread Vermouth
NOTE: This: action=localhost:8080 - action= Not solve the problem. That was just a precision... --~--~-~--~~~---~--~~ 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 play video from raw folder?

2009-08-13 Thread Jack Ha
Try MediaPlayer.create() -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 8:17 am,

[android-developers] Re: create service only

2009-08-13 Thread Roman ( T-Mobile USA)
The answer to both of your questions is yes. Find information on this topic at http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-iii-android-services/ http://developerlife.com/tutorials/?p=356 http://developer.android.com/reference/android/app/Service.html -- Roman

[android-developers] Re: how to cancel an onItemSelected upon startup

2009-08-13 Thread DonB
I have a similar problem. With only one spinner though. I don't want to see the initial selection unless the user actually selects it. If I ignore the first call to onItemSelected(), It will not be called again if the user selects the same value as the initial selection. It there at least some

[android-developers] Re: Does cupcake support Webview with Gears ?

2009-08-13 Thread Samuel Michelot
Yes, we know addJavascriptInterface, but it could be far more simpler with gears fonctionality in the WebView. For exemple I have a javascript application using extensively the html5 database (loading lot of data, updating etc...), and I need to distribute it in the android market, but it's

[android-developers] Re: GridView inside a Linear Layout displayed in a tab

2009-08-13 Thread Jack Ha
Did you call setContentView() before findViewById()? If not, your mGrid will most likely be null. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: how to play video from raw folder?

2009-08-13 Thread zeeshan
yes i already tried it but it gives me null exception On Aug 13, 4:17 pm, zeeshan genx...@gmail.com wrote: Hi Dear, i am trying to play a video in my activity before i load my main page of my application. i have created another activity PlayIntro as follows  private void playVideo() {  

[android-developers] Re: how to play video from raw folder?

2009-08-13 Thread Jack Ha
Where did the null exception occur? Stack trace? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.

[android-developers] Re: Does cupcake support Webview with Gears ?

2009-08-13 Thread String
On Aug 13, 4:50 pm, Samuel Michelot samuel.miche...@gmail.com wrote: For exemple I have a javascript application using extensively the html5 database (loading lot of data, updating etc...), and I need to distribute it in the android market, but it's reasonably not possible for now because of

[android-developers] how to relaunch the activity..

2009-08-13 Thread Manjunatha M
Hi.. How do I make sure if he existing foreground activity needs to be refreshed, where it starts executing from the beginning? I wanted to do that on change in the content observer.. Regards, Manjunatha --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: AutoCompleteTextView in an AppWidget?

2009-08-13 Thread String
On Aug 13, 5:23 am, moorederodeo mooredero...@gmail.com wrote: Is it possible to add an AutoCompleteTextView to a widget? No. The list of allowed classes for AppWidgets is here: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout String

[android-developers] Re: how to play video from raw folder?

2009-08-13 Thread Zeeshan Muhammad
i followed the media api example MediaPlayerDemo_Video.java Null Eception at setDisplay(holder); private void playVideo() { try { /* * TODO: Set the path variable to a local media file path. */ path =

[android-developers] Re: Process.setThreadPriority() high priorities

2009-08-13 Thread Dianne Hackborn
I believe at the time the doc was written, the intention was to limit priorities, but this was never done. The priorities you mention (urgent display and audio) are NOT for use by applications, except in very special cases (audio can make sense for time-critical audio processing code that can

[android-developers] Re: help with scale animation

2009-08-13 Thread Dianne Hackborn
The zorder attribute only works for window animations; for now you need to explicitly place the view at the top of your hierarchy. On Thu, Aug 13, 2009 at 7:32 AM, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: hi all, can anyone please tell how can i make my animation visible above

[android-developers] Re: How to get key events in keylock state.

2009-08-13 Thread Dianne Hackborn
Sorry, you can't. On Thu, Aug 13, 2009 at 2:29 AM, Ramesh Anandhan anandhan.ram...@gmail.comwrote: Hi, Basically I have handle the volume UP/DOWN key events when device in key lock state. How I can do this?. If anybody know this, please help me Regards, Ramesh A. -- Dianne

[android-developers] Re: ambiguous column name: _id when querying the contacts list

2009-08-13 Thread whaledawg
Ouch... I met the same problem. So is it possible to maintain a version working for both sdk? I assume that checking the version number and using the cludgy way if it's less than 2.0 should be sufficient: float version = Float.parseFloat((new Build.VERSION ()).RELEASE);

[android-developers] Re: Is BOOT_COMPLETED prioritized?

2009-08-13 Thread Dianne Hackborn
Hi, we don't right now have any official guarantees about which will happen first. That said, I generally would really encourage people from using BOOT_COMPLETED unless they really need to -- we are seeing a greatly increasing number of apps doing this, which is a pretty negative impact on the

[android-developers] Re: Process.setThreadPriority() high priorities

2009-08-13 Thread niko20
On Aug 13, 11:29 am, Dianne Hackborn hack...@android.com wrote: I believe at the time the doc was written, the intention was to limit priorities, but this was never done.  The priorities you mention (urgent display and audio) are NOT for use by applications, except in very special cases

[android-developers] Re: Maximum Number of Connections

2009-08-13 Thread Rich
Well, I've filed the bug report: http://code.google.com/p/android/issues/detail?id=3531sort=-idcolspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary But nothing seems to be happening on those reports, it's just pages and pages of untouched bug reports? What should I do? I have to

[android-developers] Re: Process.setThreadPriority() high priorities

2009-08-13 Thread Dianne Hackborn
As I said, for very carefully controlled code that is doing realtime audio processing the audio permission is appropriate. That is all you should be doing at that priority level, though, and the amount of work being done needs to be very carefully controlled. Btw, the next release should have

[android-developers] Re: Has ADC submission site opened?

2009-08-13 Thread Khurram Samad
Hey Any update ont he ADC submission ! On Aug 12, 10:52 am, cindy ypu01...@yahoo.com wrote: ADC'ssubmission site will open in August? Opened? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: capturing images

2009-08-13 Thread Balwinder Kaur (T-Mobile USA)
What exactly is the problem you are running into ? Can you post the details here please. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

  1   2   3   >