[android-developers] Android Things

2016-12-15 Thread Carl Whalley
Where is the best place to discuss this - is there a Google Group etc? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googl

[android-developers] Re: "Pretty" ways to animate a list?

2009-03-28 Thread Carl Whalley
Look in the API demos: Views | Layout Animation | List cascade -- Android Academy: http://www.androidacademy.com On Mar 28, 1:32 am, Keith Wiley wrote: > AK Notepad does this nice little thing where, on displaying the file > list, it "unravels" rapidly down the screen.  Are they hacking that >

[android-developers] Re: memory problems

2009-04-18 Thread Carl Whalley
Try running that in DDMS and watching how often the GC is called. -- Android Academy: http://www.androidacademy.com On Apr 17, 10:01 pm, petunio wrote: > Hi > > I know this is more a java question, but I have been in many java > forums, and the theory seems to contradict the real thing... > > I

[android-developers] The Linked In Google Android group (1700+) is open to Android fans!

2009-03-02 Thread Carl Whalley
Join here: http://www.linkedin.com/groupInvitation?gid=76373 We're a friendly group with a broad industry representation covering everything from startups, job announcements, coding issues, handset rumours...come on over and get the full picture! --~--~-~--~~~---~--~

[android-developers] Conditionally process AndroidManifest.xml?

2009-03-11 Thread Carl Whalley
If you use the OI SensorSimulator you must add the INTERNET permission to AndroidManifest.xml as it uses http to drive it, which Android sees as a function requiring this permission. When you release your app, presumably its not using the software simulator so you can turn off support in your sour

[android-developers] Transferring paid apps G1 -> HTC Magic

2009-03-17 Thread Carl Whalley
With the imminent arrival of the Magic I was wondering what impact this would have on both end users and developers who want to transfer their apps over, or may even have both handsets for whatever reason. Is there a licensing provision for it? A means via software? This will become more of an iss

[android-developers] Re: Accessing the internet.

2009-03-18 Thread Carl Whalley
I'm sorry if this info is too basic for you but you didn't say what symptoms you are getting. Ensure you have in your AndroidManifest.xml -- Android Academy: http://www.androidacademy.com Linked In? Join the Google Android group: http://www.linkedin.com/groupInvitation?gid=76373 On Mar 18, 10

[android-developers] Re: Putting Android on Par with the iPhone Software

2009-03-18 Thread Carl Whalley
These killer features the iPhone has that Android doesn't ... do they include multitasking, MMS, forwarding SMS, or even such advanced features as cut n paste? How about the excitement developers go through wondering if the apps they spent months/years on will be allowed on the only way they can b

[android-developers] Re: File Upload Question

2009-03-19 Thread Carl Whalley
Sure its not the MIME type not being defined correctly on the server? Try changing the extensions to txt, bin, etc and if you see a pattern where some work and others don't then thats the culprit. -- Android Academy: http://www.androidacademy.com On Mar 18, 8:36 pm, Bobbie wrote: > I have inclu

[android-developers] Re: how to set android font style to bold

2009-03-20 Thread Carl Whalley
mPaint.setTypeface(Typeface.DEFAULT_BOLD); -- Android Academy: http://www.androidacademy.com On Mar 19, 8:33 pm, Meryl Silverburgh wrote: > Hi, > > In android, if I have a TextPaint object, how can I set the font style > to be 'bold'? > I can't find any method in TextPaint or Paint to allow me d

[android-developers] Read package name from AndroidManifest.xml at runtime?

2009-03-22 Thread Carl Whalley
I'm trying to implement an About box. The PackageInfo class is great for this, but I see it needs a package name as an argument to instantiate it: PackageManager pm = getPackageManager(); String version = getString(R.string.about_unknown); try { PackageInfo pi = pm.getPackageInfo(getStri

[android-developers] Re: Read package name from AndroidManifest.xml at runtime?

2009-03-22 Thread Carl Whalley
ssetManager and > parse it, but there really should be no call for this. > > On Sun, Mar 22, 2009 at 6:41 AM, Carl Whalley > wrote: > > > > > > > I'm trying to implement an About box. The PackageInfo class is great > > for this, but I see i

[android-developers] Re: Good place to look for freelance dev jobs?

2009-03-23 Thread Carl Whalley
Theres been a few on Linked In - try the Google Android group http://www.linkedin.com/groupInvitation?gid=76373 -- Android Academy: http://www.androidacademy.com On Mar 22, 7:43 pm, "1.am.W1z4rd" <1.am.w1z...@gmail.com> wrote: > Hi, does anybody know of any good places to look for freelance And

[android-developers] Accelerometer or orientation for rolling ball code?

2009-03-23 Thread Carl Whalley
If I'm reading things right, the accelerometer measures physical forces (i.e. movement) and the orientation sensor gives the tilt of the handset. If you are coding a rolling ball type app which would you use? You could argue accelerometer, in which case you measure each delta force and apply it to

[android-developers] Re: Android Sample Applcation URL Not working

2009-03-26 Thread Carl Whalley
That works fine for me. -- Android Academy: http://www.androidacademy.com On Mar 26, 1:00 pm, Ramesh wrote: > Hi, > >        I am try to get source > fromhttp://apps-for-android.googlecode.com/svn/trunk/ > URL. But it not working. Anybody know new url. > > Thanks --~--~-~--~~--

[android-developers] Re: Google wave invitations...?

2009-10-16 Thread Carl Whalley
I'd love an invite too ... anyone ... thanks! On Oct 16, 2:26 pm, Gavin Aiken wrote: > Takes at least 24 hours in my experience :) have fun waving! > On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller < > > > > kennethadammil...@gmail.com> wrote: > >  Have any of you gotten an email yet? > > I

[android-developers] Re: Android

2009-08-28 Thread Carl Whalley
Theres an interactive timeline here: http://www.androidacademy.com/3-features/40-current/49-article-what-makes-android-tick On Aug 29, 12:48 am, Nikamov wrote: > Just wondering on the release date of Android? --~--~-~--~~~---~--~~ You received this message because

[android-developers] AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley
Anything around? In particular, exactly what do those buttons do and are we to assume to use the DPAD in portrait mode the phone is turned 180 from what you'd expect "normal" portrait mode to be (see the pic, you'll see what I mean: http://ota.cc/az). I'm just guessing here but as a developer woul

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley
rced an > > orientation, and the platform should rotate the DPAD key events for you > > based on the current orientation like it does for the trackball on other > > devices. > > > On Fri, Sep 11, 2009 at 12:57 AM, Carl Whalley > > wrote: > > > > Anything aro

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley
Ok, sorry for posting before I read the link - the DPAD does adjust as you'd expect and it is explained further at the page Anna pointed to.. On Sep 11, 10:21 pm, Carl Whalley wrote: > Small point raised in my original post: if you do as you suggest and > keep the app in portrait mo

[android-developers] Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?

2009-09-27 Thread Carl Whalley
This is with the 1.6 & 1.5 SDKs, not tried earlier ones. When you switch from portrait to landscape the onSaveInstanceState()/ onRestoreInstanceState() pair are called once, but when going back from landscape to portrait they are called twice, unless I've missed something. To test, see the log aft

[android-developers] Re: Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?

2009-09-28 Thread Carl Whalley
g" in some code which was causing the width in an onLayout () call to *sometimes* come in as 0, which it turns out is this spurious lifecycle event. -- http://www.androidacademy.com On Sep 28, 9:27 am, skink wrote: > On Sep 27, 1:31 pm, Carl Whalley wrote: > > > > > Thi

[android-developers] Re: Crossword Puzzle in Android

2009-09-28 Thread Carl Whalley
I just put a tutorial up on making tiles scale correctly. Its not exactly what you are doing but theres enough overlap to get you going. http://www.androidacademy.com/3-tutorials/43-hands-on/154-device-independent-display-scaling -- http://www.androidacademy.com On Sep 28, 1:05 pm, Kwan Toh Choo

[android-developers] Linking to apps in the Android Market

2009-07-13 Thread Carl Whalley
Is it possible to put a link to an app in the market on a webpage? If not, and the apk is hosted directly, can we assume download stats in the market will be unaffacted? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Linking to apps in the Android Market

2009-07-13 Thread Carl Whalley
sed desktop browsers would be a problem but thought at least that would be ok if you used the browser on an Android device. Thanks for your help. On Jul 13, 9:03 pm, Alexey Volovoy wrote: > http://developer.android.com/guide/publishing/publishing.html#marketi... > > On Jul 13, 2:58 pm, Car

[android-developers] Add menu icon programatically

2009-08-06 Thread Carl Whalley
In menu.xml you can specify an icon: Whereas in code you create entries thus: menu.add(0, MENU_ABOUT, MENU_ABOUT, R.string.menu_about); How in the code version do you specify the icon please? -- Android Academy: http://www.androidacademy.com --~--~-~--~~~--

[android-developers] A better splash screen

2009-08-07 Thread Carl Whalley
I have an app with a View which fills the display at 320x480. I made a splash image which is smaller, 200x200, and the logic to display this is ok. It doesn't have the effect I'd like though, which is to show the splash first, centered, and without clearing the background which at present it is do

[android-developers] Re: Close Application

2009-08-10 Thread Carl Whalley
System.exit(0) -- Android Academy http://www.androidacademy.com On Aug 10, 10:36 am, Blackmarket wrote: > Hi, > > i want to add an exit button to the menu, but didn't see an easy way > to close an application or acces all activities of an application and > finish them. Is there an easy approach

[android-developers] Service message for App installation

2009-08-12 Thread Carl Whalley
With J2ME devices you can construct a binary SMS, called a service message, which has the location of a JAD encoded in its payload. When sent to a handset, the OS recognises this and doesn't attempt to store it as an ordinary SMS, instead just prompts the user to "Install XYZ?". This then starts t

[android-developers] Identifying handsets

2009-08-14 Thread Carl Whalley
Is there a call I can make to return "HTC G1" etc? How about one for the carrier, "T-Mobile"? Thanks -- Android Academy http://www.androidacademy.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers

[android-developers] SDK 1.5 r3 - API Demo broken?

2009-08-14 Thread Carl Whalley
App | Preferences | 1. Preferences from XML Parent toggle correctly toggles its child. Do the same with 5. Preferences from code and it has no effect on the child. Would you believe thats exactly what I need too ;-) Any fix please? -- Android Academy http://www.androidacademy.com --~--~-

[android-developers] How to access an Activites Menu programatically?

2009-08-18 Thread Carl Whalley
I'm writing unit tests in a class derived from ActivityInstrumentationTestCase2. I know I can access anything defined in the applications XML using findViewById(), but this application defines its Menu programmatically. I'm trying to access that menu so I can fire click() events to it in my tests

[android-developers] Re: How to access an Activites Menu programatically?

2009-08-19 Thread Carl Whalley
n Aug 18, 8:59 pm, Dianne Hackborn wrote: > Well you'll need to have some way for your instrumentation to get at the > activity state it wants.  Either give your dynamically created menus an ID, > or have APIs on the activity to get the menus, or do something else. > > On Tue,

[android-developers] Re: Garbage Collection

2009-08-19 Thread Carl Whalley
You don't have to call it yourself, but you can if you want to give it a hint that right now would be a good time to clean up. Even then, there is no guarantee it will do anything. Heres an example - say you have an action game which does the minimum possible (but still some) allocations during pl

[android-developers] Why is the same dialog sometimes translucent?

2010-04-02 Thread Carl Whalley
I have a Dialog with a Button whos OnClickListener() creates an AlertDialog: public void onClick(View v) { Dialog confirmDialog = new AlertDialog.Builder( activity ) .setIcon( R.drawable.icon ) ... The problem is in one place in the app, actually a MapActivity derived Act

[android-developers] Re: App released but only tested using the emulator. Could you please test it to me?

2010-04-05 Thread Carl Whalley
I ran into this recently. Try this in your AndroidManifest.xml -- Android Academy http://androidacademy.com On Apr 5, 6:01 am, Gabriel Simões wrote: > Hi all, > > After spending some time learning about Android´s SDK I´ve finally > "finished" a first version of my first app: a metronome. > It´

[android-developers] Resume download after app stop/start lifecycle

2010-02-06 Thread Carl Whalley
I've an App which performs a potentially large download in background thread. When the orientation changes or the keyboard is opened the App lifecycle system invokes the start/stop/pause/resume etc calls - is there any strategy available to resume the download rather than just set a flag so the new

[android-developers] Re: What's his name?

2010-02-08 Thread Carl Whalley
Mikey Android Academy http://www.androidacademy.com On Feb 8, 1:59 am, tora wrote: > Hello, > > I have a simple question. > > What's his name?http://www.android.com/intl/ja/media/android_vector.jpg > > According to this site, his name is [ android robot > ]http://www.android.com/branding.html >

[android-developers] In-app payment options

2010-02-19 Thread Carl Whalley
Instead of having 2 versions on the market for apps, one lite (free) and one paid, is it possible to have just the lite one but offer a payment page in the app which upgraded it once the payment is received? -- Android Academy http://www.androidacademy.com -- You received this message because yo

[android-developers] Re: Display a picture for few seconds before running into the main stream

2010-02-23 Thread Carl Whalley
This should give you some pointers: http://www.androidacademy.com/3-tutorials/43-hands-on/167-coolsplash-an-interactive-splash-toy-for-android-apps On Feb 22, 10:06 am, CMF wrote: > Hi all, I would like to display a picture for 2secons before running > into the main stream of the program > public

[android-developers] Remove default margin inside WebView

2010-02-24 Thread Carl Whalley
There seems to be a default inner border in the WebView - it's about 6 pixels all round. How can this be removed so the size matches the content? Simple demo (target is Google API 1.6): public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] Re: Android Market Licensing: Now Available!

2010-08-24 Thread Carl Whalley
I'm curious about something regarding signing. If someone does as this hack shows and patches the apk, they need to resign the new build. If they then put this version out and its widely distributed, can't Google see the certificate used to resign it, compare with the original and just revoke the n

[android-developers] Re: Android Market Licensing: Now Available!

2010-08-25 Thread Carl Whalley
That's clearer, thanks. Presumably if you upload apps hacked this way to the Market, your account will get pulled. And since this is the only way of getting apps into the Market it remains safe? On Aug 25, 8:36 am, Dianne Hackborn wrote: > On Tue, Aug 24, 2010 at 8:59 PM, Carl Whalley

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-27 Thread Carl Whalley
Might be throwing in a food-for-thought curveball here but I wonder if there's a difference between updating an app that's running and one which isn't? On Aug 26, 8:23 pm, TreKing wrote: > On Thu, Aug 26, 2010 at 1:56 PM, Doug wrote: > > I don't have anything helpful to add, TreKing, but I did w

[android-developers] Re: Parent activity runs onCreate before onActivityResult is called (sometimes)!

2010-08-05 Thread Carl Whalley
Smells like there will be a pattern, such as they've all installed another app causing this and don't realise, or all have full internal memory etc. On Aug 5, 10:18 am, Pent wrote: > Hey Bob, > > thanks for taking the time. I was just coming to report that I noticed > A being destroyed after call

[android-developers] Validating a dialog with custom onClick()

2009-12-26 Thread Carl Whalley
I have a handler for the custom onClick thus: public class DialogValidator implements OnClickListener { private int id; private Activity activity; protected DialogValidator(Activity activity, int id) { this.activity = activity; this.id = id;

[android-developers] Keeping Map API keys in sync across a dev team

2010-01-05 Thread Carl Whalley
When an app which uses the Map API is released it must be signed with the public cert. For individual use the key comes from the local debug keystore, created each time the Android SDK is installed. In other words, its different for each developer. When I include a view using it, then commit, my ke

[android-developers] Re: Android 2.1 SDK

2010-01-06 Thread Carl Whalley
Fx: Waiting to exhale. The Nexus One has been out for almost a day now and *still* no 2.1 SDK ;-) -- Android Academy http://www.androidacademy.com On Dec 16 2009, 10:04 am, String wrote: > There's been no public announcement of Android2.1, remember, so > there's noSDKbeen released. No doubt Goog

[android-developers] MapView.setBuiltInZoomControls(true) problem when used in a TabHost

2010-01-09 Thread Carl Whalley
Following http://developer.android.com/guide/tutorials/views/hello-mapview.html to create a MapView based app works but gives a deprecation warning on the mapView.getZoomControls() call for 1.6+. The new way is just to call setBuiltInZoomControls(true) on your MapView and the controls will appear a

[android-developers] Constructing shapes from other objects

2010-01-19 Thread Carl Whalley
In graphics packages you can start with a rectangle, make it a rounded, then say add another triangle and where they meet join them to create a path, which can then be treat as a single object, e.g. filled with a gradient. Can this be done with Androids graphics? I'm trying to make, for example, a

[android-developers] Re: Update individual item in listview

2010-01-19 Thread Carl Whalley
You need to be familiar with the ListAdapter. Try here: http://developerlife.com/tutorials/?p=327 -- Android Academy http://www.androidacademy.com On Jan 19, 8:28 pm, ls02 wrote: > How do I update individual row in listview? -- You received this message because you are subscribed to the Google

[android-developers] Downloading apk to Nexus One from local webserver

2010-01-26 Thread Carl Whalley
When developing for the G1 I set up a local apache site to serve APK's and pointed the G1 browser to it. The server is on my local P and the G1 connects via Wifi on its direct IP. The mime types was set up, and the G1 downloads and installs them fine - these are all signed with the public key. When

[android-developers] BitmapFactory.decodeFile() vs BitmapFactory.decodeResource() on Nexus 1

2010-01-26 Thread Carl Whalley
I've an app which shows bitmaps using either of these calls on the G1 (1.6) and they show up correctly at the same size. When I run on the N1 (or a 2.1 AVD) I find the same file appears much smaller using BitmapFactory.decodeFile(), but it is correct when using BitmapFactory.decodeResource(). How

[android-developers] Re: White Paper - Sony Ericsson Vivaz, the HD ready phone

2010-02-04 Thread Carl Whalley
This double post to a broken link is about a Symbian handset. On Feb 4, 6:30 am, SonyEricsson DeveloperWorld wrote: > Vivaz has a 3.2 inch 360 x 640 pixel TFT resistive touchscreen with 16 > million color depth. OpenGL ES 1.1 and 2.0 are supported for superb > graphics. > The 8.1 megapixel camera

[android-developers] Re: Dynamic loading of complete layout file.

2010-07-01 Thread Carl Whalley
Check out the layout inflater - in your case you'll want to download the XML first. http://developer.android.com/intl/zh-TW/reference/android/view/LayoutInflater.html -- Android Academy http://www.androidacademy.com On Jul 1, 6:41 am, ABhi wrote: > Hi All, > > I'm dealing with a problem you guys

[android-developers] Marshmallow stops showing SeekBar thumb when vertical

2015-10-15 Thread Carl Whalley
Posted to SO but there's no reply - anyone come across this? http://stackoverflow.com/questions/33112277/android-6-0-marshmallow-stops-showing-vertical-seekbar-thumb -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Android - how to define ShapeDrawables programmatically?

2011-08-24 Thread Carl Whalley
What I'm trying to achieve is to use a Drawable with a couple of layers inside it, but control some values at runtime such as the startColor for the gradient. Here's what I have in my_layered_shape.xml: http://schemas.android.com/apk/res/android"; >