Re: [android-developers] Does anyone have a Samsung Galaxy Tablet 10.1?

2012-11-23 Thread Mark Murphy
On Fri, Nov 23, 2012 at 3:44 PM, Francisco Marzoa  wrote:
> Does anyone have a Samsung Galaxy Tablet 10.1'' with 1280x800 pixels of
> screen resolution? I rather like to know what DisplayMetrics reports to him,
> since I am trying to emulate it but getting wrong parameters with the
> emulator, and I suspect that the problem is with the emulator itself.

11-23 16:07:53.161: E/ScrapActivity(1205): DisplayMetrics{density=1.0,
width=1280, height=800, scaledDensity=1.0, xdpi=160.15764, ydpi=160.0}

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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] OOM with heap enough

2012-11-21 Thread Mark Murphy
First, you do not know necessarily what BitmapFactory.Options are being
specified on the decodeResource() call, as that does not appear to be
called from your code, and it could be they have strange values in there.

Beyond that, last I knew, Dalvik does not have a compacting garbage
collector. I haven't seen a recent statement as to whether or not that
limitation has been fixed. If it is still the case, though, your issue may
not so much that you are out of memory, but that there is no single
contiguous block that meets your needs.

On Wed, Nov 21, 2012 at 9:48 AM, Francisco Marzoa wrote:

>  Look at this:
>
>   0java.lang.OutOfMemoryError: (Heap Size=48547KB, Allocated=33541KB)  1at
> android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)  2at
> android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:595)  3at
> com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:77)
> 4at
> com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:133)
> 5at
> net.iberdroid.ruletaafortunadacore.MainMenuScreen.loadImages(MainMenuScreen.java:255)
> 6at
> net.iberdroid.ruletaafortunadacore.MainMenuScreen.enable(MainMenuScreen.java:241)
> The image that I am trying to load at MainMenuScreen.java:255
>
> The weird thing is that there is free heap enough for loading that image:
> it is a 800x480 png indexed but with transparency, so I load it using four
> bytes per pixel (ARGB) and it should use about 1M5 of memory as a raw
> bitmap... but it crashes anyway trying to load an image ten times smaller
> the available heap space (48-35 = 15Mb).
>
> These things makes me crazy...
>
> Bests,
>
>
>
>  --
> 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




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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] ICS 4.0.4 emulator image?

2012-11-21 Thread Mark Murphy
On Wed, Nov 21, 2012 at 9:10 AM, Francisco Marzoa  wrote:
> I have problems with some devices that uses ICS 4.0.4, mainly with Samsung
> Galaxy SIII ones. I have create an emulator instance to try to debug this as
> closed as possible to SGS3, but I have been unable to reproduce the problem
> at all. I only have ICS 4.0.3 on the emulator that comes with ADT in
> Eclipse, so I rather like to test this in an ICS 4.0.4 emulator to see if it
> makes the difference.
>
> Is there any manner to run an ICS 4.0.4 emulator?

There was no new SDK for Android 4.0.4, and hence no new official
emulator. It is conceivable that somebody built an emulator image from
the AOSP sources for 4.0.4, and that this is available for download,
but it will not be through the SDK Manager.

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] FM radio Android Application Developement

2012-11-21 Thread Mark Murphy
On Wed, Nov 21, 2012 at 12:27 AM, Karunakaran Vikash
 wrote:
>  I need to create a FM radio android application , is there any api or
> methods for developing this.

Generally no, because generally phones are not FM radios. *Specific*
phones might have an FM radio chip, and those *specific* manufacturers
might offer an API for working with those chips. You are welcome to
contact such manufacturers to find out.

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Change home page by code?

2012-11-21 Thread Mark Murphy
Hopefully not.

On Wed, Nov 21, 2012 at 6:42 AM, Jorge Garrido Oval  wrote:
> Can I change the default home page from default browser by code?
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Monitor Energy

2012-11-20 Thread Mark Murphy
If you need this information on demand, call registerReceiver(null,
new IntentFilter(Intent.ACTION_BATTERY_CHANGED)) and examine the
resulting Intent. There will be extras (keys are defined on
BatteryManager) for that info.

On Mon, Nov 19, 2012 at 4:24 PM, Rodolfo Ramos  wrote:
> Hello everybody, I need to monitor changes in battery Android 1.5. But the
> instructions I found on the android site, found nothing for the 1.5. Does
> anyone have any information. I need to know if the phone is connected to
> power or not.
>
> --
> 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



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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] Addind an avd

2012-11-20 Thread Mark Murphy
You did not install the ARM EABI v7a System Image for Android 4.2 in your
SDK Manager.

On Fri, Nov 16, 2012 at 9:58 AM, Imri Persiado wrote:

> Hello everyone,
> I'm trying to add an avd but the ok button is disabled:
>
>
> <https://lh6.googleusercontent.com/-JpGgiP5hTzs/UKZUjKvvuhI/AAw/e6ofBRxl8FI/s1600/%D7%9C%D7%9C%D7%90+%D7%A9%D7%9D.png>
> Any idea why?
>
> --
> 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




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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] adt-bundle-windows-x86 (and _64) missing SDK Manager.exe and AVD Manager.exe

2012-11-19 Thread Mark Murphy
This too is probably better asked on adt-dev, or filed as an issue on
http://b.android.com (if it is not there already).

On Mon, Nov 19, 2012 at 1:03 PM, Matthew Insko  wrote:
> I downloaded the adt-bundle-windows.zip.  It is missing the SDK and AVD
> Manager.exe.  The documentation tells you to go to the root of the SDK
> folder and run the SDK Manager to download additional SDK.
>
> The workaround is obvious to devs familar with the previous SDKs, go to
> sdk\tools and run android.bat  (it will launch the SDK manager) but not for
> the people this toolkit is meant for.
>
> Any plans to fix this issue in the bundles?
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] adt-bundle-{OS} has inconsistent SDK platform location for API 17

2012-11-19 Thread Mark Murphy
This is probably better asked on adt-dev rather than here.

On Mon, Nov 19, 2012 at 1:08 PM, Matthew Insko  wrote:
> The new adt-bundle-windows (and linix) have the API 17 SDK in
> platforms\android-4.2 instead of platforms\android-17.  The SDK manager will
> still download the 4.2 SDK to platforms-17 if it does not exist.
> What was the reasoning behind this change?  All the other SDK still download
> in the the named folders "android-"+apiLevel.
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Help porting ROM (netd)

2012-11-19 Thread Mark Murphy
On Sat, Nov 17, 2012 at 5:50 PM, Mino Infiesta Tsuchiya
 wrote:
> Any ideas?

This list is for developing apps with the Android SDK. Please consult
with the CyanogenMod team for help with porting CyanogenMod.

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] plz

2012-11-19 Thread Mark Murphy
On Thu, Nov 15, 2012 at 2:36 AM, ?? ???  wrote:
> I want to souce code android google maps

Get a job at Google and join the appropriate team (probably the Maps
team, though it might be the Android team).

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Invoke touch event on home screen given X and Y coordinates

2012-11-19 Thread Mark Murphy
On Sat, Nov 17, 2012 at 11:45 PM, bibhas  wrote:
> Hi guys,
> I am very new to android development.
> I want to invoke a touch event on the homescreen from my activity,
> given the X and Y co-ordinates.
> I have tried the dispatchTouchEvent, but it seems to work only on the
> activities that I have created.
>
> Is it possible to do what I want?

Fortunately, no. Apps cannot force input events upon other apps.

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Not all resources are being added to my apk file.

2012-11-19 Thread Mark Murphy
On Mon, Nov 19, 2012 at 7:44 AM, Alex Foreman  wrote:
> I have a project which has a few dependencies as *.jars and also native
> code, specifically armeabi .so files which I have placed in a 'libs' dir.

armeabi .so files go in libs/armeabi/, not libs/.

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Automated apps testing

2012-11-18 Thread Mark Murphy
You know when your tests are done when the tests complete, assuming
that you are using the standard JUnit test harness.

On Sun, Nov 18, 2012 at 11:59 AM, Jack Harvard  wrote:
> Hi,
>
> I would like to automate the tests of launching the app in the simulator and 
> run the App till finish, then exit the simulator. Wondering what's the best 
> way to detect whether the App has finish its run, I can think of comparing 
> the frames perhaps?
>
> Thanks,
> J
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] ADB.EXE Disappeared

2012-11-18 Thread Mark Murphy
You will also find it in the ADT bundle (which ships with the latest
platform-tools).

On Sun, Nov 18, 2012 at 9:52 AM, Mark Murphy  wrote:
> That should come from "Android SDK Platform-tools", in the Tools area
> of the SDK Manager.
>
> On Sun, Nov 18, 2012 at 9:40 AM, Kevin Brooks  wrote:
>> This problem has come up again.  I had it under my Linux side of my computer
>> and never could get it fixed.  So I switched to the Windows side of my
>> computer, installed Eclipse and the Android SDK. Everything was working fine
>> until yesterday.  When I came into my office, my computer had crashed during
>> the night.  After getting it back up and running, I started Eclipse and I
>> received a message that Eclipse "Could not find C:/Program Files
>> (x86)/Android/android-sdk/platform-tools/adb.exe"
>>
>> When I go to the directory, sure enough adb.exe is not there.  I have done a
>> search of the entire hard drive and it doesn't exist anywhere.  I have tried
>> to re-install the Android SDK with no luck. Does anyone have any suggestions
>> how I can start over from scratch and possibly fix the problem?
>>
>> --
>> 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
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 4.3 Available!



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] ADB.EXE Disappeared

2012-11-18 Thread Mark Murphy
That should come from "Android SDK Platform-tools", in the Tools area
of the SDK Manager.

On Sun, Nov 18, 2012 at 9:40 AM, Kevin Brooks  wrote:
> This problem has come up again.  I had it under my Linux side of my computer
> and never could get it fixed.  So I switched to the Windows side of my
> computer, installed Eclipse and the Android SDK. Everything was working fine
> until yesterday.  When I came into my office, my computer had crashed during
> the night.  After getting it back up and running, I started Eclipse and I
> received a message that Eclipse "Could not find C:/Program Files
> (x86)/Android/android-sdk/platform-tools/adb.exe"
>
> When I go to the directory, sure enough adb.exe is not there.  I have done a
> search of the entire hard drive and it doesn't exist anywhere.  I have tried
> to re-install the Android SDK with no luck. Does anyone have any suggestions
> how I can start over from scratch and possibly fix the problem?
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Re: How to create a simulator for the screen size is 1920X1080?

2012-11-16 Thread Mark Murphy
On Fri, Nov 16, 2012 at 8:24 AM, lbendlin  wrote:
> It's a very simple process.  Open AVD Manager, create a new AVD with the HD
> screen size.  Then start it up.
>
> After a few hours waiting you will realise this was a bad idea, and will get
> an actual device to use for development.

At least with the R20 tools, I think it would just crash, IIRC. I have
not yet tried this with the R21 tools.

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
http://www.andglobe.com

-- 
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] My own Android source repository server and REPO question

2012-11-15 Thread Mark Murphy
This would be a far better question for a more-relevant list, like the
ones set up at http://source.android.com. This list is for developing
apps with the Android SDK, not for the OS open source code and its
modifications.

On Thu, Nov 15, 2012 at 12:29 PM, Kimi  wrote:
> I am porting and building Android for a custom hardware, many people will be
> working on this version. We would like to have our own repository server in
> order to simplify the development of this porting. What it is the best way
> to archive this? Copying the source to a SVN or GIT server? With a special
> REPO command?
>
> The other question is: once I have this setup done, how to integrate changes
> on the main Android trunk into main release.

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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] invisible app

2012-11-13 Thread Mark Murphy
On Tue, Nov 13, 2012 at 6:19 PM, dashman  wrote:
>> Or at least - not visible in the app tray.
>>
>>
>> I have no idea what an "app tray" is.
>>
>
> the screen where all the apps are listed.

If you mean on the home screen, that will show activities with the
HOME/LAUNCHER .

> Settings>> Applications >> Manage Applications.
>
> Prefer it ideally not be be listed there.

You will need to build your own custom build of Android and ROM mod, then.

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Android GC internals

2012-11-13 Thread Mark Murphy
Possibly, but this is the wrong list for your question. Consider one
of the lists hosted at http://source.android.com.

On Tue, Nov 13, 2012 at 4:05 PM, Vidocq  wrote:
> Just want to make it 100% clear.
>
> Android OS use 2 GC algorithms - Mark&Sweep and Concurrent Mark&Sweep.
>
> Before 2.3 there was no concurrent algorithm - just a serial one.
>
> Serial Mark&Sweep - is compacting algorithm and only work with Young
> generation.
>
> CMS works with both generations(Yong and Old) and it's not compacting, just
> uses free lists. Also, there is no PermGen space in Android. In general, CMS
> works with Old generation, because Young is already cleared by serial
> algorithm and this process called 'Full GC'. In general, CMS performs only
> partial clearing.
>
> Am i right ? :)
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] invisible app

2012-11-13 Thread Mark Murphy
On Tue, Nov 13, 2012 at 11:09 AM, dashman  wrote:
> Is it possible to write an app that's invisible (i.e. not visible in any
> task list).

Not really.

> Or at least - not visible in the app tray.

I have no idea what an "app tray" is.

> The impetus for this is that I recently got my phone stolen and would like
> to write an app that reports the geo position of the app - catch 'em
> red handed.

There are already apps for this AFAIK.

That being said, create a service that will be triggered by a GCM push
to start reporting the location data. This will not show up in the
Recent Tasks list, because there is no UI. It will show up in the list
of running processes, though, and there is nothing you can do about
that, short of modifying Android firmware.

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Can dynamic broadcastreceiver receives intent from other apps

2012-11-12 Thread Mark Murphy
On Mon, Nov 12, 2012 at 12:53 PM, Jin  wrote:
> So, does this mean that dynamic broadcastreceiver can only receive intent in
> its own "main application thread", and cannot receive intent from other
> apps?

No.

You can see a dynamic-registered BroadcastReceiver receiving
broadcasts from other processes in many places, such as this sample of
receiving ACTION_BATTERY_CHANGED:

https://github.com/commonsguy/cw-omnibus/tree/master/SystemEvents/OnBattery

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] How to display Tifinagh characters on android emulator?

2012-11-10 Thread Mark Murphy
Either:

-- Your font lacks the appropriate glyphs, or

-- Your font is incompatible with Android

See:

http://stackoverflow.com/questions/13288182/custom-font-not-working-on-android/13289148#13289148

On Sat, Nov 10, 2012 at 8:51 AM, Osiris  wrote:
>
> How to display Tifinagh characters on android emulator?
>
> i tried this method:
>
> TextView tv=(TextView)findViewById(R.id.font);
>Typeface face=Typeface.createFromAsset(getAssets(),"fonts/MZTIFIYU.TTF");
>
>tv.setTypeface(face);
>
>  but i still see boxes instead of characters
>
> thank you in advance
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Google Android TV

2012-11-09 Thread Mark Murphy
Note that Google TV developer support is handled through StackOverflow
and the 'google-tv' tag, according to Google:

https://developers.google.com/tv/android/community

You can see existing questions on Google TV here:

http://stackoverflow.com/questions/tagged/google-tv

On Fri, Nov 9, 2012 at 10:26 AM, Anirudh Loya  wrote:
> Hello Sir,
>
>
> I am working on Google Android TV Application.
>
>
> Presently the task of my application is to download images from the Social
> Networking Website, which I have done it successfully. After downloading I
> have to play them in the Screen Saver when ever the Google Android TV is
> idle state and goes into Screen Saver mode.
>
> I am unable to find any API's of Screen Saver or the Settings of Google API.
> I am unable to understand how can I pull the downloaded images to play it in
> screen saver.
>
> Any help you be appreciated.
>
> Awaiting your reply at the earliest.
>
>
> --
>
> Thank you
>
> Anirudh Loya | Android Tech Lead
>
> Desk: +9140-30681824 | Mobile: +919246561265
>
>
>
> --
> 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



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: Miracast?

2012-11-09 Thread Mark Murphy
On Thu, Nov 8, 2012 at 9:53 PM, Eric Wong (hdmp4.com)
 wrote:
> I believe you know it is possible to take screenshot in Android if you have
> root permission

If you're planning on investing in Miracast, you are presumably doing
do with intent to have it be used beyond rooted device owners.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: Miracast?

2012-11-08 Thread Mark Murphy
On Thu, Nov 8, 2012 at 9:21 AM, Eric Wong (hdmp4.com)
 wrote:
> Does anyone knows if it is possible to build an apk to allow the a
> non-Android 4.2 device to have Miracast capability?
> both as sender and receiver...

You cannot take screenshots in Android, which means you cannot stream
such screenshots using Miracast.

It may be possible to create an app that speaks Miracast over WiFi
Direct to consume content, or display things other than the contents
of the screen -- that's outside my area of expertise, and you have to
buy the specification
(http://www.wi-fi.org/wi-fi-certified-miracast%E2%84%A2).

(and the fact that they put a TM symbol in the cotton-pickin' URL
suggests that they have overly-aggressive legal counsel)

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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] reg: APP INSTALLER ISSUE

2012-11-08 Thread Mark Murphy
On Thu, Nov 1, 2012 at 5:35 AM, Kondlada  wrote:
> I am having parent Application who has to install child
> application which has protection level signatures in manifest file such that
> the application can be run from parent app store.
>
>
>  The issue is when we use Implicit Intent to invoke application installer
> activity after installing the application it has two button's to show OPEN
> AND DONE. Open button has to be disabled or has to catch the receiver action
> such that default open action should not work as it get crashes because of
> manifest protection level.

You would need to not advertise a MAIN/LAUNCHER activity in your
manifest. Then, the Open button might be disabled.

You need to do this anyway, because if the Open button cannot launch
the app, then neither can an arbitrary home screen implementation, and
users will encounter the same sort of crash when tapping on the icon
there.

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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-08 Thread Mark Murphy
On Thu, Nov 1, 2012 at 8:43 AM, Jim Stewart  wrote:
> 1. How would you control the CAB based on Long Holds the way Google are
> doing it?

Don't use CHOICE_MODE_MULTIPLE_MODAL. Start the ActionMode yourself as
you see fit. Here is an example:

https://github.com/commonsguy/cw-omnibus/tree/master/ActionMode/Manual

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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] Different apps on multiple displays

2012-11-08 Thread Mark Murphy
On Tue, Oct 30, 2012 at 4:27 AM, Vladek Sobolevsky  wrote:
> We are trying to check if android has a support of running different apps on
> multiple displays ?
> E.g having one app on one display and another app on second display. Our
> device has an multiple frame buffers support.

Generally, no, at least through Android 4.1. However, device
manufacturers such as yourself have added such capability (see HTC and
MediaLink HD), and there are hints that this might be available in
Android 4.2.

If you have further questions on how you can add this capability to
your devices, please use one of the Google Groups hosted at
http://source.android.com.

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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] Non-responsive Activity on Back

2012-11-07 Thread Mark Murphy
Sounds like there is a transparent activity at the top of the stack,
or something along those lines, that has the foreground and therefore
steals input.

See if this recurs on the emulator. If it does, get the app in the
state where it is not responding to input, then bring up Hierarchy
View and see what turns up.

On Wed, Nov 7, 2012 at 7:56 PM, Dandre Allison  wrote:
> I have an account picker Activity modelled after the iosched
> AccountActivity, but for my app's custom accounts. When I press the "add
> account" action it launches a connect account Activity for that custom
> account. If I press back from here (trying on Nexus 7 Android 4.1) I come
> back to what looks like my AccountActivity screen, but with one important
> difference - it's just a still, non-responsive screen. I'm using ABS 4.2 if
> that could affect anything. Somehow if I just press back once more, nothing
> visually changes (no screen refresh of any sort), but the screen is
> responsive again. Any ideas what I could look for to resolve this? I added a
> test button to my layout to see if the whole screen was non-responsive, or
> if it was just the "add account" action.
>
> --
> 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



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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

-- 
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] Efficient Tablet Resource Selection

2012-11-07 Thread Mark Murphy
On Wed, Nov 7, 2012 at 10:38 AM, Dave Smith  wrote:
> In my mind, the old devices that don't understand the "sw" qualifier should
> just ignore its existence and the two directories should just look like
> "large" and "xlarge".

If a directory has an unrecognized qualifier, the directory is
skipped; the qualifier is not simply ignored. Hence, older devices
will not "see" your -swNNNdp resources. You can demonstrate this by
taking a vanilla project, renaming res/layout/ to res/layout-swNNNdp/
(for some likely value of NNN), and running it on an old emulator.

> On the other side, with new devices, the "sw"
> qualifier should take precedence so the "large" and "xlarge" should become
> irrelevant.

Hmmm...

I just ran a test on a project, where I changed it to have just one
layout resource directory: res/values-sw100dp-normal/. That directory
was picked up by a 4.0.3 WVGA800 emulator. Given your description, I
would have expected it to fail here with a ResourceNotFoundException,
since there is no place to fail over to.

Do you happen to have a test project that demonstrates what you're seeing?

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Forum very "slow"

2012-11-07 Thread Mark Murphy
On Wed, Nov 7, 2012 at 7:27 AM, Carlos A. M. dos Santos
 wrote:
> The English word "site" is widely accepted in Brasil, but in Potugal they
> prefer the Portuguese word "sítio". I suggest you to use a more neutral
> translation therefore:
>
> Estes são alguns fórums onde você pode perguntar ou responder dúvidas sobre
> desenvolvimento de aplicações para Android.

Makes sense. I have updated the roster and site. Thanks!

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] loading xls (excel) documents programatically

2012-11-06 Thread Mark Murphy
http://stackoverflow.com/questions/7170180/viewing-excel-files-in-my-android-app

On Tue, Nov 6, 2012 at 2:44 PM, guich  wrote:
> Hi,
>
> Is there a way to show a xls document programatically, i.e., load a
> third party application that can handle xls files and pass the file by
> command line?
>
> thanks
>
> guich
>
> Ps: i don't want to use the JExcelAPI
>
> --
> 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



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Forum very "slow"

2012-11-06 Thread Mark Murphy
On Tue, Nov 6, 2012 at 12:20 PM, lbendlin  wrote:
> Mine is a tad rusty but I would go with
>
> На этих сайтах Вы можете спросить или ответить на вопросы о разрабoтки
> Android приложений

Works for me. I have updated the JSON roster and the Web page. Many thanks!

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] ANN: Localized Android Development Question-and-Answer Sites (www.andglobe.com)

2012-11-06 Thread Mark Murphy
I am now maintaining a Web page at http://www.andglobe.com (backed by
a JSON dataset available at http://roster.andglobe.com) listing
localized Android developer question-and-answer sites.

If you know of other sites that should be included in this roster,
please get that information to me — the GitHub project home page
(https://github.com/commonsguy/andglobe) has details for how to do
this.

Also, I am desperately seeking better translations for my one-sentence
site explanation:

> These sites are places where you can ask or answer Android application 
> development questions.

Many of the translations presently used on the site are from Google
Translate, with your typical awkward results. If you have a
replacement that expresses the same concept (not necessarily a literal
translation), please send it to me.

A bit more information is available at the GitHub repo and in this blog post:

http://commonsware.com/blog/2012/11/06/announcing-andglobe.html

Thanks in advance for all contributions!

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Forum very "slow"

2012-11-06 Thread Mark Murphy
On Tue, Nov 6, 2012 at 2:17 AM, Jonas Petersson  wrote:
> For the record: The Swedish version is not particularly good either -
> basically the sort of correct words in random order. My translation would be
> something like:
>
> "Här kan du ställa och svara på frågor om applikationsutveckling på Android"
>
> However, even that doesn't quite flow naturally IMHO. Rephrasing it
> radically might be better.

So long as the translation explains what the links are providing
(places for developers to ask questions or contribute answers), it
does not have to be a literal translation of my English words.

The objective is to allow somebody who speaks, say, Swedish, but not
much English, to find the Swedish section (hence, the links at the
top) and understand what the links will do for them. I am certainly
open to other suggestions of how to achieve this objective.

BTW, I replaced the Google Translate translation with yours -- thanks!

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] About "android-support-v4.jar"

2012-11-06 Thread Mark Murphy
On Tue, Nov 6, 2012 at 4:33 AM, onigunn  wrote:
> Are the Support Package updates incremental? So new version x has all
> feature of old version y?

So far, yes. It is possible they will mark things as deprecated, just
like they do in the SDK itself, and it is possible that they will
remove deprecated stuff after a period of time, as since this is a
library developers "opt into" using a new version of the library.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: Can I see the menu, please?

2012-11-05 Thread Mark Murphy
On Mon, Nov 5, 2012 at 4:51 PM, Latimerius  wrote:
> Hm, I'm under the impression either that or the three-dots button at
> the lower right corner of the screen should work for any legacy app...

Only if that button shows up.

For example, if android:targetSdkVersion="14" or higher, *and* you
have suppressed the action bar (e.g., via a NoTitleBar theme), there
is no three-dots button and no means of accessing the menu.

Corollary: if you are using android:targetSdkVersion of 14 or higher,
either have an action bar or do not try to use the old options menu
facility.

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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Forum very "slow"

2012-11-05 Thread Mark Murphy
On Mon, Nov 5, 2012 at 2:11 PM, lbendlin  wrote:
> Love the russian text.  You may not want to rely on Google Translate that
> much, unless you were aiming for chuckles.

Well, the announcement tomorrow is calling for better translations of
that text. Alas, I do not speak Russian.

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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Deleting an entire table in a content provider using uri?

2012-11-05 Thread Mark Murphy
That would be a question for whoever is supplying you with the
ContentProvider. We cannot answer that question in the abstract.

On Mon, Nov 5, 2012 at 1:51 PM, djhacktor  wrote:
> hi i need help to find way to delete all row from table using content
> provider
>
> contentResolver.delete( uri , null , null)
>
> what uri should i pass to delete all row ??
>
> --
> 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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Forum very "slow"

2012-11-05 Thread Mark Murphy
On Mon, Nov 5, 2012 at 2:29 AM, Zsolt Vasvari  wrote:
> Wow, has this forum really slowed down...   Where have all the posters have
> migrated to, I wonder?

StackOverflow gets a few hundred questions per day in the android tag.

I am also starting to build up http://www.andglobe.com, a site for
localized versions of android-developers/StackOverflow-style
question-and-answer resources. If you know of any I should add to that
roster, let me know.

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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Live voice changing during call (VOICE_UPLINK, VOICE_DOWNLINK)

2012-11-04 Thread Mark Murphy
AFAIK, this is not possible, sorry.

On Sun, Nov 4, 2012 at 5:05 PM, Danny S.  wrote:
> Hi friends,
>
> I want to discuss an issue I thought about many times. I want to change the
> voice during a call, so for incoming and/or outgoing audio. I read about
> VOICE_UPLINK (for outgoing audio) and VOICE_DOWNLINK (for incoming audio).
>
> I won't record the call and save it into a local audio file. I want to get
> the audio stream and change it in nearly realtime before it will be passed
> to my ear (downlink) or the person on the other side (uplink). After long
> google'ing I found only keywords like e.g. VOICE_UPLINK/-_DOWNLINK.
>
> I don't know whether it is possible... I read that it's already difficult to
> record Android calls.
>
> Thank you very much!
> -Danny S.
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] R Can Not be Resolved

2012-11-03 Thread Mark Murphy
This means that either one of your resources has a problem or your
AndroidManifest.xml file has a problem. Look for red X marks over such
files in the Package Explorer, or look in the Android portion of the
Eclipse Console for error messages.

On Sat, Nov 3, 2012 at 5:58 PM, Kevin Brooks  wrote:
> It has been a while since I have done any Android Development.  I started a
> new project today, and after creating the project I get an error R can not
> be resolved.
>
> I am using Eclipse Indigo 3.7 with the Latest Android SDK.
>
> I apologize if this has already been answered, I did a search through the
> messages and couldn't find it.
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: Android/Windows Dual boot

2012-11-03 Thread Mark Murphy
On Sat, Nov 3, 2012 at 4:51 PM, Mad-Doggie  wrote:
> Nothing yet?

Your questions have nothing to do with this list, which is devoted to
building apps with the Android SDK.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Problem while updating adapter from AsyncTask

2012-11-03 Thread Mark Murphy
Make sure that you are updating your adapter in onPostExecute(), and
make sure that either the adapter calls notifyDataSetChanged() or you
call notifyDataSetChanged() on the adapter.

On Sat, Nov 3, 2012 at 10:15 AM, Bajrang Asthana
 wrote:
> I am getting below error while updating adapter from AsyncTask -
>
>  java.lang.IllegalStateException: The content of the adapter has changed but
> ListView did not receive a notification. Make sure the content of your
> adapter is not modified from a background thread, but only from the UI
> thread. [in ListView(2131230767, class android.widget.ListView) with
> Adapter(class
> com.ascentive.extremespeed.moreoptions.InstalledAppsListAdapter)
>
> The purpose of doing this is to get icons of all installed apps so that I
> can display all installed apps in list view. I refer following site -
>
> http://impressive-artworx.de/2011/list-all-installed-apps-in-style/
>
> please do suggest what alternate we can choose.
>
> Thanks in Advance
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Is the 'back' button still kosher?

2012-11-02 Thread Mark Murphy
On Fri, Nov 2, 2012 at 2:10 AM, Keith Wiley  wrote:
> All right.  I brought this up a few weeks ago on this list and some of the
> advice on the topic was to avoid menus entirely and replace them with in-app
> soft-menus from now on...despite the action bar.  I guess that advice was
> incorrect.

There are developers who do not want to use the action bar, such as
game developers who find that an always-present action bar is a
distraction or clashes with their game-focused UI. A subset of those
developers are clinging desperately to the old options menu behavior
(e.g., setting android:targetSdkVersion to be under 11) -- the right
answer for these game developers is to add "in-app soft menus" that
blend in with the game UI. Because eventually, *something* will force
their hand to set android:targetSdkVersion to 11 or higher, and even
before that happens, users not used to the old option menu trigger
will not realize there are menus at all.

Most apps will do fine with an action bar.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Aceess to one app only when phone works

2012-10-29 Thread Mark Murphy
Questions on how to build your own firmware that contains this feature
are best asked on a list hosted at http://source.android.com.

On Sat, Oct 27, 2012 at 8:49 AM, mamad  wrote:
> The app that I am planning to develop must be run in phone start up and
> after running this app all other resources of the phone must be locked.
> Consequently, the users could not access to other parts of the phone and
> only granted access to work with this app.
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] About "android-support-v4.jar"

2012-10-29 Thread Mark Murphy
On Thu, Oct 25, 2012 at 11:59 PM, Yu Zhuang  wrote:
> i want to know wether this package "android-support-v4.jar" have a new
> version.

There are several versions of the Android Support package.

>  So i want to know wether it always work well if i use the new package?

I would recommend using the latest Android Support package, which is
probably newer than what you have. You can obtain the Android Support
package from the SDK Manager.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Determing icon location in live wallpaper

2012-10-29 Thread Mark Murphy
On Sun, Oct 28, 2012 at 8:50 PM, Ben Brosius  wrote:
> Is there anyway currently to determine the location of icons and widgets on
> the homescreen for a live wallpaper.

Only if it is your own home screen.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Is it really necessary an Intel CPU for building the SDK?

2012-10-29 Thread Mark Murphy
This list is for developing apps with the Android SDK. Questions on
building the Android source code belong on one of the lists hosted at
http://source.android.com.

On Sun, Oct 28, 2012 at 5:26 PM, ardi  wrote:
> Hi,
>
> I'm on MacOSX. I've read the instructions for building the Android SDK from
> source. I understand the precompiled SDK is available for Intel machines
> only, but, however, reading the source prerequisites, it seems to imply that
> only Intel Macs are supported. Is this true? And, if affirmative, why won't
> it build on a PowerPC Mac?
>
> Btw, before the obvious advice of "get a modern Mac", yes, I've a couple of
> modern Intel-based Macs, but I also have a G5 Mac, and I wished to be able
> to use the Android SDK on all my three Macs.
>
> Cheers,
>
> ardi
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread Mark Murphy
On Fri, Oct 26, 2012 at 2:45 AM, Kristopher Micinski
 wrote:
> Or their company is actually TMobile...

Oh, true. A device manufacturer can do this stuff without a problem. I
was assuming that this was an SDK app, since this is a list for
developing SDK apps, but that may not have been a valid assumption.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread Mark Murphy
On Fri, Oct 26, 2012 at 2:30 AM, alex kyo  wrote:
> I am wondering if there is any way to install the app directly & silently On
> a stock android without pushing a button.

Fortunately, no, for obvious security reasons.

> the rival company, of course, they won't tell us how they can do it.

If they are able to do it, they are doing so presumably via some
security hole. Be sure to point out if and when they release an app
that does this, so we can get that security hole closed.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Does content provider run in its own process space?

2012-10-24 Thread Mark Murphy
On Wed, Oct 24, 2012 at 3:08 PM, Subodh Nijsure
 wrote:
> What I want to happen is this background thread that syncs data to aws
> should never terminate,and ideally it should get started when device
> boot finishes i.e. data collected while there was no network
> connectivity, should get uploaded to AWS without user having to do it
> explicitly.

Please allow the user to make that choice. The user may prefer "having
to do it explicitly" versus you trying to keep code running
constantly.

> I do start my service such that it returns START_STICKY in its
> onStartCommand(), is that sufficient for the service to keep running
> even if activity is destroyed?

In principle, yes, though I find this to be bad form. A
continuously-running service is rarely the right solution from the
user's standpoint.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Does content provider run in its own process space?

2012-10-24 Thread Mark Murphy
On Wed, Oct 24, 2012 at 2:36 PM, Subodh Nijsure
 wrote:
> We don't want this upload process to happen in context of UI hence
> the service.

Please use a single process, and simply have the upload work be done
in a background thread.

> I read the commons ware book (page 459 to be specific)  and the
> database instance that content provider uses singleton database object
> based off of getActivity().getApplicationContext().

Page 459 does not say this.

It says that you need to use a single SQLiteDatabase object if you
want SQLiteDatabase to help with thread safety. Page 459 does not
address ContentProvider at all.

> Now the question is -- what happens if the service (3) is using the
> content provider and user starts the UI (1)  that also attempts to use
> the same content provider, is the UI going to experience issue opening
> the database, is it going to encounter ANR?

Possibly. SQLite implements process-level locking -- you use it all
the time from, say, Ruby. I have not played with its effects on
Android, as I don't waste the user's RAM and CPU with extra processes.

> Put other way,  does the content provider run in its own process?

It runs in the process that the rest of your components run in, normally.

> And
> are requests & responses to content provider serialized?

I do not think so, but I have been confused on this particular point before.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Embest SOC8200 - Where i can find android image

2012-10-23 Thread Mark Murphy
This list is for developing apps with the Android SDK. Questions
regarding porting Android to your hardware should be directed at your
hardware vendor, or perhaps the android-porting Google Group.

On Tue, Oct 23, 2012 at 2:18 PM, dani maoz  wrote:
> Hi
> I have bought Embest SOC8200, i tried to run
> TI-Android-GingerBread-2.3.4-DevKit-2.1, but i have a problem with
> screen resulation ~200x300, with no capability to change it ,
> Any idea how can i slove this issue
> thanks
>
>
> --
> 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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] To ContentProvide Sqlite DB or Not

2012-10-22 Thread Mark Murphy
On Mon, Oct 22, 2012 at 4:25 PM, ncdroid  wrote:
> Thanks a lot for your feedback Mark.  Do you have a rule of thumb you apply
> to decide on AsyncTasks vs Loaders?  For example, if you expect something to
> take less than x mins, use AsyncTask, otherwise use a Loader?

CursorLoader and my loaders *use* AsyncTask under the covers. Hence,
time ("take less than x mins") is not a particularly useful metric
here -- the behavior using Loaders or using AsyncTask directly should
be roughly equivalent.

If you like the Loader framework, use it, particularly if you are also
using a ContentProvider.

If you do not like the Loader framework, don't use it. Unlike, say,
trying to avoid EditText, the use of Loaders is purely optional. In
particular:

-- you can't use Loaders on API Level 10 and below unless you are also
inheriting from FragmentActivity

-- you can only use Loaders from an Activity, not a Service, at least at present

In those cases, your hands are tied: you have to avoid Loaders.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] To ContentProvide Sqlite DB or Not

2012-10-22 Thread Mark Murphy
On Mon, Oct 22, 2012 at 3:48 AM, Piren  wrote:
> Why do you prefer ASyncTasks to Loaders?

Greater flexibility.

> Since they are handicapped in ICS,
> isn't it better to stop using them?

Since they are not handicapped in ICS, they are perfectly fine to use.
In fact, CursorLoader uses AsyncTask under the covers.

If by "handicapped in ICS" you mean the new default serialized
behavior for execute(), use executeOnExecutor() and opt into the full
thread pool.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] To ContentProvide Sqlite DB or Not

2012-10-21 Thread Mark Murphy
On Fri, Oct 19, 2012 at 8:13 PM, ncdroid  wrote:
> Can someone please answer definitively for me the following:
>
> Are ContentProviders required to use Loaders w/Sqlite?

No. If you really want to use loaders with SQLite directly, I have a
SQLiteCursorLoader that works without a ContentProvider:

https://github.com/commonsguy/cwac-loaderex

> If ContentProviders are *not* required to use Loaders w/Sqlite, is there any
> recommended example which shows how to use the two together?

What is (are?) the "two" in this sentence?

> If Sqlite has a recommended way to achieve functional parity to Loaders with
> another method, what is that method?

:: shrug ::

I use ordinary AsyncTasks myself, way more often than Loaders.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] I'm using ShareActionProvider. Can't change Intent's extra at runtime

2012-10-21 Thread Mark Murphy
Quoting the documentation for OnShareTargetSelectedListener:

"Note: Modifying the intent is not permitted and any changes to the
latter will be ignored."

On Fri, Oct 19, 2012 at 7:54 AM, Hurelhuyag  wrote:
> actionProvider.setOnShareTargetSelectedListener(new
> ShareActionProvider.OnShareTargetSelectedListener() {
> @Override
> public boolean onShareTargetSelected(ShareActionProvider source,
> Intent intent) {
> intent.setType("text/plain");
> Bundle b = new Bundle();
> b.putString(Intent.EXTRA_TEXT, editor.getText().toString());
> intent.replaceExtras(b);
> return true;
> }
> });
>
> This code doesn't working. Please help me
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Jelly Bean: White background color is rendered as semi-transparent gray

2012-10-18 Thread Mark Murphy
On Thu, Oct 18, 2012 at 4:51 PM, Nobu Games  wrote:
> No matter what I tried: turning off hardware acceleration, removing the
> WebView, specifying "#" as background color everywhere: it does not
> work. The white background color is always rendered as some semi-transparent
> gray.

Try #FFFE or something like that. I seem to recall a bug from a
while back that had similar symptoms. Having something *just* off from
pure white worked, but pure white gave odd results.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: Large Database File

2012-10-18 Thread Mark Murphy
On Thu, Oct 18, 2012 at 4:39 PM, Nobu Games  wrote:
> For older Android versions there is an asset file size limit of about 1MB
> per asset file I believe.

Only for file extensions not known to be already compressed.

That's why SQLiteAssetHelper has you package the database in ZIP form:

https://github.com/jgilfelt/android-sqlite-asset-helper

The OP's bigger problem is that the Play Store only supports 50MB APK
files, last I checked, before you have to start getting into all the
expansion file stuff.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: How to get a button id from an app(I don't have the source)

2012-10-18 Thread Mark Murphy
On Thu, Oct 18, 2012 at 11:25 AM, $rik@nth  wrote:
> Hmm.. if i want to automate any preinstalled google app like gmail, google +
> etc.. is there a way to automate the tests?

Get a job at Google.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Want to distribute a application and manage unistallation of it remotely

2012-10-18 Thread Mark Murphy
On Thu, Oct 18, 2012 at 9:25 AM, Gautam Bisht  wrote:
> But how it is possible from google play. It do not ask for the user
> permission and uninstall the application you choose.

Yes, it does. When you tap on "Uninstall", it pops up a dialog: "Do
you want to uninstall this app?".

Besides, Google Play is a privileged app, tied more closely into the
OS than ordinary SDK apps can be.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Want to distribute a application and manage unistallation of it remotely

2012-10-18 Thread Mark Murphy
On Thu, Oct 18, 2012 at 8:55 AM, Gautam Bisht  wrote:
> I want to create a application for my employee which will be distributed
> from my server. I want a feature that once the employee leave the company i
> can remotely uninstall the application from his/her mobile.
> Is it possible in android??

Not really. You can *start* the uninstallation process via an
ACTION_UNINSTALL_PACKAGE Intent and startActivity(). However, the user
has to confirm the removal.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Messages are not receiving using GCM

2012-10-18 Thread Mark Murphy
I recommend the android-gcm Google Group for questions related to GCM.

On Thu, Oct 18, 2012 at 9:01 AM, Seshu  wrote:
> Hi all,
> I implemented GCM i.e., Google Cloud Messaging in my
> application. I got registration id and i sent to backend team.our
> backend team sending msg's to device. but i am not able to receive
> those messages. sday i received 2 messages out of 10. but 2day i
> didn't receive single message also. If any body knows the reason then
> plz tell 2 me... Please see my code attached here..
>
> public class GCMIntentService extends GCMBaseIntentService{
>
> public GCMIntentService(){
> super(Utils.GCMSenderId);
> }
>
> @Override
> protected void onError(Context context, String regId) {
> Log.e("", "error registration id : "+regId);
> }
>
> @Override
> protected void onMessage(Context context, Intent intent) {
> String message = intent.getStringExtra("message");
> Log.e("message  is", ""+message);
> }
>
> @Override
> protected void onRegistered(Context context, String regId) {
> handleRegistration(context, regId);
> }
>
> @Override
> protected void onUnregistered(Context context, String regId) {
>
> }
> }
>
> --
> 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



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] How to delete video from YouTube

2012-10-18 Thread Mark Murphy
This list is for developing applications with the Android SDK. For
YouTube support, please contact YouTube.

On Thu, Oct 18, 2012 at 8:30 AM, ravi .  wrote:
> Hi
> I had uploaded video from Android device to YouTube using YouTube Direct App
> for Android  . I want to know how to delete the uploaded video from YouTube.
>
> Thanks
>
> --
> 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



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: Changing a CharacterStyle

2012-10-18 Thread Mark Murphy
That's an interesting approach. I do not think that it will work in
all cases. If you poke around at the logic for rendering text in
TextView, you'll find a bunch of baked-in class references (e.g.,
getUrls() only uses UrlSpan, spell-check logic relies on
SuggestionSpan), meaning that creating your own equivalents would be
at least partially ignored by the rendering code. I'm glad to hear
that this works at least for foreground colors, though.

On Thu, Oct 18, 2012 at 8:05 AM, Jan Burse  wrote:
> Mark Murphy schrieb:
>
>> On Thu, Oct 18, 2012 at 5:35 AM, Jan Burse  wrote:
>>>
>>> How can I change the color?
>>
>>
>> Use getSpans(), find all occurrences of your span, remove the old
>> span, and replace it with a span with the new color.
>>
>> It's possible that there is a more efficient alternative than this,
>> but I am not aware of one.
>>
>
> I went for a custom class:
>
> public class MyForegroundColorSpan extends CharacterStyle
>implements UpdateAppearance {
> private int color;
>
> public int getForegroundColor() {
> return color;
> }
>
> public void setForegroundColor(int c) {
> color = c;
> }
>
> public void updateDrawState(TextPaint ds) {
> ds.setColor(color);
> }
>
> }
>
> Then using the setter and calling invalidate() on
> the text view works like a charm.
>
>
> Bye
>
> --
> 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



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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Changing a CharacterStyle

2012-10-18 Thread Mark Murphy
On Thu, Oct 18, 2012 at 5:35 AM, Jan Burse  wrote:
> How can I change the color?

Use getSpans(), find all occurrences of your span, remove the old
span, and replace it with a span with the new color.

It's possible that there is a more efficient alternative than this,
but I am not aware of one.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: Force open apk file with PackageManager, avoiding application selection

2012-10-17 Thread Mark Murphy
On Wed, Oct 17, 2012 at 8:00 AM, Pascal Ehlert  wrote:
> This has not solved my chooser issue however, as I could only use
> ACTION_VIEW due to my minapiversion (8).

You can use Build.VERSION.SDK_INT to conditionally use
ACTION_INSTALL_PACKAGE on API Level 14+.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: changed package name in manifest and now getting errors

2012-10-16 Thread Mark Murphy
On Tue, Oct 16, 2012 at 5:42 PM, John Merlino  wrote:
> I just want to be able to modify the manifest file so i dont have to
> change source but so that i can also upload this to android market.
> Currently I was forced to change package name and thats when errors
> begin occurring all over.

Then edit your manifest file to fully-qualify the package names for
your components.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] changed package name in manifest and now getting errors

2012-10-16 Thread Mark Murphy
You do not have a class named com.otl.AndroidRemoteApp1.SplashScreen,
apparently. Either refactor your source code to also be in
com.otl.AndroidRemoteApp1, or adjust your manifest to refer to your
components with a correct fully-qualified package name.

On Tue, Oct 16, 2012 at 5:15 PM, John Merlino  wrote:
>  I changed my package name in AndroidManifest.xml from
> com.otl.AndroidRemoteApp to  com.otl.AndroidRemoteApp1 because the
> original apk file is lost and I need to upload the app as new. And in
> order to do that I have to change the package name. Once I changed the
> package name, I get errors like this:
>
>
> 10-16 17:12:56.442: E/AndroidRuntime(620): java.lang.RuntimeException:
> Unable to instantiate activity ComponentInfo{com.otl.AndroidRemoteApp1/
> com.otl.AndroidRemoteApp1.SplashScreen}:
> java.lang.ClassNotFoundException:
> com.otl.AndroidRemoteApp1.SplashScreen
>
>
> any ideas?
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Bound services between two devices

2012-10-16 Thread Mark Murphy
On Tue, Oct 16, 2012 at 1:48 PM, Mario Denote  wrote:
> Thanks. So if I choose Internet do I use a socket or i can use other ?

First, bear in mind that you *really* do not want to be opening a
server socket unless you have a *lot* of security experience (or have
a very large legal defense fund). That, plus the fact that direct
device-to-device communications via TCP/IP will typically only work if
they are on the same WiFi segment, means that you are probably better
off using some sort of middleman. An example would be two devices
interacting with each other over XMPP by means of a Jabber server.

That being said, whether you use raw sockets, some protocol layered
over sockets (e.g., HTTP), or some protocol layered over another
protocol (e.g., XMPP), is up to you.

(and, for those who will be pedantic and say that HTTP also is layered
over another protocol, it's protocols all the way down! :-)

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Bound services between two devices

2012-10-16 Thread Mark Murphy
On Tue, Oct 16, 2012 at 11:04 AM, Mario Denote  wrote:
> I have to connect and exchange messages between two different android
> devices. I can use Bound services to perform IPC between two different
> devices?

No. IPC != RPC.

> If no what is the most appropriate technology I have to use?

SMS, or the Internet, or Bluetooth, or NFC (Android Beam,
specifically), or WiFi Direct.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Creating a Dialog Fragment - Very bad example on developer.android.com

2012-10-16 Thread Mark Murphy
Please report issues like this to http://b.android.com. Thanks!

On Tue, Oct 16, 2012 at 10:51 AM, Gergely Juhász  wrote:
> Hi!
>
> I just noticed a very bad example of using dialog fragments:
>
> http://developer.android.com/guide/topics/ui/dialogs.html#PassingEvents
>
> In the code snippet NoticeDialog holds a _static_ reference to
> NoticeDialogListener. This interface is implemented by an Activity.
> This can cause memory leaks (leaking Activity).
> The correct solution should use the Activity reference from onAttach
> just like here:
> http://developer.android.com/guide/components/fragments.html#EventCallbacks
>
> R
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Package Data in Database with App?

2012-10-16 Thread Mark Murphy
On Fri, Oct 12, 2012 at 5:33 AM, Jacob Ingvar Hansen
 wrote:
> Are there any progress on this ?
> (sorry for the thread revive)

Use SQLiteAssetHelper:

https://github.com/jgilfelt/android-sqlite-asset-helper

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Android APIMiner: Documenting the Android API with examples

2012-10-16 Thread Mark Murphy
Interesting concept!

Note that it crashes when trying to view android.content.Intent.

I am also not completely sure how you are choosing the lines of code
to display in the examples, but sometimes it is just one line of code
(e.g., dialog.dismiss(); as an example of how to call dismiss() on a
DialogInterface). If clicking "Full Code" would jump you to the line
in question, that would help us find context when none is shown on the
original screen.

Is this a short-term demo, or do you have plans to have this be hosted
and maintained over time?

Thanks!

On Mon, Oct 15, 2012 at 2:00 PM, João Eduardo Montandon
 wrote:
> Hi everyone,
>
> I would like to share with you a platform created as part of my Msc
> dissertation, called Android APIMiner:
>
> http://www.apiminer.org
>
> In a few words, Android APIMiner is a platform that provides a version
> of the Android API documentation enriched with thousands of real
> examples, extracted from open source applications (like Wordpress, ZXing
> Barcode Scanner, etc.).
>
> We are providing this alpha version so that the community can use and
> suggest improvements for the tool.
>
> With my best regards,
>
> João Eduardo Montandon
> Applied Software Engineering Group (ASERG)
> Computer Science Master Student at UFMG, Brazil
> http://dcc.ufmg.br/~joao.montandon
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Force open apk file with PackageManager, avoiding application selection

2012-10-16 Thread Mark Murphy
On Sat, Oct 13, 2012 at 2:16 PM, Pascal Ehlert  wrote:
> I am working on a non-market application that is used within our company.
> It has an updater that downloads apks from a web server and is supposed to
> install them.
>
> When I use the following code (tested on Android 4.0) to open the apk, I am
> presented with a selection of applications that can handle the specific
> content type ("application/vnd.android.package-archive"), among them being
> Dropbox and others:
>
> Intent intent = new Intent();
> intent.setDataAndType(Uri.fromFile(new File(path)),
> "application/vnd.android.package-archive");
> startActivity(intent);

I am surprised that Intent works at all, since you have no action. Use
ACTION_INSTALL_PACKAGE on API Level 14+ and ACTION_VIEW on API Level
13 and down.

As a side benefit, I suspect that this will clear up your chooser problem.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Programmatically configure an Android device as Hotspot.

2012-10-15 Thread Mark Murphy
On Mon, Oct 15, 2012 at 9:16 AM, Daniele Santanche
 wrote:
> Does android SDK provides API to configure an android device as an hotspot?

No, sorry.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Run the Service continuously even force close the app.

2012-10-15 Thread Mark Murphy
On Mon, Oct 15, 2012 at 6:49 AM, Seshu  wrote:
>  I have a requirement that i need to run the service
> continuously even if the user force close the app

Fortunately, as of Android 3.1, this is not possible. If the user goes
into Settings and clicks the Force Close button, nothing of your app
will ever run again, until (and unless) the user manually launches an
activity or other component of your app.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Android app google maps showing grey tiles and not map!

2012-10-12 Thread Mark Murphy
On Fri, Oct 12, 2012 at 7:11 PM, aek  wrote:
>   I wrote this snippet of program to illustrate google map example, the pb
> that happens is tha the google map shows up but empty (only tiles and no
> map)!

Either:

-- You did not request the INTERNET permission, or
-- Your device or emulator does not have Internet access (at least to
the Google Maps servers), or
-- Your API key is wrong

If your manifest is what is shown in your original post, your INTERNET
permission seems fine, so your issue would appear to lie with one of
the other two possibilities above.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] How to put GridView inside ScrollView

2012-10-12 Thread Mark Murphy
On Fri, Oct 12, 2012 at 8:33 AM, Dilip Kumar Chaudhary
 wrote:
> I have to design layout such that whole layout should scroll and inside
> layout I have to display related content in Grid form so I decided to use
> GridView.But problem is that I’m unable to use GridView inside ScrollView I
> have read documentation(Documentation also saying that we should not use
> GridView inside ScrollView) also.But I have to do this,so can any please
> give me some idea about this.Thanks

Replace your GridView with a GridLayout or TableLayout, perhaps.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Android GCM: delay in service

2012-10-12 Thread Mark Murphy
On Mon, Oct 8, 2012 at 9:33 AM, Aditya Adusumalli  wrote:
> Recently in one of our application we have noticed that the messages sent to
> GCM are getting delivered to the device with significant delay (atleast 10 -
> 15 mins).
>
> The observation is that the delay is occurring for Indian devices and not
> for US devices. Is this expected?

Please use the android-gcm Google Group for GCM questions.

> Secondly, if we take an enterprise account would there be any improvement in
> the delivery times? If yes, how better can it be?

There is no "enterprise account" for GCM AFAIK.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Screen dim events in android

2012-10-12 Thread Mark Murphy
On Thu, Oct 11, 2012 at 1:43 AM, Arun M R  wrote:
> Is there any methods to catch screen dim in android?

Not that I am aware of.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Use WebView as ViewGroup

2012-10-12 Thread Mark Murphy
On Thu, Oct 11, 2012 at 9:50 AM, traitree  wrote:
> Can I use a webview as a viewgroup.

No.

> I would like to have access to the html elements (button, text, link, ...)
> of the webview to remove or otherwise.

Do so from JavaScript within the Web page or injected via
loadUrl("javascript:..."); -- you have no access to the DOM from Java.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] How to track interaction with menu items created by ShareCompat.configureMenuItem?

2012-10-12 Thread Mark Murphy
On Sun, Oct 7, 2012 at 4:52 PM, Christopher Lichti
 wrote:
> I'm using ShareCompat.configureMenuItem this way:
> ShareCompat.configureMenuItem(menu, R.id.menu_share, shareIntentBuilder);
> ...and the sharing functionality totally works. :)  I just can't find a way
> to hook into this user interaction for tracking purposes.

Grab the source code for it, fork it, and add in your analytics.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Can I update my Galaxy S3 from ICS to Jelly bean?

2012-10-12 Thread Mark Murphy
This list is for developing applications with the Android SDK. It has
nothing to do with upgrading devices.

On Sun, Oct 7, 2012 at 7:04 AM, Sakada Sniper  wrote:
> In fact, I live in Cambodia and my S3 is unlocked.. Now I saw some  videos
> that show about Jelly Bean for S3... That's why I need to know when will I
> can update???
>
> Thx you..
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: Complexity of Doing a Theme.

2012-10-11 Thread Mark Murphy
On Thu, Oct 11, 2012 at 4:39 PM, Nathan  wrote:
> Therefore, when I run it on 4.0, the buttons, textboxes, spinners, etc all
> look like the Holo Theme.
> When I run it on 2.x, they don't. They follow a simple gray theme on Nexus
> One but can look different according to device.
>
> Based on what I see in ActionBarSherlock's files, this is to be expected.

More importantly, it's what users will expect. Users will expect a 2.x
theme on 2.x devices.

The action bar UI pattern predated Honeycomb, and so having apps with
action bars on 2.x is not unheard of. However, the Holo theme did not
predate Honeycomb, and so users of Android 2.x devices will not be
expecting some of the more substantive changes that Holo introduced
(e.g., EditText border), since few if any of their other apps will do
that.

Users want consistency between apps that the user uses -- that's part
of the reason why Theme.Holo vs. Theme.DeviceDefault was introduced.
Consistency between the app's UI on *different Android versions* is
not something most users seem to care about, simply it does not affect
them, since they usually only have one device.

All that being said, the HoloEverywhere project is attempting a theme
backport that may line up with what you are seeking:

https://github.com/ChristopheVersieux/HoloEverywhere

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Shared Preferences

2012-10-11 Thread Mark Murphy
On Thu, Oct 11, 2012 at 10:13 AM, Mario Bat  wrote:
> Hi, what is the difference betweent
> PreferenceManager.getDefaultSharedPreferences and
> getSahredPreferences(String name, int mode) ?

The first is the default (e.g., what PreferenceActivity will use). The
second uses a name that you supply.

> I thought that the defaultSharedPreferences are someting like global
> preferences that every application can manipulate.

No, all SharedPreferences are local to an app, by default.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] startActivityForResult() from service

2012-10-11 Thread Mark Murphy
On Thu, Oct 11, 2012 at 8:13 AM, Archana  wrote:
> Hi, I have defined a service.
>
> I need to call startActivityForResult(intent,REQUEST_CODE) from this.

That is not supported. IMHO, it does not even make any sense. Why do
you think that you "need" to do this?

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Adding more functionality to the notification bar

2012-10-11 Thread Mark Murphy
On Thu, Oct 11, 2012 at 6:19 AM, Ansh  wrote:
> I want to do something on the
> long press of the notification.
> How can i achieve the functionality.

This list is for developing apps with the Android SDK, and you cannot
"do something on the long press of the notification" via the Android
SDK, sorry.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: The package name of your apk is the same as the package name of another developer's application. Choose a new package name.

2012-10-09 Thread Mark Murphy
On Tue, Oct 9, 2012 at 3:03 PM, John Merlino  wrote:
> the play store supposedly transfered the app between the accounts but when I
> log into my account it still says "No applications uploaded" and when I
> tried toi upload the app again it gives same error "he package name of your
> apk is the same as the package name of another developer's application.
> Choose a new package name."

That's a question for the Play Store team -- they do not monitor this
list as far as we are aware.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] how to create a voice recorder using android

2012-10-09 Thread Mark Murphy
On Tue, Oct 9, 2012 at 8:29 AM, Tom  wrote:
> How to create a  voice recorder using android

Use MediaRecorder.

https://github.com/commonsguy/cw-omnibus/tree/master/Media/AudioRecording

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] GCM Push Notification on ICW and Jelly Bean

2012-10-09 Thread Mark Murphy
I suggest that you use the android-gcm Google Group for questions about GCM.

On Tue, Oct 9, 2012 at 4:19 AM, vinay kumar  wrote:
> Hi Everyone,
>
> I facing the issue with GCM push notification, for integrating push in my
> application I followed each and every step mentioned at
> http://developer.android.com/guide/google/gcm/index.html. It is working fine
> on 2.3 and 3.0 devices but on 4.0 and 4.1 I haven't received the push
> notification some times and some time after long waiting hours.
>
> Does any body has any idea why on 4.0 and 4.1 taking so long to receive the
> push. Please share your suggestion on this.
>
>
> Thank You.
>
> Regards
> Vinay Kumar
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: The package name of your apk is the same as the package name of another developer's application. Choose a new package name.

2012-10-08 Thread Mark Murphy
On Mon, Oct 8, 2012 at 6:07 PM, John Merlino  wrote:
> Here's the thing. It's the same application. Someone else had uploaded
> it using their google play account, but now I have an updated version
> that I want to upload using my google play account. So I just want to
> be able to upload it.

Have the "someone else" sign and upload it, as it is their app, from
the standpoint of the Play Store.

Reputedly, there is some process by which you can get the Play Store
folk to transfer an app between accounts, though I am not seeing a
mention of how to do that in the Play Store docs.

Regardless, once an app is on the Play Store, the Play Store account
and signing key must both match the original ones used with that
package. So, if you do not have the signing key from "someone else" or
cannot get "someone else" to arrange to transfer the app to your Play
Store account, you cannot publish an updated version of the app.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Timestamp of a file in internal memory(Android phone)

2012-10-08 Thread Mark Murphy
On Mon, Oct 8, 2012 at 8:01 AM, Archana  wrote:
> Hi, is there a way to get the timestamp of a file in the internal memory of
> phone?

java.io.File has methods for this (e.g., lastModified()).

> Or how do I compare latest of 2 files in 2 instances of the emulator?

Not by timestamp, as they may not be using the same clock. You will
need to compare the file lengths and, if equal, compare the file
contents.

Note that this has nothing in particular to do with Android -- this is
a generic Java programming issue.

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

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Custom array adapter issue

2012-10-05 Thread Mark Murphy
On Fri, Oct 5, 2012 at 8:29 AM, NikDmit  wrote:
> Is it a kind
> of library bug or something is really wrong with my code bellow?

Since view recycling has worked for all Android versions, for
thousands upon thousands of developers, for over four years, it is
likely to be something with your code.

There are countless code samples to work from for recycling. The
easiest thing is to not manage the recycling yourself, but to let your
superclass handle it, if you are extending something like
ArrayAdapter:

https://github.com/commonsguy/cw-omnibus/tree/master/Selection/Dynamic

The only reason why convertView will not have your desired widget is
if, in some previous getView() call, you returned a View that did not
contain that widget in the first place.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] How to cache google map tiles in latest api?

2012-10-05 Thread Mark Murphy
The documentation would appear to be incorrect. The Google Maps SDK
add-on does not support caching of map tiles at the present time. You
may wish to consider alternative mapping solutions, such as
OpenStreetMap via OSMDroid.

On Fri, Oct 5, 2012 at 12:30 AM, Vadim Osovskiy  wrote:
> When you go to main page for google maps android api please check first
> paragraph (quote below)
>
>> To make it easier for you to add powerful mapping capabilities to your
>> application, the Google APIs add-on includes a Maps external library,
>> com.google.android.maps. The classes of the Maps library offer built-in
>> downloading, rendering, and caching of Maps tiles, as well as a variety of
>> display options and controls.
>
>
> I am trying to make an application that will be used in areas that do not
> have access to internet and thus need cached map while out of service. The
> cache will be needed for 8 hours the most.
> Not sure where to go from here
>
> --
> 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: SecurityException: Given caller package com.android.settings is not running in process ProcessRecord

2012-10-04 Thread Mark Murphy
On Thu, Oct 4, 2012 at 5:46 AM, Charan  wrote:
> whats the alternatives for this now in ICS ?

You failed to provide an adequate definition of "this".

Assuming "this" is "embedding another app's activity in your own app",
that is still not supported.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] Re: SDK Manager doesn't show anything, only already installed packages

2012-10-04 Thread Mark Murphy
Clear your cache and reload. The clear-cache button is in Tools > Options
in the SDK Manager, and reloading is Packages > Reload in the SDK Manager.

On Thu, Oct 4, 2012 at 9:09 AM, Kurt Kincaid  wrote:

> Exactly the same situation here. Any thoughts or suggestions would be
> greatly appreciated.
>
> On Tuesday, August 14, 2012 3:43:18 AM UTC-5, Andre wrote:
>>
>> Hi everyone, since yesterday the SDK Manager doesn't show any updates or
>> packages other than what I have already installed.
>> I looked everywhere on Google and can't find one person in the same
>> situation. I don't get any error messages, the SDK Manager loads the
>> repository and then nothing shows up. I run the app as administrator and I
>> tried both fetching with http: and https:
>> Does anyone else have the same problem? Is this a known bug? I'm on
>> Windows 7 64bit but I don't think that matters cause everything was running
>> smoothly until yesterday.
>> If it helps, this is what I see:
>>
>>
>>  --
> 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




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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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] NEED HELP FOR INSTALL THE PLUGIN ADT ON ECLIPS

2012-10-04 Thread Mark Murphy
That is the repository for Eclipse Indigo. It is not the repository
for the ADT plugin. See:

http://developer.android.com/sdk/installing/installing-adt.html

On Thu, Oct 4, 2012 at 5:20 AM, AWAKA17  wrote:
> I HAVE A PROBKEM WHEN I TRY TO INSTALL THE ADT PLUGIN IN THE ECLIPS I TRIEN
> MANY URL'S AND ITS ALWAYS DONT WORK SHOW ME 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

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


<    1   2   3   4   5   6   7   8   9   10   >