[android-developers] sending data from one listview to another listview on the same page

2016-11-02 Thread Craig Smith
HI There. Please excuse me but this is my first time on any android studio forum. What i am trying to do is send a selected item to a second listview on the same page and am not sure how to do it. The "listview1" is populated with items ( Text and Images) and i have a TOAST which tells me which

[android-developers] Intercept an http error and resend with some additional data in a WebView

2016-03-07 Thread Craig Thomson
Hi, I am investigating whether it is possible to hook in to a WebView and handle an error code from the server. I want to add an additional header and resend the request, ideally without wrapping the entire webview to store away any data associated with a post request. My task is further comp

Re: [android-developers] Maps api key v1?

2013-04-30 Thread Craig Payne
or development? > Ian > > > On Fri, Apr 26, 2013 at 6:59 AM, Craig Payne wrote: > >> Not quite true, Ian. I am trying to fix a bug in an app I released over a >> year ago, and my debug.keystore certificate has expired. Given that this is >> the default behaviour (365 day

Re: [android-developers] Maps api key v1?

2013-04-29 Thread Craig Payne
Not quite true, Ian. I am trying to fix a bug in an app I released over a year ago, and my debug.keystore certificate has expired. Given that this is the default behaviour (365 day expiry), most developers are not going to be able to use their old API keys to continue development for very long.

Re: [android-developers] Maps api key v1?

2013-04-29 Thread Craig Payne
Ian, this is not quite true. I am a developer with an app on the market, and I have an existing v1 API key. The problem is, because the debug certificate has a default expiry of 365 days, I can't use it any more (it expired in September). This will be the case for most developers, because it i

[android-developers] Spinner.SetPrompt not working (or not doing what I think it should be doing)

2012-11-14 Thread Craig Martin
Hi all, I am new to android development and I have hit a stuckpoint that I don't really understand. I am attempting to create a spinner (with 20 values) but I want my prompt to read "Please Pick a Year". I have attempted to set the prompt in both the XML and in the Activity itself. It

[android-developers] Set Prompt Value for Spinner

2012-11-14 Thread Craig Martin
in the XML but neither seem to have an effect. Below is my code. Any help would be appreciated. Thanks, Craig http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" >

Re: [android-developers] Re: Application onCreate called more than once?

2012-11-12 Thread Craig
Thanks - I read that post; it seems to be stuck in the same place I am. I suspect a memory leak that is keeping some app state alive across app shutdown and restart, and what I'd really like is some easy way to analyze what memory isn't being reclaimed when Android closes my app. On Sunday,

[android-developers] Re: Application onCreate called more than once?

2012-11-12 Thread Craig
your broadcastreceiver or > some service running in a separate process. That would cause > Application.onCreate to be called multiple times. > > On Saturday, November 10, 2012 3:32:42 PM UTC-6, Craig wrote: >> >> I received an error because I'm doing something (init&#

[android-developers] Re: Application onCreate called more than once?

2012-11-11 Thread Craig
broadcastreceiver or > some service running in a separate process. That would cause > Application.onCreate to be called multiple times. > > On Saturday, November 10, 2012 3:32:42 PM UTC-6, Craig wrote: >> >> I received an error because I'm doing something (init'ing AC

[android-developers] Re: Application onCreate called more than once?

2012-11-11 Thread Craig
wrote: > > The onCreate.. method of the class extending Application is called only > once unless the process gets killed somehow and restarted. You can > investigate for any reason(s) of your process getting killed. > > On Sunday, 11 November 2012 03:02:42 UTC+5:30, Craig wrote: &g

[android-developers] Application onCreate called more than once?

2012-11-10 Thread Craig
I received an error because I'm doing something (init'ing ACRA) in my overridden Application class' onCreate, and I expected this method to be called only once. I think I have a clue as to what is happening - I see multiple logcat lines like: "Force stopping package " for my package close t

[android-developers] Re: How do I sell apps from South Africa?

2012-11-08 Thread Craig Newton
Play and just put in Ad support. Sell your app without ads on the Amazon Android Market and the Apple Store (if you have ported to iOS), please checkout cocos2d-x, it is truly cross platform and easy to code using C++. Feel free to contact me if you have any more questions. Best Regards, Craig

[android-developers] Eclipse indigo - opening android xml files causes file move/copy behaviour

2012-10-03 Thread Craig R
I'm using the android 20.0.3.v202208082019-427395 tools in eclipse indigo, the eclipse key bindings make no difference to the problem (emacs, default..). I also have enabled double-click open mode. I create a new android application and a couple of activities. I have Package Explorer view open.

Re: [android-developers] extra lifecycle events

2012-09-27 Thread Craig
creen-replacement On Monday, September 24, 2012 11:58:58 AM UTC-4, TreKing wrote: > > On Fri, Sep 21, 2012 at 7:27 AM, Craig >wrote: > >> I wanted to lock it down so the people getting paid to use it won't surf >> the web/listen to music, etc. To lock it down, I'm

[android-developers] extra lifecycle events

2012-09-21 Thread Craig
My issue: whenever my app starts up, it then shuts down and restarts. Whenever it stops, it stops, gets destroyed, gets recreated, and then stops again. My app is basically a wrapper for a WebView that uses my webapp. I'm going to have a dedicated set of devices (Nexus 7 tables, yay!) to run i

[android-developers] Automatic foreign currency conversion pricing

2012-09-09 Thread Craig Poxon
Is there a way for Google to automatically handle the exchange rate when apps are purchased outside the publisher's? Currently it seems to me that if one wants to publish in a country where the currency can be set, one has to provide a price. Yes, I know you can autofill, but currencies fluctuat

[android-developers] Re: Your Registration to Google Play is still being processed.

2012-07-16 Thread Craig Bradley
Just to let you know, I still have this message after joining yesterday. Just be patient and wait for the payment to clear. If you read the links that people have posted you will have seen that until they know you have paid for sure you wont be able to access it. In the mean time, if you have a

Re: [android-developers] Jelly Bean Crash with Bitmap Recycle "Sorry, an error has occurred: bitmap is recycled"

2012-07-15 Thread Craig Mitchell
Ah, yes, thanks Romain, that was it! Cheers. On Sunday, 15 July 2012 06:45:58 UTC+10, Romain Guy (Google) wrote: > > Ah, this is an interesting bug that we ran into ourselves. > createScaledBitmap() can return the *same* bitmap if the scaled copy would > have the same dimensions as the original

[android-developers] Re: ActionBar and Tabs question:

2012-02-29 Thread Craig Smith
Just put the modes in drop down beside the category in the Action Bar. It still looks good that way, even with another set of clicks. -Craig On Feb 29, 9:07 am, Mark Winchester wrote: > I'm having trouble with the ActionBar and tabs, trying to get the look and > feel that I've

[android-developers] Any special deadlock debugging tricks?

2012-01-04 Thread Craig Setera
I’ve been working on building a nice graphical clock selector. Unfortunately, this selector is causing me lots of frustration due to a race condition that keeps deadlocking the application’s UI thread. Parsing and rendering the various SVG layers that make up each clock is a relatively expen

[android-developers] Debugging Deadlock in ListAdapter?

2011-12-27 Thread Craig Setera
hat other tricks that might help me to figure out where and why I'm hanging? Thanks for any help, Craig -- 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@googlegrou

Re: [android-developers] Android Alarm application

2011-09-13 Thread Craig Sparks
t; To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- -

[android-developers] help

2011-09-12 Thread Craig Sparks
s and stop corporate america from doing this and capitalizing off of it. Please I need your help. -- - Jackie *"Craig"* Sparks - *"Focus on Solutions not Problems"* Email0: jackie.craig.spa...@gmail.com http://chunkhost.com/r/getachunk - Support my VPS host sign up now

Re: [android-developers] Autoreload of Webview

2011-09-12 Thread Craig Sparks
, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- - Jackie *"Craig"* Sparks - *&qu

[android-developers] Re: android app

2011-09-12 Thread Craig Sparks
Also it involves barcode scanning. On Fri, Sep 9, 2011 at 5:24 PM, Jackie Craig Sparks wrote: > I'm working on a prject that involves image reconignition and need > help with getting a app completed. I was wondering if anyone would be > interested in helping out. -- - Jackie *&

[android-developers] android app

2011-09-12 Thread Jackie Craig Sparks
I'm working on a prject that involves image reconignition and need help with getting a app completed. I was wondering if anyone would be interested in helping out. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

Re: [android-developers] Animation Leaving Trail Using AnimatorSet

2011-06-04 Thread Craig
Thank you for the offer, but it is part of a larger app that is being made for my employer, which I cannot distribute. If it comes to it though, perhaps I can create a small standalone app with just the animation code in it. -- You received this message because you are subscribed to the Googl

[android-developers] Animation Leaving Trail Using AnimatorSet

2011-06-03 Thread Craig
I am using the new honeycomb animation api and am having a problem with animated ImageView objects leaving a trail when animated. The app downloads images via http, makes and ImageView and adds that to a list view (which is in a fragment) and animates each one with its own AnimatorSet (consisti

[android-developers] Re: App will not Install/Move to SD Card on HTC Desire HD

2011-05-24 Thread Craig D
See Android issue 9593: http://code.google.com/p/android/issues/detail?id=9593 On May 19, 10:01 am, Valery wrote: > Our users reporting same problems, same devices: HTC Desire, HTC Legend > There can be some bug or restriction with HTC devices that blocks apps to > moving to SD card. > Did your

[android-developers] Re: Refresh Imageview PLEASE HELP killing me!

2011-04-03 Thread Craig Mitchell
You need to give control back to the EDT so it can draw the image. The for loop needs to be in a non EDT thread. On Apr 4, 3:01 pm, Noobs41bot wrote: > Ok so I have all the code in place to create a random degree of rotation > between a start and finish... works great... i have a progress bar t

Re: [android-developers] About scroll bar

2011-03-02 Thread Robert Craig
Depends what your layout looks like and what part you want to scroll. Some code snippets might help someone answer you better. On Tue, Mar 1, 2011 at 6:47 AM, kajal patil wrote: > Hi All, > I am developing an android application.I have problem in scroll bar.I > did not get it where to add

[android-developers] Re: What's new in honeycomb?

2011-01-27 Thread Craig Mitchell
It depends on how your app is setup. Depending on how applications declare > > how they support multiple screens and densities the app might be boxed, > > scaled or simply fill the screen and rely on layout to look correct. > > > On Sun, Jan 9, 2011 at 6:09 PM, Craig Mitchell wrote

[android-developers] Re: What's new in honeycomb?

2011-01-10 Thread Craig Mitchell
:09 pm, Dianne Hackborn wrote: > On Mon, Jan 10, 2011 at 4:43 PM, Craig Mitchell wrote: > > > That is, no postage stamp in the middle like we did for apps > > > targeting prior to 1.6 that only ever thought about 480x320 > > > mdpi screens. > > That is what I wa

[android-developers] Re: What's new in honeycomb?

2011-01-10 Thread Craig Mitchell
> > > > > > > On Sun, Jan 9, 2011 at 6:36 PM, Romain Guy wrote: > > It depends on how your app is setup. Depending on how applications declare > > how they support multiple screens and densities the app might be boxed, > > scaled or simply fill the screen and rely

[android-developers] Re: What's new in honeycomb?

2011-01-09 Thread Craig Mitchell
And you all have done a fantastic job at that. However, I'm not a fan of boxing an app for large screens. I would much prefer an app to be expanded to the full screen size and look a little pixelated, then only take up a small section of the screen. ...apologies that this comment is off topic.

[android-developers] Widget Not Updating Display

2010-12-06 Thread Craig
I've written a simple clock widget which displays the current time on the home screen. I created an AppWidgetProvider class, which overrides the onReceive() and onEnabled() methods. In addition, I created a Service class that creates a Timer, which polls the system clock each second to see if the t

[android-developers] websockets in webkit

2010-11-01 Thread Robert Craig
There appears to be websocket source in froyo. However, the makefiles seem to suggest it is not supported. Anyone have any success with building websocket support into 2.2. Will there be future support? -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Re: "installation unsuccessful" errors in market

2010-09-25 Thread Craig D
I had this problem on my NexusOne after 2.2 was installed and reported it on the Android issue forum as issue 9593 (http://code.google.com/p/ android/issues/detail?id=9593). It appears to be related to a file named smdl2tmp1.asec being left in the SD card install directory (/mnt/secure/asec or .an

[android-developers] Re: Android webview Searching Issue

2010-09-18 Thread Craig
com/p/android/issues/detail?id=9018. -Craig -- 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-developer

Re: [android-developers] Re: Disabling the USB port?

2010-09-13 Thread Robert Craig
compile your own version of adbd that doesn't support said features. or just don't include adbd at all. On Mon, Sep 13, 2010 at 11:56 PM, Tez wrote: > > Mark, > There is a "adb_enabled" value in Settings.Secure. I think this is > related to USB debugging. > > >Niko20, > No, I don't work for AT&

[android-developers] Apps2Sd install/update failures on Froyo linked to smdl2tmp1.asec file

2010-09-05 Thread Craig D
I finally fixed a problem I was having with install/update of Apps installed on my SD card on my NexusOne with Froyo installed reported as Android issue 9593 (http://code.google.com/p/android/issues/detail? id=9593). It turns out that there is a file called smdl2tmp1.asec in the SD card app2sd dire

[android-developers] Market updates do not work for SD-installed apps on froyo

2010-07-12 Thread Craig D
I am not able to successfully update 2 applications from the market (Secrets and Wifi Analyzer) that have been installed on my SD card on my NexusOne with Android 2.2 installed (build FRF91). Steps to reproduce the problem: 1. Receive notification from the Android Market that an update is availabl

[android-developers] Knowing when someone sets device to 2G only

2010-07-09 Thread Craig
Wireless menu but I can't seem to find a way to see if that setting has been chosen. Thanks for the help Craig -- 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

Re: [android-developers] Re: Importing existing projects to Android

2010-07-08 Thread Robert Craig
Just try save the project again. It seems to be the case that those files get generated when it builds. A save in eclipse builds the package. On Thu, Jul 8, 2010 at 3:42 PM, kypriakos wrote: > > It seems that the gen dir is empty and that no generated java classes > are not being generated (no R

Re: [android-developers] Re: Build Error

2010-07-07 Thread Robert Craig
it version, /usr/lib32/libz.so. On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim wrote: > My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual). > Is this problem? > > 2010/7/8 Robert Craig > >> it could be a 64 bit versus 32 bit issue. what does your dev environment &g

Re: [android-developers] Re: Build Error

2010-07-07 Thread Robert Craig
it could be a 64 bit versus 32 bit issue. what does your dev environment look like? On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim wrote: > I have a same problem. > > but I could not have solution. > > > > 2010/7/6 David Rhodus > > Anyone seen this ? >> I feel like I'm just missing a package or s

[android-developers] FROYO build

2010-06-24 Thread Robert Craig
WHen building FROYO i notice a BUILD_ID = OPENMASTER. I s this by design or is the final FROYO git push not available yet? -- 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.

[android-developers] DexClassLoader- ActiivityNotFound

2010-05-27 Thread Craig
for more information on DexClassLoader but I haven't been able to find anything. Thanks, Craig -- 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 unsubscri

[android-developers] Re: How to use PathClassLoader for files that are not installed.

2010-05-21 Thread Craig O Connor
icit activity class {com.test/com.test.classname}; have you declared this activity in your AndroidManifest.xml. So I'm a bit stumped here. This activity is declared in the Manifest of the apk I am trying to run. I can't declare it in my applications Manifest. Any ideas? Thanks, Crai

[android-developers] Install App Within App - Parse Error

2010-05-19 Thread Craig O Connor
file on my server so I don't think the file is being corrupted during dwnload or anything. Anyone have any ideas? Thanks, Craig -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] Re: How to use PathClassLoader for files that are not installed.

2010-05-13 Thread Craig O Connor
. Best Regards, Craig On Mar 22, 7:00 pm, Craig O Connor wrote: > Sorry for the delay. Only just now realised my question had been > approved. Thanks for pointing me in the right direction. I will try > this now. > > Thanks, > Craig > > On Mar 15, 8:02 pm, fadden wrote: >

[android-developers] Re: How to use PathClassLoader for files that are not installed.

2010-03-22 Thread Craig O Connor
Sorry for the delay. Only just now realised my question had been approved. Thanks for pointing me in the right direction. I will try this now. Thanks, Craig On Mar 15, 8:02 pm, fadden wrote: > On Mar 12, 8:38 pm, Lance Nanek wrote: > > > I saw a thread with people load

[android-developers] How to use PathClassLoader for files that are not installed.

2010-03-12 Thread Craig O Connor
Hi guys, I am using PathClassLoader in my application and can get it to load files that are already installe.d But how do I get it to load an apk file that is stored in say the assets folder of my app. IS this even possible? Thanks in advance, Craig -- You received this message because you are

[android-developers] Re: Translucent Activity not calling onStop() on exit

2009-12-03 Thread Craig Russell
Well, that worked but I don't entirely understand why. So that activity is being paused when I exit it, but it's still on the activity stack? On Dec 3, 9:22 am, Craig Russell wrote: > I suppose by putting it into onPause(), it might work, but why does it > behave differently?

[android-developers] Re: Translucent Activity not calling onStop() on exit

2009-12-03 Thread Craig Russell
I suppose by putting it into onPause(), it might work, but why does it behave differently? -- 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 gro

[android-developers] Translucent Activity not calling onStop() on exit

2009-12-03 Thread Craig Russell
I'm having this strange issue where upon exiting a subactivity that is translucent (android:theme="@android:style/Theme.Translucent" ) the onStop() method doesn't appear to be called. I have a TimerTask that runs and is supposed to be terminated when the subactivity ends in the onStop() method, bu

[android-developers] Re: handle back button

2009-11-23 Thread Craig
You can explicitly handle KEYCODE_BACK in your Activity's onKeyDown() function. -- 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 em

[android-developers] Google Sky Map API/Integration?

2009-11-12 Thread Craig Russell
I really want to integrate Google Sky Map into a program I'm working on, but as far as I can tell there is no information out there about this. I tried loading a KML file from the web, but it seems neither Maps, nor Sky Map handle it on Android. Is there some way that I can pass coordinate data t

[android-developers] Simplest way to store state information in an AppWidgetProvider (between onUpdate() cycles)

2009-08-26 Thread Craig
I know I can save information in a static attribute in a widget, however, is there a way for a widget instance to save the state information similar to the Activity onSaveInstanceState(Bundle outState) method? I don't want to write to a database for this state information. --~--~-~--~--

[android-developers] Re: ProgressBar doesn't allow control of visibility in AppWidgetProvider App Widget?

2009-08-10 Thread Craig
; > > On Fri, Aug 7, 2009 at 3:49 PM, Craig wrote: > > > I was trying to set a progress bar to View.INVISIBLE or View.GONE, or > > View.VISIBLE inside an AppWidgetProvider. However, it doesn't seem to > > want to do it. Settingvisibilityworks fine with TextView fields

[android-developers] ProgressBar doesn't allow control of visibility in AppWidgetProvider App Widget?

2009-08-07 Thread Craig
I was trying to set a progress bar to View.INVISIBLE or View.GONE, or View.VISIBLE inside an AppWidgetProvider. However, it doesn't seem to want to do it. Setting visibility works fine with TextView fields or ImageView fields or ImageButtons. However, ProgressBar doesn't seem to work. It doesn't m

[android-developers] Method to detect a widget is visible - or otherwise in the foreground or background?

2009-08-06 Thread Craig
It would appear on a G1 (with the latest software update) that onUpdate () runs even when the widget is not visible. Is there a way of sensing that the widget is or is not visible or is otherwise in foreground? That is, running the code below shows a logcat message at whatever interval the Widget

[android-developers] Re: Building for dev, test and release

2009-07-20 Thread Craig
Further, it's not just release builds that have such a requirement; continuous build systems need to be able to build without a GUI app. On Jul 19, 1:25 pm, MrSqueezles wrote: > Normally, when I develop an application, I develop in Eclipse.  I test > in both Eclipse and Ant.  Then, I use Ant to

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Craig
http://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase%28java.lang.String%29 On Jul 15, 7:14 am, Kumaravel Kandasami wrote: >  How to drop a database in Android SDK? > > Did not see any methods in android.database.sqlite.SQLiteOpenHelper or > android.database.s

[android-developers] Re: Market Not Updating Version Info

2009-06-30 Thread Craig
On Jun 30, 11:48 pm, biAji wrote: > On Jun 29, 12:56 pm, Stuart Saunders > wrote: > I count this issue after upgrade google map 3.1.1 (maybe)anyone > can confirm this? That seems about right. That was the last thing I installed, and I think no updates since. --~--~-~--~~--

[android-developers] Re: Market Not Updating Version Info

2009-06-29 Thread Craig
My Market app does not appear to be finding updates either. I tried to clear the cache as suggested, but the button is not enabled, and the Cache size says 0.00B. On Jun 29, 2:56 pm, Stuart Saunders wrote: > We were experiencing the same issue and discovered clearing the Market > app cached reso

[android-developers] Re: How to support drag and drop on listview.

2009-06-16 Thread Craig
Would it be too much to ask to get ListView dnd built into the framework api? It seems like a common requirement, but a total pita to implement every time. A couple of extra listeners like onRequestStartDnD() and onRequestFinishDnd() would be adequate for a lot of use cases. (I know...patches wel

[android-developers] Re: ant and eclipse builds don't play nice

2009-05-26 Thread Craig
On Wed, May 27, 2009 at 2:36 PM, Raphael wrote: > > On Tue, May 26, 2009 at 6:26 PM, Craig wrote: >> >> >> On May 26, 9:49 pm, Zero wrote: >>> from my experience, eclipse never used the build.xml for it's internal >>> builds - how did you do that

[android-developers] Re: ant and eclipse builds don't play nice

2009-05-26 Thread Craig
On May 26, 9:49 pm, Zero wrote: > from my experience, eclipse never used the build.xml for it's internal > builds - how did you do that ? The eclipse build doesn't use build.xml at all, but due to the fact that build.xml is in the eclipse project (because it is in the same directory as AndroidM

[android-developers] ant and eclipse builds don't play nice

2009-05-25 Thread Craig
parse the build.xml properly, or better still, get eclipse to ignore the build.xml altogether since build.xml takes no part in the eclipse build. Any ideas? thanks, Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-27 Thread Craig
My 2c regarding permissions... I find Vista's UAC prompts next-to-useless at times, because it doesn't tell you anything about why the elevation is required. How can I make an informed decision as a user about whether to allow an app to elevate if I don't know what it is going to do? Is it simply

[android-developers] Installation unsuccessful - Package file was not signed correctly

2009-04-06 Thread Craig
I published my app on the market, and when I first tried installing it from there, I got the 'package file was not signed correctly' error. Uninstalling the unsigned version I was testing with let me install from the market with no problems. However, from the comments, it looks like no one else ca

[android-developers] VerifyError attempting to use commons-digester

2009-03-16 Thread micah craig
Hi, I'm trying to write a simple web service client app for Android, and I'd like to use commons-digester to convert the service's XML responses into objects I can work with. However, I'm getting a VerifyError as soon as I try to invoke any Digester method. I've set up my dependencies (external

[android-developers] Timed trial expiry?

2009-02-20 Thread Craig
Does anyone have a somewhat secure method of expiring a trial version of an app a certain amount of time after an install? I do not want to use a server, because I am making a game that shouldn't need permissions. I would like the expiration data to survive an uninstall, but I am ok if it doesn'

[android-developers] Re: Alarm Clock Broadcasts?

2009-02-15 Thread Craig
The best way to find out is to look through the Alarm Clock source code. On Feb 11, 11:37 pm, bklik wrote: > Does the Alarm Clock broadcast any intents?  I would like to be able > to have my application automatically launch after a person's alarm > clock goes off, and they press "dismiss" (rathe

[android-developers] Re: run app after installation using PACKAGE_ADDED or other mechanism?

2009-02-15 Thread Craig
I agree; this is an unnecessary limitation in the api IMO. It is fair enough to require user input to start any code *the very first time they install*, but what about during upgrades? With the way things work now, it's possible for an app to stop working after an upgrade due to the user not start

[android-developers] Re: Can I bind to the MediaPlaybackService?

2009-02-15 Thread Craig
I successfully bound to the service. I simply copied the aidl from the Music app into my app, and used the component package/name strings to perform the bind. As Marco points out, it's not a public api so use at your own risk. On Feb 15, 8:08 am, Marco Nelissen wrote: > On Sat, Feb 14, 2009 at 8

[android-developers] Re: Alarm Manager forgets repeating alarms?

2009-02-15 Thread Craig
The documentation states that alarms are not persisted across reboots, so that's something that has to be dealt with by your app. But here's the gotcha that I can't find documented anywhere... It seems that uninstalling the app also clears all set alarms for the package being uninstalled. This me

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

2009-02-10 Thread Craig
I noticed something similar, but used 7-zip to extract and all went fine. I don't believe the Windows inbuilt zip program is a "real" zip program. You might want to try Winzip or 7-zip. On Feb 11, 11:19 am, "dlawl...@gmail.com" wrote: > Maybe I'm alone on this but I think there is a problem with

[android-developers] Re: custom themes?

2009-02-01 Thread Craig
Thank you, skink - that is much simpler. --~--~-~--~~~---~--~~ 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 gro

[android-developers] Re: custom themes?

2009-01-31 Thread Craig
It well could be over complicated - here is what I did: In res, values, attrs.xml I have: ... In res, values, styles.xml:

[android-developers] Re: custom themes?

2009-01-31 Thread Craig
); ... with the getColor method: private int getColor(TypedArray themeStyles, int attrResid) { return (int)themeStyles.getColor(Arrays.binarySearch(colorAttrs, attrResid), 0); } I hope this helps someone else. -Craig --~--~-~--~~~---~--~~ You received

[android-developers] Re: custom themes?

2009-01-31 Thread Craig
I'm sorry if I missed it, but I didn't see what I was looking for behind any of those links. I know I can create a custom theme to use android attributes; what I want to do is create a custom theme with custom attributes, and refer to those in my code. --~--~-~--~~~--

[android-developers] custom themes?

2009-01-30 Thread Craig
Could anyone post or point me to an example of using custom items in a theme? I've created a theme that uses custom attributes as item names, and I want to refer to those items in the code. I can see the theme is working because it also sets the android:windowBackground color. As a concrete exam

[android-developers] sim needed for accessing market?

2008-12-14 Thread Craig
Does anyone know what is required to use the dev phone? Specifically, do I need a phone contract, or can I get online through my DSL connection at home? If I can get online through my home connection, would I have access to the Android Market? I'm asking because I would like a device to develop o

[android-developers] brightstar?

2008-12-14 Thread Craig
I'm thinking about buying a dev phone, but brightstar's terms put me off. One term says the phones are as is and not of merchantable quality, and another says you agree to a $50 charge for all chargebacks. Seems rather sketchy. I have seen other posts about them not answering customer inquiries,

[android-developers] Re: Android Dev Phone 1™

2008-12-14 Thread Craig
Does anyone know what is required to use the dev phone? Specifically, do I need a phone contract, or can I get online through my DSL connection at home? If I can get online through my home connection, would I have access to the Android Market? --~--~-~--~~~---~--~~

[android-developers] Re: Transitioning from Free to Paid

2008-12-13 Thread Craig
Here (http://www.google.com/support/forum/p/Android+Market/thread? tid=360a84c852124bc5&hl=en) is another conversation about this I've been tracking - I'm hoping Google (OHA?) will clarify this one. --~--~-~--~~~---~--~~ You received this message because you are sub

[android-developers] mp3s for games?

2008-11-27 Thread Craig
I'm making a game, and I have an mp3 I would like to use to play in a loop for this game. This mp3 is several times larger than a midi file would be, but recreating my mp3 as a midi has proven to be a non- trivial task. What would the effects be of just using an mp3 of a few hundred kb in size in

[android-developers] Re: weird button behavior in emulator

2008-11-16 Thread Craig
I still don't understand why the different actions are connected, but I did dig in and got my code to work; I hope this helps someone else: I made a PressableButton subclass of Button with: OnPressListener onPressListener; boolean wasPressed = false; public PressableButt

[android-developers] Re: weird button behavior in emulator

2008-11-16 Thread Craig
To test further, I created a new project that just has a Button inside a LinearLayout, with the Activity stub created by the Android Eclipse plugin. Pushing the 5 on the number pad and the emulator's center dpad button both pressed the button. How/why would these inputs be hooked up to a button?

[android-developers] weird button behavior in emulator

2008-11-16 Thread Craig
I have an interface that handles dpad key events and has Buttons for similar actions - my intention was to have code that works for touchscreens and phones with dpads. When testing, both the 5 on my number pad and using the mouse to click the emulator's center dpad button presses a Button I have

[android-developers] Re: Games

2008-11-11 Thread Craig Peterson
On Tue, Nov 11, 2008 at 3:35 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can any one give some idea in developing some gaming projects in > Android http://www.rbgrn.net/blog/2008/11/getting-started-in-android-game-development.html http://www.gamedev.net/reference/articles/article2570.asp

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
Yes, a static class, not a static variable - in my workaround (I wouldn't really call it a solution) my state object and its parent did not share state, but they both have the information to set the other's state. On Nov 6, 9:54 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > hackbod wrote: > > A st

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
I have a workaround, but if anyone figures this out I'd love to see it. I have an inner static Parcelable class in my View to hold the view state. From my Activity's onSaveInstanceState, I create that Parcelable using a ctor that takes that View, and on my Activity's onRestoreInstanceState I call

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
> Can you just skip chaining upward to the superclass? Unfortunately, no: 11-07 00:30:58.868: ERROR/AndroidRuntime(207): Caused by: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState() 11-07 00:30:58.868: ERROR/AndroidRuntime(207): at android.view.View.d

[android-developers] Re: TextView.SavedState example?

2008-11-06 Thread Craig
> Can you just skip chaining upward to the superclass? Unfortunately, no: 11-07 00:30:58.868: ERROR/AndroidRuntime(207): Caused by: java.lang.IllegalStateException: Derived class did not call super.onRestoreInstanceState() 11-07 00:30:58.868: ERROR/AndroidRuntime(207): at android.view.View.d

[android-developers] Re: TextView.SavedState example?

2008-11-05 Thread Craig
Here is what you get trying to pass a null up to TextView's onRestoreInstanceState: 11-06 02:57:40.286: ERROR/AndroidRuntime(5218): Caused by: java.lang.NullPointerException 11-06 02:57:40.286: ERROR/AndroidRuntime(5218): at android.widget.TextView.onRestoreInstanceState(TextView.java:2040) 1

[android-developers] TextView.SavedState example?

2008-11-05 Thread Craig
I would like to use onSaveInstanceState/onRestoreInstanceState in my class that extends TextView, but I don't see how to do it. TextView's implementation of onSaveInstanceState returns null, I couldn't find a way of instantiating a TextView.SavedState, and onRestoreState, which must be called, thr

  1   2   >