[android-developers] Re: Home Screen Detection

2009-08-28 Thread GodsMoon
I was looking at the Package Manager api, but it looks like the Process api might be more useful. http://developer.android.com/reference/android/os/Process.html Has anybody used this before or have an example? On Aug 27, 6:24 pm, GodsMoon godsm...@gmail.com wrote: That might be enough info for

[android-developers] Re: How i can pass my String to Another page

2009-08-28 Thread Lutz Schönemann
Am 28.08.2009 um 13:42 schrieb Sasi Kumar: public static String username; s2.java private String df; df=s1.username; Bad idea. So you have to hardcode the username because it's static and you can't change it at runtime Use intents for this thats all!. On Aug 28, 2:22

[android-developers] Re: Home Screen Detection

2009-08-28 Thread GodsMoon
What's the difference between a Task and a Process for ActivityManager? On Aug 28, 1:46 pm, Hong lordh...@gmail.com wrote: ActivityManager : getRunningTasks(int) On Thu, Aug 27, 2009 at 6:24 PM, GodsMoon godsm...@gmail.com wrote: That might be enough info for my app. Which api are you

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-28 Thread RS
Dan, thanks for the confirmation. And anyway the submission process has been very smooth so far. Hope our updates (if any) don't get stuck on the last day. Regards, RS On Aug 27, 6:23 pm, Dan Morrill morri...@google.com wrote: We are not planning to extend the submission deadline. - Dan On

[android-developers] onTap start Dialog

2009-08-28 Thread Wouter
Hey, I have a mapactivity with multiple ItemizedOverlays and a onTap method when the user clicks on the marker. I can show a toast message but i want to display a Dialog when the user clicks on the marker (so in onTap method). How can i do that? Greetz, Wouter

[android-developers] Re: how to build adb.exe for windows.

2009-08-28 Thread Tejas
Not sure. What usb analyzer are you using ? On Aug 27, 11:37 pm, Kyo Yin kyo@gmail.com wrote: old framework of adb in target === means i don`t use the composite driver in target if the host is ubuntu.you know, before composite gadget driver, the adb is a single gadget driver(kernel

[android-developers] Re: Recorded sound file not getting listed in Music menu

2009-08-28 Thread elcadar
Use this: http://developer.android.com/reference/android/media/MediaScannerConnection.html Force it to scan the new file. Then your audio file will show up when using the Music app. On Aug 20, 2:49 am, kk_Kiran simplyurki...@gmail.com wrote: Thx for your reply Marco. WhilerecordingtheaudioI

[android-developers] Touch Listener

2009-08-28 Thread human android
I am trying to use touch listener on 2 View objects. I made both objects focussable but it works for one object and does not for the other. Any idea how to solve this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Home Screen Detection

2009-08-28 Thread Dianne Hackborn
They are described here: http://developer.android.com/guide/topics/fundamentals.html On Fri, Aug 28, 2009 at 10:53 AM, GodsMoon godsm...@gmail.com wrote: What's the difference between a Task and a Process for ActivityManager? On Aug 28, 1:46 pm, Hong lordh...@gmail.com wrote:

[android-developers] Re: programatically detect foreground application/ screen?

2009-08-28 Thread Chris Stratton
On Aug 28, 1:45 pm, Hong lordh...@gmail.com wrote: You can use ActivityManager to query list of running tasks (getRunningTasks(int)) Hi Hong. Yes, I found I could do this, but it was not usefully specific. Even when I looked at the priority to select only those with the priority that means

[android-developers] Re: How can I sort items in the ListView?

2009-08-28 Thread gnugu
Hi Roman, Here is what I do in more detail: - Query encrypted data from SQL, this gives me a Cursor - Create SimpleCursorAdapter with that cursor and give it to ListView - I have my own ViewBinder that decrypts data as the ListView is populated. I'm not sure if I want to reap data from the

[android-developers] Re: Android REST XML implementation

2009-08-28 Thread smnirven
You are correct - All you would change is the content headers, and replace the xml content with json content. On Aug 26, 2:40 pm, nEx.Software email.nex.softw...@gmail.com wrote: The process is incredibly similar with JSON Web Services too. On Aug 26, 8:55 am, Mike Wolfson

[android-developers] Re: some way to check available activities

2009-08-28 Thread Roman ( T-Mobile USA)
You might want to look in the PackageManager class with which you can retrieve installed packages/applications information. Look at http://developer.android.com/reference/android/content/pm/PackageInfo.html#activities (flag GET_ACTIVITIES). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· ·

[android-developers] Re: programatically detect foreground application/ screen?

2009-08-28 Thread Hong
In each RunningTaskInfo, you can find its respective top activity by: ComponentName top = task.topActivity; But you are right, in Android system, there are multiple tasks/processes running at any given time. And telephony related tasks/services/processes will be given the highest priority. If

[android-developers] Re: TextView Line Breaks

2009-08-28 Thread Balwinder Kaur (T-Mobile USA)
Use just \n. 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 necessarily represent those of T-Mobile USA, Inc. On Aug 28, 10:29 am, Rud

[android-developers] Re: onTap start Dialog

2009-08-28 Thread Balwinder Kaur (T-Mobile USA)
Pass in the Context object from the MapActivity to your class and use that to create a Dialog. 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

[android-developers] Re: how to pass an Object from one activity to another.

2009-08-28 Thread sdphil
answering my own question - ack! RTFM -- http://developer.android.com/guide/appendix/faq/framework.html#3 On Aug 28, 9:24 am, sdphil phil.pellouch...@gmail.com wrote: I have an activity which implements an OnItemClickListener. in onItemClick() i start another activity --                

[android-developers] Re: How can I sort items in the ListView?

2009-08-28 Thread Mark Murphy
Here is what I do in more detail: - Query encrypted data from SQL, this gives me a Cursor - Create SimpleCursorAdapter with that cursor and give it to ListView - I have my own ViewBinder that decrypts data as the ListView is populated. I'm not sure if I want to reap data from the cursor,

[android-developers] Detecting sensor manager left and right shakes

2009-08-28 Thread karthikr
Hi Guys, My application requires to identify if the user has done a shake towards the left or if he has done a shake towards the right. How do i go about implementing this? I have tried the sensor manager listener where in i am able to identify a general shake event, but im not able to

[android-developers] how to pass an Object from one activity to another.

2009-08-28 Thread sdphil
I have an activity which implements an OnItemClickListener. in onItemClick() i start another activity -- Intent intent = new Intent(); intent.setClass(MyActivity1.this, MyActivity2.class); startActivity(intent); However, I need to pass some

[android-developers] Re: Camera preview

2009-08-28 Thread tinyang
Hi Pavel, and thanks for the reply. I'm happy to share the snippet of code I have for picture taking, but I have not tried it out yet because in order to see and use the picture-taking button in my activity view, I need to get the camera preview in the correct place first. I still really need

[android-developers] Re: Can not access my own service

2009-08-28 Thread Balwinder Kaur (T-Mobile USA)
It seems like if you declare a uses-permission in your AndroidManifest.xml file and you call checkCallingOrSelfPermission method, it returns PERMISSION_GRANTED. I would be curious though to know if there is a more elegant way of doing this, or if this is the expected way. Balwinder Kaur Open

[android-developers] problem animating view objects

2009-08-28 Thread Andy Droid
Having trouble animating some view objects. My main activity creates a DrawView class, which extends View. The DrawView class creates three ColorBalls, each of which which extend View. The onDraw function in DrawView calls drawBitmap on each of the ColorBalls. This seems to be required, if I

[android-developers] Location object bad results

2009-08-28 Thread Alexander Davis
Does anyone else get lat/lons off by a multiplier of 10^-1 when they use the getLatitude() and getLongitude() methods of the Location object? I do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: How to launch VideoCamera Activity and then read tge file created?

2009-08-28 Thread Jason Proctor
ok so i tried this approach too, and got it to work. call getData() off the incoming intent and that's the URI to the recorded file. hth Hi, I am launching the VideoCamera activity from my main activity but not able to get a callback to read the file created. Does anyone have an example on

[android-developers] Re: programatically detect foreground application/ screen?

2009-08-28 Thread Chris Stratton
On Aug 28, 3:02 pm, Hong lordh...@gmail.com wrote: But you are right, in Android system, there are multiple tasks/processes running at any given time. And telephony related tasks/services/processes will be given the highest priority. And this that is my problem... I've been trying to find

[android-developers] Re: Detecting sensor manager left and right shakes

2009-08-28 Thread Mike Collins
There was a discussion recently about getting the phone orientation converted to earth-relative orientation, that might help. Maybe just monitor phone relative acceleration for -x followed by +x for a left and +x followed by -x for a right shake? On Aug 28, 12:41 pm, karthikr

[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Yusuf Saib (T-Mobile USA)
You can't figure out which item is selected from the adapter. It is the ListView or ListActivity (depending on which you used) that will tell you which is selected. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely

[android-developers] Re: Additional fonts for use with Webkit

2009-08-28 Thread Yoav
In case someone is interested, here is what I figured out: Adding fonts to the SDK allows them to be viewed in the browser. Also, applications can use them directly without having to load the font from an asset. 1) Add the font file android_1.5r2/frameworks/base/data/fonts/Comic.ttf 2) Add

[android-developers] Custom list adapter using SQL and line-specific icons

2009-08-28 Thread Christian S.
I have been twisting my head around this issue for quite some time now. Couldnt find anything close on the web. That's why I am coming back to you now. This is what I already have: - Simple list adapter bound to an SQL database (TextView only) - WORKS! - And in a separate app: An imageloader

[android-developers] Re: playing sound on active call

2009-08-28 Thread Chris Stratton
On Aug 28, 4:21 am, Honest honestsucc...@gmail.com wrote: I am playing one audio file when call arrives so the  caller can receive it at other side but the issue is  yet the opposite caller is not able to listen it what could be wrong in it. Can some one tell me what can be the issue in it ?

[android-developers] Re: Touch Listener

2009-08-28 Thread Balwinder Kaur (T-Mobile USA)
A sample of your code and logcat output if there are errors in it would be helpful. 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 necessarily

[android-developers] Re: Force screen orientation and avoid destroy call

2009-08-28 Thread Derek
It seems that constants returned and expected are not the same between ActivityInfo and Configuration. Translating Configuration constants to ActivityInfo seems to solve the problem: int orientation = getResources().getConfiguration().orientation; if (orientation ==

[android-developers] Re: JOIN Contacts.People and Contacts.People.Phones

2009-08-28 Thread eags
Actually I guess the table to use is Contacts.Phones but the question still stands. On Aug 28, 1:38 pm, eags eagsala...@gmail.com wrote: I have an app where I want to list all phone numbers and the associated contact name.  I see that there is the Contacts.People table for the purpose of

[android-developers] Full Screen in sub-Preference Screen

2009-08-28 Thread Rud
I am using a PreferenceScreen with some subPreference Screens. In the Activity I programmatically set FULL_SCREEN. This works for the main PreferenceScreen but not for the sub-PreferenceScreens. Is there any way to set the FULL_SCREEN for the sub- PreferenceScreens? Rud

[android-developers] Graceful handling of SD card removal while application writing to file...

2009-08-28 Thread AndyK
Hi, I tried to search for a solution to a general problem I am having and came up empty. I'm posting the following question in hopes someone else has come across this and might know the answer and can share it. I have an application that contains an activity and a service. The activity

[android-developers] Re: how to use shell command in Android app

2009-08-28 Thread Roman ( T-Mobile USA)
Try to use the Java class File for operations on the file system. Some of the system commands are not executable using exec if you are not root. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author

[android-developers] Update view on worker thread

2009-08-28 Thread Tom
Hey Guys, I am seeing some weird issues and looking to see if anyone knows what is going on. I have a BroadcastReceiver which updates some views on receiving an event. Some psudo code is shown below. What happens is the function runs fine and the app seems to update the textviews BUT when i then

[android-developers] Re: Update view on worker thread

2009-08-28 Thread Tom
Hmm ok it seems this is a updating from background issue it just seems that the android OS doesn't catch it as such because I am interacting with the object array rather than the screen object. Tom On Aug 28, 5:40 pm, Tom thomas.shepp...@polarmobile.com wrote: Hey Guys, I am seeing some

[android-developers] Re: Force screen orientation and avoid destroy call

2009-08-28 Thread Dianne Hackborn
Indeed they are not. The documentation should explain which constants are appropriate. The configuration contains an actual orientation, the activity has a particular orientation *mode* to apply to the activity. On Fri, Aug 28, 2009 at 10:40 AM, Derek cram.de...@gmail.com wrote: It seems

[android-developers] Re: How can I sort items in the ListView?

2009-08-28 Thread Dianne Hackborn
Especially if you want your list to scale to 1000 or more rows, you really want to avoid loading all of it up-front and instead rely on being able to construct a query the returns the results appropriately. Fwiw. On Fri, Aug 28, 2009 at 12:05 PM, Mark Murphy mmur...@commonsware.comwrote:

[android-developers] No com.android.camera.CropImage on HTC Magic?

2009-08-28 Thread Klaus Kartou
Hi, I have a pretty urgent issue. I am using the CropImage intent on my G1 Dev phone to crop images. However when starting this intent on a HTC Magic I get an error indicating the activity cannot be found: Unable to find explicit activity class {com.android.camera/com.android.camera.CropImage}

[android-developers] Re: Automatic launch of Virtual Keypad in first screen(launcher) of application

2009-08-28 Thread Muha
Hi Durg, I'm facing an opposite problem when the app is installed in a real device (a HTC G2). I want to open my screen with keypad hidden, but as the activity has an EditText which automatically receives focus, it triggers the opening of the keypad. As you did, I tried to put a similar

[android-developers] emulator to run iphone apps on android

2009-08-28 Thread mohangupta13
hello all, i am very new to android and smartphones on a whole , as part of my computer science engineering graduation i was thinking about making a project to make an emulator (like wine for linux) that would allow iphone apps to run on android platform unmodified or with at most a minimal

[android-developers] ActivityGroup , onKeyDown and ListView

2009-08-28 Thread varis
HI, I got some strange problem with combination ActvityGroup, some external Activty with ListView . Have an activity class A1 extends ActivtyGroup and class A2 extends Activity. An activity A1 overrides onKeyDown. if A2 has ListView on layout then A1 will not receive events in onKeyDown

[android-developers] Andriod Market in China: Ouch! China Mobile’s (Messy) Mobile Market(App Store Clone) Stum bling Out of Gate

2009-08-28 Thread Kai
Hi, I just wrote a blog post to shine some light on the newly launched Mobile Market(app store for OPhone(China Mobile's customized Android), windows mobile, symbian) from China Mobile:

[android-developers] Problem loading widget

2009-08-28 Thread sany
I am new to android development.I created an app on homescreen.Though it is getting added onto the homescreen widget list,if i select my widget a black box appears on the homescreen saying Problem loading widget.Please help! --~--~-~--~~~---~--~~ You received this

[android-developers] Avoid relaunching Emulator when App runs from eclipse

2009-08-28 Thread Mimi
I have to relaunch the Emulator every single time when I run App from within Eclipse. I could not power-off the AVD because it was in Shutting down... mode forever/stucked and I had to close my Emulator Window (Vista) in order to be able to run it subsequent times. And, launching the Emulator

[android-developers] Non-freeware apps on Swedish android market

2009-08-28 Thread fcaesar
Hi, I am a swedish developer developing a commercial app for android that I would like to make available for purchase on android market (globally). What is the timeframe for this? Also, what is the timeframe for releasing commercial android apps on the swedish android market? Fredrik

[android-developers] Re: MediaStore.EXTRA_OUTPUT

2009-08-28 Thread Bill
Bump - I have this exact same problem.. I can't get the full size image, Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); i.putExtra (MediaStore.EXTRA_OUTPUT,MediaStore.Images.Media.EXTERNAL_CONTENT_URI.toString ()); The intent that comes back with onActivityResult only has the data key

[android-developers] Software Keyboard Strange Behaviour

2009-08-28 Thread gatza
Hello! I have a listview, in which each rows have one relativelayout, and each relativelayouts have two edittexts. If I use the app in landscape mode and use the hardware keyboard everything goes just fine. But when I use it in portrait mode, and try to use the software keyboard it does strange

[android-developers] OpenGL and pause/resume

2009-08-28 Thread Cor
I am learning about OpenGL and managed to write a prototype game using VBO buffers. If I start the application from Eclipse or adb, everything works fine until I press the back or Home button. If I restart the application either by a long press on HOME and selecting my program or by restarting it

[android-developers] Re: IllegalArgumentException occur: parameter must be a descendant of this view in ViewGroup.java:2454

2009-08-28 Thread Steven Yi
Hello, I am working on an application and have run into this problem when switching views with the virtual keyboard up. I looked and found this email that this a bug that is fixed in Donut, but is there any workaround for earlier releases since our app is targetting what everyone is currently

[android-developers] Internet radio option and source code

2009-08-28 Thread Shakeel
Dear all, I am writing a internet radio application. I have two options 1) first download the radio streams in to file and play from that. 2) directly play from only streams. Help me in arriving a best option. Also it would be of great help if I receive some reference code for direct only

[android-developers] What permissions (if any) are needed for ...

2009-08-28 Thread x17y19
Hi, Are any uses-permission clauses needed in the manifest for: 1. Writing to a file using the Activity.openFileOutput() mechanism; 2. Writing to the SD card using FileOutputStreams; 3. Sending email using the Activity.startActivity( Intent.createChooser (...)) mechanism ? I looked at:

[android-developers] Re: How to speed up the Android emulator.

2009-08-28 Thread Mimi Tam
I could not get the Emulator to run newly build Apps from within Eclipse when emulator is already up and running and I had to relaunch the Emulator every time. I tried different things but to no avail. Please help. I am running Android SDK 1.5 r3, latest DDMS and Eclipse Galileo in Windows

[android-developers] can anyone explain liblights and the lights.h interface? are there examples?

2009-08-28 Thread eric van tassell
What I'd like do is understand what kernel mode driver or /sys interface thereto is used to control lcd backlight. Thanks. -evt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Detecting hardware specs or phone model

2009-08-28 Thread Lurieh
Hi all, I'm working on a game containing a 3D engine, and I would like to change some parameters automatically depending on the hardware capabilities. For that I need a way to check the platform directly from the software. Does anyone know a way to achieve that? Thanks for any information.

[android-developers] Where can I find adroid manual

2009-08-28 Thread li jiecong
Hi There is online manual on the developer.android.com. Is there any offline document about this manual? CHM,PDF,HTML are all ok. thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Dialog theme

2009-08-28 Thread adam.csordas
Helo! I'm using a custom theme in my application, defined in the Manifest.xml, but I want to usa an other them on my dialogs. How can I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] OpenGL and VBO buffers

2009-08-28 Thread Cor
I am using VBO buffers in my openGL based game to work around the extra GC caused by using glDrawArrays() and I have a few questions regarding this: I know that VBO buffers are allocated in the GPU memory and it is good practice to free them when the program is stopped. What I do not know is if

[android-developers] Controling a Servo Controller? For use with robotics and sensors

2009-08-28 Thread Kit
I'm new to android and have found an interest in using an android powered phone to control a Pololu robotics servo controller/uart bridge (link to device below). I'm wondering if this is possible and what the best way to go about doing it would be. The device uses a usb port to send and receive

[android-developers] OMG, this 325 character limit !

2009-08-28 Thread Ramani Arunachalam
Why does Google have to limit the description of ADC2 submissions also? I can't even list all the features of the app.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: IllegalArgumentException occur: parameter must be a descendant of this view in ViewGroup.java:2454

2009-08-28 Thread Steven Yi
Hi All, We are building an app and have run into this problem when the virtual keypad is up and touch a button that ends up calling setContentView. We are targetting Cupcake since that is the current OS deployed. Are there any workarounds available? Thanks! steven On Aug 4, 4:52 pm, Romain

[android-developers] Inserting a new contact is not working

2009-08-28 Thread Michel Albert
I am trying to insert a new contact, but, even though I get a valid URI back, the Contacts do not appear in the Contacts application. Code: ContentValues values = new ContentValues(); values.put( People.NAME, contact.getString(name) ); Uri uri =

[android-developers] Re: emulator to run iphone apps on android

2009-08-28 Thread Dianne Hackborn
That would be really awesome. You'd get an A for sure. On Thu, Aug 27, 2009 at 11:25 AM, mohangupta13 mohangupt...@gmail.comwrote: hello all, i am very new to android and smartphones on a whole , as part of my computer science engineering graduation i was thinking about making a project to

[android-developers] Posts not appearing in group

2009-08-28 Thread stanlick
Greetings -- Can you see tell me why my posts are not appearing in the group? Also, should the button on a new post be titled Send to moderators? Peace, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Dialog callback from withing callback?

2009-08-28 Thread eags
I'm trying to pop up an AlertDialog when someone long presses a list item. What I end up with is nested callback objects. I'm not sure if that is the problem but simple Alert dialog examples are not working for me. Here is what I want and is crashing:

[android-developers] Preferred Activity-Service communication pattern

2009-08-28 Thread stanlick
I would suspect this Activity-Service communication pattern is being implemented in a variety of ways with good reason. Either the developer is a newbie and found a way that works (probably from Mark's book) or else they are strategically searching for a solution that works specifically for

[android-developers] SMS Sent Listener

2009-08-28 Thread stanlick
Is there a workaround to wiring up a listener for SMS messages sent? The android.provider.Telephony.SMS_RECEIVED works great, but I cannot find it's partner! Peace, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: out of memory error getWallpaper

2009-08-28 Thread Sables
Are we not able to reassign Bitmaps? I get OOM just by doing something like Bitmap a; a = network.downloadimage(); a = network.downloadimage(); a = network.downloadimage();// -- crash Do I have to : a.recycle() ; a= null; everytime? On Aug 25, 2:25 pm, freeanderson freeander...@gmail.com

[android-developers] Bluetooth Support (lack of it)

2009-08-28 Thread Usability Architect
Andriod doesn't support many profiles. (ummm 1, the headset profile) I just bought a MyTouch 3G as my first Android phone and to say the least, disappointed. I like the open aspect of the phone, but I've bought phones 5+ years ago that supported more BT profiles than this. I came from a

[android-developers] Re: What permissions (if any) are needed for ...

2009-08-28 Thread Dianne Hackborn
On Thu, Aug 27, 2009 at 3:44 PM, x17y19 amberar...@gmail.com wrote: 1. Writing to a file using the Activity.openFileOutput() mechanism; No. You are free to write to your own private data area. 2. Writing to the SD card using FileOutputStreams; Not now, but yes in the next release. 3.

[android-developers] Accelerometer OnSensorChanged() no longer occur in standby

2009-08-28 Thread polymorph
Hi, I have written an application (a service) that uses the accelerometer to detect movement, and up until recently this has worked fine when the device was in standby. It has been regularly tested on HTC G1 and Magic and tested specifically to work under these conditions, but it seems that a

[android-developers] Getting the contents of android.R.attr.listPreferredItemHeight ( other dimensional system resources?)

2009-08-28 Thread benjamin.soell...@googlemail.com
Hello all, I have been trying and searching about this problem all evening. How do I access the resource attribute android.R.attr.listPreferredItemHeight from my code? I have been trying this: int preferredItemHeight = Resources.getSystem().getDimensionPixelSize

[android-developers] Re: Bluetooth Support (lack of it)

2009-08-28 Thread eags
a)Do you have bluetooth turned on? I haven't tried all the profiles you listed but I do know that headset, and A2DP both work perfectly for me. b)This is a developer's group, not a users group. You'll probably have better luck in the correct group (I don't know the url). On Aug 28, 9:04 am,

[android-developers] Re: No com.android.camera.CropImage on HTC Magic?

2009-08-28 Thread Klaus Kartou
This code works on G1 Intent intent = new Intent(com.android.camera.action.CROP); intent.setClassName(com.android.camera, com.android.camera.CropImage); intent.setData(uri); intent.putExtra(outputX, 128); intent.putExtra(outputY, 128);

[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-28 Thread João Carvalho
Me and and small group of friend developers in Portugal are also very interested. Currently there are HTC Magic and Hero in the shops and financed by the operators, but if there is no market to sell apps or buy apps, there is point on developing for it.

[android-developers] getApplitcationContext() vs this vs ActivityClassName.this

2009-08-28 Thread eags
Ok, so the code below started working as soon as I switched from getApplicationContext (which I thought was safe here) to SmsDecorator.this. I've been a little confused about which to use where for a while. Can anyone please clarify the differences and where it it best to use one over the

[android-developers] include xml argument

2009-08-28 Thread sdphil
i have some layout xml that looks like this: == file1.xml == ?xml version=1.0 encoding=utf-8? LinearLayout ... ... ... /LinearLayout I want to include that in some other layout xml, so I do this -- == file2.xml == include layout=@layout/file1.xml/ The question I have is how to pass

[android-developers] JOIN Contacts.People and Contacts.People.Phones

2009-08-28 Thread eags
I have an app where I want to list all phone numbers and the associated contact name. I see that there is the Contacts.People table for the purpose of getting all phone numbers and that there is a PERSON_ID to allow me to lookup the contact in Contacts.People. Great. The only problem is I can't

[android-developers] Suggestions on how to stop threads with long operations?

2009-08-28 Thread jsdf
Hi Android experts, I have a tricky question that I would like some advice on. I have a thread that does a large amount of network and database work. E.g.: new Thread(new Runnable() { public void run() { String largeData = getLargeDataFromServer(); Object largeObject =

[android-developers] Re: include xml argument

2009-08-28 Thread Romain Guy
No it's not. On Fri, Aug 28, 2009 at 3:52 PM, sdphilphil.pellouch...@gmail.com wrote: i have some layout xml that looks like this: == file1.xml == ?xml version=1.0 encoding=utf-8? LinearLayout ...   ...   ... /LinearLayout I want to include that in some other layout xml, so I do this

[android-developers] Re: getApplitcationContext() vs this vs ActivityClassName.this

2009-08-28 Thread Dianne Hackborn
Only use the application context if you need something that persists for the lifetime of your process, and don't need to use it to do any UI (because it is not associated with an activity UI session). Generally if in doubt, pretend like it doesn't exist and don't use it. On Fri, Aug 28, 2009 at

[android-developers] Re: Two applications, same package. How?

2009-08-28 Thread junker37
Ok, here's what I did. Seems to be working now, but someone please let me know if it will cause problems later. In my manifest, I specified each activity's full path, rather than a relative path: ie activity android:name=com.google.code.Activity versus activity android:name=.Activity In my

[android-developers] include xml argument

2009-08-28 Thread sdphil
i have some layout xml that looks like this: == file1.xml == ?xml version=1.0 encoding=utf-8? LinearLayout ... ... ... /LinearLayout I want to include that in some other layout xml, so I do this -- == file2.xml == include layout=@layout/file1.xml/ The question I have is how to pass

[android-developers] Re: key code constant for question mark?

2009-08-28 Thread Mark Murphy
I don't see an android.view.KeyEvent.KEYCODE constant defined for question mark (key code 76). Is there a key code constant defined for the question mark? Try KeyEvent.KEYCODE_SLASH, plus true for isShiftPressed(). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer

[android-developers] Re: How to listen to Back key

2009-08-28 Thread Julian Peña
Hi, Just add this method to your activity. Best Regards. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { your code here } return .; } 2009/8/27 cindy ypu01...@yahoo.com In current activity,

[android-developers] Re: OMG, this 325 character limit !

2009-08-28 Thread Maps.Huge.Info (Maps API Guru)
I suggest shortening the description and including a link to your site. That would make more sense. -John Coryat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] get current location after pressing button

2009-08-28 Thread Stefan
Hi, I want to implement a tracking software (saving outdoor routes with gps). If the user press a button, the device should save the current! (and not the LastKnownLocation) gps point. If there isn't a direction change, the device looks after xxx seconds, whether the user reaches a point yyy

[android-developers] Re: Is the limit of memory heap only 6M?

2009-08-28 Thread fadden
On Aug 28, 12:49 am, Mark Murphy mmur...@commonsware.com wrote: Strategically, find ways to help out with improvements to the Android garbage collector. The bitmap memory isn't actually stored on the VM heap -- it's an external allocation -- so improvements to the GC will not help this much.

[android-developers] Layouts for base Android applications

2009-08-28 Thread stanlick
Where in the source are the layouts for the built-in UI's? I would like to reuse (copy) a couple of the contact UI's rather than recreate the wheel. Peace, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: MediaStore.EXTRA_OUTPUT

2009-08-28 Thread Bill
Having the same problem ... like the EXTRA_OUTPUT parameter is getting ignored completely . Does anybody have a workaround ? On Aug 21, 2:09 am, Friso friso.kl...@gmail.com wrote: I tried this, but I don't get the full size image back from the camera, just a 512x384 pixels. I am using the

[android-developers] Call path flow

2009-08-28 Thread Peace7
Hi, I am a newbie to Android and Telephony System. I am trying to understand the complete call path for placing a voice call in Android Telephony System. I have followed the code flow till the AT command for call is formed and send over a device socket/device node of the serial port. I am

[android-developers] Re: unable to hide window title using a theme.

2009-08-28 Thread sdphil
okay, it looks like you can only do this at the application level within the AndroidManifest.xml file. If i put that in the application section, it works (and applies to all activities), if I put it in the activity section, it does not work. can anyone confirm or deny? On Aug 26, 10:56 am,

[android-developers] Re: Accelerometer Speaker Interference Workarounds?

2009-08-28 Thread Chris Stratton
On Aug 28, 7:39 pm, Robert Green rbgrn@gmail.com wrote: It's no secret that both the HTC Dream and HTC Magic have problems with sound from the built-in speaker interfering with the accelerometer.  I'm currently having the problem with my new game and am not sure how I'm supposed to work

[android-developers] Re: Controling a Servo Controller? For use with robotics and sensors

2009-08-28 Thread Chris Stratton
On Aug 28, 8:32 am, Kit kitduna...@gmail.com wrote:  I'm new to android and have found an interest in using an android powered phone to control a Pololu robotics servo controller/uart bridge (link to device below). I'm wondering if this is possible and what the best way to go about doing it

[android-developers] Android

2009-08-28 Thread Nikamov
Just wondering on the release date of Android? --~--~-~--~~~---~--~~ 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

[android-developers] Home Screen Widget Configuration Issue

2009-08-28 Thread Mark
I have written a home screen widget that pops up a configuration window as you add it to your home screen. I'm doing this via the android:configure attribute in the appwidget-provider tag. After the user enters their configuration values in the configuration activity I call the activity's

[android-developers] Dynamic Image Cropping help/examples?

2009-08-28 Thread Sam
Hi, I'm able to display mulitple images on the screen and scale them fine, however, I need to crop the images using the API and setting the gravity for the cropping. I couldn't find much information on image cropping. Basically I want to the image to be cropped based on the gravity and the

<    1   2   3   >