[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 wrote: > On Tue, Mar 29, 2011 at 12:58 PM, sdphil wrote: > > public void onCreate() { > >     > >     > >    if (condit

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

2011-03-30 Thread sdphil
s/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 wrote: > > okay, this is officially driv

[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 wrote: > ping > > On Jan 13, 11:12 am, sdphil wrote: > > > Hi, > > > On Android 2.2.1, I am seeing a behavior I don't understand.  I am > > making a call to requestAudioFocus() > > > mAudioMana

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

2011-01-15 Thread sdphil
ping On Jan 13, 11:12 am, sdphil 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.AUDIOFOC

[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
ere 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 wrot

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

2011-01-09 Thread sdphil
roid.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 wrote: > > okay, yeah, doesn't work -- > > >             > >          

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

2011-01-08 Thread sdphil
t;>Test Link When I click on that link in the phone's browser, it tries to navigate to a page within the browser instead of launching my app... And in the logcat window, I can see the intent, and everything looks fine except for the component: cmp=com.android.browser/.BrowserActivity

[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 wrote: > I think yes. > > http://thinkandroid.wordpress.com/2010/02/02/cus

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

2011-01-07 Thread sdphil
so you mean like this? this gives the same thing... On Jan 7, 1:59 pm, TreKing wrote: > On Fri, Jan 7, 2011 at 3:55 PM, sdphil wrote: > > so, what am I doing wrong? > > The browser will not be laun

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

2011-01-07 Thread sdphil
; http://developer.android.com/guide/topics/manifest/data-element.html > > -- Kostya > > 06.01.2011 18:24, 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 > > parame

[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 a

[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 y

[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 wrote: > Reduce the number of permissions? What exactly do you mean by that? > > > > On Sat, Oct 30, 2010 at 1:08 AM, sdphil wrote: > > In order to reduce the number of permissi

[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 mess

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

2010-10-26 Thread sdphil
ping... On Oct 25, 6:48 pm, sdphil 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.

[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: 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:\test>adb 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.inte

[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 wrote: > On Sat, Oct 23, 2010 at 12:34 AM, sdphil wrote: > > that stinks.  there's no way to send a click event to a view (for > > example)?  other than maybe directly calling onC

[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 wrote: > On Sat, Oct 23, 2010 at 12:34 AM, sdphil wrote: > > that stinks.  there's no way to send a click event to a view (for > > example)?  other than maybe directly calling onC

[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 wrote: > On Fri, Oct 22, 2010 at 5:28 PM, sdphil wrote: > > how do you do it from code. > > You don't, except from

[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 wrote: > On Fri, Oct 22, 2010 at 5:15 PM, sdphil wrote: > > not random events, but specific events. > > There's a monkey scripting language of sorts. The docs are floating > around the source code repo. > >

[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 wrote: > On Fri, Oct 22, 2010 at 1:07 PM, sdphil wrote: > > is there a general framework to do that? > > http://developer.android.com/guide/developing/to

[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@googleg

[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 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

[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 res\layout-large

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

2010-10-07 Thread sdphil
t;   See here: > > http://developer.android.com/reference/android/app/Activity.html#Acti... > > onPause is guaranteed to be called, but onStop/onDestroy is not. > > If Android needs memory after your activity has been paused, it may kill > your process. This happens without invoking any callbacks

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

2010-10-07 Thread sdphil
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 wrote: > > I am seeing an

[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 G

[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 fro

[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 to the -obfuscate . the problem is that if I run android update again, it will

[android-developers] services and manifest.

2010-09-23 Thread sdphil
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 the service. But if I have this set to false, it lo

[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 s

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

2010-09-17 Thread sdphil
gt; 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

[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, Uri.p

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

2010-09-17 Thread sdphil
ia MMS", > "share via email", "share via Bluetooth". > > Just use ACTION_SEND 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 &g

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

2010-09-17 Thread sdphil
t; > uri.append(getString( ... recepient address ... )); > > uri.append("?subject=").append(Uri.encode( ... subject ...)); > > uri.append("&body=").append(Uri.encode(getString( ... body text ... ))); > > view.setData(Uri.parse(uri.toString())); > > s

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

2010-09-17 Thread sdphil
ping On Sep 16, 5:08 pm, sdphil wrote: >         Intent mmsIntent = new Intent(Intent.ACTION_SEND); >         mmsIntent.putExtra("sms_body", "test message"); >         mmsIntent.setType("vnd.android-dir/mms-sms"); > >         // if i want t

[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"); startActivity(Intent.createC

[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( ); mmsIntent.setType("

[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 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 > i

[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. the default image is 195 x 195, i am trying to set the image to be 200 x 200, after setting the image using setImageURI, i

[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 wrote: > On Mon, Sep 13, 2010 at 7:06 PM, sdphil wrote: > > is there an easy way (api) to do this? > > PackageManager and getPackageInfo(). > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http:

[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+unsubscr.

[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.

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

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

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

2010-09-10 Thread sdphil
ys service"? > > > > On Thu, Sep 9, 2010 at 11:45 PM, sdphil 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 s

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

2010-09-09 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 subscrib

[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 wrote: > On Thu, Sep 9, 2010 at 1:32 AM, sdphil wrote: > > when an event occurs, I want to forcibly turn the display *ON*. > > > i tried grabbing a FULL_WAKE_LOCK from the power manager

[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 t

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

2010-08-25 Thread sdphil
le editing a java file, > then it should 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 wrote: > > i think you get that behavior if you set it u

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

2010-08-24 Thread sdphil
y way to send your status blast to multiple social networks > > On Tue, Aug 24, 2010 at 8:57 PM, Miguel Morales > wrote: > > > Try turning auto-build off. > > > On Tue, Aug 24, 2010 at 5:56 PM, sdphil > > wrote: > > > Is it because it's rebuilding i

[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 wrote: > Try turning auto-build off. > > > > On Tue, Aug 24, 2010 at 5:56 PM, sdphil wrote: > > Is it

[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 m

[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 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 instea

[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 sl

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

2010-08-12 Thread sdphil
bump. On Aug 11, 2:21 pm, sdphil 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 anythi

[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 recei

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

2010-08-05 Thread sdphil
bump On Aug 4, 2:12 pm, sdphil 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( metri

[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 know

[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@g

[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. C

[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 wrote: > I have a ListView in my Activity. > > I am trying to catch both a click and a long click (which should bring > up a

[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 that

[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 differen

[android-developers] is there a way to create a menu from scratch?

2010-04-22 Thread sdphil
i know all about get menu references on callbacks, but i want to create one from scratch - as in new ContextMenu() or new Menu() (I know that's an interface, so obviously that won't work). tia. -- You received this message because you are subscribed to the Google Groups "Android Developers" gro

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

2010-04-07 Thread sdphil
version of your layout. Try changing the background > color or some text, so 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 Ap

[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: 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 wrote: > hm...  looks like it may not be doable... >

[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 wrote: > is there a way to force a connection (http) to go over OTA (Over-The- > Air) even if you have a wifi connection? &

[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: ListView vs. GridView vs. TableLayout

2010-03-02 Thread sdphil
things like mAdapter which I cannot find (is that part of AbsListView) ? On Mar 1, 4:14 pm, Mark Murphy 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 do

[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 g

[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 wrote: > sdphil wrote: > > okay - thanks.  how do I make the columns have a different width? > > i.e. the first column is wider than the secon

[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 wrote: > sdphil wrote: > > I want to create a

[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 columns

[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 patte

[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] 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] 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 18:31:52.

[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 update)

[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 wrote: > which logs are you specifically looking for? > > Mike > > On Feb 3, 2010, at 1:27 PM, sdphil wrote: &

[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] 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 thi

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

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

[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.co

[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 f

[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 wrote: > i am trying to catch the physical button events on a motorola ht820 > bluetooth headset and it i

[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 -- rec

[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 my

[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 t

[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 wrote: > sdphil wrote: > > I want to hide some info (encryption keys) in a private area. > > The best answer

[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 wrote: > sdphil wrote: > > I want to hide some info (encryption keys) in a private area. > > The best answer

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

2010-01-12 Thread sdphil
(i.e. I've 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 wrote: >

[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 -- /data/data/com.company.pro

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

2010-01-11 Thread sdphil
> about a "first run" flag? 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 wrote: > > thinking more about this

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

2010-01-11 Thread sdphil
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 y

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

2010-01-11 Thread sdphil
er run, so 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 wrote: > sdphil wrote: > > I am trying to have some cod

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

2010-01-11 Thread sdphil
start re-installing / installing over an older version. the older version may or may not have had the BOOT_COMPLETED stuff in there. now I gotta keep track of versions in my code to know whether or not I need to register the alarm? On Jan 11, 11:06 am, Mark Murphy wrote: > sdphil wrote: &g

  1   2   3   4   >