[android-developers] Re: dialogs in android and orientation change...

2011-03-30 Thread sdphil
/samples/ApiDemos/src/com/examp... It doesn't have the behavior you describe, so I wonder if there is something else going on in your code? On Tue, Mar 29, 2011 at 10:58 AM, sdphil phil.pellouch...@gmail.com wrote: okay, this is officially driving me crazy. I have an Activity

[android-developers] Re: dialogs in android and orientation change...

2011-03-30 Thread sdphil
brilliant! thanks. sometimes you can't see what's right in front of your face! thanks! On Mar 30, 9:44 am, TreKing treking...@gmail.com wrote: On Tue, Mar 29, 2011 at 12:58 PM, sdphil phil.pellouch...@gmail.com wrote: public void onCreate() {            if (condition is true

[android-developers] dialogs in android and orientation change...

2011-03-29 Thread sdphil
okay, this is officially driving me crazy. I have an Activity and in onCreate() if some condition is true, I want to pop up a dialog and inform the user. public void onCreate() { if (condition is true) showDialog(42); } And I put in the appropriate code in

[android-developers] Re: AudioManager, requestAudioFocus and video playback...

2011-01-19 Thread sdphil
ping. anybody? anybody? On Jan 15, 7:39 am, sdphil phil.pellouch...@gmail.com wrote: ping On Jan 13, 11:12 am, sdphil phil.pellouch...@gmail.com wrote: Hi, On Android 2.2.1, I am seeing a behavior I don't understand.  I am making a call to requestAudioFocus

[android-developers] Re: AudioManager, requestAudioFocus and video playback...

2011-01-15 Thread sdphil
ping On Jan 13, 11:12 am, sdphil phil.pellouch...@gmail.com wrote: Hi, On Android 2.2.1, I am seeing a behavior I don't understand.  I am making a call to requestAudioFocus() mAudioManager.requestAudioFocus(mAudioFocusChangeListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN

[android-developers] AudioManager, requestAudioFocus and video playback...

2011-01-13 Thread sdphil
Hi, On Android 2.2.1, I am seeing a behavior I don't understand. I am making a call to requestAudioFocus() mAudioManager.requestAudioFocus(mAudioFocusChangeListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); So that when another media player takes over the audio, I can pause my

[android-developers] Re: clicking a link on a website launches my application...

2011-01-12 Thread sdphil
wrote: FWIW, here is a sample project showing some of this stuff in action (though not using myproto): https://github.com/commonsguy/cw-advandroid/tree/master/Introspection... On Fri, Jan 7, 2011 at 5:08 PM, sdphil phil.pellouch...@gmail.com wrote: so  you mean like

[android-developers] Re: Launching an application from a email. Is that possible?

2011-01-09 Thread sdphil
: http://developer.android.com/reference/android/content/Intent.html#to...) http://developer.android.com/reference/android/content/Intent.html#to...) On Sat, Jan 8, 2011 at 8:00 AM, sdphil phil.pellouch...@gmail.com wrote: okay, yeah, doesn't work --            intent-filter

[android-developers] Re: Launching an application from a email. Is that possible?

2011-01-08 Thread sdphil
okay, i finally got this to work, but it will only work if i use a unique scheme. if I try to do it without a standard http scheme, then i can't get it to work -- even if I specify mimeType. On Jan 7, 8:01 am, Kumar Bibek coomar@gmail.com wrote: I think yes.

[android-developers] Re: Launching an application from a email. Is that possible?

2011-01-08 Thread sdphil
, sdphil phil.pellouch...@gmail.com wrote: okay, i finally got this to work, but it will only work if i use a unique scheme.  if I try to do it without a standard http scheme, then i can't get it to work -- even if I specify mimeType. On Jan 7, 8:01 am, Kumar Bibek coomar@gmail.com wrote

[android-developers] Re: clicking a link on a website launches my application...

2011-01-07 Thread sdphil
...@gmail.com wrote: No, this is done with an intent filter with a data element. http://developer.android.com/guide/topics/manifest/intent-filter-elem... http://developer.android.com/guide/topics/manifest/data-element.html -- Kostya 06.01.2011 18:24, sdphil пишет: I would like to have

[android-developers] Re: clicking a link on a website launches my application...

2011-01-07 Thread sdphil
, 1:59 pm, TreKing treking...@gmail.com wrote: On Fri, Jan 7, 2011 at 3:55 PM, sdphil phil.pellouch...@gmail.com wrote: so, what am I doing wrong? The browser will not be launching an intent with that action. Your action should probably be ACTION_VIEW

[android-developers] clicking a link on a website launches my application...

2011-01-06 Thread sdphil
I would like to have a link on a website, such that when it is clicked, it will launch my android application with specific parameters. is a ContentResolver the way to go about doing this? any sample code, examples or tutorials on how to do this? tia. -- You received this message because you

[android-developers] render an activity to an image file.

2010-10-30 Thread sdphil
i know you can't take a screenshot without having root access, but is there a way to render an activity and all the contents to an image file? anyone have code to do this? it would be nice to have any dialogs, menus, etc... as well, but not required. tia. -- You received this message because

[android-developers] reducing android.permission.*

2010-10-29 Thread sdphil
In order to reduce the number of permission my application requests, it would be handy to have a list of calls that are require a permission. Does such a list exist anywhere? Doing a search in the android reference doesn't seem to come up with anything... ideas? tia. -- You received this

[android-developers] Re: reducing android.permission.*

2010-10-29 Thread sdphil
I mean remove permissions I don't need (any longer). On Oct 29, 12:39 pm, Kumar Bibek coomar@gmail.com wrote: Reduce the number of permissions? What exactly do you mean by that? On Sat, Oct 30, 2010 at 1:08 AM, sdphil phil.pellouch...@gmail.com wrote: In order to reduce the number

[android-developers] Re: Monkey Testing and automatically generating the events...

2010-10-26 Thread sdphil
ping... On Oct 25, 6:48 pm, sdphil phil.pellouch...@gmail.com wrote: I *finally* got monkey testing to work from a script. my test.txt file looks like this -- cut here start data DispatchPointer(5109520,5109520,0,230.75429,458.1814,0.20784314,0.0667,0,0.0,0.0,65539,0

[android-developers] Re: Monkey usage with Scripts/Network Control not working

2010-10-25 Thread sdphil
okay, i'm trying to get the same thing working. i am doing this and I see -- C:\testadb shell monkey -p com.test --setup scriptfile -v -f /sdcard/ test.txt 1 :Monkey: seed=0 count=1 :AllowPackage: com.slacker.radio :IncludeCategory: android.intent.category.LAUNCHER :IncludeCategory:

[android-developers] Monkey Testing and automatically generating the events...

2010-10-25 Thread sdphil
I *finally* got monkey testing to work from a script. my test.txt file looks like this -- cut here start data DispatchPointer(5109520,5109520,0,230.75429,458.1814,0.20784314,0.0667,0,0.0,0.0,65539,0) DispatchKey(5113146,5113146,0,20,0,0,0,0) cut here and my monkey

[android-developers] Re: is there a way to send an event like a user would...

2010-10-23 Thread sdphil
well I want to be able to script testing in my application.. On Oct 23, 3:39 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Oct 23, 2010 at 12:34 AM, sdphil phil.pellouch...@gmail.com wrote: that stinks.  there's no way to send a click event to a view (for example)?  other than maybe

[android-developers] Re: is there a way to send an event like a user would...

2010-10-23 Thread sdphil
well I want to be able to script testing in my application.. On Oct 23, 3:39 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Oct 23, 2010 at 12:34 AM, sdphil phil.pellouch...@gmail.com wrote: that stinks.  there's no way to send a click event to a view (for example)?  other than maybe

[android-developers] is there a way to send an event like a user would...

2010-10-22 Thread sdphil
i want to simulate an onClick event or some of the other keyboard events, etc... is there a general framework to do that? tia. -- 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: is there a way to send an event like a user would...

2010-10-22 Thread sdphil
not random events, but specific events. On Oct 22, 11:41 am, TreKing treking...@gmail.com wrote: On Fri, Oct 22, 2010 at 1:07 PM, sdphil phil.pellouch...@gmail.com wrote: is there a general framework to do that? http://developer.android.com/guide/developing/tools/monkey.html

[android-developers] Re: is there a way to send an event like a user would...

2010-10-22 Thread sdphil
how do you do it from code. On Oct 22, 2:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Oct 22, 2010 at 5:15 PM, sdphil phil.pellouch...@gmail.com wrote: not random events, but specific events. There's a monkey scripting language of sorts. The docs are floating around the source

[android-developers] Re: is there a way to send an event like a user would...

2010-10-22 Thread sdphil
that stinks. there's no way to send a click event to a view (for example)? other than maybe directly calling onClick??? On Oct 22, 2:32 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Oct 22, 2010 at 5:28 PM, sdphil phil.pellouch...@gmail.com wrote: how do you do it from code. You

[android-developers] application widget and switching orientation...

2010-10-14 Thread sdphil
I have a samsung tablet. I have a test widget. When I change orientation the widget disappears, but is actually still there (I can long press to remove it). in my res directory, I have res\drawable res\drawable-hdpi res\drawable-ldpi res\drawable-mdpi res\layout res\layout-land

[android-developers] Re: application widget and switching orientation...

2010-10-14 Thread sdphil
nevermind, i'm an idiot! i had visibility=gone in the landscape xml. me = dummy! On Oct 14, 8:19 pm, sdphil phil.pellouch...@gmail.com wrote: I have a samsung tablet. I have a test widget. When I change orientation the widget disappears, but is actually still there (I can long press

[android-developers] onPause not being followed by onStop and onDestroy...

2010-10-07 Thread sdphil
I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- You received this message because you are subscribed to the Google

[android-developers] Re: onPause not being followed by onStop and onDestroy...

2010-10-07 Thread sdphil
if the user goes back to your app, thru the home key press or from launchpad, the onResume will be called and it will all be much faster than doing an onCreate which would otherwise have been required. On Thu, Oct 7, 2010 at 10:06 AM, sdphil phil.pellouch...@gmail.com wrote: I am seeing an issue

[android-developers] Re: onPause not being followed by onStop and onDestroy...

2010-10-07 Thread sdphil
, sdphil пишет: it should at least call onStop -- because the activity is no longer visible. On Oct 7, 7:10 am, Prakash Iyerthei...@gmail.com  wrote: It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default

[android-developers] how to simulate an operating system upgrade...

2010-10-05 Thread sdphil
i am having issues with my application when a user gets a system update (for example from 2.1 to 2.2). i am wondering how I can reproduce this experience on a phone (Nexus One). does this involve rooting the phone and then applying a system update? I need the update to look as though it came

[android-developers] adding an external jar....

2010-09-24 Thread sdphil
I am updating a build.xml file using: $ android update project -p . I am also trying to include an external jar file. The only way i can get past the obfuscate node in build.xml without errors is by adding arg value=-libraryjars libs\Test.jar / to the -obfuscate target. the problem

[android-developers] services and manifest.

2010-09-23 Thread sdphil
service android:name=TestService android:enabled=false/ according to the documentation on android:enabled here -- Whether or not the service can be instantiated by the system — true if it can be, and false if not. The default value is true. Set to false, means the system cannot start

[android-developers] enable / disable orientation changes at runtime...

2010-09-21 Thread sdphil
is there a way to enable / disable orientation changes at runtime? i know you can force a screen orientation in your manifest using android:screenOrientation=portrait or =landscape but I would like a way to enable / disable it at runtime. tia. -- You received this message because you are

[android-developers] want to send an e-mail...

2010-09-17 Thread sdphil
hi, I want to send an e-mail, and so I use the typical intent -- Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject); emailIntent.putExtra(Intent.EXTRA_TEXT, text); emailIntent.setType(text/plain);

[android-developers] Re: how to send an MMS

2010-09-17 Thread sdphil
ping On Sep 16, 5:08 pm, sdphil phil.pellouch...@gmail.com wrote:         Intent mmsIntent = new Intent(Intent.ACTION_SEND);         mmsIntent.putExtra(sms_body, test message);         mmsIntent.setType(vnd.android-dir/mms-sms);         // if i want to send an image

[android-developers] Re: want to send an e-mail...

2010-09-17 Thread sdphil
address ... )); uri.append(?subject=).append(Uri.encode( ... subject ...)); uri.append(body=).append(Uri.encode(getString( ... body text ... ))); view.setData(Uri.parse(uri.toString())); startActivity(view); -- Kostya 17.09.2010 20:02, sdphil пишет: hi, I want to send an e-mail, and so

[android-developers] Re: want to send an e-mail...

2010-09-17 Thread sdphil
and let Android ask the user how they want to share the data. This way, you'll have all possible sharing options covered in just a few lines of code. -- Kostya 17.09.2010 20:46, sdphil пишет: thanks!  this works perfectly can you use a uri for sending an MMS as well? http

[android-developers] trying to send an MMS causes an ActivityNotFoundException to be thrown...

2010-09-17 Thread sdphil
so i am trying to send an MMS like this: Intent mmsIntent = new Intent(android.intent.action.SEND_MSG); mmsIntent.setComponent(new ComponentName(com.android.mms, .ui.ComposeMessageActivity)); mmsIntent.putExtra(sms_body, body of mms message); mmsIntent.putExtra(Intent.EXTRA_STREAM,

[android-developers] Re: trying to send an MMS causes an ActivityNotFoundException to be thrown...

2010-09-17 Thread sdphil
. Try taking it out, see if this helps - in case the component name may have changed. An added benefit should be picking up any third-party applications. -- Kostya 17.09.2010 21:27, sdphil пишет: so i am trying to send an MMS like this: Intent mmsIntent = new Intent

[android-developers] how to send an MMS

2010-09-16 Thread sdphil
Intent mmsIntent = new Intent(Intent.ACTION_SEND); mmsIntent.putExtra(sms_body, test message); mmsIntent.setType(vnd.android-dir/mms-sms); // if i want to send an image. mmsIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse( image );

[android-developers] setImageURI is changing the size of the image!

2010-09-15 Thread sdphil
I am running into a very weird thing. I have an ImageView, and when I call setImageURI with an image, it seems to change the size of the image view. ImageView android:id=@+id/MyImage

[android-developers] Re: setImageURI is changing the size of the image!

2010-09-15 Thread sdphil
oh, and when I look at it on an actual display, it is small (48x48). On Sep 15, 3:56 pm, sdphil phil.pellouch...@gmail.com wrote: I am running into a very weird thing.  I have an ImageView, and when I call setImageURI with an image, it seems to change the size of the image view

[android-developers] how can you tell if an application is installed and what version is installed?

2010-09-13 Thread sdphil
is there an easy way (api) to do this? tia. -- 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 this group, send email to

[android-developers] Re: how can you tell if an application is installed and what version is installed?

2010-09-13 Thread sdphil
your the best mark. thx. On Sep 13, 4:09 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Sep 13, 2010 at 7:06 PM, sdphil phil.pellouch...@gmail.com wrote: is there an easy way (api) to do this? PackageManager and getPackageInfo(). -- Mark Murphy (a Commons Guy)http

[android-developers] does AppWidgetManager.updateAppWidget() need to be called on the UI thread?

2010-09-11 Thread sdphil
When I make this call, I am getting a Java Binder FAILED BINDER TRANSACTION !!! message in my logging window. Is this because that call needs to be made on the UI thread? tia. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] How to prevent a service from being restarted by the system...

2010-09-10 Thread sdphil
From what I can tell -- if you return START_NOT_STICKY from Service.onStartCommand(...), the system should not restart a service if it crashes. However, I'm not seeing that behavior -- any ideas on what could be restarting the service? tia. -- You received this message because you are

[android-developers] Re: How to prevent a service from being restarted by the system...

2010-09-10 Thread sdphil
? On Thu, Sep 9, 2010 at 11:45 PM, sdphil phil.pellouch...@gmail.com wrote: From what I can tell -- if you return START_NOT_STICKY from Service.onStartCommand(...), the system should not restart a service if it crashes. However, I'm not seeing that behavior -- any ideas on what could

[android-developers] Re: How to prevent a service from being restarted by the system...

2010-09-10 Thread sdphil
and then it attaches the debugger to another instance of my app... this is a local service. On Sep 10, 6:55 am, sdphil phil.pellouch...@gmail.com wrote: C:\dev\testApp adb shell dumpsys service Can't find service: service C:\dev\testApp adb shell dumpsys MyService Can't find service: MyService

[android-developers] Re: how do you forcibly turn *on* the display....

2010-09-09 Thread sdphil
awesome! thanks! you rock mark! (and I should rtfm :-) On Sep 9, 5:27 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 9, 2010 at 1:32 AM, sdphil phil.pellouch...@gmail.com wrote: when an event occurs, I want to forcibly turn the display *ON*. i tried grabbing a FULL_WAKE_LOCK

[android-developers] how do you forcibly turn *on* the display....

2010-09-08 Thread sdphil
when an event occurs, I want to forcibly turn the display *ON*. i tried grabbing a FULL_WAKE_LOCK from the power manager power service, but it still didn't work. i am turning the display off by hitting the power button (i think this is like a light sleep or something...) tia. -- You received

[android-developers] Re: Why is android build times so slow...

2010-08-25 Thread sdphil
only recreate classes.dex (after java compilation) and repackage the apk with the already compiled resources. Xav On Tue, Aug 24, 2010 at 6:14 PM, sdphil phil.pellouch...@gmail.com wrote: i think you get that behavior if you set it up to build automatically.  i'm not particularly fond

[android-developers] Why is android build times so slow...

2010-08-24 Thread sdphil
Is it because it's rebuilding it every time? In eclipse, I went into window - preferences - Android - Build And turned on Build output - Verbose on. And it looks like it's rebuilding my entire app every time I make any little change. I assume it should only be doing incremental builds for

[android-developers] Re: Why is android build times so slow...

2010-08-24 Thread sdphil
do you mean menu - Project - Build Automatically ? That is off, and that would make my editing slower, not the actual build. On Aug 24, 5:57 pm, Miguel Morales therevolti...@gmail.com wrote: Try turning auto-build off. On Tue, Aug 24, 2010 at 5:56 PM, sdphil phil.pellouch...@gmail.com

[android-developers] Re: Why is android build times so slow...

2010-08-24 Thread sdphil
24, 2010 at 8:57 PM, Miguel Morales therevolti...@gmail.comwrote: Try turning auto-build off. On Tue, Aug 24, 2010 at 5:56 PM, sdphil phil.pellouch...@gmail.com wrote: Is it because it's rebuilding it every time? In eclipse, I went into window - preferences - Android - Build

[android-developers] Re: animation is starting with a large black screen....

2010-08-17 Thread sdphil
if anyone is interested, I figured this out. you need to have an in animation and an out animation. On Aug 15, 8:48 am, sdphil phil.pellouch...@gmail.com wrote: i am trying to get a slide down animation to work, and it seems to work except that it starts with a big black screen instead

[android-developers] animation is starting with a large black screen....

2010-08-15 Thread sdphil
i am trying to get a slide down animation to work, and it seems to work except that it starts with a big black screen instead of the screen that was there. so I have layout1 and layout2. when I start the animation using ViewFlipper.showNext it puts a big black background over layout1, and then

[android-developers] Re: best way to debug ANR...

2010-08-12 Thread sdphil
bump. On Aug 11, 2:21 pm, sdphil phil.pellouch...@gmail.com wrote: hi.  what is the best way to debug ANR.  ideally, it would be nice to know what call / thread / file and line number it is stalled at when the ANR occurs, but every time I look at /anr/traces.txt, I can't seem to find anything

[android-developers] best way to debug ANR...

2010-08-11 Thread sdphil
hi. what is the best way to debug ANR. ideally, it would be nice to know what call / thread / file and line number it is stalled at when the ANR occurs, but every time I look at /anr/traces.txt, I can't seem to find anything that points to something I can start tracking down. tia. -- You

[android-developers] Re: how to get the screen size in inches...

2010-08-05 Thread sdphil
bump On Aug 4, 2:12 pm, sdphil phil.pellouch...@gmail.com wrote: I am trying to determine the physical size of a screen in inches. Normally, I could do something like this:     DisplayMetrics metrics = new DisplayMetrics();     getWindowManager().getDefaultDisplay().getMetrics( metrics

[android-developers] how to get the screen size in inches...

2010-08-04 Thread sdphil
I am trying to determine the physical size of a screen in inches. Normally, I could do something like this: DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics( metrics ); Then use metrics.widthPixels and metrics.heightPixels. Now that I

[android-developers] automatic app update

2010-05-28 Thread sdphil
is there anything we have to do as developers to enable automatic application update or will the market take care of everything? tia. -- 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] playback suddenly stopping...

2010-05-13 Thread sdphil
I have an app that is streaming audio content and sometimes it just stops all of the suddent. the logcat windows shows -- AudioHardware pcm playback is going to standby and that's it. I saw on another thread (pun intended) that someone was saying it was because he was using too many threads.

[android-developers] catching both click and long click on a ListView

2010-05-03 Thread sdphil
I have a ListView in my Activity. I am trying to catch both a click and a long click (which should bring up a context menu). ListView lv = (ListView) findViewById(R.id.MyListView); ... lv.setOnItemClickListener(this); lv.setOnCreateContextMenuListener(this); ... I notice

[android-developers] Re: catching both click and long click on a ListView

2010-05-03 Thread sdphil
oh - by the way, I also tried using registerContextMenu, but that just calls setOnCreateContextMenuListener anyway, so... On May 3, 4:09 pm, sdphil phil.pellouch...@gmail.com wrote: I have a ListView in my Activity. I am trying to catch both a click and a long click (which should bring up

[android-developers] starting the same activity....

2010-04-23 Thread sdphil
I have a weird issue, and I'll describe it in somewhat abstract terms in the hopes that someone can see something I'm obviously doing wrong. I have an activity with some data on it (call it Activity A1). The user hits a button and I launch another instance of that same activity, but with

[android-developers] handling rotation...

2010-04-07 Thread sdphil
hi, i have a question regarding rotation. I am looking into using: android:configChanges=orientation|keyboardHidden in my manifest file for an activity in my application. that of course is accompanied with -- @Override public void onConfigurationChanged(Configuration newConfig) {

[android-developers] Re: handling rotation...

2010-04-07 Thread sdphil
you can reliably tell them apart, even if mis- rendered. I don't see why that would be the problem, but it'd be good to help make sure you're looking for the right problem. On Apr 7, 7:04 am, sdphil phil.pellouch...@gmail.com wrote: hi, i have a question regarding rotation. I am looking

[android-developers] Force a connection OTA (even if you have a WiFi connection).

2010-03-10 Thread sdphil
is there a way to force a connection (http) to go over OTA (Over-The- Air) even if you have a wifi connection? tia. -- 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

[android-developers] Re: Force a connection OTA (even if you have a WiFi connection).

2010-03-10 Thread sdphil
hm... looks like it may not be doable... http://stackoverflow.com/questions/2230389/android-application-setting-connection-type On Mar 10, 10:26 am, sdphil phil.pellouch...@gmail.com wrote: is there a way to force a connection (http) to go over OTA (Over-The- Air) even if you have a wifi

[android-developers] Re: Force a connection OTA (even if you have a WiFi connection).

2010-03-10 Thread sdphil
hm... looks like I could do this -- http://stackoverflow.com/questions/604535/is-it-possible-to-force-network-traffic-through-wifi-or-the-tmobile-network ... the sound of one hand clapping... On Mar 10, 11:04 am, sdphil phil.pellouch...@gmail.com wrote: hm...  looks like it may not be doable

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-02 Thread sdphil
to things like mAdapter which I cannot find (is that part of AbsListView) ? On Mar 1, 4:14 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: hm...  what about three ListView's side by side hide the scrollbar on all but the right most one You can try it. Personally, I doubt

[android-developers] ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
I want to create a list view that looks like this: +--+--+--+ | | | | +--+--+--+ | | | | +--+--+--+ It looks like a grid in terms of the selection can go to any row and column, but I want the left most column to be significantly wider than the

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
okay - thanks. how do I make the columns have a different width? i.e. the first column is wider than the second two. i see android:columnWidth and setColumnWidth(), but those assume a uniform column width. On Mar 1, 12:01 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: I want

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
hm... what about three ListView's side by side hide the scrollbar on all but the right most one On Mar 1, 1:52 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: okay - thanks.  how do I make the columns have a different width? i.e. the first column is wider than the second

[android-developers] onScrollChanged

2010-03-01 Thread sdphil
i am getting a listview from xml -- i can get the view using findViewById() - how do I override onScrollChanged so I can do something when the scroll position changes? tia. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] general design question

2010-02-23 Thread sdphil
for a particular activity - what is the best way to store data that needs to be displayed. the issue is that when the user changes orientation, you need to be able to re-render your activity -- which means you need to get back at that data that you use to render. i understand the MVC design

[android-developers] alarm being triggered, but app not launched...

2010-02-11 Thread sdphil
I am setting an alarm like thus: AlarmManager mgr = (AlarmManager) activity.getSystemService(Context.ALARM_SERVICE); mgr.setRepeating( AlarmManager.RTC_WAKEUP, msecs, INTERVAL_MSECS, pendingIntent ); to go off at 3am in the morning. the alarm gets caught by a broadcast receiver. in the

[android-developers] Re: alarm being triggered, but app not launched...

2010-02-11 Thread sdphil
Hi Mark, I have the wake lock defined as a static member of the broadcast receiver. I think I lifted a bunch of code from an article that you wrote, so I am probably not needing the service. I guess I could just launch the application directly. Declaring the wake lock as a static member of the

[android-developers] android and proguard...

2010-02-10 Thread sdphil
trying to integrate proguard into my android project. seems to generate a binary, but when I go to run that binary on the device, I get -- 02-10 18:31:52.219: INFO/Test(10604): gui.StartScreen.clean shutdown: true 02-10 18:31:52.229: INFO/Test(10604): gui.StartScreen.intent: false 02-10

[android-developers] Android Nexus One Update is causing problems!

2010-02-06 Thread sdphil
I recently got the Nexus One Update which provides amongst other things - pinch gestures. One other unlucky surprise I got is that the app I am writing behaves differently. When I call finish() my activity's onDestroy() should be getting called. On 1.5, 1.6, 2.0 and 2.1 (before the nexus

[android-developers] reading the system logs...

2010-02-03 Thread sdphil
is there a programmatic way to read the system logs? i know they are stored in /dev/log -phil -- 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 this

[android-developers] reading the system logs...

2010-02-03 Thread sdphil
is there a programmatic way to read the system logs? i know they are stored in /dev/log tia. -- 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 this

[android-developers] Re: reading the system logs...

2010-02-03 Thread sdphil
whatever you see when you do adb logcat. basically, i want to get the logs after my app has crashed and the user has restarted the app. On Feb 3, 10:28 am, Mike Novak m...@androidnerds.org wrote: which logs are you specifically looking for? Mike On Feb 3, 2010, at 1:27 PM, sdphil wrote

[android-developers] logcat buffer size...

2010-01-30 Thread sdphil
is there a way to change how big the logcat buffer is? or how much is buffered back? especially when using ddms. tia. -- 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

[android-developers] Re: logcat buffer size...

2010-01-30 Thread sdphil
hm... i see options to adb logcat -r kbytes -f filename but what about inside of ddms (or actually, how about on the phone??). tia. On Jan 30, 7:18 am, sdphil phil.pellouch...@gmail.com wrote: is there a way to change how big the logcat buffer is?  or how much is buffered back? especially

[android-developers] how do you do the equivalent of hitting the home button in s/w

2010-01-28 Thread sdphil
subject says it all. i want to do the equivalent of hitting the home button programmatically. tia. -- 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] avcrp motorola ht820

2010-01-25 Thread sdphil
i am trying to catch the physical button events on a motorola ht820 bluetooth headset and it i cannot seem to trap those events. the media player on the device *is* able to catch those events. based, on what I've read and googled for, it seems like this should do the trick --

[android-developers] Re: avcrp motorola ht820

2010-01-25 Thread sdphil
so the interesting thing is that this works fine on a Nexus One - so could it be related to some bluetooth profile I need to have installed on the phone?? On Jan 25, 7:58 am, sdphil phil.pellouch...@gmail.com wrote: i am trying to catch the physical button events on a motorola ht820 bluetooth

[android-developers] sd card storage state and detecting it being plugged in or not...

2010-01-15 Thread sdphil
i have an app that needs to be able to write to the sdcard. so, it goes without saying that I need to be able to detect if the sdcard is being shared or not -- simple enough. android.os.Environment.getExternalStorageState().equals (android.os.Environment.MEDIA_SHARED) if this is true, then

[android-developers] feeding an InputStream into the media player.

2010-01-14 Thread sdphil
I have asked this before, but I never got a response. I would like to be able to feed an InputStream to the media player, but it does not look like there is any way to do that. The InputStream would feed encoded (mp3 or aac) data to whoever is calling read() on it. The issue is that I may have

[android-developers] Re: rooted phones, security, private storage.

2010-01-13 Thread sdphil
hey mark - when you say copy protect on Android Market causes more problems than it solves, can you describe what you mean? On Jan 12, 2:08 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: I want to hide some info (encryption keys) in a private area. The best answer: the private

[android-developers] Re: rooted phones, security, private storage.

2010-01-13 Thread sdphil
hey mark - when you say copy protect on Android Market causes more problems than it solves, can you describe what you mean? On Jan 12, 2:08 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: I want to hide some info (encryption keys) in a private area. The best answer: the private

[android-developers] rooted phones, security, private storage.

2010-01-12 Thread sdphil
hey all, I want to hide some info (encryption keys) in a private area. I know there are a lot of threads on the topic and from what i can tell - it basically comes down to - there's no security :-) just kidding. It seems like the data you have in your private area --

[android-developers] Re: rooted phones, security, private storage.

2010-01-12 Thread sdphil
read the threads that suggest requiring users to enter a password every time they want to access the protected content). maybe a sufficient question is -- can I create an .apk file that is not installable on a 'rooted' phone. On Jan 12, 2:08 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil

[android-developers] Re: regularly scheduled event (cron style).

2010-01-11 Thread sdphil
: sdphil wrote: I am trying to have some code execute every 24 hours. I discovered this (great) thread -- http://groups.google.com/group/android-developers/browse_thread/threa... And looked at Mark Murphy's code -- http://groups.google.com/group/cw-android/web/Alarm.zip But my question

[android-developers] Re: regularly scheduled event (cron style).

2010-01-11 Thread sdphil
decides to register an alarm. now, I've got two alarms running that will go off at approximately the same time. i guess a solution would be to ignore second alarm when it gets triggered?? On Jan 11, 11:06 am, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: I am trying to have some code

[android-developers] Re: regularly scheduled event (cron style).

2010-01-11 Thread sdphil
...@commonsware.com wrote: sdphil wrote: okay, that seems helpful, but it would be even better to be able to ask the alarm manager if I have already registered for an alarm -- or there is already an alarm registered at that looks like I did it. Agreed. Though there is a trick you can use

[android-developers] Re: regularly scheduled event (cron style).

2010-01-11 Thread sdphil
? If it works on install..it's schedule.. so the first time they run it..the installation already took care of the scheduled alarm. What am I missing? On Mon, Jan 11, 2010 at 11:51 AM, sdphil phil.pellouch...@gmail.com wrote: thinking more about this, would this work?  suppose someone installs

[android-developers] GridView.getSelectedItemPosition() always returns -1

2010-01-08 Thread sdphil
I have googled around and I saw some posts about being in touch screen mode -- I don't fully understand what that means. However, I cannot seem to get this call to work - it always returns -1. I am doing a long press on an item in a grid view, and I've registered for the long press for the

  1   2   3   4   >