[android-developers] Re: how to manage different resolution under same density?

2012-06-07 Thread Glen Cook
That's right there is a 4 by 4 matrix of theoretically possible
devices

However, you only need to include graphics for the 4 generalised
densities:
  drawable-hdpi
  drawable-ldpi
  drawable-mdpi
  drawable-xhdpi

One screen being physically larger than another doesn't mean it will
have more content...Density is the primary factor:

There is a good explanation here:
http://stackoverflow.com/questions/2638202/android-multiple-screen-sizes-with-same-density

Regards,
Glen

On Jun 7, 9:04 am, Hitendrasinh Gohil hitendrasin...@gmail.com
wrote:
 Hi,

 As i know there are 4 types of screen size and 4 types of density.But how
 to manage the graphics for different resolution under same density?

 Like Samsung galaxy 10.1 has *xlarge screen and comes under mdpi* where as
 kindle fore has  *large screen and comes under mdpi.*
 As i have placed all the graphics for xlarge screen under mdpi and now i
 also want to make the app compatible for kindle(As per android doc graphics
 for kinlde also goes to drawable-mdpi which is not possible because i have
 already graphics for xlarge screen under drawable-mdpi).

 can anyone tell me what is best to manage this ?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Layout: N Gallerys

2012-04-09 Thread Glen Cook
Hi Guys,

I've been presented with a design that looks visually like an
arbitrary number of gallery views.

[Gallery 1]
[Gallery 2]
...
[Gallery N]

It looks similar to the Pulse newsreader application.Can anyone
suggest an approach?

I was thinking along the lines:
  1. A standard ListView with a standard GalleryView in each row
  2. A standard ListView with a custom Horizontal ListView in each
row
[http://www.dev-smart.com/archives/34]
  3. Building a custom view from scratch

Are these first 2 approaches feasible memory wise?

Thanks,
Glen

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: eclipse plugin phonegap

2012-01-31 Thread Glen Cook
You can do it here:
http://docs.phonegap.com/en/1.4.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

I set it up today. It is very easy to get started.

They have their own Google group here:
http://groups.google.com/group/phonegap

Cheers,
Glen

On Jan 31, 4:58 pm, Jagadeesh mjagadeeshb...@gmail.com wrote:
 Hi
 iam working android project
 my apps targeting cross platform like blackberry,iphone
 where can i get phoneGap plugin for eclipse ganymade can any one share
 the link might useful very urgent

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Runtime exception while audio recording

2012-01-24 Thread Glen Cook
A couple of things to try:

1. Make sure permission is set in your manifest:

uses-permission android:name=android.permission.RECORD_AUDIO/

2. Make sure the source file's permissions are okay

3. Try calling reset() on the MediaRecorder prior to setting the source.

On Fri, Jan 20, 2012 at 11:55 AM, Raneez rane...@gmail.com wrote:

 I get the following error while trying to record audio:

 E/AndroidRuntime(759): java.lang.RuntimeException: setAudioSource
 failed.

  E/AndroidRuntime(759): at
 android.media.MediaRecorder.setAudioSource(Native Method)).

 Please help me out.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Glen Cook
There are parts of the application that are created prior to
Application.onCreate being called: notably ContentProviders

The Application.onCreate documentation was changed recently:

From:
Called when the application is starting, before any other application
objects have been created.

To:
Called when the application is starting, before any activity,
service, or receiver objects have been created. Note that content
providers are created before the application object (see
http://code.google.com/p/android/issues/detail?id=8727)

It now explicitly mentions that 'receiver objects' are created prior
to onCreate being called. So you should be okay, but good to check the
source.

Just as a sanity check, but you've included the Application in your
manifest file? This would also prevent onCreate from being called.

Good luck bud.

On Jan 18, 6:26 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 Right..., but you shouldn't spawn a new process for each onReceieve...

 kris

 On Wed, Jan 18, 2012 at 1:21 PM, Streets Of Boston







 flyingdutc...@gmail.com wrote:
  Your Application.onCreate is called only once for each process it runs in.
  (if you have multiple processes for your app, the Application.onCreate is
  called multiple times, but still only once per process).

  --
  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...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: https://dl-ssl.google.com/android/repository/addons_list.xml

2012-01-17 Thread Glen Cook
Hi Vikram,

I hit this problem a few weeks ago:

There are many possible solutions in this thread here:
  http://code.google.com/p/android/issues/detail?id=21359

The solution that worked for me is covered in comments {27, 45}:
  But essentially I installed that package using Eclipse running as
administrator [Help-Install New Software]

Regards,
Glen

On Jan 17, 12:16 pm, Vikram Menon mvikramme...@gmail.com wrote:
 That dint work..

 Have already tried that, also installed java requisites. Okay help
  On Jan 17, 2012 2:25 PM, Chander mourya mohan.c...@gmail.com wrote:







  Try using  http instead of https. may be it will work.

  On 1/17/12, Starter trouble mvikramme...@gmail.com wrote:
   All efforts in vain.

   Win 7, R16.exe

   Panda AV(disabled)
   Avira AV(disabled)
   Firewall Disabled
   Uninstalled and reinstalled SDK
   SDK Manager - Run as administrator
   Checked and Unchecked Force Https
   Able to open the the mentioned location through browser.

   Still getting the same error :

   Fetchinghttps://dl-ssl.google.com/android/repository/addons_list-1.xml
   Failed to fetch URL
  https://dl-ssl.google.com/android/repository/addons_list-1.xml,
   reason: Unknown Host
  https://dl-ssl.google.com/android/repository/addons_list.xml
   Fetched Add-ons List successfully
   Fetching URL:
 https://dl-ssl.google.com/android/repository/repository-5.xml
   Failed to fetch URL
  https://dl-ssl.google.com/android/repository/repository-5.xml,
   reason:https://dl-ssl.google.com/android/repository/addons_list.xml
   Done loading packages.

   --
   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...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  Chandra Mohan Mourya

  --
  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...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Installation: Separated Client and Service

2011-07-28 Thread Glen Cook
Hello,

We have an application that consists of a UI and a download-service
that downloads content.

In the future, we would like to:
  1. Share our download-service with other applications
  2. Offer various branded and customised versions of the client
[Would appear as separate downloads in the Android store]

We would like all clients running on the phone to share the download-
service. Android is designed to facilitate thisBUT

If we create 2 package files. How do we handle installations?

Scenario 1: New User
  A new user (without the download-service) installs the client from
the Android market. How do we seamlessly accomplish the install?
(Avoid them installing each package separately)

Scenario 2:
  A user with the download-service already installed downloads another
client. How do we detect that the service is already installed?

Does anyone have any suggestions to simplify the installation process?

Thanks,
Glen



-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Home Screen Widget: Start Programmatically

2011-07-19 Thread Glen Cook
Hiya,

My understanding is that it is not possible to auto start a home
screen widget. (There are many posts saying it cannot be done)

However, we've found that the majority of our users don't know how to
start Android widgets. So we've provided a step by step dialogue to
explain it.

However, the boss claims that there is an application auto starting
their home screen widget:
The OpenTable app (download from Android Market) prompts you when you
first launch to install a home screen widget. You click yes, and the
widget is automatically installed on the home screen with no
additional prompts.

I believe he's on the new Acer tablet running honeycomb. How are they
doing this?

Thanks,
Glen

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Home Screen Widget: Start Programmatically

2011-07-19 Thread Glen Cook
Thanks Mark. Yes I was asking about doing an auto start

But Installing a short-cut is an interesting alternative. (Noting your
portability reservations)

I've found an intent for accomplishing this:
intent.setAction(com.android.launcher.action.INSTALL_SHORTCUT);

I'm now wondering if it is possible to detect if a particular short-
cut exists on the user's home screen.

My first thought is 'File' / 'exists'. But I don't think this will
work:

  . We don't know the device's home screen path (or if the device has
a home screen -- if it does it will be platform dependent)
  . We don't have permission to open the home screen application's
files

So I assume this is not possible which presents another problem...

On Jul 19, 4:15 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jul 19, 2011 at 11:06 AM, Glen Cook glenandr...@googlemail.com 
 wrote:
  My understanding is that it is not possible to auto start a home
  screen widget. (There are many posts saying it cannot be done)

 If by auto start you mean forcibly install an app widget on the
 user's home screen, then, you are correct -- this is not possible.
 For starters, you have no idea if the user's home screen even
 *supports* app widgets.

  However, the boss claims that there is an application auto starting
  their home screen widget:
  The OpenTable app (download from Android Market) prompts you when you
  first launch to install a home screen widget. You click yes, and the
  widget is automatically installed on the home screen with no
  additional prompts.

  I believe he's on the new Acer tablet running honeycomb. How are they
  doing this?

 Your boss is confused, at best.

 When you first run Open Table, it prompts you to install a *shortcut*
 on the home screen. Even this, AFAIK, relies on undocumented features
 of certain home screen implementations. Moreover, a shortcut is not an
 app widget.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Renderscript: You Tube Carousel

2011-06-01 Thread Glen Cook
Hi Guys,

Do you have any idea when the renderscript code used to create the you
tube carousel will be open sourced?

This thread from February mentions that there are plans to do it, but
I'm unable to find updates:
http://groups.google.com/group/android-developers/browse_thread/thread/8f3de1342b904734

There is a Carousel sample here:
http://code.google.com/p/android-ui-utils/downloads/detail?name=CarouselExample.zip

This Carousel is more like the one used to do play lists in the
platform audio player.

I'm specifically looking for one that facilitates a rotating wall of
videos as seen on the opening screen of the You Tube application.

Thanks,
Glen

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en