[android-developers] AppWidgetProvider question on 1.5 SDK

2009-04-21 Thread j
Jeff, Thanks for the Wkionary sample code on the Android blog. I have a general question. Is it possible to set the RemoteView of the widget to a WebView? My goal is to push real time updates to the WebView via the comet technique (HTTP long polling), similar to how Google Talk does it on the

[android-developers] 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?

2009-04-21 Thread j
I would like to use the new AudioRecord class to record in AMR-NB format. But android.media.AudioFormat provides only 8-bit PCM and 16- bit PCM options, no AMR-NB option for some reason. I have also looked into MediaRecorder class. My understanding is that while MediaRecorder supprots recording

[android-developers] u-law PCM audio compression supported in 1.5?

2009-04-20 Thread j
I can see from documentation that AudioRecord supports PCM 16 bit per sample and PCM 8 bit per sample Does it support things like u-law and a-law like the Java Media Framework? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Recording audio with 1.5 SDK

2009-04-20 Thread j
Thank you Dave. Is there any sample code utilizing AudioRecord that I can refer to? My goal is to write the audio to a RTP network stream. On Apr 16, 1:21 pm, Dave Sparks wrote: > See theAudioRecordclass. > > On Apr 16, 11:33 am, j wrote: > > > One known limitation of SDK

[android-developers] Re: 1.5 SDK: "android list target" failed

2009-04-20 Thread j
y see it. > > > Be sure to read all ofhttp://developer.android.com/sdk/previewas > > there are other steps you may need to take. > > > Randy > > > On Apr 17, 4:45 pm, j wrote: > > >> I have installed the 1.5 preview SDK under Windows XP and ADT Eclipse

[android-developers] 1.5 SDK: "android list target" failed

2009-04-17 Thread j
I have installed the 1.5 preview SDK under Windows XP and ADT Eclipse plug-in. I opened a command prompt and enter "android list target": C:\>android list targets Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to ex

[android-developers] Recording audio with 1.5 SDK

2009-04-16 Thread j
One known limitation of SDK 1.1 was that audio can be recorded only to a File and not to a network stream. Is this still an issue with 1.5 SDK? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Re: Webview question: Is it possible to execute Javascript from Java synchronously?

2009-04-06 Thread j
Mark, I have a nastier solution: Put inside the while loop: try { Thread.sleep(100); } catch (Exception e) {} It works. On Apr 6, 12:41 pm, Mark Murphy wrote: > j wrote: > > Mark, your suggestion makes sense.  I tried it.  I

[android-developers] Re: Webview question: Is it possible to execute Javascript from Java synchronously?

2009-04-06 Thread j
Handler/ UI thread. Thanks. On Apr 6, 11:40 am, Mark Murphy wrote: > j wrote: > > I am writing a hybrid web/native app and ran into issue.  My app > > downloads a music file via Java code, and needs to update a Javascript > > download progress bar in theWebViewin real time. &

[android-developers] Webview question: Is it possible to execute Javascript from Java synchronously?

2009-04-06 Thread j
I am writing a hybrid web/native app and ran into issue. My app downloads a music file via Java code, and needs to update a Javascript download progress bar in the WebView in real time. My understanding is the only way to call Javascript from Java is via the WebView's loadUrl method. while ((by

[android-developers] Re: HTML/CSS Specification for T1 - android

2009-03-30 Thread j
>From my experiments, the iPhone browser css attribute set is quite different from Android browser. For example, I am trying to make a transparent textarea (so I can show a custom background text field image). On iPhone these css attributes works: border:none; background-color: transparent; bac

[android-developers] Webview Question: onCreate always get called when activity comes to foreground

2009-03-29 Thread j
I launch my TestWebView activity. After my web page is loaded, I put the app in the background by pressing the Home key. Then I bring the TestWebActivity back to the foreground. Unexpectedly, TestWebView's onCreate() is called when I bring the activity to the foreground. But onDestroy is never

[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-03-26 Thread Novice J
Will the 1.1 SDK eventually put back the Bluetooth API? Thanks. Android Developer On Feb 9, 6:31 pm, "Justin (Google Employee)" wrote: > Hey developers, today we released the new, 1.1_r1 SDK. This SDK > includes some minor updates that you can read more about on the > blog,http://android-devel

[android-developers] Does android webkit support html5?

2009-03-20 Thread j
Does android webkit support html5 currently or in cupcake branch? I am particularly interested in the tag. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: droid fonts

2009-03-08 Thread j
Anyone? What fonts are available to the browser in Android G1? On Mar 6, 6:40 pm, j wrote: > I am building a website customized for Android phones.  I want to use > droid fonts in my css file but haven't been successful. > > font-family: "droid-serif", "Droi

[android-developers] droid fonts

2009-03-06 Thread j
I am building a website customized for Android phones. I want to use droid fonts in my css file but haven't been successful. font-family: "droid-serif", "Droid Serif" What names should I enter instead? --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Webview's addjavascriptinterface question

2009-03-04 Thread j
Regarding Webview's addjavascriptinterface, is the java-javascript binding global or apply only to my webview? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

[android-developers] Detect shaking

2009-03-01 Thread J . Pablo Fernández
Hello, Is there an easy way to detect shaking of the phone? Or do I have to implement it myself by monitoring the sensors? If so, any hints on how shaking looks like from the sensor point of view? Thanks. -- J. Pablo Fernández (http://pupeno.com

[android-developers] Testing the menu

2009-02-28 Thread J . Pablo Fernández
Hello, I'm trying to write an instrumentation test for checking the correct visibility of menu items according to the state of the application. Do you know how can I programatically get ahold of the visible menu items, the menu or something? Thanks. -- J. Pablo Fernández (http://pupen

[android-developers] UI question: AnimationSet on ImageView problem

2009-02-22 Thread j
For some reason, only the alpha transition was applied to my ImageView (no scaling effect at all). What am I doing wrong? My code: logo = (ImageView) findViewById(R.id.logo); logo.setAnimation(AnimationUtils.loadAnimation(this, R.anim.myanim)); myanim.xml: http://schemas.and

[android-developers] Re: X and y coordinates for clicks and long clicks

2009-02-22 Thread J . Pablo Fernández
xInit = event.getRawX(); >yInit= event.getRawY(); > } >} > return false; > } > > > > Hope this helps > > Lewis > > > On Feb 22, 12:15 pm, J. Pablo Fernández wrote: > > It seems it'

[android-developers] Re: X and y coordinates for clicks and long clicks

2009-02-22 Thread J . Pablo Fernández
It seems it's also not possible to know where exactly was the long clicked performed in a view to trigger a context menu. :S On Sat, Feb 21, 2009 at 3:41 PM, J. Pablo Fernández wrote: > Hello, > > When you receive clicks and long clicks, how do you get the x and y > coordinates

[android-developers] X and y coordinates for clicks and long clicks

2009-02-21 Thread J . Pablo Fernández
Hello, When you receive clicks and long clicks, how do you get the x and y coordinates that were clicked? Thanks. -- J. Pablo Fernández (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: How to prevent the default Web Page Not Available screen to show on Webview if my website is down?

2009-02-20 Thread j
makeText(myApp, "Oh no! Load Error " + > description, > Toast.LENGTH_SHORT).show(); >                         } > > You need to initialize Context myApp to use that code block > plus set up WebViewClient > > On Feb 20, 11:04 am, j wrote: > > > Can Webview

[android-developers] How to prevent the default Web Page Not Available screen to show on Webview if my website is down?

2009-02-20 Thread j
Can Webview tell me that I didn't get a HTTP 200 OK HTTP response code? I really don't want to display the Android Web Page Not Available screen inside my app. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] How to control WebView cache

2009-02-19 Thread j
I have a Webview inside my activity. I would like to cache the content for one week (purely to reduce data usage to save user money). After one week, it is considered expired and so the webview should refresh the content from network. If cached content is less than one week old, webview should n

[android-developers] Re: File explorer

2009-02-17 Thread John J. Martinez
> transferring files a snap.) > > On Feb 16, 10:40 am, "John J. Martinez" > wrote: > > you know any file explorer for Android? > > > > John J. > > > -- Cordial Saludo, JOHN J. MARTINEZ solucione...@gmail.com solucione..

[android-developers] File explorer

2009-02-16 Thread John J. Martinez
you know any file explorer for Android? John J. --~--~-~--~~~---~--~~ 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 unsubs

[android-developers] How to install android on htc tytn ii

2009-02-16 Thread John J. Martinez
hi, you know, how to install android on htc tytn ii? Atn, John --~--~-~--~~~---~--~~ 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 un

[android-developers] Is it a bad idea to hardcode the memory card location ?

2009-02-15 Thread j
I don't know of any API that would return the memory card location (e.g. /sdcard on the G1) so I have been hardcoding the sdcard/ directory path in my code . Obviously I want my app to work on G1 and future non-HTC Android phones. How are developers handling the memory directory path? --~--~

[android-developers] How do I remove the default frame around each picture in Gallery?

2009-02-14 Thread j
How do I remove (or replace) the default frame around each picture in Gallery widget? Does the frame comes from ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Re: Graphics question: bilinear interpolation

2009-02-10 Thread j
map > through a matrix (scale, rotate, etc.). If you are doing arbitrary > distortions in java, then I'm afraid the graphics API can't help > per-se. > > On Sun, Feb 8, 2009 at 4:56 PM, j wrote: > > > Hi Dianne, > > > I am afraid I don't understand h

[android-developers] Re: Graphics question: bilinear interpolation

2009-02-08 Thread j
le.com/android/reference/android/graphics/Paint.html#... > > On Sat, Feb 7, 2009 at 8:06 PM, j wrote: > > > Is there an Android API for performing bilinear interpolation?  I > > discovered that my own interpolation implementation is extremely slow > > running on the G1 so it&#

[android-developers] Graphics question: bilinear interpolation

2009-02-07 Thread j
Is there an Android API for performing bilinear interpolation? I discovered that my own interpolation implementation is extremely slow running on the G1 so it's pretty useless. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Question about android.provider.MediaStore.Images.Media

2009-02-04 Thread j
My app needs to save an image to the sdcard in its own directory e.g. "sdcard/myApp/". I need the images to show up in the build-in Pictures app (like what PicSay does). Using android File Explorer, I verified that the image was written to the sdcard. But it didn't show up in the built-in Pictu

[android-developers] Is it possible to have 2 launcher Activity in a single apk?

2009-02-02 Thread j
I need to have 2 launcher activities (i.e. 2 icons on the home screen). Each launch icon would launch a separate activity. Essentially, I need a single apk which contains a suite of 2 apps which I don't want to distribute separately. Is this possible? --~--~-~--~~~---~

[android-developers] How do you pass a Bundle to an activity on an instrumentation test case?

2009-01-29 Thread J . Pablo Fernández
Hello, When implementing an ActivityInstrumentationTestCase, how do you start the activity with a Bundle of saved state? Thanks. -- J. Pablo Fernández (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Should onSaveInstanceState call super?

2009-01-28 Thread J . Pablo Fernández
at created a view hierarchy can touch its views." (stack trace at the bottom). So I'm wondering, what am I doing wrong here? the test or the app? Thanks. -- J. Pablo Fernández (http://pupeno.com) PS: The stack trace: Error in testLoadingAndSavingState: android.view.ViewRoot$CalledFrom

[android-developers] Re: How do you save the state of an activity on an ActivityUnitTestCase

2009-01-28 Thread J . Pablo Fernández
possible to fix this particular case > (so you can make this call via Instrumentation) in an update but in > the meantime, you will probably find it easier to use > ActivityInstrumentationTestCase - have you tried that? > > --Andy > > > On Thu, Jan 22, 2009 at 12:2

[android-developers] Rendering the G1 screen on a computer screen via VNC software?

2009-01-28 Thread j
For the purposes of demo to a large audience, we need to show the G1 screen on a projector. Is there VNC software available? We don't want to use the emulator. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: UI question: TrueType Font rendering bug

2009-01-23 Thread j
This could be a problem with the custom TTF font itself. On Jan 23, 10:53 am, j wrote: > I am trying a custom TTF font in my app.  I notice that the left ~4 > pixels of the leftmost character (certain characters only) is cut off > in either a TextView or EditText.  Does anyone know

[android-developers] UI question: TrueType Font rendering bug

2009-01-23 Thread j
I am trying a custom TTF font in my app. I notice that the left ~4 pixels of the leftmost character (certain characters only) is cut off in either a TextView or EditText. Does anyone know how I can get around this problem? I tried textview.setPadding(10, 2, 2, 2) but the leftmost character stil

[android-developers] Re: TCP connections

2009-01-22 Thread Coder J
well... i found some basic code with ServerSocket and Socket... and it works fine on emulation with port redirection but as far as the t- mobile network with the g1 it seems to be firewalled. Though not sure about the wifi, you can probably work through that. On Jan 22, 4:24 pm, Michael wrote:

[android-developers] How do you save the state of an activity on an ActivityUnitTestCase

2009-01-22 Thread J . Pablo Fernández
on how to fix it or workaround it are appreciated. I want to test that my application is saving its state correctly. Thanks. -- J. Pablo Fernández (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] _count "column"

2009-01-21 Thread J . Pablo Fernández
Hello, What should I do to get my content provider to return the _count column with the count of records? Thanks. -- J. Pablo Fernández (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Testing using ProviderTestCase and other classes in android.test

2009-01-21 Thread J . Pablo Fernández
Hello, According to http://code.google.com/android/kb/troubleshooting.html#addjunit you have to remove the Android library from your tests to run them, but if you remove the Android library then you can't access classes such as android.test.ProviderTestCase; so how do you write or run a ProviderT

[android-developers] Re: Testing using ProviderTestCase and other classes in android.test

2009-01-21 Thread J . Pablo Fernández
an easier more automatic way to do it? Maybe straight from Eclipse? To be able to do that I had to add to my application in the manifest. Does that mean that my app would be shipping with its tests in place? Isn't that undesired? Thanks. On Wed, Jan 21, 2009 at 8:16 PM, J. Pablo Ferná

[android-developers] Screen Orientation change performance Question

2009-01-21 Thread j
>From reading Romain Guy's blog post, I understand keep static reference to a Drawable can create huge memory leaks. So what is the recommended solution if I don't want to reload my big Drawable image every time screen orientation changes? Currently my app takes >3 seconds to complete each orien

[android-developers] Re: debuggerd committing suicide to free the zombie?

2009-01-14 Thread j
) has died. I/DEBUG ( 2428): debuggerd: Nov 14 2008 06:22:15 D/Zygote ( 30): Process 2402 terminated by signal (11) On Jan 14, 5:09 pm, j wrote: > What is Android telling me when it says > > "I/DEBUG   ( 2052): debuggerd committing suicide to free the zombie! > I/DEB

[android-developers] debuggerd committing suicide to free the zombie?

2009-01-14 Thread j
What is Android telling me when it says "I/DEBUG ( 2052): debuggerd committing suicide to free the zombie! I/DEBUG ( 2179): debuggerd: Nov 14 2008 06:22:15" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Androi

[android-developers] Re: Batteryprof

2009-01-13 Thread j
There are extended battery packs, which if you don't mind your G1 being thick, is a solution. On Jan 13, 4:43 pm, Mark K wrote: >   One solutions is to have a spare replacement battery with, they only > cost $25 and the battery can be changed in a minute, can't do that > with an I-phone. > >    

[android-developers] UI question: onTouchEvent and ListActivity

2009-01-13 Thread j
My activity extends ListActivity. I would like to catch touch event that happen outside of the list of items (i.e. the empty area of the screen) so I override onTouchEvent: public boolean onTouchEvent(MotionEvent event) { //my code here... } But onTouchEvent is never called. What's wrong with

[android-developers] Save a file so that it persist after app version is upgraded

2009-01-13 Thread j
If I save a file via Context.openFileInput , is the file is automatically deleted when my app is upgraded to a newer version or does it persist? I need this file to persist across upgrade. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Long click in ListActivity

2009-01-12 Thread J . Pablo Fernández
Hello, Any ideas how to implement long click on the items of a ListActivity that is build using a ListAdapter and no layout, just the built in. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Process has died during onDestroy() of my Activity. Why?

2008-12-29 Thread j
My app calls setWallpaper inside onDestroy() of my Activity. The method succeed with no issue about 95% of the time. However, in about 5% of the time, the process crashed: I/ActivityManager( 2591): Process com.jack.moment (pid 5053) has died. I notice my onDestroy implementation takes up to 7

[android-developers] Re: saving EditText state before device goes to sleep

2008-12-26 Thread j
thanks mark. it works. On Dec 26, 5:04 pm, Mark Murphy wrote: > j wrote: > > When device goes to sleep, any text entered into the EditText is gone > > when device awakes.  How do I save/restore the text? > > Implement onSaveInstanceState() and save whatever state you want

[android-developers] saving EditText state before device goes to sleep

2008-12-26 Thread j
When device goes to sleep, any text entered into the EditText is gone when device awakes. How do I save/restore the text? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Usability question: How is user supposed to discover the menu shortcut keys?

2008-12-26 Thread j
If there are more than 6 commands, there is a "More" menu item added. Once opened, the menu list does show the key shortcuts. But if I have less than 6 commands, the key shortcuts are not displayed. How is user supposed to find out the menu shortcut keys? --~--~-~--~~~---

[android-developers] Re: changing string resources

2008-12-16 Thread j
As Android adds support for new languages besides English, my utility app should ideally support those languages without modification to the apk. Ideally, I would like to use a custom font instead of the default Android font (I believe there are only 2 fonts that come with Android platform). The

[android-developers] Re: Android Dev Phone - shipping to Canada?

2008-12-08 Thread J Dietrich
yer or a customs specialist. Therefore, > I assume the costs vary by country according to the laws of that > country. While it is true that sometimes duties are not assessed > depending on how shipments are labeled, it doesn't mean that legally > they shouldn't be. > > Chee

[android-developers] Re: Astronomical Android Dev Phone 1 shipping free

2008-12-08 Thread J Dietrich
I had created a new post some hours ago about the Canadian shipping costs (which are the highest for some reason), but it appears to have been eaten by /dev/null... I'll repost here, with apologies if the thread was created and I'm just not seeing it: According to the Help/FAQ, the fee includes "

[android-developers] Android Dev Phone - shipping to Canada?

2008-12-08 Thread J Dietrich
So, I signed up for the Market, and then suffered a severe bout of Jaw Drop when I saw that it was going to cost $264.19 to ship to Canada. I quickly retreated from purchasing what had been looking like one hell of an x-mas present for myself. According to the Help/FAQ, the fee includes "applicab

[android-developers] kSOAP2 with SDK1.0

2008-12-04 Thread Smith, Miles J (DOH)
I'm having a helluva time trying to get ksoap2 working with Android. All the samples I see (including the modified .jar with AndroidHttpTransport in it) fail because of the relocation of org/apache/commons/httpclient/SimplehttpconnectionManager. Can someone provide me with a tutorial, sample, any

[android-developers] initializing chosen item for ListView.CHOICE_MODE_SINGLE

2008-11-26 Thread j
I would like to show previously chosen item in the List10 of APIDemo app. i.e. What method do I call to programmaticly choose a single item in a single choice (CHOICE_MODE_SINGLE) listview? Code from APIDemo: public class List10 extends ListActivity { @Override public void onCreate(Bund

[android-developers] NotePad sample app bug

2008-11-24 Thread j
If user chooses "Add note", the editor activity launches. Now if user slide out/in the keyboard, each time orientation changes, onCreate gets called so a new row is inserted into the database, which is obviously not desirable. protected void onCreate(Bundle savedInstanceState) { supe

[android-developers] Re: setResult crashed if portrait/landscape orientation changes

2008-11-24 Thread j
e new A. Is my logic correct? On Nov 24, 1:24 pm, j <[EMAIL PROTECTED]> wrote: > W/dalvikvm( 4397): threadid=3: thread exiting with uncaught exception > (group=0x4 > 0013e28) > E/AndroidRuntime( 4397): Uncaught handler: thread main exiting due to > uncaught exceptio

[android-developers] Re: setResult crashed if portrait/landscape orientation changes

2008-11-24 Thread j
):at dalvik.system.NativeStart.main (Native Method) On Nov 24, 12:29 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote: > What is the stack crawl of the crash? > > On Mon, Nov 24, 2008 at 11:57 AM, j <[EMAIL PROTECTED]> wrote: > > > I have this scenario:

[android-developers] Re: setResult crashed if portrait/landscape orientation changes

2008-11-24 Thread j
/AndroidRuntime( 4397):at dalvik.system.NativeStart.main (Native Method) On Nov 24, 12:29 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote: > What is the stack crawl of the crash? > > On Mon, Nov 24, 2008 at 11:57 AM, j <[EMAIL PROTECTED]> wrote: > > > I have

[android-developers] setResult crashed if portrait/landscape orientation changes

2008-11-24 Thread j
I have this scenario: 1) activity A starts activity B via startActivityForResult. 2) User changes orientation which triggered activity B to be destroyed and its onCreate method to be called a second time. 3) Activity B calls setResult(...) and that crashes. It seems activity B no longer knows who

[android-developers] How do I make sure one row ListView is always in focus

2008-11-21 Thread j
myListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); works fine in non-touch mode. However, I notice that when in touch mode, myListView does not show a focused row (the orange row highlight). How do I make it so that there is always one row that has orange highlight? myListView.setSelectio

[android-developers] Re: Fwd: Send DTMF

2008-11-20 Thread j
Yes Rimma's method works if the program wishes to play DTMF tones when the call connects. It also works if you replaced ";" with ",". My further question is: How can an Android program play outgoing DTMF tones in the middle of a phone conversation? Is that possible? On Nov 9, 11:56 pm, "Rimma

[android-developers] Re: how to disable image shrinking for setBackgroundDrawable

2008-11-15 Thread j
instance. > > On Sat, Nov 15, 2008 at 10:29 AM, j <[EMAIL PROTECTED]> wrote: > > > I am calling setBackgroundDrawable(Drawable d) and it always scale (by > > shrinking) my background image to fit the screen (my drawable is > > big).  How do I make it just

[android-developers] how to disable image shrinking for setBackgroundDrawable

2008-11-15 Thread j
I am calling setBackgroundDrawable(Drawable d) and it always scale (by shrinking) my background image to fit the screen (my drawable is big). How do I make it just crop out the proper size from my drawable instead? --~--~-~--~~~---~--~~ You received this message be

[android-developers] InCallScreen is not public

2008-11-11 Thread j
I want to pass the intent to InCallScreen directly so that my intent won't be intercepted by another app: Intent newIntent = new Intent(Intent.ACTION_CALL, uri); newIntent.putExtra(Intent.EXTRA_PHONE_NUMBER, number); newIntent.setClass(this, InCallScreen.class); ne

[android-developers] SimpleCursorAdaptor and ListActivity question

2008-11-08 Thread j
My activity extends ListActivity. I need to programmaticly change the text color of the TextView defined in list_item.xml (copied below). I know that Adapter has this method: public View getView(int position, View convertView, ViewGroup parent) but there must be a better way than to iterates

[android-developers] Does AlarmManager wake up to do scheduled work when phone is asleep?

2008-11-07 Thread j
According to API doc for AlarmManager.set : "Alarm intents are delivered with a data extra of type int called Intent.EXTRA_ALARM_COUNT that indicates how many past alarm events have been accumulated into this intent broadcast. Recurring alarms that have gone undelivered because the phone was aslee

[android-developers] Re: Intercept Call

2008-11-07 Thread j
It is possible. Voxofon app on the G1 does that. On Nov 7, 11:24 am, hackbod <[EMAIL PROTECTED]> wrote: > http://code.google.com/android/reference/android/content/Intent.html#... > > On Nov 6, 5:57 am, "BrunoZP.com" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > How can I intercept a user call, chang

[android-developers] Detecting wallpaper changed

2008-11-05 Thread j
I know you can set the wallpaper. But I also need to detect if user has changed the wallpaper. Is that possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: possible to lock device?

2008-11-04 Thread j
What about: "android.permission.BRICK" On Oct 19, 11:10 am, hackbod <[EMAIL PROTECTED]> wrote: > Whoops, I just looked and this permission is not available to > applications.  Sorry, it isn't possible for apps to do this. > > On Oct 18, 1:43 pm, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > > > i added

[android-developers] Re: ConnectManager supports multiple-homing ?

2008-11-01 Thread j
I would also like to know if an app has the ability to choose between Wi-fi or cellular mobile network for its own networking needs. It seems if I have my wi-fi home router running with a disconnected modem (obviously no internet connection can be made), the phone still does not attempt to connec

[android-developers] What requires android.permission.SET_WALLPAPER_HINTS ?

2008-10-29 Thread j
What API requires android.permission.SET_WALLPAPER_HINTS ? Also, is there a way to detect when a wallpaper has been changed by user? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: USB socket

2008-10-29 Thread j
I would also like to know if there is such API (public or private). On Oct 28, 1:13 pm, Emery <[EMAIL PROTECTED]> wrote: > Can I open a TCP connection across a USB connection with the G1? My > guess is no, since someone could use that totether. I just want the > option to use a laptop as an input

[android-developers] Design decision on Local Service versus Remote Service

2008-10-28 Thread j
I understand that local service runs in the same process as the app and remote service runs in a separate process as the app. Also, Remote service requires IPC to communicate with client. But can someone give me concrete examples of when local service service should be used (and remote service)?

[android-developers] How do I get an instance of android.content.pm.PackageInfo to read the attributes on my manifest file?

2008-10-24 Thread j
How do I get an instance of android.content.pm.PackageInfo to read the attributes on my application AndroidManifest.xml file? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] How do you compile the bundled apps that comes with the Android source code

2008-10-22 Thread j
I downloaded the source code for the Android Open Source Project. In it are apps such as the dialer app , IM app, and the email app. I want to build them and install them to my G1 as some of these apps seem to have added features than the versions the G1 come with.. However, these apps use APIs

[android-developers] Re: Repo syntax error when getting the Android source code (Mac OSX)

2008-10-21 Thread j
; > -Jeff > > On Tue, Oct 21, 2008 at 3:25 PM, j <[EMAIL PROTECTED]> wrote: > > > $ repo init -u git://android.kernel.org/platform/manifest.git > > /Users/systems/bin/repo: line 1: syntax error near unexpected token > > `newline' > > /Users/systems/bi

[android-developers] Repo syntax error when getting the Android source code (Mac OSX)

2008-10-21 Thread j
$ repo init -u git://android.kernel.org/platform/manifest.git /Users/systems/bin/repo: line 1: syntax error near unexpected token `newline' /Users/systems/bin/repo: line 1: `' $ repo sync /Users/systems/bin/repo: line 1: syntax error near unexpected token `newline' /Users/systems/bin/repo: line 1

[android-developers] image manipulation

2008-10-16 Thread j
Does Android come with any package/classes for image manipulations (e.g. contrast, brightness adjustments)? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

[android-developers] write_sms and send_sms permissions

2008-10-13 Thread j
Why does Android need to have 2 distinct permissions? write_sms and send_sms --~--~-~--~~~---~--~~ 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@googlegr

[android-developers] Re: persistent socket connection

2008-10-08 Thread j
vice polls > > periodically for updates. You can make the period suitably small to > > make it *seem* like a push to the user, even though it's not; it'll be > > good not just for your users but for your servers. Persistent > > connections take resources, and you&

[android-developers] persistent socket connection

2008-10-08 Thread j
I would like to maintain a persistent socket connection to a server via my background Service. The reason is I want to be able to push notification data to client with minimal delay. Is there any problem with this approach besides negative effects on the battery? --~--~-~--~~

[android-developers] Re: Sending DTMF

2008-10-06 Thread j
I assume you are trying to generate tones for uplink audio path. The ToneGenerator API states that: "This API is not for generating tones over the uplink audio path. " On Oct 5, 5:36 am, legerb <[EMAIL PROTECTED]> wrote: > I'm trying to send DTMF tones during outgoing call this way in my > Ph

[android-developers] question about Service.stopSelf()

2008-10-01 Thread j
Is the method Service.stopSelf() purely for saving resources (by cleaning up memory/cpu used by the service) when all work is done? If I don't call stopSelf(), my understanding is that my Service will simply stick around even though it has completed all the work. Is that correct? Another questi

[android-developers] Re: How do you overlay a TextView on top of a Camera SurviceView?

2008-09-29 Thread j
Thanks Dianne On Sep 28, 9:59 pm, hackbod <[EMAIL PROTECTED]> wrote: > ApiDemos has an example you can use, one of the graphics examples -- > Surface Overlay or something like that. > > On Sep 28, 9:12 pm, j <[EMAIL PROTECTED]> wrote: > > > How do

[android-developers] How do you overlay a TextView on top of a Camera SurviceView?

2008-09-28 Thread j
How do you overlay a TextView on top of a Camera SurviceView? Thanks in advance. --~--~-~--~~~---~--~~ 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@goog

[android-developers] org.apache.http.client.methods.multipart not in the beta SDK

2008-08-19 Thread j
Why isn't there org.apache.http.client.methods.multipart package in the beta SDK? Is there a particular reason? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] How do I get the user's phone number?

2008-08-18 Thread j
How do I get the user's phone number in 0.9 beta SDK? --~--~-~--~~~---~--~~ 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

[android-developers] Re: scalable vector graphics scalable vector graphics scalable vector graphics

2008-07-08 Thread j
Excellent explanation/arguments Dianne. 5 stars from me. On Jul 8, 4:00 am, hackbod <[EMAIL PROTECTED]> wrote: > On Jul 8, 12:04 am, stefoid <[EMAIL PROTECTED]> wrote: > > > 'phones'?  hmmm.  ok, lets use the term 'phone'.  When did 'phone' > > hardware stop improving? > > "640K should be enoug

[android-developers] Re: LifeCycleDemo - android.app.Activity

2008-06-04 Thread j
The sound volume of the person talking is very low even if I turn my speaker to loud. Would be nice if you adjust the volume up somehow. On Jun 3, 6:41 am, Damien <[EMAIL PROTECTED]> wrote: > Hi > > I have a produced a "tutorial" screencast; the title is LifeCycleDemo. > The screencast covers th

[android-developers] Which web hosting service allows dowloading of apk files?

2008-05-11 Thread j
I am planning to eventually release my app for free so I would like to find a cheap web hosting service which allows downloading of apk files. Does anyone know what is a good one? At this point, I have registered my domain name and I just beginning to build my web site. --~--~-~--~~-

<    1   2   3   4   5   >