[android-developers] How to add margin through java code

2009-08-12 Thread cindy
I need to create dynamic UI. How can I add margin to the left side of the button. newPost =new Button(BlogsList.this); newPost.setText(Add Entry To Blog); newPost.setPadding(10, 10, 10, 10); newPost.setLayoutParams(new LayoutParams

[android-developers] button press on custom drawable

2009-08-12 Thread Atif
The default button turns yellow|orange when it is pressed. I just replaced the background through Drawable given below. But now it stop changing the color on press. Sure I have to provide another drawable (lets call it pressedButton) for that. But how and on which even I should apply this

[android-developers] Re: Good practise

2009-08-12 Thread Kaj Bjurman
You haven't told us how many dots that you have, but I do think it sounds like an odd design. What kind of application is it? How often are they moved? How many dots do you have? What do they represent? I might of course be wrong here, but this sounds a bit like a common problem that I often see

[android-developers] Equi Size button in linearLayout

2009-08-12 Thread Atif
I want to place three button on the bottom of screen. I place these button in a linear layout and sets its gravity bottom. Currently these button wrap according to their labels so have different widths. But I want these button equi size. Means all three button should have same width (without

[android-developers] Re: add an activity pragmatically in Menifest.xml

2009-08-12 Thread Dianne Hackborn
The PackageManager allows you to retrieve information about application components. I don't really know exactly what you are asking for to help more. On Tue, Aug 11, 2009 at 10:14 PM, Atif Gulzar atif.gul...@gmail.com wrote: is not it an extra task for client to list all activities provided by

[android-developers] Re: button press on custom drawable

2009-08-12 Thread Jiri
Maybe this will help you: http://www.anddev.org/tinytutcustom_button_backgrounds-better_imagebutton-t4298.html regards, Jiri Atif wrote: The default button turns yellow|orange when it is pressed. I just replaced the background through Drawable given below. But now it stop changing the

[android-developers] Re: KEYCODE_HOME

2009-08-12 Thread Dianne Hackborn
Yes, onPause(). On Tue, Aug 11, 2009 at 9:45 PM, eags eagsala...@gmail.com wrote: I guess a related question is, how do I guarantee that my app finishes whenever it is not in the foreground? onPause() I guess. On Aug 11, 2:44 pm, Dianne Hackborn hack...@android.com wrote: I would guess

[android-developers] Re: How to embed application settings in global android settings screen

2009-08-12 Thread Dianne Hackborn
No, by design those settings are only for the system. On Tue, Aug 11, 2009 at 9:46 PM, Riyaz goo...@riyaz.otherinbox.com wrote: Is there anyway I can embed my application's settings to global settings screen (resides in launcher as Settings) without modifying the Android Settings application

[android-developers] Re: AppWigets into Applications

2009-08-12 Thread Jeff Sharkey
I don't want to choose de widget from a list, instead of this, I want to insert a specifically widtget, so, is it necessary to use the android.appwidget.action.APPWIDGET_PICK intent in this case? The platform only offers that PICK intent, which requires the user to interactively pick from

[android-developers] Re: The Map keys of the Google APIs Add-on

2009-08-12 Thread Jeff Sharkey
The MD5 requested is only of the /keystore/ used to sign your app, not of the app itself. As long as the app is always signed with that same key, there is still only a single MD5. j On Mon, Aug 10, 2009 at 12:17 AM, Electronpcedb0...@gmail.com wrote: In the Web When we apply the Map Keys, we

[android-developers] Re: button press on custom drawable

2009-08-12 Thread Atif Gulzar
Thanks Jiri, That is exactly what I was looking for. Thanks again. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 12:52 PM, Jiri jiriheitla...@googlemail.com wrote: Maybe this will help you:

[android-developers] Re: How can I update values in contacts.db in a transaction.

2009-08-12 Thread Jeff Sharkey
The current (1.5_r3) ContentResolver API doesn't offer bulk updates, or a method of wrapping multiple operations into a transaction. One way to optimize your code is to allocate a single ContentValues object outside of the loop, and recycle it during each pass by calling clear(). (Currently

[android-developers] Re: how to create a appwidget with a listview

2009-08-12 Thread Jeff Sharkey
That's correct, ListView is not supported through RemoteViews, and no other views are supported to emulate scrolling. One reason for this is that many AppWidgetHosts override fling gestures to switch workspaces or perform other actions. j On Sun, Aug 9, 2009 at 7:25 PM, fenix

[android-developers] Re: button press on custom drawable

2009-08-12 Thread Jiri
Cool, let me know if u run into problems. Jiri Atif Gulzar wrote: Thanks Jiri, That is exactly what I was looking for. Thanks again. -- Best Regards, Atif Gulzar I ◘◘◘◘ Unicode, É¹É zlnƃ ÉŸÄ±Ê‡É On Wed, Aug 12, 2009 at 12:52 PM, Jiri jiriheitla...@googlemail.com

[android-developers] Hold http request from webview

2009-08-12 Thread whitech
Hi~~Now I'm facing this problem: I want to hold part of http requests which send by webview, and send after modified. How should I do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Intent to pick appwidget?

2009-08-12 Thread Jeff Sharkey
The Help activity is the best solution for now. Also, if your users would like to remove that icon from their all-apps drawer after they've read the instructions, you can use PackageManager.setComponentEnabledSetting() to hide it, while leaving your app installed. j On Tue, Aug 11, 2009 at

[android-developers] AutoCompleteTextView

2009-08-12 Thread Gavin
all, Is there any method to control popup window in AutoCompleteTextView? Such as location, background...? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Spinner that looks like an EditText - Head is bloody and bruised

2009-08-12 Thread Jeff Sharkey
The look of a Spinner is just defined through a framework style, and you can override that style in your XML. In this case, the look of a spinner is provided by its android:background, which is defined here:

[android-developers] Re: Share menu

2009-08-12 Thread Jeff Sharkey
You're probably looking to launch ACTION_SEND, wrapped in a createChooser() to let the user pick which application to share using. Here's an example of how sharing is triggered from the Camera app:

[android-developers] Getting error: The icon for your application is not valid. Please use a 48x48 PNG

2009-08-12 Thread bw
I'm trying to upload an app to the market, but am getting the following error. The icon for your application is not valid. Please use a 48x48 PNG. I checked my icon and its definately PNG and 48x48. Does anybody know how to fix this? -Ben Ps. I've tried re-creating my eclipse project and

[android-developers] Re: Equi Size button in linearLayout

2009-08-12 Thread Jeff Sharkey
Since the buttons are inside a LinearLayout, assign android:layout_weight=1 to each of the children. Or, any fraction thereof, as long as the weights are identical. j On Tue, Aug 11, 2009 at 11:44 PM, Atifatif.gul...@gmail.com wrote: I want to place three button on the bottom of screen. I

[android-developers] Catching exceptions globally

2009-08-12 Thread Chronos
Hi all, in my application I would like to catch all exceptions globally - it should not matter, where those exceptions occur. Some runtime exceptions are practically impossible to catch (OutOfMemoryError for instance), but I want to show an informative dialog and resume execution at some

[android-developers] Re: Catching exceptions globally

2009-08-12 Thread Chronos
Oh, I forgot my test program: - package test.exceptiontest; import java.lang.Thread.UncaughtExceptionHandler; import android.app.Activity; import android.os.Bundle; import android.util.Log; public class ExceptionTest extends Activity { @Override

[android-developers] How to determine what input methods are available on device

2009-08-12 Thread tansaku
Hi, Does anyone know if there is some way on Android to determine what set of languages the user has set up for text entry? E.g. could I call a function like getKeyboardEncodings() that would return a list of strings like en, ja etc which would indicate that the device was set up for English

[android-developers] Service message for App installation

2009-08-12 Thread Carl Whalley
With J2ME devices you can construct a binary SMS, called a service message, which has the location of a JAD encoded in its payload. When sent to a handset, the OS recognises this and doesn't attempt to store it as an ordinary SMS, instead just prompts the user to Install XYZ?. This then starts

[android-developers] Re: About Canvas

2009-08-12 Thread Bishesh Manandhar
Having problem with the custom viewsss LinearLayout ll = new LinearLayout(this); DrawHeaderPanel header=new DrawHeaderPanel(this); PlayPanel cv = new PlayPanel(this); DrawFooterPanel footer=new DrawFooterPanel(this);

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread peter
Create a adpter extends BaseAdpter to fill AutoCompleteTextView On Aug 12, 3:40 pm, Gavin fjm...@gmail.com wrote: all,    Is there any method to control popup window in AutoCompleteTextView? Such as location, background...?   thanks. --~--~-~--~~~---~--~~

[android-developers] Re: Getting error: The icon for your application is not valid. Please use a 48x48 PNG

2009-08-12 Thread mobdev....@gmail.com
Figured it out. The problem was a \n in my app name string. Had nothing to do with my app icon. Ps. @google-devs: Please fix error message. On Aug 12, 3:49 am, bw ben.weisb...@gmail.com wrote: I'm trying to upload an app to the market, but am getting the following error. The icon for your

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
I guess it may control the display stytle of listview in popup window. But how to adjust the location of popup window? On Aug 12, 4:38 pm, peter heywoodpres...@gmail.com wrote: Create a adpter extends BaseAdpter to fill AutoCompleteTextView On Aug 12, 3:40 pm, Gavin fjm...@gmail.com wrote:

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
AutoCompleteTextView has an instance of Popup window. But the class AutoCompleteTextView doesn't have any public method to control popup window. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
AutoCompleteTextView has an instance of Popup window. But the class AutoCompleteTextView doesn't have any public method to control popup window. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: AutoCompleteTextView

2009-08-12 Thread Gavin
AutoCompleteTextView has an instance of Popup window. But the class AutoCompleteTextView doesn't have any public method to control popup window. :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Equi Size button in linearLayout

2009-08-12 Thread Atif Gulzar
unfortunately it will not make button equi size. As android:layout_weight only distribute empty space. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 1:52 PM, Jeff Sharkey jshar...@android.com wrote: Since the buttons are inside a LinearLayout, assign

[android-developers] Re: Equi Size button in linearLayout

2009-08-12 Thread Mark Murphy
Atif Gulzar wrote: unfortunately it will not make button equi size. As android:layout_weight only distribute empty space. So, set android:layout_width=0px for both. Then, the entire width is empty space, and two equal android:layout_weight=1 values will result in two buttons of equal size. --

[android-developers] Re: Equi Size button in linearLayout

2009-08-12 Thread Atif Gulzar
Thanks mark, it works -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 3:46 PM, Mark Murphy mmur...@commonsware.comwrote: Atif Gulzar wrote: unfortunately it will not make button equi size. As android:layout_weight only distribute empty space. So, set

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

2009-08-12 Thread Jiri
Hello List, in my manifest I set an custom object Dots that extends a BroadcastReceiver to receive a certain broadcast string. receiver android:name=.model.Dots android:enabled=false intent-filter action android:name=org.dadata.demo.receiverTest / /intent-filter /receiver I dont want Android

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Mark Murphy
Sena wrote: I have several tabs in my application. Each of which contains an activity. One of these is a ListActivity and I would like to open up another activity (in the same tab) when the user clicks on a ListItem. I am not convinced that this is possible. -- Mark Murphy (a Commons Guy)

[android-developers] how to package several android projects

2009-08-12 Thread zeeshan
Hi Dear, i have 5 versions of an android application and wanted to package them all in my eclipse environment. i believe there is xcode tool does the similar job for iphone but dont know about the android. can anybody help? --~--~-~--~~~---~--~~ You received this

[android-developers] Re: add an activity pragmatically in Menifest.xml

2009-08-12 Thread Mark Murphy
Atif Gulzar wrote: is not it an extra task for client to list all activities provided by my Lib? Yes. Libraries are not designed for having many activities. Bear in mind also that your library cannot package any resources, making activities that much more difficult to package in a library.

[android-developers] Re: book page flip transition

2009-08-12 Thread zeeshan
yes sure thanks for the reply anyway On Aug 11, 4:58 pm, karthikr karthik.scintill...@gmail.com wrote: Hi zeeshan, Even ive been trying to implement this but in vain. Will post and also mail you incase if im able to get through. Do post in case your able to find the actual

[android-developers] Re: ScrollView disappears when the keyboard appears on the screen

2009-08-12 Thread Emanuele
Solution found. Set adjustPan for the android:windowSoftInputMode parameter for the activity in the manifest. Emanuele On 11 Ago, 16:09, EPecorari emanuele.pecor...@gmail.com wrote: I have the following layout: ?xml version=1.0 encoding=utf-8? LinearLayout

[android-developers] Image with a Button, or text with ImageButton

2009-08-12 Thread gosh
Hi there, A 'Button' view comes up with text, while the 'ImageButton' widget comes up with an image but no text, is there a way to relatively easily (e.g. method calls, say), either: 1. Add text to ImageButton (like those buttons that appear in menu item/via the physical menu button)? or 2.

[android-developers] Re: Image with a Button, or text with ImageButton

2009-08-12 Thread Atif Gulzar
you can use a default button. Just use Drawable bottom | top | right | left for image. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 5:53 PM, gosh steve...@unimelb.edu.au wrote: Hi there, A 'Button' view comes up with text, while the 'ImageButton'

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Sena
So the content of a tab is fixed once that tab has been initialised? That seems like a severe limit. Or am I missing something, should I be trying to achieve the same net result (to the user) some other way? Thanks S On Aug 12, 12:16 pm, Mark Murphy mmur...@commonsware.com wrote: Sena wrote:

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Mark Murphy
Sena wrote: So the content of a tab is fixed once that tab has been initialised? No. Use Views instead of Activities. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Atif Gulzar
have you tried TabActivity http://developer.android.com/reference/android/app/TabActivity.html -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 6:02 PM, Sena s...@imkon.com wrote: So the content of a tab is fixed once that tab has been initialised? That

[android-developers] Re: Inserting the 'status-bar' within ones own full-screen View

2009-08-12 Thread monsoon
Thanks for that clarification. I haven't been able to locate where I saw it, but, if I stop looking, it will probably come up some time - and when it does I'll pass it on to you... Given what you've said, it was probably written somewhere 'not' within the Android documentation. Cheers Steve On

[android-developers] R.arawable visuals

2009-08-12 Thread Atif Gulzar
There are many drawables defined under R.drawable http://developer.android.com/reference/android/R.drawable.html;. Just curious if their visuals are available somewhere? -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ --~--~-~--~~~---~--~~ You received

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Sena
Hi Atif, MainTabActivity is a TabActivity. What I'm tryginf to do is start a new Activity inside a Tab. I can easily just use start task but this would place a new Activity over the original TabActivity. I would like the new Activity to run inside my Tab so the user can choose to navigate to

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Sena Gbeckor-Kove
Thanks for the tip. Can you point me at what I need to be looking up to find the documentation about changing the view inside the Tab? I was doing this very late last night so I may have missed it. Thanks S On 12 Aug 2009, at 14:06, Mark Murphy wrote: Sena wrote: So the content of a

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Mark Murphy
Sena Gbeckor-Kove wrote: Thanks for the tip. Can you point me at what I need to be looking up to find the documentation about changing the view inside the Tab? You don't change the View inside of a tab. You cause the existing View to show something else (e.g., use FrameLayout and make one

[android-developers] reading package name from apk file

2009-08-12 Thread Sudha
Hello, If i have a apk file and want to know the package name and class hierarchy, how do i do it? Suppose I have some sample APK file named SampApp.apk which contains classes inside com.android.sampApp. Is there any tool in Android SDK which shows the package name when APK file is passed as a

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-08-12 Thread Sena
Thanks for the pointers Mark. S On Aug 12, 3:16 pm, Mark Murphy mmur...@commonsware.com wrote: Sena Gbeckor-Kove wrote: Thanks for the tip. Can you point me at what I need to be looking up to find the documentation about changing the view inside the Tab? You don't change the View inside

[android-developers] receive post using a DefaultHttpServerConnection object

2009-08-12 Thread Vermouth
Hello ! I would like to receive the body (all of his entity) of a http post. I use this: -- DefaultHttpServerConnection serv_con = new DefaultHttpServerConnection (); serv_con.bind(client_socket, new BasicHttpParams());

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

2009-08-12 Thread Vermouth
EDIT: action=localhost:8080 - action= I first do a get method for give this html page... --~--~-~--~~~---~--~~ 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: reading package name from apk file

2009-08-12 Thread Zero
dude, maybe you should not try to mess with other ppls code if u don't know basic reverse engineering. seriously. On Aug 12, 3:26 pm, Sudha sudhaker...@gmail.com wrote: Hello, If i have a apk file and want to know the package name and class hierarchy, how do i do it? Suppose I have some

[android-developers] Re: R.arawable visuals

2009-08-12 Thread Jack Ha
Try this link: http://kapsencode.com/android_drawable/ If you extract android.jar, you will also find them under the res/ drawable directory. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author

[android-developers] Re: R.arawable visuals

2009-08-12 Thread Atif Gulzar
Thanks Jack -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12, 2009 at 8:23 PM, Jack Ha jack...@t-mobile.com wrote: Try this link: http://kapsencode.com/android_drawable/ If you extract android.jar, you will also find them under the res/ drawable directory.

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

2009-08-12 Thread Gulfam
Hi every body, I am working on IM and i want to make Chat Window but i don't know how to start it. Currently I am using EditText field, a text view and a button, after entering text in EditText field on pressing send button i am getting text from EditText filed and appending it to TextView

[android-developers] Re: how to package several android projects

2009-08-12 Thread Zero
currently i don't think there's an easy to use or explain solution to that. you can do this by crafting your own ant scripts, either calling different targets or using some sort of conditions, but the implementation depends on the specifics of your project. not much of a help, sorry :/ On Aug

[android-developers] audio video inconsistency

2009-08-12 Thread Christine
In my app, a user picks video content with Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.setType(video/*); startActivityForResult(i, MEDIA_SELECTED); and they start recording video with Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); startActivityForResult(i,

[android-developers] Connection status

2009-08-12 Thread SkySte
Hi, My Java knowledge is very limited so it's quite an easy question (probably) but how can I get the code below to work? I'm basically trying to check that the device is connected to the internet to that I can access and parse an RSS feed. This is also the 1st android app I have written so I'm

[android-developers] French Version Of Datepicker

2009-08-12 Thread vir
Hi to all :) i need a help. Actually i am doing an application in french and i am using the DatePicker. I am wondering of is it psooible to have the datepicker UI to be in french for example the Month Spinner to be displayed as Aout instead of Aug Many thanks.

[android-developers] How i can create usable android project's library

2009-08-12 Thread Ali Adnan
How i can create android project's library that can be used in any different project. Problem: I create a jar file that contains all activities and add this jar file into my eclipse project build path. But if i need to use any activity then i must need to register this jar activity into my

[android-developers] How to get the Count for the Outgoing SMS in between the particular date

2009-08-12 Thread Damodhar
Hi, in Android Mobile i need to get the SMS count for the outgoing message between the particular date / or taken the count from the given date to the current Date. as the same like the call counts also out going call counts Please Help me to found that email me to my Id : damu...@gmail.com

[android-developers] develop picasa in android

2009-08-12 Thread arthur
i modify the android source code.after capture a picture i want to upload this image to picasa.when run the application,it shows Could not find class 'com.google.gdata.client.photos.PicasawebService', referenced from method com.google.gdata.client.photos.PicasawebService $Versions.clinit.can

[android-developers] Where can i download TourIt application Source code

2009-08-12 Thread abu
Hi can anyone tell me that where can i download the source code of TourIt application. I have read the busy coder's android development ebook. it was very nice if i get that application source code it would be helpful to reference. their source code bundle don have this sample application

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

2009-08-12 Thread Neil
Hi, I've recently got into Android development and am writing a basic podcast app as a learning exercise. I've come up with an issue I can't find a good solution for. Rather than post code (it's getting big!), I'll try and summarise: I have an ExpandableListView showing podcasts and each

[android-developers] Switching Content Providers for the same Content URI

2009-08-12 Thread Chirag Patel
Hi, this may seem like a stupid question but I need to be sure. I was wondering if it was possible to programmatically change the Content Provider used when making a query given a Content URI. The reason being I need to know if it's possible to force the Calendar/Contacts applications to read

[android-developers] Regarding the Java Version

2009-08-12 Thread Vinu
Hello, I am trying to compile the Latest android i got the below errors, You are attempting to build with the incorrect version of java. Your version is: java version 1.6.0_10. The correct version is: 1.5. Please follow the machine

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

2009-08-12 Thread Samuel Michelot
I really need this feature also ! On 17 juin, 12:05, jfcog...@gsyc.es jfco.g...@gmail.com wrote: Yeah, what's the reason, is there anyone in this task? co's it will be great if this works in the next version, till then I think I have to look up a provisional solution. thanks ;) On 6 mayo,

[android-developers] Sync Account non_syncable

2009-08-12 Thread Jim (sjjh)
Hello all, How many people out there are using the above? My team tell me that non_syncable appears to be a special value that can be set in the Sync Account field of Contacts and Calendar data tables. When set, the PIM object in question is not sync'd with the device's linked Gmail address book

[android-developers] Re: How to use Thread with SurfaceView, ie draw in a separate thread?

2009-08-12 Thread Neil
I found that too with the LunarLander model - especially when trying to develop a touch and drag style game. Do you know of any other example app/code that demonstrates a better method? On Jul 22, 3:56 pm, Micah mi...@ourmailbox.net wrote: Check out the LunarLander example that comes with the

[android-developers] Re: How to read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread pcm2a
The main Hero widget is a clock with the weather. Every time you turn your screen on, it reads your gps locations and gives you the weather in that location. It is obviously reading the gps sensor from the widget. I am looking to do something similar, except I want to read the compass.

[android-developers] When launch browser, can you set http header?

2009-08-12 Thread Jack
Hi, Can you set custom http headers when launch url in the native browser? Ex: Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri.parse(http://www.google.com;)); // set additional http headers below? ... startActivity(i); Thanks, Jack --~--~-~--~~~---~--~~

[android-developers] Compass still crashing.

2009-08-12 Thread Declan
I've modified the code a bit since the last time, and now it crashes at runtime. I've got the log-cat and code below. Any suggestions, or links to a tutoiral on how to go about debugging would be appreciated. Thanks, Declan package com.wissen.android; import java.util.List; import

[android-developers] Re: How i can create usable android project's library

2009-08-12 Thread Mark Murphy
Ali Adnan wrote: How i can create android project's library that can be used in any different project. Problem: I create a jar file that contains all activities and add this jar file into my eclipse project build path. But if i need to use any activity then i must need to register this

[android-developers] Re: Compass still crashing.

2009-08-12 Thread Justin (Google Employee)
You have a ClassCastException at line 61, its all in logcat 08-12 15:39:02.912: ERROR/AndroidRuntime(548): Caused by: java.lang.ClassCastException: com.example.North.North 08-12 15:39:02.912: ERROR/AndroidRuntime(548):     at com.example.North.North.onCreate(North.java:61) Whatever is on

[android-developers] Re: Where can i download TourIt application Source code

2009-08-12 Thread Mark Murphy
abu wrote: can anyone tell me that where can i download the source code of TourIt application. I have read the busy coder's android development ebook. it was very nice if i get that application source code it would be helpful to reference. their source code bundle don have this sample

[android-developers] Re: Regarding the Java Version

2009-08-12 Thread Fred Grott(shareme)
n command line what does java -version command produce? On Aug 12, 8:07 am, Vinu pjvinayku...@gmail.com wrote: Hello, I am trying to compile the Latest android i got the below errors, You are attempting to build with the

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

2009-08-12 Thread Justin (Google Employee)
So, Gears, is not support in a WebView, but if you really *need* Gears features they're easily addable. WebView.addJavascriptInterface will allow you to add arbitrary functionality to a given WebView instance. You can add an interface to Javascript which accesses a Java object you specify. Gears'

[android-developers] Re: Video with MediaRecorder

2009-08-12 Thread Greivin Lopez
Hi Jason. What do you mean with my own MediaRecorder code? On Jul 17, 11:50 am, Jason Proctor jason.android.li...@gmail.com wrote: if you're using the camera on the emulator, then you have to disable auto orientation changes to get it to work. at least, i picked this info off the network

[android-developers] Re: Connection status

2009-08-12 Thread Roman ( T-Mobile USA)
You want to use a WifiManager instead the TelephonyManager to find out about the WifiConnection state. Use the following APIs below private WifiManager mWifiMgr; mWifiMgr = (WifiManager)mContext.getSystemService(mWifiService); mWifiMgr.getConnectionInfo(); If you are interested to find out in

[android-developers] Re: Slow GPS updates

2009-08-12 Thread CG
Even tough the updates ticks with 500ms, it still takes about 3-4 seconds for the device to discover that I stopped moving. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: audio video inconsistency

2009-08-12 Thread Justin (Google Employee)
Yes, this is inconsistent, but there is a way to do what you want with audio. Take a look at http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html#RECORD_SOUND_ACTION Cheers, Justin Android Team @ Google On Aug 12, 7:32 am, Christine christine.kar...@gmail.com

[android-developers] Re: Image with a Button, or text with ImageButton

2009-08-12 Thread monsoon
Thanks for the feedback Atif - I'll give that a try. Cheers Steve On Aug 12, 9:57 pm, Atif Gulzar atif.gul...@gmail.com wrote: you can use a default button. Just use Drawable bottom | top | right | left for image. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Wed, Aug 12,

[android-developers] Re: Android / Java Developer Wanted

2009-08-12 Thread iPaul Pro
Spot filled! Thanks to everyone that replied. Paul On Aug 4, 1:57 pm, iPaul Pro mr.paulbu...@gmail.com wrote: I am in independent Android developer, creating an app to enter the Second Android Developer Challenge. I am looking for a developer experienced in RESTful or JSON web API's.

[android-developers] android codecs

2009-08-12 Thread LT
How can get a list of the codecs for video playback that Android will support? thanks, LT --~--~-~--~~~---~--~~ 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: android codecs

2009-08-12 Thread Mark Murphy
LT wrote: How can get a list of the codecs for video playback that Android will support? http://developer.android.com/guide/appendix/media-formats.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0

[android-developers] Re: Switching Content Providers for the same Content URI

2009-08-12 Thread Dianne Hackborn
Hi, sorry there is no way to do this. On Wed, Aug 12, 2009 at 3:11 AM, Chirag Patel chi...@gmail.com wrote: Hi, this may seem like a stupid question but I need to be sure. I was wondering if it was possible to programmatically change the Content Provider used when making a query given a

[android-developers] Re: Launching/Installing an APK with command-line like options

2009-08-12 Thread Doug
Thanks Roman, That's pretty much what I came up with too. To my knowledge an application is a single APK, so if I wanted to have two APK's installed I'd have to get the user to download both, and run through the install process for each. Installing apps outside of the Market isn't exactly a

[android-developers] OpenCore RTP session streaming?

2009-08-12 Thread ivan
1.) Does OpenCore Handle RTP creation and RTP sessions? I'm looking to implement a phone based streaming server broadcasting RTP over UDP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)
Runtime.getRuntime().exec(ls -a); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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 11, 8:26 

[android-developers] Re: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)
Runtime.getRuntime().exec(ls -a); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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 11, 8:26 

[android-developers] Re: How to read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread Dianne Hackborn
The built-in widgets on the hero do not use the widget framework. They run inside integrated inside of the home screen. What you can do with the platform widget framework is more limited, since it needs to carefully juggle security, overhead, and performance issues while allowing for two

[android-developers] Re: Can an end user disable 2G data, or GSM function?

2009-08-12 Thread Roman ( T-Mobile USA)
Airplane mode does switch of all radios also GPS. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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: How to read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread String
On Aug 12, 2:33 pm, pcm2a reeeye...@gmail.com wrote: The main Hero widget is a clock with the weather.  Every time you turn your screen on, it reads your gps locations and gives you the weather in that location.  It is obviously reading the gps sensor from the widget. Also, it's probably

[android-developers] Re: How to read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread nEx.Software
Getting GPS location is a very different thing than hooking into the orientation sensors. For GPS, you fire off (at certain intervals) or as it seems in your response, upon turning on the screen. I'd imagine it is not hooked to the screen turning on, to be honest, but tied to other events or

[android-developers] Running linux commands from java code

2009-08-12 Thread Jason Proctor
IMHO, much better to do this from Java with File.listFiles() much fewer clock cycles die this way :-) Runtime.getRuntime().exec(ls -a); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Video with MediaRecorder

2009-08-12 Thread Jason Proctor
i mean the code inside my application which calls MediaRecorder to record video. btw, since 1.5 i have not found any problems with MediaRecorder. the order of the configuration set() methods must be right, but if you read the documentation and look at the error log, the order becomes clear.

  1   2   >