[android-developers] Update Intents in TabHost Tabs

2010-09-09 Thread BW
Hello, I am building an app that has a TabActivity with a TabHost that includes 2 TabSpecs (Maps, List). When the user moves, I want to update the items shown on the map / in the list. I built a service that sends the relevant data (an ArrayList) onLocationChanged(). The TabActivity can use the

[android-developers] Can't understand how to query ContentProvider - java.lang.IllegalArgumentException: Unknown URL

2009-08-16 Thread bw
I'm trying to figure out how to get data from another app's ContentProvider. From the docs for ContentProvider (http://developer.android.com/guide/ topics/providers/content-providers.html) I got that the url format should be: content://com.example.authority/table_name I discovered the authority

[android-developers] Re: Can't understand how to query ContentProvider - java.lang.IllegalArgumentException: Unknown URL

2009-08-16 Thread bw
Figured it out. Making the url all lower-case letters made the error go away ( even though table name had capital letters in it ). On Aug 16, 2:13 am, bw ben.weisb...@gmail.com wrote: I'm trying to figure out how to get data from another app's ContentProvider. From the docs

[android-developers] Re: How do you get all table names exposed by a given Content Provider?

2009-08-15 Thread bw
On Aug 9, 8:34 am, bw ben.weisb...@gmail.com wrote: Hi, The docs for ContentProvider (http://developer.android.com/guide/ topics/providers/content-providers.html) show the url format as: content://com.example.authority/table_name/13 I'm use the following code to find the authority

[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] How do you get all table names exposed by a given Content Provider?

2009-08-09 Thread bw
Hi, The docs for ContentProvider (http://developer.android.com/guide/ topics/providers/content-providers.html) show the url format as: content://com.example.authority/table_name/13 I'm use the following code to find the authority for a particular 3rd- party content provider:

[android-developers] How do you get all table names exposed by a given Content Provider?

2009-08-09 Thread bw
Hi, The docs for ContentProvider (http://developer.android.com/guide/ topics/providers/content-providers.html) show the url format as: content://com.example.authority/table_name/13 I'm use the following code to find the authority for a particular 3rd- party content provider:

[android-developers] 1.5 and bluetooth call button

2009-04-24 Thread bw
Hi, Does the 1.5 update fix/enable using bluetooth headsets' call button - (eg. hold the button down to start voice dialer, press to pick up a call, press to end call)? This doesn't seem to work in the current version of android. Thanks -Ben

[android-developers] Re: what is the recording format of Intent .RECORD_SOUND_ACTION?

2009-04-12 Thread bw
Try looking at the source code for RingDroid: http://code.google.com/p/ringdroid/source/checkout Particularly the CheapAMR and CheapMP3 classes which can read/write these formats: http://code.google.com/p/ringdroid/source/browse/#svn/trunk/src/com/ringdroid/soundfile On Mar 13, 5:27 am,

[android-developers] Re: Recording Audio

2009-04-09 Thread bw
Hi, the following code works for me. I was also getting the Start failed. error at one point. Fixed it by changing my output file extension from .3gpp to .audio -Ben final String path = /sdcard/recording + System.currentTimeMillis() + _ + (int)(Math.random() * 1000)+ .audio; final

[android-developers] Re: Dialer App Source Code

2009-04-05 Thread bw
Actually, the dialer is here: http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=tree On Apr 5, 11:52 am, bw ben.weisb...@gmail.com wrote: The web interface to view android source code is here: http://android.git.kernel.org/ From there you can get to the phone app

[android-developers] Re: Dialer App Source Code

2009-04-05 Thread bw
The web interface to view android source code is here: http://android.git.kernel.org/ From there you can get to the phone app: http://android.git.kernel.org/?p=platform/packages/apps/Phone.git;a=tree -Ben On Apr 3, 9:05 pm, TJ104 tiny.timmy.t...@gmail.com wrote: Hello, First of all,

[android-developers] Re: Voice Recognition like in Voice Search? (STT)

2009-02-22 Thread bw
Try this: http://awalkingcity.com/blog/?p=140 -Ben On Feb 11, 12:46 pm, Markus Junginger mar...@junginger.biz wrote: Future APIs are one thing, using Intents to access existing functionality is another, imho. Voice search is already here, so the question for me is if there are Intents to

[android-developers] Re: How do you get the local time zone?

2009-02-21 Thread bw
Issue resolved here: http://code.google.com/p/android/issues/detail?id=2037 On Feb 19, 2:12 am, bw ben.weisb...@gmail.com wrote: I found a pseudo-workaround that uses getResources().getConfiguration ().locale.getCountry() and looks up timezone by country code. For any country that contains

[android-developers] How do you get the local time zone?

2009-02-18 Thread bw
Hi, I can't figure out how to get the local time zone... TimeZone.getDefault() returns Pacific Time, while my phone's settings show the time zone correctly set to EST. Thanks -Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: How do you get the local time zone?

2009-02-18 Thread bw
); // Australia timeZoneOffsetMap.put(BE,+1); // Belgium timeZoneOffsetMap.put(BW,+2); // Botswana timeZoneOffsetMap.put(BZ,-6); // Belize timeZoneOffsetMap.put(CA,-6); // Canada timeZoneOffsetMap.put(GB,+0); // United

[android-developers] Re: How to get the UTC bias from TimeZone information?

2009-02-18 Thread bw
I also couldn't find the solution.. A lookup table/database workaround is posted here: http://groups.google.com/group/android-developers/browse_thread/thread/3b90b3377af7197 On Jan 22, 9:59 pm, yukinoba ckmagic...@gmail.com wrote: to dear all Android developers, I need to know theUTCbias

[android-developers] NumberPicker

2008-11-30 Thread bw
Hi, Is there a way to get the NumberPicker widget used in Date and Time pickers? -Ben --~--~-~--~~~---~--~~ 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: WebView ZoomControls Issues

2008-11-19 Thread bw
Just figured out how to do this programatically, in case anybody else needs this public class MyMapActivity extends MapActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); RelativeLayout relativeLayout = new RelativeLayout(this);

[android-developers] Re: Cannot create new Android Projects

2008-11-09 Thread bw
I had the same problem and got around it by running eclipse with the - clean flag and creating a new workspace. -Ben Based on: http://www.eclipsezone.com/eclipse/forums/t61566.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: MapActivity / MapView causes application to crash at startup

2008-11-09 Thread bw
Also had to add uses-permission android:name=android.permission.INTERNET / above my application tag. (Source: http://groups.google.com/group/android-developers/browse_thread/thread/74b47e1e11067865/9d7f0badbc0bbfc5?lnk=gstq=MapView#9d7f0badbc0bbfc5) Is there some place where this is all

[android-developers] Re: MapActivity / MapView causes application to crash at startup

2008-11-09 Thread bw
Got it.. This is not a standard package in the Android library. In order to use it, you must add the following XML element, as a child of the application element, in your AndroidManifest.xml file: uses-library android:name=com.google.android.maps / From:

[android-developers] MapActivity / MapView causes application to crash at startup

2008-11-09 Thread bw
Hi, I'm trying to create a new application with a MapView. When I first create a new Android project in Eclipse, I run it in the emulator and get the expected Hello, [project name] message. Then, I try changing Activity to MapActivity and adding a MapView (I've tried both the xml and the code

[android-developers] Custom view - canvas height incorrect?

2008-10-23 Thread bw
To simply debugging of my custom View, I'm trying to draw a border around it so I can see its exact size/position. The left and right sides of the border draw correctly, but the top and bottom end up outside the screen by about 50 pixels. My guess is that canvas.getHeight() isn't accounting for