Re: [android-developers] Re: My Newbie problem with compiling the HelloAndroid App

2011-12-05 Thread Mukesh Srivastav
Dude,

Very simple problem u have it. Please look at my below statment that would
help in resolving.

1. open the Activity ( I mean Java source code)

2. in your Java File, you might added the following import statment

import android.R;

3. Remove that import statment and add your package statment, see below

  import.helloworld.R --->  Example, you add your packagename.

-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Mon, Dec 5, 2011 at 1:05 PM, Droid  wrote:

> You have to right click on the project folder and then find "run"
> I think you are right clicking on R java or something.
>
> Its only the project file at the top that "runs"
>
> That's my guess.
>
> On Nov 29, 3:48 am, Jerry  wrote:
> > I have Eclipse Gallileo hosting Android 4.0 platform, running on WinOS
> > 7.  I am trying to write an app that will run on my HTC Desire.  The
> > Desire version is 2.2, and "no updates are available."  I can follow
> > the tutorial and run the programmed HelloAndroid app on the Desire,
> > but when I try to build the .xml layout, I can't compile.  The error
> > message says that "R.layout.main can't be run..." because the 4.0
> > platform either makes the use of the R.layout.main statement
> > impossible, or the fix requires some action on my part that is more
> > complicated than I can deal with.
> >
> > Can somebody either suggest a different tutorial app for a green
> > Android developer like myself, or, somehow, help me get past this
> > problem in the HelloAndroid tutorial?
> >
> > Thanks for any help.
> >
> > Jerry
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Saied
Now I learn that the .txt asset files get compressed, and openAssetFd
fails on compressed files!

Wow.

is there a workaround for this?

I just changed the extension to .jpg and it worked, but that's UGLY.

Any thoughts?

Thanks.


On Dec 4, 11:52 pm, Saied  wrote:
> I spoke too soon.
> It works ONCE and then it
>
> 12-04 22:38:05.330: WARN/System.err(763):
> java.io.FileNotFoundException: This file can not be opened as a file
> descriptor; it is probably compressed
>
> This is the routine in the Content Provider:
>
> @Override
> public AssetFileDescriptor openAssetFile(Uri uri, String mode) {
>                 String fileName = "asset_text.txt";
>                 AssetManager assetManager = this.getContext().getAssets();
>                 AssetFileDescriptor afd = null ;
>                 try {
>                         afd = assetManager.openFd(fileName);
>                 } catch (IOException e) {
>                         // TODO Auto-generated catch block
>                         e.printStackTrace();
>                 }
>                 return afd;
>         }
>
> What I don't understand is why did it work once and no more? The file
> is still there, intact. Does it get compressed on the device? How can
> I read it reliably?
>
> Thanks.
>
> On Dec 4, 3:02 pm, Saied  wrote:
>
>
>
>
>
>
>
> > wow. that was dumb of me!! Thanks for pointing it out.
>
> > so I changed it to:
>
> > @Override
> >         public AssetFileDescriptor openAssetFile(Uri uri, String mode) {
> >                 String fileName = "asset_text_orig.txt";       // 
> > hardcoding the
> > file name for now
>
> >                 AssetManager assetManager = getAssets();
> >                 AssetFileDescriptor afd = assetManager.openFd(fileName);
> >                 return afd;
> >         }
>
> > and it WORKS!!
>
> > Thank you VERY much for your help and indulgence!
>
> > On Dec 4, 2:09 pm, skink  wrote:
>
> > > Saied wrote:
> > > > Thanks again!
>
> > > > Actually, this seems to be working on the ContentProvider now:
>
> > > > public AssetFileDescriptor openAssetFile(Uri uri, String mode) {
> > > >            String fileName = "asset_text_orig.txt";
> > > >            URI uri1 = URI.create(fileName);
> > > >            AssetFileDescriptor parcel =  this.openAssetFile(uri1, 
> > > > mode);  //
> > > > for testing purposes, I hardwired this to uri1 >
> > > > "asset_text_orig.txt";
> > > >            return parcel;
> > > >    }
>
> > > it will not work since you call openAssetFile recursively and you will
> > > get stack overflow error
>
> > > > Now, how do I read this from an app?
>
> > > >            String packageName = "com.example.text.cp";
> > > >            FileInputStream fstream = new FileInputStream("content://" +
> > > > packageName); // there is only one kind of file exposed
> > > >    DataInputStream in = new DataInputStream(fstream);
> > > >    BufferedReader br = new BufferedReader(new InputStreamReader(in));
> > > >    String strLine = br.readLine();
>
> > > >    ...
>
> > > > Or should I include openAssetFile(Uri uri, String mode) at the end of
> > > > the uri goint to FileInputStream?
>
> > > > Thank you very much for your help so far.
>
> > > seehttp://developer.android.com/guide/topics/providers/content-providers...
>
> > > pskink

-- 
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 READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Nikolay Elenkov
On Mon, Dec 5, 2011 at 5:06 PM, Saied  wrote:
> Now I learn that the .txt asset files get compressed, and openAssetFd
> fails on compressed files!
>
> Wow.
>
> is there a workaround for this?
>
> I just changed the extension to .jpg and it worked, but that's UGLY.
>

If you store it as a raw resource instead of an asset, it won't get
compressed. I *think* there is a sample on how to this from a CP
in the SDK sample code, but not 100% sure.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Not able to get full App logs

2011-12-05 Thread Neel Singh
I am not able to get full App log for an application(In fact any 
application), based on Android 2.2 SDK, after updating ADT and SDK 
recently. Its not working even after setting the log level to VERBOSE.

Eclipse   : Helios
Android SDK  API   : 2.2
Android SDK Tools  : 15
Android SDK Platform Tools : 9
ADT   : 15.0.0

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Using Spinner as a Button.

2011-12-05 Thread Pocket
Thank you all! I'll try to change button style.

On 12月2日, 午前4:36, TreKing  wrote:
> On Thu, Dec 1, 2011 at 4:27 AM, Pocket  wrote:
> > But I want to use Spinner just as a Button.
>
> And you don't just use a Button because ... ?
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Saied
Thanks. I'll look!

On Dec 5, 12:24 am, Nikolay Elenkov  wrote:
> On Mon, Dec 5, 2011 at 5:06 PM, Saied  wrote:
> > Now I learn that the .txt asset files get compressed, and openAssetFd
> > fails on compressed files!
>
> > Wow.
>
> > is there a workaround for this?
>
> > I just changed the extension to .jpg and it worked, but that's UGLY.
>
> If you store it as a raw resource instead of an asset, it won't get
> compressed. I *think* there is a sample on how to this from a CP
> in the SDK sample code, but not 100% sure.

-- 
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: Not able to get full App logs

2011-12-05 Thread Mukesh Srivastav
1. Close the emulator.

2. Got to ADB, Delete the existing emulator

3.Create a New Emulator.

4.Restart the Eclipse... (Please try this step first, if  you still not
able to see the logs, then do the above four steps).

-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Mon, Dec 5, 2011 at 2:03 PM, Neel Singh  wrote:

> I am not able to get full App log for an application(In fact any
> application), based on Android 2.2 SDK, after updating ADT and SDK
> recently. Its not working even after setting the log level to VERBOSE.
>
> Eclipse   : Helios
> Android SDK  API   : 2.2
> Android SDK Tools  : 15
> Android SDK Platform Tools : 9
> ADT   : 15.0.0
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-05 Thread MarkG123
Database opens just fine in the windows sqlite3.exe application, I can
view the tables.

The full callstack:

12-04 19:51:12.665: I/Database(842): sqlite returned: error code = 8,
msg = prepared statement aborts at 37: [CREATE TABLE IF NOT EXISTS
android_metadata (locale TEXT)]
12-04 19:51:12.665: E/Database(842): CREATE TABLE android_metadata
failed
12-04 19:51:12.795: E/Database(842): Failed to setLocale() when
constructing, closing the database
12-04 19:51:12.795: E/Database(842):
android.database.sqlite.SQLiteException: attempt to write a readonly
database
12-04 19:51:12.795: E/Database(842):at
android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
12-04 19:51:12.795: E/Database(842):at
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
1967)
12-04 19:51:12.795: E/Database(842):at
android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:
1835)
12-04 19:51:12.795: E/Database(842):at
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
820)
12-04 19:51:12.795: E/Database(842):at
com.mg.keas.DatabaseHelper.(DatabaseHelper.java:29)
12-04 19:51:12.795: E/Database(842):at
com.mg.keas.KDEASButtonActivity.onCreate(KDEASButtonActivity.java:28)
12-04 19:51:12.795: E/Database(842):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
12-04 19:51:12.795: E/Database(842):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1586)
12-04 19:51:12.795: E/Database(842):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1638)
12-04 19:51:12.795: E/Database(842):at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
12-04 19:51:12.795: E/Database(842):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:928)
12-04 19:51:12.795: E/Database(842):at
android.os.Handler.dispatchMessage(Handler.java:99)
12-04 19:51:12.795: E/Database(842):at
android.os.Looper.loop(Looper.java:123)
12-04 19:51:12.795: E/Database(842):at
android.app.ActivityThread.main(ActivityThread.java:3647)
12-04 19:51:12.795: E/Database(842):at
java.lang.reflect.Method.invokeNative(Native Method)
12-04 19:51:12.795: E/Database(842):at
java.lang.reflect.Method.invoke(Method.java:507)
12-04 19:51:12.795: E/Database(842):at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
12-04 19:51:12.795: E/Database(842):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
12-04 19:51:12.795: E/Database(842):at
dalvik.system.NativeStart.main(Native Method)

-- 
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] Reg: Crash in the native while allocating memory

2011-12-05 Thread Aluvala Suman
Hi All,

I am facing a crash issue while trying to allocate a dynamic memory of size
1150 bytes in the android native.
Its crashing in-consistently at malloc() function in the android native and
some times at free().

The native code which I am using is fully developed and tested (using
purify) as well.
I am trying to port that code (in c) to Android.

I have already posted this in stackoverflow (Link for stackoverflow
post).
But I didn't got any answer from any one.
Do I need to set any flags specially for andorid-ndk?

I am using r7 NDK.
Android 2.3.3 API Level 10 Emulator.

Please help me in resolving the same.

Thanks & Regards,
SSuman185

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: User cannot install an update

2011-12-05 Thread mot12
There may be a permission problem so the userID given to the app does
not match the userID of the app data directory. If your user has root,
tell him/her to delete the directory /data/data/com.yournamespace...
Then reinstall the app.

Unfortuantely, only root can do this. Uninstalling the app should
delete the app directory but doesn't sometimes if there's a permission
problem.

-- Martin
mobitobi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Saied
It turns out that raw resources are also compressed, and therefore
unreadable with openRawResourceFd(raw.test);

Is there a sure way to prevent this?

On Dec 5, 12:24 am, Nikolay Elenkov  wrote:
> On Mon, Dec 5, 2011 at 5:06 PM, Saied  wrote:
> > Now I learn that the .txt asset files get compressed, and openAssetFd
> > fails on compressed files!
>
> > Wow.
>
> > is there a workaround for this?
>
> > I just changed the extension to .jpg and it worked, but that's UGLY.
>
> If you store it as a raw resource instead of an asset, it won't get
> compressed. I *think* there is a sample on how to this from a CP
> in the SDK sample code, but not 100% sure.

-- 
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] Android TileMode REPEAT on Background image stops working

2011-12-05 Thread Jason
I'm having some problems with programmatically setting the background
image to tile on a LinearLayout on Android.

I've posted a bug report (http://code.google.com/p/android/issues/
detail?id=22541), along with an example project but I'm wondering if
anyone's seen this before and has a workaround?

-- 
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: Problems reading/writing to SQLite db on SD card.

2011-12-05 Thread Nikolay Elenkov
On Mon, Dec 5, 2011 at 5:50 PM, MarkG123  wrote:
>
> The full callstack:
>
> 12-04 19:51:12.665: I/Database(842): sqlite returned: error code = 8,
> msg = prepared statement aborts at 37: [CREATE TABLE IF NOT EXISTS
> android_metadata (locale TEXT)]
> 12-04 19:51:12.665: E/Database(842): CREATE TABLE android_metadata
> failed
> 12-04 19:51:12.795: E/Database(842): Failed to setLocale() when
> constructing, closing the database
> 12-04 19:51:12.795: E/Database(842):
> android.database.sqlite.SQLiteException: attempt to write a readonly
> database

Well, you are opening in READWRITE mode, and it tries to create a
table. If it's not your own DB, open it in READONLY mode.

-- 
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 READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread Nikolay Elenkov
On Mon, Dec 5, 2011 at 6:01 PM, Saied  wrote:
> It turns out that raw resources are also compressed, and therefore
> unreadable with openRawResourceFd(raw.test);
>
> Is there a sure way to prevent this?
>

If you mean compressing resources, the only thing I've seen used
is changing the extension. You might want to check the source
for details. BTW, are your resources that big? Why not just return
them as byte blobs?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SurfaceHolder.Callback.surfaceCreated not being triggered when surface is re-created

2011-12-05 Thread Thomas Fjellstrom
So I've managed to fix that particular problem. I'm not sure exactly
what fixed it, but I assume it was a result of a couple different
problems. I needed to set the manifest to only ever launch one
instance at a time (I was seeing more than one activity object be
created which messed things up). And I can't remember the second issue
at the moment for some reason. I fixed up a lot of different issues
trying to figure things out. It's not locking up anymore or waiting
for an event that never comes, but on a resume, its not rendering
anything any more. I am completely re-creating the SurfaceView and the
GL ES context, and surface, with the same code that creates it the
first time. things should be identical, but all I get is a black
screen (instead of the white that I'm clearing it to). I'm getting
input just fine, the rendering thread isn't locked up or anything, but
nothing will draw once the app is restarted.

Anyone have any idea what would cause this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Video view youtube

2011-12-05 Thread ANKUR GOEL
Hi all ,

i am having activity .on which in small part i have video view i want
to show yputuve page on that the video i will play ..

my video is playing fine ,,,but i want to show the youtube video picture on
that small layout and on click of that play video ...


i am not able to show picture of that video in that layout ..


please help.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: speech recording

2011-12-05 Thread rachana govilkar
hey hi
even i am facing d same problem
code am writing to capture audio is given in android guide itself
check this link   
http://developer.android.com/guide/topics/media/audio-capture.html

but it is giving me error for prepare method in StartRecording()
LogCat is:

12-05 16:11:39.442: ERROR/AudioRecordTest(309): prepare() failed
12-05 16:11:39.442: ERROR/MediaRecorder(309): start called in an
invalid state: 4
12-05 16:11:39.512: DEBUG/AndroidRuntime(309): Shutting down VM
12-05 16:11:39.512: WARN/dalvikvm(309): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): FATAL EXCEPTION: main
12-05 16:11:39.722: ERROR/AndroidRuntime(309):
java.lang.IllegalStateException
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
android.media.MediaRecorder.start(Native Method)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
com.privacygram.activity.AudioCapturing.startRecording(AudioCapturing.java:
74)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
com.privacygram.activity.AudioCapturing.onRecord(AudioCapturing.java:
30)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
com.privacygram.activity.AudioCapturing.access$0(AudioCapturing.java:
28)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
com.privacygram.activity.AudioCapturing$RecordButton
$1.onClick(AudioCapturing.java:88)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
android.view.View.performClick(View.java:2408)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at android.view.View
$PerformClick.run(View.java:8816)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
android.os.Handler.handleCallback(Handler.java:587)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
android.os.Handler.dispatchMessage(Handler.java:92)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
android.os.Looper.loop(Looper.java:123)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
android.app.ActivityThread.main(ActivityThread.java:4627)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
java.lang.reflect.Method.invokeNative(Native Method)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
java.lang.reflect.Method.invoke(Method.java:521)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
dalvik.system.NativeStart.main(Native Method)

i have written all permissions in manifest.xml
can u plz help me wat am i supposed to do??
thnk u


On Nov 3, 2:47 am, Mike  wrote:
> you need at least these permissions in your AndroidManifest file
>
>          android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
>         
>
> On Nov 2, 7:09 am, ktuluceng  wrote:
>
>
>
>
>
>
>
> > 11-02 11:55:39.647: W/System.err(557): java.io.FileNotFoundException: /
> > mnt/sdcard/gpp/record1.3gp (Permission denied)

-- 
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: speech recording

2011-12-05 Thread Raghav Sood
I'd say that your error is coming from one of lines 74, 30, 28 or 88. At
least that's what the LogCat says. If you look closer, you will notice that
your prepare() method has failed to work and has given you an exception.

12-05 16:11:39.442: ERROR/AudioRecordTest(309): prepare() failed
> 12-05 16:11:39.442: ERROR/MediaRecorder(309): start called in an
> invalid state: 4
> 12-05 16:11:39.512: DEBUG/AndroidRuntime(309): Shutting down VM
> 12-05 16:11:39.512: WARN/dalvikvm(309): threadid=1: thread exiting
> with uncaught exception (group=0x4001d800)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): FATAL EXCEPTION: main
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):
> java.lang.IllegalStateException
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> android.media.MediaRecorder.start(Native Method)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> com.privacygram.activity.AudioCapturing.startRecording(AudioCapturing.java:
> 74)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> com.privacygram.activity.AudioCapturing.onRecord(AudioCapturing.java:
> 30)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> com.privacygram.activity.AudioCapturing.access$0(AudioCapturing.java:
> 28)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> com.privacygram.activity.AudioCapturing$RecordButton
> $1.onClick(AudioCapturing.java:88)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> android.view.View.performClick(View.java:2408)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at android.view.View
> $PerformClick.run(View.java:8816)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> android.os.Handler.handleCallback(Handler.java:587)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> android.os.Handler.dispatchMessage(Handler.java:92)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> android.os.Looper.loop(Looper.java:123)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> java.lang.reflect.Method.invoke(Method.java:521)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:868)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): at
> dalvik.system.NativeStart.main(Native Method)



> i have written all permissions in manifest.xml
> can u plz help me wat am i supposed to do??
> thnk u


You should also checkout this book. It will help you in life:
http://www.amazon.com/Little-Oxford-English-Dictionary-Eighth/dp/0198604521

Thanks

-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
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] Cocos2d Game Lost Focus When we click Volume Up or Volume Down Button On Motorola xoom

2011-12-05 Thread vimal
I am developing a game using Cocos2d FrameWork in Android.

i encountered a problem while testing on Motorola Xoom.

What I want to do :-

When User pressed Volume up and Volume down Button All the Animation
should play with sound .

But What actually Happened:-

when i pressed volume up down button on Motorola Xoom than My Game
Lost Focus and all Animation Paused but sound is playing according to
the volume button settings.

This is only when i test my Application in Honey Comb OS.

I am using onWindowFocusChanged method to Resume Game Play.

anyone having encounter this type of problem ?

Please let me know if anyone have solution for this .

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


[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-05 Thread skink


Saied wrote:
> Now I learn that the .txt asset files get compressed, and openAssetFd
> fails on compressed files!
>
> Wow.
>
> is there a workaround for this?
>
> I just changed the extension to .jpg and it worked, but that's UGLY.
>
> Any thoughts?
>
> Thanks.
>
>


is asset _text.txt bigger than 1MB?

if so try to split it into chunks smaller than 1MB and see what
happens

pskink

-- 
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] 2.3.4 - Animation is working on the emulator but not on real device

2011-12-05 Thread Harald
Hi,

I spent a lot of time to create a nice animation to slide from one
activity to the next an back. The animation is working on the
emulator. The emulator has the same android release as my phone. But
on my phone, the animation does not work.

Does someone know a possible reason?

Phone: Huawei Sonic (U8650)

Regards
Harald

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: problem parsing the package

2011-12-05 Thread rachana govilkar
hello...
y anybody is not replying on this thread???
anywys plz help this time.am just stuck up at audio recording
i just wrote this program given in android guide..
http://developer.android.com/guide/topics/media/audio-capture.html
but getting error as prepare() is failed..
this error is killing me. plzzz help.

On Dec 1, 5:09 pm, rachana govilkar 
wrote:
> hey now am capturing video n getting same error..
> Unable to instantiate activity ComponentInfo{com.privacygram.activity/
> com.privacygram.activity.VideoCapture}:
> java.lang.InstantiationException:
> com.privacygram.activity.VideoCapture
> plz help me...
>
> On Nov 30, 4:41 pm, rachana govilkar 
> wrote:
>
>
>
>
>
>
>
> > hey now i hav a problem working on Create Contact.i 
> > usedhttp://developer.android.com/guide/topics/providers/content-providers...
> > this link
> > but as per given there i could create contact statically
> > but i need to create dynamically as android built-in create contact
> > functionality
> > n also tell me when u save the contact u do save it in Database or
> > smthing else??
> > any help is appreciated.
>
> > On Nov 29, 5:10 pm, rachana govilkar 
> > wrote:
>
> > > Hey Its Working...
> > > yaaay!
> > > i knw it must hv been very simple for u but for me its a start
> > > 1st android program n exception was comingu can guess how sick i
> > > was feeling...
> > > but no more sick now
> > > i just need to focus more on itthnk u for help
>
> > > On Nov 29, 4:08 pm, rachana govilkar 
> > > wrote:
>
> > > > above described was 1 way i tried.
> > > > it was to develop customized camera feature as given in Android guide/
> > > > camera...
> > > > i also tried another way of using existing camera feature but am
> > > > getting NullPointerException
> > > > can u tel where am going wrong??
>
> > > > On Nov 29, 10:13 am, rachana govilkar 
> > > > wrote:
>
> > > > > hey this is my ImageCapture.java..hope u get idea.
>
> > > > > package com.privacygram.activity;
>
> > > > > import android.content.Context;
> > > > > import android.graphics.PixelFormat;
> > > > > import android.hardware.Camera;
> > > > > import android.hardware.Camera.Parameters;
> > > > > import android.hardware.Camera.PictureCallback;
> > > > > import android.hardware.Camera.ShutterCallback;
> > > > > import android.view.SurfaceHolder;
> > > > > import android.view.SurfaceView;
>
> > > > > public class ImageCapture extends SurfaceView{
>
> > > > >         SurfaceHolder previewHolder;
> > > > >         Camera camera;
> > > > >         protected PictureCallback raw;
> > > > >         protected ShutterCallback shutter;
> > > > >         protected PictureCallback postview;
> > > > >         protected PictureCallback jpeg;
>
> > > > >         public ImageCapture(Context context) {
> > > > >                 super(context);
> > > > >                 // TODO Auto-generated constructor stub
> > > > >                 previewHolder = this.getHolder();
>
> > > > >                 
> > > > > previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
> > > > >                  previewHolder.addCallback(surfaceHolderListener);
> > > > >         }
>
> > > > >         SurfaceHolder.Callback surfaceHolderListener = new
> > > > >         SurfaceHolder.Callback()
> > > > >                 {
> > > > >                    public void surfaceCreated(SurfaceHolder holder)
> > > > >                    {
> > > > >                            camera=Camera.open();
> > > > >                            try {
> > > > >                            camera.setPreviewDisplay(previewHolder);
> > > > >                            }catch (Exception E ){ }
> > > > >                    }
> > > > >                    public void surfaceDestroyed(SurfaceHolder arg0)
> > > > >                    {
> > > > >                            camera.stopPreview();
> > > > >                            camera.release();
> > > > >                    }
> > > > >                    public void surfaceChanged(SurfaceHolder holder, 
> > > > > int
> > > > > format,
> > > > >         int width, int height)
> > > > >                    {
> > > > >                            Parameters params = camera.getParameters();
> > > > >                            params.setPreviewSize(width, height);
> > > > >                            params.setPictureFormat(PixelFormat.JPEG);
> > > > >                            camera.setParameters(params);
> > > > >                            camera.startPreview();
>
> > > > >                            camera.takePicture(shutter, raw, postview, 
> > > > > jpeg);
> > > > >                            camera.stopPreview();
> > > > >                            camera.release();
> > > > >                    }
> > > > >                 };
>
> > > > > }
>
> > > > > On Nov 28, 6:23 pm, Mark Murphy  wrote:
>
> > > > > > InstantiationException can mean that the activity class is not 
> > > > > > public

[android-developers] Alarm manager problem

2011-12-05 Thread Hassy
I'm creating an alarm application and I already created the basic
alarm activity
and receiver class.now I want to repeat the alarm on specific day of
week.

I set DAY_OF_WEEK to 1 to set the alarm repeat on sunday but it
doesn't work.

  Calendar calendar = Calendar.getInstance()
  calendar.set(calendar.DAY_OF_WEEK, 1);
  calendar.set(calendar.HOUR_OF_DAY, sHour);
  calendar.set(calendar.MINUTE, sMin);
  calendar.set(calendar.SECOND, 0);
  calendar.set(calendar.MILLISECOND, 0);

Please tell me how to set the alam on specific day.


Thank you
Hassy

-- 
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: problem parsing the package

2011-12-05 Thread Mukesh Srivastav
Rachna,

Please call the unlock method immediate after preview display,that helps.


-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Mon, Dec 5, 2011 at 5:38 PM, rachana govilkar  wrote:

> hello...
> y anybody is not replying on this thread???
> anywys plz help this time.am just stuck up at audio recording
> i just wrote this program given in android guide..
> http://developer.android.com/guide/topics/media/audio-capture.html
> but getting error as prepare() is failed..
> this error is killing me. plzzz help.
>
> On Dec 1, 5:09 pm, rachana govilkar 
> wrote:
> > hey now am capturing video n getting same error..
> > Unable to instantiate activity ComponentInfo{com.privacygram.activity/
> > com.privacygram.activity.VideoCapture}:
> > java.lang.InstantiationException:
> > com.privacygram.activity.VideoCapture
> > plz help me...
> >
> > On Nov 30, 4:41 pm, rachana govilkar 
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > > hey now i hav a problem working on Create Contact.i usedhttp://
> developer.android.com/guide/topics/providers/content-providers...
> > > this link
> > > but as per given there i could create contact statically
> > > but i need to create dynamically as android built-in create contact
> > > functionality
> > > n also tell me when u save the contact u do save it in Database or
> > > smthing else??
> > > any help is appreciated.
> >
> > > On Nov 29, 5:10 pm, rachana govilkar 
> > > wrote:
> >
> > > > Hey Its Working...
> > > > yaaay!
> > > > i knw it must hv been very simple for u but for me its a start
> > > > 1st android program n exception was comingu can guess how sick i
> > > > was feeling...
> > > > but no more sick now
> > > > i just need to focus more on itthnk u for help
> >
> > > > On Nov 29, 4:08 pm, rachana govilkar 
> > > > wrote:
> >
> > > > > above described was 1 way i tried.
> > > > > it was to develop customized camera feature as given in Android
> guide/
> > > > > camera...
> > > > > i also tried another way of using existing camera feature but am
> > > > > getting NullPointerException
> > > > > can u tel where am going wrong??
> >
> > > > > On Nov 29, 10:13 am, rachana govilkar 
> > > > > wrote:
> >
> > > > > > hey this is my ImageCapture.java..hope u get idea.
> >
> > > > > > package com.privacygram.activity;
> >
> > > > > > import android.content.Context;
> > > > > > import android.graphics.PixelFormat;
> > > > > > import android.hardware.Camera;
> > > > > > import android.hardware.Camera.Parameters;
> > > > > > import android.hardware.Camera.PictureCallback;
> > > > > > import android.hardware.Camera.ShutterCallback;
> > > > > > import android.view.SurfaceHolder;
> > > > > > import android.view.SurfaceView;
> >
> > > > > > public class ImageCapture extends SurfaceView{
> >
> > > > > > SurfaceHolder previewHolder;
> > > > > > Camera camera;
> > > > > > protected PictureCallback raw;
> > > > > > protected ShutterCallback shutter;
> > > > > > protected PictureCallback postview;
> > > > > > protected PictureCallback jpeg;
> >
> > > > > > public ImageCapture(Context context) {
> > > > > > super(context);
> > > > > > // TODO Auto-generated constructor stub
> > > > > > previewHolder = this.getHolder();
> >
> > > > > >
> previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
> > > > > >
>  previewHolder.addCallback(surfaceHolderListener);
> > > > > > }
> >
> > > > > > SurfaceHolder.Callback surfaceHolderListener = new
> > > > > > SurfaceHolder.Callback()
> > > > > > {
> > > > > >public void surfaceCreated(SurfaceHolder
> holder)
> > > > > >{
> > > > > >camera=Camera.open();
> > > > > >try {
> > > > > >
>  camera.setPreviewDisplay(previewHolder);
>



> > > > > >}catch (Exception E ){ }
> > > > > >}
> > > > > >public void surfaceDestroyed(SurfaceHolder
> arg0)
> > > > > >{
> > > > > >camera.stopPreview();
> > > > > >camera.release();
> > > > > >}
> > > > > >public void surfaceChanged(SurfaceHolder
> holder, int
> > > > > > format,
> > > > > > int width, int height)
> > > > > >{
> > > > > >Parameters params =
> camera.getParameters();
> > > > > >params.setPreviewSize(width, height);
> > > > > >
>  params.setPictureFormat(PixelFormat.JPEG);
> > > > > >camera.setParameters(params);
> > > > > >camera.startPreview();
> >
> > > > > >camera.takePicture(shutt

[android-developers] Re: speech recording

2011-12-05 Thread rachana govilkar
yes thank u for quick reply :)
coz i did mention this question on my thread also.
n yes it is giving me exceptionIllegalStateException
but y so??
i mean i have just wrote program same as provided on d link
my program is...

package com.privacygram.activity;

import java.io.IOException;

import android.app.Activity;
import android.content.Context;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;

public class AudioCapturing extends Activity{

 private static final String LOG_TAG = "AudioRecordTest";
private static String mFileName = null;

private RecordButton mRecordButton = null;
private MediaRecorder mRecorder = null;

private PlayButton   mPlayButton = null;
private MediaPlayer   mPlayer = null;

private void onRecord(boolean start) {
if (start) {
startRecording();
} else {
stopRecording();
}
}

private void onPlay(boolean start) {
if (start) {
startPlaying();
} else {
stopPlaying();
}
}

private void startPlaying() {
mPlayer = new MediaPlayer();
try {
mPlayer.setDataSource(mFileName);
mPlayer.prepare();
mPlayer.start();
} catch (IOException e) {
Log.e(LOG_TAG, "prepare() failed");
}
}

private void stopPlaying() {
mPlayer.release();
mPlayer = null;
}

private void startRecording() {
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);

mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(mFileName);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

try {
mRecorder.prepare();

} catch (IOException e) {
Log.e(LOG_TAG, "prepare() failed");

} catch (Exception e) {
// TODO: handle exception
 Log.e(LOG_TAG, "prepare() failed");
}

mRecorder.start();
}

private void stopRecording() {
mRecorder.stop();
mRecorder.release();
mRecorder = null;
}

class RecordButton extends Button {
boolean mStartRecording = true;

OnClickListener clicker = new OnClickListener() {
public void onClick(View v) {
onRecord(mStartRecording);
if (mStartRecording) {
setText("Stop recording");
} else {
setText("Start recording");
}
mStartRecording = !mStartRecording;
}
};

public RecordButton(Context ctx) {
super(ctx);
setText("Start recording");
setOnClickListener(clicker);
}
}

class PlayButton extends Button {
boolean mStartPlaying = true;

OnClickListener clicker = new OnClickListener() {
public void onClick(View v) {
onPlay(mStartPlaying);
if (mStartPlaying) {
setText("Stop playing");
} else {
setText("Start playing");
}
mStartPlaying = !mStartPlaying;
}
};

public PlayButton(Context ctx) {
super(ctx);
setText("Start playing");
setOnClickListener(clicker);
}
}

public AudioCapturing() {
Log.d("state is:",Environment.getExternalStorageState());
mFileName =
Environment.getExternalStorageDirectory().getAbsolutePath();
mFileName += "/audiorecordtest.3gp";

//mFileName =
"android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI";
}


public void onCreate(Bundle icicle) {
super.onCreate(icicle);

LinearLayout ll = new LinearLayout(this);
mRecordButton = new RecordButton(

[android-developers] Re: speech recording

2011-12-05 Thread rachana govilkar
n sorry for bad english.

On Dec 5, 5:25 pm, rachana govilkar 
wrote:
> yes thank u for quick reply :)
> coz i did mention this question on my thread also.
> n yes it is giving me exceptionIllegalStateException
> but y so??
> i mean i have just wrote program same as provided on d link
> my program is...
>
> package com.privacygram.activity;
>
> import java.io.IOException;
>
> import android.app.Activity;
> import android.content.Context;
> import android.media.MediaPlayer;
> import android.media.MediaRecorder;
> import android.os.Bundle;
> import android.os.Environment;
> import android.util.Log;
> import android.view.View;
> import android.view.ViewGroup;
> import android.widget.Button;
> import android.widget.LinearLayout;
>
> public class AudioCapturing extends Activity{
>
>          private static final String LOG_TAG = "AudioRecordTest";
>             private static String mFileName = null;
>
>             private RecordButton mRecordButton = null;
>             private MediaRecorder mRecorder = null;
>
>             private PlayButton   mPlayButton = null;
>             private MediaPlayer   mPlayer = null;
>
>             private void onRecord(boolean start) {
>                 if (start) {
>                     startRecording();
>                 } else {
>                     stopRecording();
>                 }
>             }
>
>             private void onPlay(boolean start) {
>                 if (start) {
>                     startPlaying();
>                 } else {
>                     stopPlaying();
>                 }
>             }
>
>             private void startPlaying() {
>                 mPlayer = new MediaPlayer();
>                 try {
>                     mPlayer.setDataSource(mFileName);
>                     mPlayer.prepare();
>                     mPlayer.start();
>                 } catch (IOException e) {
>                     Log.e(LOG_TAG, "prepare() failed");
>                 }
>             }
>
>             private void stopPlaying() {
>                 mPlayer.release();
>                 mPlayer = null;
>             }
>
>             private void startRecording() {
>                 mRecorder = new MediaRecorder();
>                 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
>
> mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
>                 mRecorder.setOutputFile(mFileName);
>                 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
>
>                 try {
>                     mRecorder.prepare();
>
>                 } catch (IOException e) {
>                     Log.e(LOG_TAG, "prepare() failed");
>
>                 } catch (Exception e) {
>                                 // TODO: handle exception
>                          Log.e(LOG_TAG, "prepare() failed");
>                         }
>
>                 mRecorder.start();
>             }
>
>             private void stopRecording() {
>                 mRecorder.stop();
>                 mRecorder.release();
>                 mRecorder = null;
>             }
>
>             class RecordButton extends Button {
>                 boolean mStartRecording = true;
>
>                 OnClickListener clicker = new OnClickListener() {
>                     public void onClick(View v) {
>                         onRecord(mStartRecording);
>                         if (mStartRecording) {
>                             setText("Stop recording");
>                         } else {
>                             setText("Start recording");
>                         }
>                         mStartRecording = !mStartRecording;
>                     }
>                 };
>
>                 public RecordButton(Context ctx) {
>                     super(ctx);
>                     setText("Start recording");
>                     setOnClickListener(clicker);
>                 }
>             }
>
>             class PlayButton extends Button {
>                 boolean mStartPlaying = true;
>
>                 OnClickListener clicker = new OnClickListener() {
>                     public void onClick(View v) {
>                         onPlay(mStartPlaying);
>                         if (mStartPlaying) {
>                             setText("Stop playing");
>                         } else {
>                             setText("Start playing");
>                         }
>                         mStartPlaying = !mStartPlaying;
>                     }
>                 };
>
>                 public PlayButton(Context ctx) {
>                     super(ctx);
>                     setText("Start playing");
>                     setOnClickListener(clicker);
>                 }
>             }
>
>             public AudioCapturing() {
>                 Log.d("state is:",Environment.getExternalStorageState());
>                 mFileName =
> Environment.getExternalStorageDirectory().getAbsolutePath();
>                 mFileName += "/audio

Re: [android-developers] Reg: Crash in the native while allocating memory

2011-12-05 Thread Mark Murphy
Try the android-ndk Google Group, as they are better suited for this
sort of NDK question.

On Mon, Dec 5, 2011 at 3:54 AM, Aluvala Suman  wrote:
> Hi All,
>
> I am facing a crash issue while trying to allocate a dynamic memory of size
> 1150 bytes in the android native.
> Its crashing in-consistently at malloc() function in the android native and
> some times at free().
>
> The native code which I am using is fully developed and tested (using
> purify) as well.
> I am trying to port that code (in c) to Android.
>
> I have already posted this in stackoverflow (Link for stackoverflow post).
> But I didn't got any answer from any one.
> Do I need to set any flags specially for andorid-ndk?
>
> I am using r7 NDK.
> Android 2.3.3 API Level 10 Emulator.
>
> Please help me in resolving the same.
>
> Thanks & Regards,
> SSuman185
>
> --
> 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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Is is possible to block android system updates with out rooting the device?

2011-12-05 Thread Mark Murphy
On Mon, Dec 5, 2011 at 1:57 AM, srihari babu  wrote:
> Is there is any way to block android OS updates in the device.

For your own devices, you can decline to install them.

For other people's devices, no, this is not possible.

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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: please give me solution

2011-12-05 Thread Oli Wright
+1

-- 
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: please give me solution

2011-12-05 Thread Mukesh Srivastav
solution of what

+1, What does it mean ?

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Mon, Dec 5, 2011 at 6:32 PM, Oli Wright  wrote:

> +1
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Image Gallery Help

2011-12-05 Thread TreKing
On Tue, Nov 29, 2011 at 5:48 AM, arvi  wrote:

> I was wondering if i could get the source code of the default gallery app
> by cooliris
>

Check the Android source code to see if the stock app is there. Or ask
"cooliris", if that's their app you're talking about.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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: please give me solution

2011-12-05 Thread TreKing
On Mon, Dec 5, 2011 at 7:12 AM, Mukesh Srivastav wrote:

> +1, What does it mean ?


http://bit.ly/tek3Lc

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] RectF: float parameters in pixelated canvas???

2011-12-05 Thread John Goche
Hello,

Can someone explain to me how come there is a RectF class that
takes float parameters when the pixel coordinates take integer values?
How can I draw a pixel at location (3.5,8.777) for instance instead of
at location (3,7). Does this just make sense because of antialiasing?

Thanks for clarification on this subtle issue
and why things have been designed this way in the Canvas related API,

Regards,

John Goche

-- 
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: please give me solution

2011-12-05 Thread Jim Graham
On Mon, Dec 05, 2011 at 06:42:16PM +0530, Mukesh Srivastav wrote:
> solution of what
> 
> +1, What does it mean ?

It means the same as ++1, or - -1, or +2-1, or 

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try "rm -rf /"
spooky1...@gmail.com| Dave Aronson:As your life flashes before
< Running FreeBSD 7.0 > |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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: please give me solution

2011-12-05 Thread Jim Graham
On Mon, Dec 05, 2011 at 07:22:06AM -0600, Jim Graham wrote:
> On Mon, Dec 05, 2011 at 06:42:16PM +0530, Mukesh Srivastav wrote:
> > solution of what
> > 
> > +1, What does it mean ?
> 
> It means the same as ++1, or - -1, or +2-1, or 

Oops...that first one is invalid.  I haven't had my coffee yet,
so I have an excuse.  :-)

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
< Running FreeBSD 7.0 > | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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] How to create a bitmap from binary data?

2011-12-05 Thread Vincent
Hi,

I want to create images from binary data.

e.g.
If the binary data is:

0110 1110 0011 1010
1000 0001 1011  1100
0110 1101   
0100 0011 1001 0011


which is store in 4*4 bytes
{
6 14  3  10
8  1  11 12
6 13 15  0
4  3   9   3
}

I want to create a image(might be bitmap) from the binary data,

if 1, draw a black pixel, if 0, draw a white pixel
so the image would be
 .. ...   ... .
.  .. 
 .. .. .
 ....  .  ..

And I will receive new data and refresh the image frequently.

Could you give me some hints/suggestions?




Android 3.2 (API Level 13)

-- 
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] Alarm manager problem

2011-12-05 Thread Kostya Vasilyev
If the current day of week is > Sunday, your code moves the calendar
back in time, to most recent Sunday before now.

Add a check for this case, and move the calendar forward one week if needed.

5 декабря 2011 г. 16:19 пользователь Hassy  написал:
> I'm creating an alarm application and I already created the basic
> alarm activity
> and receiver class.now I want to repeat the alarm on specific day of
> week.
>
> I set DAY_OF_WEEK to 1 to set the alarm repeat on sunday but it
> doesn't work.
>
>  Calendar calendar = Calendar.getInstance()
>  calendar.set(calendar.DAY_OF_WEEK, 1);
>  calendar.set(calendar.HOUR_OF_DAY, sHour);
>  calendar.set(calendar.MINUTE, sMin);
>  calendar.set(calendar.SECOND, 0);
>  calendar.set(calendar.MILLISECOND, 0);
>
> Please tell me how to set the alam on specific day.
>
>
> Thank you
> Hassy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] RectF: float parameters in pixelated canvas???

2011-12-05 Thread Latimerius
On Mon, Dec 5, 2011 at 2:18 PM, John Goche  wrote:
>
> Hello,
>
> Can someone explain to me how come there is a RectF class that
> takes float parameters when the pixel coordinates take integer values?
> How can I draw a pixel at location (3.5,8.777) for instance instead of
> at location (3,7). Does this just make sense because of antialiasing?

Fractional coordinates are normally used for rendering with sub-pixel
accuracy.  I'm not as familiar with Canvas because I mostly use GL but
I would assume that would be the reason.

There are multiple ways of implementing sub-pixel accurate rendering
but one common usage would be, if a fractional-coordinates primitive
only covers say a quarter of a pixel then that pixel would be filled
with the colour of the primitive with alpha of 0.25.

In my experience this doesn't often matter much for static renderings
but can make your animations look much smoother (depending on context
however).

-- 
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] emulator for motorola droid x

2011-12-05 Thread TreKing
On Wed, Nov 30, 2011 at 11:51 PM, mohana priya wrote:

> Hello android developers.can u please tell me How and where to download
> the motorola droid x emulator for android application with phonegap.Thanks
> in Advance.
>

Try the motorola droid x emulator and / or phonegap forums.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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: How to pause and resume a Count Down Timer?

2011-12-05 Thread TreKing
On Wed, Nov 30, 2011 at 10:01 PM, catherinefbala...@yahoo.com <
catherinefbala...@yahoo.com> wrote:

> I am only beginner in android programming and I don't know how to get
> the value of the countdown timer using savedInstanceState. How do I do
> this?
>

There is plenty of information on this in the documentation in the section
covering the application life-cycle, which is crucial to understand.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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 can I capture and write my findings in txt file.

2011-12-05 Thread TreKing
On Wed, Nov 30, 2011 at 6:46 PM, Aaron Chung wrote:

> As the value kept changing, how can I capture the
> values and save it inside a txt file so that I can open it up with my
> computer?
>

Read the docs section on persisting data and use standard Java I/O.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] emulator for motorola droid x

2011-12-05 Thread Mukesh Srivastav
OMG, Not Again this PhoneGAP...  :(.


On Mon, Dec 5, 2011 at 7:32 PM, TreKing  wrote:

> On Wed, Nov 30, 2011 at 11:51 PM, mohana priya wrote:
>
>> Hello android developers.can u please tell me How and where to download
>> the motorola droid x emulator for android application with phonegap.Thanks
>> in Advance.
>>
>
> Try the motorola droid x emulator and / or phonegap forums.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

-- 
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] communicating with hardware remotely from Android device

2011-12-05 Thread TreKing
On Wed, Nov 30, 2011 at 11:41 PM, Arun  wrote:

> how to communicate with the hardware board remotely from
> android device..Any ideas ...
>

?
http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

2011-12-05 Thread TreKing
On Tue, Nov 29, 2011 at 11:53 PM, Jacob Shavia wrote:

> i'm new to android and am supposed to develop an android game that allows
> people to navigate a vehicle along simulated real life roads, i have
> autocad maps for the roads n their presentation is poor how can i implement
> this.


Do a bunch of other smaller apps that will help teach you what you need to
know to do this.
If you're "new to android" and have to ask how to do what vaguely sounds
like a major task, you're asking for trouble.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] MEssaging Application Not Updating

2011-12-05 Thread TreKing
On Tue, Nov 29, 2011 at 9:30 PM, raja shekar <
raja.androiddevelo...@gmail.com> wrote:

> When i opening the Application UI is not Updating  ...
> Can anybody give me solution
>

Solution: fix the bug in your app. You're welcome.

Seriously, if that's the extent of the information you have to provide for
your problem, no one is going to have a solution for you.
http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: getString in a class with no context <- Runtime Error Resource Not Found

2011-12-05 Thread Streets Of Boston
It's great you got it to work.
But why do you need a separate class (LanguagePack) to get localized 
strings/resources?

In a method of your activity or another context, you could just do: 
getString(R.string.some_string)?

If you want to access localized resources/strings in code that does not 
have a Context readily available, you could create a static singleton of 
your LanguagePack class in the Application object of your app:

public class MyApp extends Application {
  private static LanguagePack myLanguagePack = null;

  ...
  ...

  public LanguagePack getLanguagePack() {
if (myLanguagePack == null) {
  myLanguagePack = new LanguagePack(this);
}
return myLanguagePack;
  }
  ...
  ... 
}


public class LanguagePack {
  private final Context context;
  public LanguagePack(Context context) {
this.context = context.getApplicationContext();
  }

  public String getString(int resID) {
return context.getString(resID);
  }
  ...
  ...
}

And everywhere in your code, you could do 
MyApp.getLanguagePack().getString(R.string.some_string);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: list actvity is scrolling

2011-12-05 Thread Streets Of Boston
Don't use a ListActivity. You only have a small and fixed amount of 
elements (8). Use a regular Activity with a layout that has a vertical 
LinearLayout or a TableLayout as the top element. These two don't scroll.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-05 Thread Streets Of Boston
http://android-developers.blogspot.com/2011/03/identifying-app-installations.html
This link suggests and advises identifying accounts, not specific devices.

However, sometimes you can't get around it. E.g. if you have an app that 
publishes digital content under DRM, you usually have to be able to 
identify individual devices.

This is what we do at my company:


   1. First, try to read one that you have saved in the last step of this 
   procedure. If found, return this one.
   2. Read the telephony id.
   This will work for every phone and tablet with a SIM card and such. 
   Since most Android devices that have Android 2.3 or lower are phones, you 
   have covered a big chunk of your install base.
   If available, use this one. Save it somewhere for point (1.)
   3. Read the Serial number (android.osb.Build.SERIAL)
   This one is only available on 2.3x devices and higher. This means you'd 
   have to use java reflection to get at it if your app must run on Android 
   2.2 or lower.
   If available, use this one. Save it somewhere for point  (1.)
   4. Now you have covered a laaarge chunk of your install-base. 100% of 
   all devices running 2.3x and higher. The only devices that are still can be 
   problematic are Android 2.2. (or lower) devices that are WiFi only:
   5. Read the MAC address of the device
   Since the device is WiFi only, it is their only way to get a 
   data-connection and they just downloaded your app: It is likely that the 
   WiFi is enabled and querying the MAC address very likely succeeds.
   If available, use this one. Save it somewhere for point  (1.)
   6. If everything else fails, generate a Random number/string and use 
   this as your unique-id.
   Save it somewhere for point  (1.)
   
I think this will cover 99.% of your install base. However, it is not 
full-proof. This means that you'd have to design a way to allow the users 
to reset their device-id on your servers, either through some online form 
or through customer service. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to create a bitmap from binary data?

2011-12-05 Thread Streets Of Boston
http://developer.android.com/reference/android/graphics/BitmapFactory.html

-- 
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] Can the LVL check for Paid app be done from my free app ?

2011-12-05 Thread androidmediadeveloper
I have a Free app with pro features "locked". I also have a paid app
that is basically a stub, an "unlocker". My question is this, can I
run the LVL check to see if user has purchased the unlocker/stub app
from inside of my free app ? It'd be great if this were possible, but
from my experiments until now, isnt the case.

Any advice ? thoughts ?

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


Re: [android-developers] Re: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-05 Thread Mark Murphy
Do you use any sort of a naming convention, so you can identify what's
what for later comparison purposes? I'm thinking something a bit along
the lines of URL schemes (imsi:... or even imsi-v10:... for an IMSI
reported by API Level 10, where the ... is the actual IMSI value).

For example, it may be that an upgrade to the OS changes which of the
rules fires for that device, because they added support for something
they didn't have earlier.

On Mon, Dec 5, 2011 at 9:49 AM, Streets Of Boston
 wrote:
> http://android-developers.blogspot.com/2011/03/identifying-app-installations.html
> This link suggests and advises identifying accounts, not specific devices.
>
> However, sometimes you can't get around it. E.g. if you have an app that
> publishes digital content under DRM, you usually have to be able to identify
> individual devices.
>
> This is what we do at my company:
>
> First, try to read one that you have saved in the last step of this
> procedure. If found, return this one.
> Read the telephony id.
> This will work for every phone and tablet with a SIM card and such. Since
> most Android devices that have Android 2.3 or lower are phones, you have
> covered a big chunk of your install base.
> If available, use this one. Save it somewhere for point (1.)
> Read the Serial number (android.osb.Build.SERIAL)
> This one is only available on 2.3x devices and higher. This means you'd have
> to use java reflection to get at it if your app must run on Android 2.2 or
> lower.
> If available, use this one. Save it somewhere for point  (1.)
> Now you have covered a laaarge chunk of your install-base. 100% of all
> devices running 2.3x and higher. The only devices that are still can be
> problematic are Android 2.2. (or lower) devices that are WiFi only:
> Read the MAC address of the device
> Since the device is WiFi only, it is their only way to get a data-connection
> and they just downloaded your app: It is likely that the WiFi is enabled and
> querying the MAC address very likely succeeds.
> If available, use this one. Save it somewhere for point  (1.)
> If everything else fails, generate a Random number/string and use this as
> your unique-id.
> Save it somewhere for point  (1.)
>
> I think this will cover 99.% of your install base. However, it is not
> full-proof. This means that you'd have to design a way to allow the users to
> reset their device-id on your servers, either through some online form or
> through customer service.
>
> --
> 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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ICS Hardware Acceleration crash

2011-12-05 Thread webmonkey
In my AndroidManifest.xml I have:



And the Application and Activities all have
android:hardwareAccelerated="false"

So the app should not be hardware accelerated. But in the Android
Developer console I am getting the following crash report from Galaxy
Nexus users with ICS:

java.lang.UnsupportedOperationException
at android.view.GLES20Canvas.drawPicture(GLES20Canvas.java:861)
at android.graphics.drawable.PictureDrawable.draw(PictureDrawable.java:
73)
at android.widget.ImageView.onDraw(ImageView.java:892)
at android.view.View.draw(View.java:10880)
at android.view.View.getDisplayList(View.java:10319)
at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
at android.view.View.getDisplayList(View.java:10317)
at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
at android.view.View.getDisplayList(View.java:10317)
at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
at android.view.View.getDisplayList(View.java:10317)
at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
at android.view.View.getDisplayList(View.java:10317)
at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
at android.view.View.getDisplayList(View.java:10317)
at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
at android.view.View.draw(View.java:10883)
at android.widget.FrameLayout.draw(FrameLayout.java:450)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(PhoneWindow.java:2106)
at android.view.View.getDisplayList(View.java:10319)
at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:
791)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:1889)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1613)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)


Why is it still using the Hardware Renderer for the app on ICS?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: User cannot install an update

2011-12-05 Thread John Coryat


> There may be a permission problem so the userID given to the app does
> not match the userID of the app data directory. If your user has root,
> tell him/her to delete the directory /data/data/com.yournamespace...
> Then reinstall the app.
>
> Unfortuantely, only root can do this. Uninstalling the app should
> delete the app directory but doesn't sometimes if there's a permission
> problem.
>
>
I have never seen anything like this in nearly 3,000,000 installs of our 
app. If it does happen, probably doing my suggested procedure will solve it.

-John Coryat


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: 2.3.4 - Animation is working on the emulator but not on real device

2011-12-05 Thread Kumar Bibek
What kind of animation it is? It would be great if you could explain
how your animation is setup.

On Dec 5, 4:43 pm, Harald  wrote:
> Hi,
>
> I spent a lot of time to create a nice animation to slide from one
> activity to the next an back. The animation is working on the
> emulator. The emulator has the same android release as my phone. But
> on my phone, the animation does not work.
>
> Does someone know a possible reason?
>
> Phone: Huawei Sonic (U8650)
>
> Regards
> Harald

-- 
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: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-05 Thread Streets Of Boston
We use the generated device-id for DRM purposes. The generated device-id is 
not used as-is. The DRM code creates encrypts it and creates a hash. The 
hash is used for identifying the device on the DRM server.

It is true that an upgrade from 2.2. to 2.3 can trigger a different result 
if the device-id calculation is called again. This would happen if the user 
upgrades the device to 2.3 and 'clears the data' of our app. 

There are also other ways to have the device-id generate a different 
calculation if the user chooses to 'clear data' of our app later (e.g. on a 
WiFi only device running 2.2: download our app, never open it, then open it 
for the first time in airplane mode (by accident), clear data and then open 
it again at some later point with WiFi enabled). 

These two scenarios are possible, although they are very unlikely. We have 
customer support to deal with this issue (when the user finds he or she 
can't read a book due to a device limit being reached incorrectly). 

-- 
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: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-05 Thread lbendlin
The vast majority of our support issues is from users that have reflashed 
the ROM on their device which results in a different Android_ID more often 
than not. We also decided to use the fallback scenarios of either IMEI or 
MAC address. (can't use the fancy 2.3 stuff as most users are still on 2.2 
and lower) 

-- 
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: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-05 Thread Raghav Sood
In my apps, I assign the user a username, and then generate a UUID (v4) and
associate it with the user name. That way I can maintain it across
installs, as long as the user uses the same account,

Thanks

On Mon, Dec 5, 2011 at 9:41 PM, Streets Of Boston
wrote:

> We use the generated device-id for DRM purposes. The generated device-id
> is not used as-is. The DRM code creates encrypts it and creates a hash. The
> hash is used for identifying the device on the DRM server.
>
> It is true that an upgrade from 2.2. to 2.3 can trigger a different result
> if the device-id calculation is called again. This would happen if the user
> upgrades the device to 2.3 and 'clears the data' of our app.
>
> There are also other ways to have the device-id generate a different
> calculation if the user chooses to 'clear data' of our app later (e.g. on a
> WiFi only device running 2.2: download our app, never open it, then open it
> for the first time in airplane mode (by accident), clear data and then open
> it again at some later point with WiFi enabled).
>
> These two scenarios are possible, although they are very unlikely. We have
> customer support to deal with this issue (when the user finds he or she
> can't read a book due to a device limit being reached incorrectly).
>
> --
> 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
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

2011-12-05 Thread TreKing
On Thu, Dec 1, 2011 at 9:05 PM, Nattachai Boonkam wrote:

> How to add ‘keyword’ when end-user search in Android market ?


Write a description for your app.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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 Hardware Acceleration crash

2011-12-05 Thread Romain Guy
They've probably checked the "Force GPU" setting in Developers Settings.

On Mon, Dec 5, 2011 at 7:25 AM, webmonkey  wrote:

> In my AndroidManifest.xml I have:
>
>android:minSdkVersion="3"
>   android:targetSdkVersion="8"
> />
>
> And the Application and Activities all have
> android:hardwareAccelerated="false"
>
> So the app should not be hardware accelerated. But in the Android
> Developer console I am getting the following crash report from Galaxy
> Nexus users with ICS:
>
> java.lang.UnsupportedOperationException
> at android.view.GLES20Canvas.drawPicture(GLES20Canvas.java:861)
> at android.graphics.drawable.PictureDrawable.draw(PictureDrawable.java:
> 73)
> at android.widget.ImageView.onDraw(ImageView.java:892)
> at android.view.View.draw(View.java:10880)
> at android.view.View.getDisplayList(View.java:10319)
> at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> at android.view.View.getDisplayList(View.java:10317)
> at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> at android.view.View.getDisplayList(View.java:10317)
> at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> at android.view.View.getDisplayList(View.java:10317)
> at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> at android.view.View.getDisplayList(View.java:10317)
> at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> at android.view.View.getDisplayList(View.java:10317)
> at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> at android.view.View.draw(View.java:10883)
> at android.widget.FrameLayout.draw(FrameLayout.java:450)
> at com.android.internal.policy.impl.PhoneWindow
> $DecorView.draw(PhoneWindow.java:2106)
> at android.view.View.getDisplayList(View.java:10319)
> at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:
> 791)
> at android.view.ViewRootImpl.draw(ViewRootImpl.java:1889)
> at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1613)
> at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418)
> at android.os.Handler.dispatchMessage(Handler.java:99)
> at android.os.Looper.loop(Looper.java:137)
> at android.app.ActivityThread.main(ActivityThread.java:4340)
> at java.lang.reflect.Method.invokeNative(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:511)
> at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:784)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> at dalvik.system.NativeStart.main(Native Method)
>
>
> Why is it still using the Hardware Renderer for the app on ICS?
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
romain...@android.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] Android TileMode REPEAT on Background image stops working

2011-12-05 Thread Romain Guy
This bug was fixed in 3.0 and 4.0.

On Mon, Dec 5, 2011 at 1:04 AM, Jason  wrote:

> I'm having some problems with programmatically setting the background
> image to tile on a LinearLayout on Android.
>
> I've posted a bug report (http://code.google.com/p/android/issues/
> detail?id=22541), along with an example project but I'm wondering if
> anyone's seen this before and has a workaround?
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
romain...@android.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] Help! i dont receive value of attributes (parcelable)

2011-12-05 Thread TreKing
On Thu, Dec 1, 2011 at 11:40 PM, diego scafati wrote:

> private void readFromParcel(Parcel in) {
>in.setDataPosition(0); //
> <-- WHY?
>codigodeusuario=in.readString();
>}
>

That's probably a problem. Take that out and change your constructor to
just call readFromParcel. See if that helps.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: User cannot install an update

2011-12-05 Thread mot12
Lucky you. This happened because of a firmware bug in Samsung devices
2.2.1. See here:

http://code.google.com/p/android/issues/detail?id=14359

or

https://groups.google.com/forum/#!topic/android-developers/Sm7WCWZYcKU/discussion

In the first post, the author describes how he ended up with an app
having a different user ID than the app data directory.

@John Coryat : If you read the original post in this thread and his
follow up, you will see that John already tried uninstalling to no
avail.


-- Martin
mobitobi

-- 
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 prevent webview click through to Google Maps?

2011-12-05 Thread TreKing
On Thu, Dec 1, 2011 at 2:21 PM, elsigh  wrote:

> Is there a way for me to prevent that? Capture the geo intent or something
> like that?
>

IDK, but I'd look at
http://developer.android.com/reference/android/webkit/WebViewClient.html
and see if any of those methods are called when you click those types of
links.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] Gravity virtual sensor source code

2011-12-05 Thread markus
Hi all!

Now that Ice Cream Sandwich is out, I thought I'd have a look at how
the "virtual" sensors have their data calculated, in particular
TYPE_GRAVITY. Of course it will involve data from some or all of the
real sensors (accelerometer, gyroscope, and magnetic field), but I've
read somewhere (can't find where just now) that from Android 4 ICS,
the virtual sensors, and TYPE_GRAVITY in particular, will be more
accurate, because they involve the gyroscope, if it's available in
the
phone.

I've got the Android 4 source code downloaded, but I can't find the
place where this data is calculated. It's not in the Java code, as
far
as I can tell, so it must be in native code somewhere. I'm new to
looking at the Android source code, so maybe someone could point me
in
the right direction?

Thank you very much!

Regards,
Markus

(This is actually an old email, that apparently got posted to a random
list here on Google Groups. No idea how that happened. And not the
first time it's happened, looking at my posting history...)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Can the LVL check for Paid app be done from my free app ?

2011-12-05 Thread b0b
Yes this is doable if both app have  the same userId

You can implement a remote service in the unlocker paid app that check the 
license.
Then your free app invoke binds to that remote service to do the check.

If both of your apps share the same android:sharedUserId  you're not forced 
to make the service public.
If you don't have already have set a android:sharedUserId don't change it 
afterwards or it will cause problems (file permissions).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SDK(Android 4.0) launch fail when GPU emulation is activated from the SDK config window

2011-12-05 Thread Kelo
Can anyone help me ? I´ve this error on win7/eclipse helios

[2011-12-05 13:40:31 - HelloOpenGLES20] Starting activity
com.ejemplo.helloopengles20.HelloOpenGLES20 on device emulator-5554
[2011-12-05 13:40:32 - Emulator] client shutdown
[2011-12-05 13:40:34 - HelloOpenGLES20] ActivityManager: Starting:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.ejemplo.helloopengles20/.HelloOpenGLES20 }
[2011-12-05 13:40:34 - Emulator] netPipe_initTcp: Port is '22468'
[2011-12-05 13:40:34 - Emulator] Creating TCP OpenGLES pipe for GPU
emulation!
[2011-12-05 13:40:35 - Emulator] development/tools/emulator/opengl/
host/libs/Translator/GLES_CM/GLEScmImp.cpp:glBindTexture:309 error
0x500
[2011-12-05 13:40:37 - Emulator] netPipe_initTcp: Port is '22468'
[2011-12-05 13:40:37 - Emulator] Creating TCP OpenGLES pipe for GPU
emulation!
[2011-12-05 13:40:37 - Emulator] netPipe_initTcp: Port is '22468'
[2011-12-05 13:40:37 - Emulator] Creating TCP OpenGLES pipe for GPU
emulation!
[2011-12-05 13:40:37 - Emulator] netPipe_initTcp: Port is '22468'
[2011-12-05 13:40:37 - Emulator] Creating TCP OpenGLES pipe for GPU
emulation!
[2011-12-05 13:40:38 - Emulator] development/tools/emulator/opengl/
host/libs/Translator/GLES_CM/GLEScmImp.cpp:glBindTexture:309 error
0x500
[2011-12-05 13:40:38 - Emulator] development/tools/emulator/opengl/
host/libs/Translator/GLES_CM/GLEScmImp.cpp:glBindTexture:309 error
0x500
[2011-12-05 13:40:38 - Emulator] development/tools/emulator/opengl/
host/libs/Translator/GLES_CM/GLEScmImp.cpp:glBindTexture:309 error
0x500
[2011-12-05 13:40:39 - Emulator] development/tools/emulator/opengl/
host/libs/Translator/GLES_CM/GLEScmImp.cpp:glBindTexture:309 error
0x500

On Nov 8, 10:11 pm, Daniel Wung  wrote:
> I can launch the emulator w/ GPU emulation enabled on Linux
> But unfortunately, the system image itself does not support GPU emulation...
>
> 2011/11/8 Ramaraj Bijur 
>
>
>
>
>
>
>
> > Dear fellows
>
> > Please help me to launch the Android 4.0 emulator on MS-Windows-
> > XP(SP-3) OS.
> > As of now i am getting below error when GPU emulation  of the SDK is
> > enabled
>
> > Note:i coulde able to run the SDK sucessfully without GPU emulation
> > enabled
>
> > In conclose i am getting below error
>
> > netPipe_initTcp: Port is '22468'
> > Creating TCP OpenGLES pipe for GPU emulation!
> > development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
> > GLEScmImp.cpp:glBindTexture:309 error
> >  0x500
> > development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
> > GLEScmImp.cpp:glBindTexture:309 error
> >  0x500
> > development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
> > GLEScmImp.cpp:glBindTexture:309 error
> >  0x500
> > development/tools/emulator/opengl/host/libs/Translator/GLES_CM/
> > GLEScmImp.cpp:glBindTexture:309 error
> >  0x500
> > client shutdown
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ICS Hardware Acceleration crash

2011-12-05 Thread webmonkey
Thanks Romain

Anyway to force if off from the app in code? Or how to detect it so
that I can display a message to the user?

I see now that there are some websites that advise people to turn it
on because it makes everything run smoother. I don't think people
realize that not all things can be hardware accelerated. Unfortunately
I have no way of responding to these users who report this issue.

On Dec 5, 5:35 pm, Romain Guy  wrote:
> They've probably checked the "Force GPU" setting in Developers Settings.
>
>
>
>
>
>
>
>
>
> On Mon, Dec 5, 2011 at 7:25 AM, webmonkey  wrote:
> > In my AndroidManifest.xml I have:
>
> >  >   android:minSdkVersion="3"
> >   android:targetSdkVersion="8"
> > />
>
> > And the Application and Activities all have
> > android:hardwareAccelerated="false"
>
> > So the app should not be hardware accelerated. But in the Android
> > Developer console I am getting the following crash report from Galaxy
> > Nexus users with ICS:
>
> > java.lang.UnsupportedOperationException
> > at android.view.GLES20Canvas.drawPicture(GLES20Canvas.java:861)
> > at android.graphics.drawable.PictureDrawable.draw(PictureDrawable.java:
> > 73)
> > at android.widget.ImageView.onDraw(ImageView.java:892)
> > at android.view.View.draw(View.java:10880)
> > at android.view.View.getDisplayList(View.java:10319)
> > at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> > at android.view.View.getDisplayList(View.java:10317)
> > at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> > at android.view.View.getDisplayList(View.java:10317)
> > at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> > at android.view.View.getDisplayList(View.java:10317)
> > at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> > at android.view.View.getDisplayList(View.java:10317)
> > at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> > at android.view.View.getDisplayList(View.java:10317)
> > at android.view.ViewGroup.drawChild(ViewGroup.java:2862)
> > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
> > at android.view.View.draw(View.java:10883)
> > at android.widget.FrameLayout.draw(FrameLayout.java:450)
> > at com.android.internal.policy.impl.PhoneWindow
> > $DecorView.draw(PhoneWindow.java:2106)
> > at android.view.View.getDisplayList(View.java:10319)
> > at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:
> > 791)
> > at android.view.ViewRootImpl.draw(ViewRootImpl.java:1889)
> > at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1613)
> > at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418)
> > at android.os.Handler.dispatchMessage(Handler.java:99)
> > at android.os.Looper.loop(Looper.java:137)
> > at android.app.ActivityThread.main(ActivityThread.java:4340)
> > at java.lang.reflect.Method.invokeNative(Native Method)
> > at java.lang.reflect.Method.invoke(Method.java:511)
> > at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:784)
> > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> > at dalvik.system.NativeStart.main(Native Method)
>
> > Why is it still using the Hardware Renderer for the app on ICS?
>
> > --
> > 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
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.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] Re: please give me solution

2011-12-05 Thread Michael Banzon
On Mon, Dec 5, 2011 at 2:23 PM, Jim Graham  wrote:
> On Mon, Dec 05, 2011 at 07:22:06AM -0600, Jim Graham wrote:
>> On Mon, Dec 05, 2011 at 06:42:16PM +0530, Mukesh Srivastav wrote:
>> > solution of what
>> >
>> > +1, What does it mean ?
>>
>> It means the same as ++1, or - -1, or +2-1, or 
>
> Oops...that first one is invalid.  I haven't had my coffee yet,
> so I have an excuse.  :-)

+1

;-)


-- 
Michael Banzon
http://michaelbanzon.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] Re: ICS Hardware Acceleration crash

2011-12-05 Thread Mark Murphy
On Mon, Dec 5, 2011 at 12:04 PM, webmonkey  wrote:
> I see now that there are some websites that advise people to turn it
> on because it makes everything run smoother.

Got any links? At least we can work on trying to get these posts
updated, particularly if there's no SDK means of telling Android "no
means no" when it comes to the Force GPU setting (and I see nothing in
the SDK that looks promising).

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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Can the LVL check for Paid app be done from my free app ?

2011-12-05 Thread androidmediadeveloper
sorry, not clear. the free app can check if the paid app was
purchased ? it is the same publisher.

also, seems like i can use the android:sharedUserId and write the
license into shared prefs from one app and have the other read from
it. Is this a security issue ?

thanks
ajith

On Dec 5, 11:50 am, b0b  wrote:
> Yes this is doable if both app have  the same userId
>
> You can implement a remote service in the unlocker paid app that check the
> license.
> Then your free app invoke binds to that remote service to do the check.
>
> If both of your apps share the same android:sharedUserId  you're not forced
> to make the service public.
> If you don't have already have set a android:sharedUserId don't change it
> afterwards or it will cause problems (file permissions).

-- 
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 the LVL check for Paid app be done from my free app ?

2011-12-05 Thread Kostya Vasilyev
Let the free app (main) ask the paid app (the unlocker) run the LVL
check and report results using any of the available inter-application
communication options available on Android.

As far as security goes - encrypting / signing the communication is
one option, signing both apps with the same key and using a
signature-protected permission is another.

5 декабря 2011 г. 21:28 пользователь androidmediadeveloper
 написал:
> sorry, not clear. the free app can check if the paid app was
> purchased ? it is the same publisher.
>
> also, seems like i can use the android:sharedUserId and write the
> license into shared prefs from one app and have the other read from
> it. Is this a security issue ?
>
> thanks
> ajith
>
> On Dec 5, 11:50 am, b0b  wrote:
>> Yes this is doable if both app have  the same userId
>>
>> You can implement a remote service in the unlocker paid app that check the
>> license.
>> Then your free app invoke binds to that remote service to do the check.
>>
>> If both of your apps share the same android:sharedUserId  you're not forced
>> to make the service public.
>> If you don't have already have set a android:sharedUserId don't change it
>> afterwards or it will cause problems (file permissions).
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: User cannot install an update

2011-12-05 Thread John Gaby
Thanks for the suggestions.  I had the user try taking out the battery
but it didn't help (I HAD previously had him reboot his phone which
didn't work either).  I am beginning to think that there is something
screwed up with the permissions as you suggest.  I have actually had a
similar problem on my HTC Hero phone running 2.1 (he is running 2.2).
It gets into a state where I can no longer install my app and it
clearly appears to be a permissions problem (I can't remember the
exact message, but it fails to install something complaining that the
folder doesn't exist).  I have had this happen a number of times and
it usually occurs when I have installed a debug signed apk, un-
installed and then tried to install a signed apk.  However my user has
only ever had properly signed apks.

Ultimately the only way I was able to get it to work again on my HERO
was to reset the entire phone to the factory settings (which deletes
everything), which is not something that my user is wanting to do.



On Dec 5, 8:44 am, mot12  wrote:
> Lucky you. This happened because of a firmware bug in Samsung devices
> 2.2.1. See here:
>
> http://code.google.com/p/android/issues/detail?id=14359
>
> or
>
> https://groups.google.com/forum/#!topic/android-developers/Sm7WCWZYcK...
>
> In the first post, the author describes how he ended up with an app
> having a different user ID than the app data directory.
>
> @John Coryat : If you read the original post in this thread and his
> follow up, you will see that John already tried uninstalling to no
> avail.
>
> -- Martin
> mobitobi

-- 
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: ICS Hardware Acceleration crash

2011-12-05 Thread Romain Guy
This setting is unfortunately a double-edged sword, it was intended for
developers so they could easily test their application with hardware
acceleration turned on.

You can easily check whether your app is hardware accelerated on startup
and warn the user it's not supported.

On Mon, Dec 5, 2011 at 9:21 AM, Mark Murphy  wrote:

> On Mon, Dec 5, 2011 at 12:04 PM, webmonkey  wrote:
> > I see now that there are some websites that advise people to turn it
> > on because it makes everything run smoother.
>
> Got any links? At least we can work on trying to get these posts
> updated, particularly if there's no SDK means of telling Android "no
> means no" when it comes to the Force GPU setting (and I see nothing in
> the SDK that looks promising).
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.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

[android-developers] Re: ICS Hardware Acceleration crash

2011-12-05 Thread webmonkey

http://www.theverge.com/2011/12/1/2604136/apps-which-crash-on-galaxy-nexus-when-force-gpu-rendering-is-on

The first comment there is:

"I can only surmise that if the app crashes then the developer MAY
have deviated from the official API and not followed proper
programming practices."

Which is of course incorrect.

It is a partial repost of:

http://forum.xda-developers.com/showthread.php?t=1372007

Where some people do actually suggest to leave it off but they say
that they should wait until the developer updates it for ICS. But for
some apps Hardware Acceleration is never going to work.

Then there is:

http://www.slashgear.com/android-4-0-ics-demo-facial-recognition-battery-life-gpu-rendering-and-more-18196674/

Which says:

"You can turn this option off, effectively, by heading to your
Settings, then to your Developers options, then scrolling down and
tapping the “Force GPU Rendering” option. Though why you’d want to do
that, I do not know, because with this option ON, all of your apps
will run more efficiently."



On Dec 5, 6:21 pm, Mark Murphy  wrote:
> On Mon, Dec 5, 2011 at 12:04 PM, webmonkey  wrote:
> > I see now that there are some websites that advise people to turn it
> > on because it makes everything run smoother.
>
> Got any links? At least we can work on trying to get these posts
> updated, particularly if there's no SDK means of telling Android "no
> means no" when it comes to the Force GPU setting (and I see nothing in
> the SDK that looks promising).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: User cannot install an update

2011-12-05 Thread John Coryat
You'll have to decide what level of support you want to offer. For me, once 
I've determined it isn't a problem with the app, the user has to look 
elsewhere for support. I can't help solve problems with the countless 
versions of Android/carrier/manufacturer OS's and devices. I'd rather spend 
my time staring off into empty space than do that.

If you want to be 100% support for any problem a user encounters, that's 
strictly up to you but if your app ever gets popular, then you'll be 
swamped. Better to send them to Android support and let them deal with it.

-John Coryat

@martin - I pasted the text I send to users, it wasn't modified to fit the 
poster's experience already. I have found this text to either solve all 
these problems or send the user to a place where they should seek help. 
That's why I posted 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

[android-developers] Re: ICS Hardware Acceleration crash

2011-12-05 Thread Kevin TeslaCoil Software


On Dec 5, 12:01 pm, Romain Guy  wrote:
> This setting is unfortunately a double-edged sword, it was intended for
> developers so they could easily test their application with hardware
> acceleration turned on.

I interpreted the setting as an aggressive move to make developers
update their apps for ICS. Of course users are going to check a box
marked "Acceleration", especially the first wave of ICS users, Galaxy
Nexus early-adopters or the CM9-alpha crowd.

> You can easily check whether your app is hardware accelerated on startup
> and warn the user it's not supported.

Also it appears that view.setLayerType(View.LAYER_TYPE_SOFTWARE,
null); still works as intended.


>
> On Mon, Dec 5, 2011 at 9:21 AM, Mark Murphy  wrote:
> > On Mon, Dec 5, 2011 at 12:04 PM, webmonkey  wrote:
> > > I see now that there are some websites that advise people to turn it
> > > on because it makes everything run smoother.
>
> > Got any links? At least we can work on trying to get these posts
> > updated, particularly if there's no SDK means of telling Android "no
> > means no" when it comes to the Force GPU setting (and I see nothing in
> > the SDK that looks promising).
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://github.com/commonsguy
> >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, One Low Price!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.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


[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-05 Thread MarkG123
Hmmm, I need to remove entries from tables as I "process" them...

Is there any way this can be achieved on Android?


On Dec 5, 9:05 am, Nikolay Elenkov  wrote:
> On Mon, Dec 5, 2011 at 5:50 PM, MarkG123  wrote:
>
> > The full callstack:
>
> > 12-04 19:51:12.665: I/Database(842): sqlite returned: error code = 8,
> > msg = prepared statement aborts at 37: [CREATE TABLE IF NOT EXISTS
> > android_metadata (locale TEXT)]
> > 12-04 19:51:12.665: E/Database(842): CREATE TABLE android_metadata
> > failed
> > 12-04 19:51:12.795: E/Database(842): Failed to setLocale() when
> > constructing, closing the database
> > 12-04 19:51:12.795: E/Database(842):
> > android.database.sqlite.SQLiteException: attempt to write a readonly
> > database
>
> Well, you are opening in READWRITE mode, and it tries to create a
> table. If it's not your own DB, open it in READONLY mode.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is useful testing actually possible?

2011-12-05 Thread Diego Torres Milano
CTS (http://source.android.com/compatibility/cts-intro.html) features
thousands of tests (literally). I'm sure you will find the examples
you are looking for.

On Dec 4, 2:11 am, Doug  wrote:
> > I think this goes some way to explaining why there are many bad
> > practices in the Android examples and the API itself.
>
> Care to share an example of bad practice from the Android core API?
>
> > Are we going to start seeing some tests being provided with these
> > example apps?
>
> Sample apps typically exist to demonstrate how to use an API, not how
> to use an API and then test it.  I've shipped SDKs with sample code
> but none with unit tests for the sample app itself, because it just
> isn't worthwhile.  The consumer can unit test their own stuff if they
> want.  The sample apps just show how to get work done, not how to
> prove that the scaffolding works as intended.
>
> Do you have a counter example of a sample app for any API that unit
> tests itself independently of the APIs that it demos?
>
> Have you investigated any literature or tutorials on Android unit
> testing?
>
> Doug

--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Mobile app discovery

2011-12-05 Thread Jose_GD
Kenneth, I think you are putting discoverability with testability in the 
same bag. Or have misunderstood you?

Discoverability is the real big deal IMO, a very difficult problem to solve.
Testability perhaps can be solved (at least partially) if Google helps us 
with more flexibility in the buying process, i.e. extending the 15 minute 
time to get a refund por apps users don't want to keep. Or maybe if we have 
some kind of trial mechanism so we don't resort to free - paid apps when we 
don't want to.

Best regards,

José
https://market.android.com/search?q=Jos%C3%A9+Gonz%C3%A1lez+D%27Amico&so=1&c=apps

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ICS Hardware Acceleration crash

2011-12-05 Thread webmonkey
Can you perhaps disable it using:

getWindow().clearFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);

Or does that not work ( I don't have a Galaxy Nexus to test )


On Dec 5, 7:01 pm, Romain Guy  wrote:
> This setting is unfortunately a double-edged sword, it was intended for
> developers so they could easily test their application with hardware
> acceleration turned on.
>
> You can easily check whether your app is hardware accelerated on startup
> and warn the user it's not supported.
>
>
>
>
>
>
>
>
>
> On Mon, Dec 5, 2011 at 9:21 AM, Mark Murphy  wrote:
> > On Mon, Dec 5, 2011 at 12:04 PM, webmonkey  wrote:
> > > I see now that there are some websites that advise people to turn it
> > > on because it makes everything run smoother.
>
> > Got any links? At least we can work on trying to get these posts
> > updated, particularly if there's no SDK means of telling Android "no
> > means no" when it comes to the Force GPU setting (and I see nothing in
> > the SDK that looks promising).
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://github.com/commonsguy
> >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, One Low Price!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.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


[android-developers] customer retention

2011-12-05 Thread bob
I'm having problems with customer retention.  Basically, they download
an app, fiddle around, and leave, I think.  Is there any canned
solution for getting them to sign up for an e-mail list like
mailchimp?  I want to be able to tell them about new products.


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


[android-developers] Re: User cannot install an update

2011-12-05 Thread John Gaby
You are, of course, correct.  I just wanted to understand what is
happening here so that I can determine whether it is my fault or not,
and whether I am going to have others that have this problem.  The
reality is that for every person that takes the time to report a
problem there are probably dozens (or hundreds?) who don't bother.


On Dec 5, 10:32 am, John Coryat  wrote:
> You'll have to decide what level of support you want to offer. For me, once
> I've determined it isn't a problem with the app, the user has to look
> elsewhere for support. I can't help solve problems with the countless
> versions of Android/carrier/manufacturer OS's and devices. I'd rather spend
> my time staring off into empty space than do that.
>
> If you want to be 100% support for any problem a user encounters, that's
> strictly up to you but if your app ever gets popular, then you'll be
> swamped. Better to send them to Android support and let them deal with it.
>
> -John Coryat
>
> @martin - I pasted the text I send to users, it wasn't modified to fit the
> poster's experience already. I have found this text to either solve all
> these problems or send the user to a place where they should seek help.
> That's why I posted 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


Re: [android-developers] customer retention

2011-12-05 Thread TreKing
On Mon, Dec 5, 2011 at 1:27 PM, bob  wrote:

> I'm having problems with customer retention.  Basically, they download
> an app, fiddle around, and leave, I think.  Is there any canned
> solution for getting them to sign up for an e-mail list like
> mailchimp?  I want to be able to tell them about new products.
>

http://groups.google.com/group/android-developers/about

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: User cannot install an update

2011-12-05 Thread John Coryat
That's pretty simple. If they have problems with the installing, updating, 
launching, downloading, uninstalling or (my favorite) the icon has 
disappeared, it's not your problem, it's an Android issue. 99.9% of those 
problems can be simply solved by rebooting or by uninstalling and 
reinstalling.  The rest are going to be oddities that affect only a very 
few and unless you have the actual device in your hands, probably 
unsolvable.

-John Coryat


-- 
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 set background color for context menu

2011-12-05 Thread TreKing
On Sun, Dec 4, 2011 at 9:11 PM, rambabu mareedu
wrote:

> HI to allIn my app iam using context menu for this i want to set
> some background colors to my context menu can anyone tell is it
> possible?
>

Don't think so - there's not much you can do with a context menu,
style-wise.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] Why doesn't layout_alignCenterInParent work?

2011-12-05 Thread Christopher Van Kirk
I struggled with this for a few hours then gave up on it. Apparently 
people have been asking this question for several years without a 
meaningful solution. I ended up using the much-maligned nested linear 
layouts approach instead.


Anyway, the issue wasn't related to height, but width. I'm fine with the 
grid view scrolling vertically, but when I specify that it has only 3 
columns, I want to be able to center those three in its parent, 
otherwise it looks awful. Seems like there's no good way to do that.


Next, I don't want to give it fixed dimensions because the range of 
devices causes the stuff I put inside it to grow and shrink with screen 
sizes. As far as I'm aware, there's no way to specify a percentage in 
either dimension.


Anyway, the problem is solved for the moment, although I'm not terribly 
excited about how I had to do it.



On 12/5/2011 7:47 AM, Mark Murphy wrote:

I would assume that GridView does not support wrap_content for
android:layout_height, no different that ListView. I'm not sure it
supports wrap_content for android:layout_width, either. And, of
course, your RelativeLayout doesn't have the attribute in your post
title, though I assume that's a copy/paste issue. :-)

Try it with a GridView with fixed dimensions and see what happens.

On Sun, Dec 4, 2011 at 5:41 PM, Christopher Van Kirk
  wrote:

I've tried several times now to use android:layout_alignCenterInParent to
center a child in its parent RelativeLayout view, but it never seems to
work.

What's wrong with this code, and why doesn't it center the GridView in the
outer RelativeView?


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"


android:id="@+id/select_grid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:numColumns="3"
android:columnWidth="90dp"
android:stretchMode="none"
android:gravity="center"
android:verticalSpacing="10dp"
android:horizontalSpacing="10dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp">



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en





--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] !

2011-12-05 Thread EmbSysPro
Hi,
I've been assigned the task of maintaining some preexisting code and
while examining the manifest file I came across the following items,

!
!

My problem is that I can't find an explanation for the use of the
exclamation point.  My guess is that it is an undocumented method of
permission suppression.  But I need to be sure.

Does anyone know what it is used for?

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


[android-developers] Re: User cannot install an update

2011-12-05 Thread mot12
I would agree with John that this is not worth your time as a support
issue. But if your user has root access, I would try deleting the app
data folder. This has worked for the issue that I addressed.
Otherwise, factory reset :(.

-- 
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] scrolling list on text enter in edit text.

2011-12-05 Thread nikki
Hi all,

I want to implement the feature for my app. I am having a list of
contact and an Edittext on top of it. Now when user type some text in
the edittext the corresponding matching name should scroll up(as it is
done in contact screen) in the list.

How and what is best way to do it.

Please suggest.

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


[android-developers] Auto show/hide of Options Menu

2011-12-05 Thread dillipk
Hi,
  Is it possible to do an Auto Show/Hide of Options Menu
programatically?

 As soon as my activity displays on the screen, I want my Options Menu
to display & hide automatically. In otherwords, I do not want to press
'Menu' key on the device to display my options menu.

Any help or idea to have similar functionality  is appreciated..

Thanks,
DK

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Mobile app discovery

2011-12-05 Thread klewelling
I want a service separate from testing. Running an app without
installing reduces friction, there is no steps getting in the way of
using the app. Your comment about trials is exactly the type of
feedback I want. The nature of the solution I had in mind lends itself
to trials or timelimits in apps. This would encourage users to try an
app and if they like it to buy it from the android market.

Thanks for the feedback
Kenneth

On Dec 5, 1:02 pm, Jose_GD  wrote:
> Kenneth, I think you are putting discoverability with testability in the
> same bag. Or have misunderstood you?
>
> Discoverability is the real big deal IMO, a very difficult problem to solve.
> Testability perhaps can be solved (at least partially) if Google helps us
> with more flexibility in the buying process, i.e. extending the 15 minute
> time to get a refund por apps users don't want to keep. Or maybe if we have
> some kind of trial mechanism so we don't resort to free - paid apps when we
> don't want to.
>
> Best regards,
>
> Joséhttps://market.android.com/search?q=Jos%C3%A9+Gonz%C3%A1lez+D%27Amico...

-- 
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] messages is not showing using Intent.createChooser()

2011-12-05 Thread ew web
hello,

my phone is android 2.3.4. the sharing option, messages, is not
showing when I try to share the intent among all registered
applications.
It works for android 2.2.1 though.

Could someone give me a hint what's happening please?

Many 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


[android-developers] Re: How to create a bitmap from binary data?

2011-12-05 Thread Vincent
Thanks a lot

On Dec 6, 1:51 am, Streets Of Boston  wrote:
> http://developer.android.com/reference/android/graphics/BitmapFactory...

-- 
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 do imageview 3d animation with pinch and zoom?

2011-12-05 Thread Christopher Van Kirk

OpenGL?

On 12/2/2011 6:04 PM, Hitendrasinh Gohil wrote:

Hi,

can anyone give me some idea how to pinch,zoom(i know but i want all
three in one) and rotate image in 3d?



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

2011-12-05 Thread Mark Murphy
On Mon, Dec 5, 2011 at 3:33 PM, EmbSysPro  wrote:
> I've been assigned the task of maintaining some preexisting code and
> while examining the manifest file I came across the following items,
>
> !
> ! android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
>
> My problem is that I can't find an explanation for the use of the
> exclamation point.  My guess is that it is an undocumented method of
> permission suppression.  But I need to be sure.
>
> Does anyone know what it is used for?

It's certainly not part of the Android SDK. AFAIK, that exclamation
point will be ignored.

Note that the STATUS_BAR permission is unavailable to standard SDK applications.

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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to retrieve connected bluetooth headset battery strength

2011-12-05 Thread lbendlin
let me copy and paste that for you

/**
* Get battery usage hint for Bluetooth Headset service.
* This is a monotonically increasing integer. Wraps to 0 at
* Integer.MAX_INT, and at boot.
* Current implementation returns the number of AT commands handled since
* boot. This is a good indicator for spammy headset/handsfree units that
* can keep the device awake by polling for cellular status updates. As a
* rule of thumb, each AT command prevents the CPU from sleeping for 500 ms
* @return monotonically increasing battery usage hint, or a negative error
* code on error
* @hide
*/

So the short answer would be "No".

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: 2.3.4 - Animation is working on the emulator but not on real device

2011-12-05 Thread Harald
It is a translate. But, I found the trouble! It is just a setup issue:
Setup -> Display -> Animation -> (All | Some | None)
None was selected.

I do not know the english words. But I thing all understand the issue.

Regards

Harald


On 5 Dez., 17:04, Kumar Bibek  wrote:
> What kind of animation it is? It would be great if you could explain
> how your animation is setup.
>
> On Dec 5, 4:43 pm, Harald  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I spent a lot of time to create a nice animation to slide from one
> > activity to the next an back. The animation is working on the
> > emulator. The emulator has the same android release as my phone. But
> > on my phone, the animation does not work.
>
> > Does someone know a possible reason?
>
> > Phone: Huawei Sonic (U8650)
>
> > Regards
> > Harald

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Can the LVL check for Paid app be done from my free app ?

2011-12-05 Thread androidmediadeveloper
ok, thank you. so, i guess the bottom line is that a free app cannot
check the license on another app that is a paid app, even if it is the
same publisher. there seemed to be several posts that seemed to
indicate this would be possible, thats what got me confused.

On Dec 5, 12:50 pm, Kostya Vasilyev  wrote:
> Let the free app (main) ask the paid app (the unlocker) run the LVL
> check and report results using any of the available inter-application
> communication options available on Android.
>
> As far as security goes - encrypting / signing the communication is
> one option, signing both apps with the same key and using a
> signature-protected permission is another.
>
> 5 ÄÅËÁÂÒÑ 2011šÇ. 21:28 ÐÏÌØÚÏ×ÁÔÅÌØ androidmediadeveloper
>  ÎÁÐÉÓÁÌ:
>
>
>
>
>
>
>
> > sorry, not clear. the free app can check if the paid app was
> > purchased ? it is the same publisher.
>
> > also, seems like i can use the android:sharedUserId and write the
> > license into shared prefs from one app and have the other read from
> > it. Is this a security issue ?
>
> > thanks
> > ajith
>
> > On Dec 5, 11:50šam, b0b  wrote:
> >> Yes this is doable if both app have šthe same userId
>
> >> You can implement a remote service in the unlocker paid app that check the
> >> license.
> >> Then your free app invoke binds to that remote service to do the check.
>
> >> If both of your apps share the same android:sharedUserId šyou're not forced
> >> to make the service public.
> >> If you don't have already have set a android:sharedUserId don't change it
> >> afterwards or it will cause problems (file permissions).
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SurfaceHolder.Callback.surfaceCreated not being triggered when surface is re-created

2011-12-05 Thread Thomas Fjellstrom
Ok, somehow eglCreateWindowSurface is failing to create a valid
surface any time but the first. eglSwapBuffers fails with a
EGL_BAD_SURFACE error. But eglCreateWindowSurface said it succeeded.
I'm stumped.


On Dec 5, 2:34 am, Thomas Fjellstrom  wrote:
> So I've managed to fix that particular problem. I'm not sure exactly
> what fixed it, but I assume it was a result of a couple different
> problems. I needed to set the manifest to only ever launch one
> instance at a time (I was seeing more than one activity object be
> created which messed things up). And I can't remember the second issue
> at the moment for some reason. I fixed up a lot of different issues
> trying to figure things out. It's not locking up anymore or waiting
> for an event that never comes, but on a resume, its not rendering
> anything any more. I am completely re-creating the SurfaceView and the
> GL ES context, and surface, with the same code that creates it the
> first time. things should be identical, but all I get is a black
> screen (instead of the white that I'm clearing it to). I'm getting
> input just fine, the rendering thread isn't locked up or anything, but
> nothing will draw once the app is restarted.
>
> Anyone have any idea what would cause this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: User cannot install an update

2011-12-05 Thread John Gaby
Thanks for all your help, the user does not have root access and is
not willing to reset his phone.  Rebooting the phone also does not
help (or so he tells me). So I guess that he is simply stuck with his
current version.

Thanks again.

On Dec 5, 12:39 pm, mot12  wrote:
> I would agree with John that this is not worth your time as a support
> issue. But if your user has root access, I would try deleting the app
> data folder. This has worked for the issue that I addressed.
> Otherwise, factory reset :(.

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