[android-developers] Rendering 24 bit RGB using Android Bitmap

2010-12-09 Thread KK
Hi,

  Is there anyway I can render a 24 bit RGB using Android Bitmap
class? The Bitmap.Config does not seem to have a 24 bit option. Is
there anyway to do this?

Thanks in advance
KK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android 2.3 and obfuscation.

2010-12-09 Thread swarup
Check proguard. This can used for any apk independent of SDK
http://developer.android.com/guide/developing/tools/proguard.html

On Dec 9, 2:11 am, sblantipodi perini.dav...@dpsoftware.org wrote:
 Hi all...

 The new SDK is capable of obfuscating the resulting APK simply by
 compiling the sources.
 This features should be included also in the previous version of SDK.

 Have you tryed this obfuscation? Does it works well?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] monkeyrunner fails for emulator: Error starting command: monkey --port 12345

2010-12-09 Thread swarup
Hi,
I am trying to run 'monkeyrunner' tool for emulator and I end up with
the below error:

101209 13:12:11.321:I [main] [com.android.monkeyrunner.MonkeyManager]
Monkey Command: wake.
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice] Error starting command:
monkey --port 12345
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]com.android.ddmlib.ShellCommandUnresponsiveException
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
com.android.ddmlib.Device.executeShellCommand(Device.java:276)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
com.android.monkeyrunner.adb.AdbMonkeyDevice
$1.run(AdbMonkeyDevice.java:89)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
417)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
java.util.concurrent.FutureTask.run(FutureTask.java:123)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:651)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:676)
101209 13:12:14.345:S [pool-1-thread-1]
[com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
java.lang.Thread.run(Thread.java:595)
...
...
...



I am having the following environment:

OS : Ubuntu 10.04
Jython : 2.2.1
Android SDK : 2.3 (GingerBread)
Device : Emulator



The target app for monkeyrunner is one of my DummyApp. Here is the
jython script I am using (its same one mentioned at
http://d.android.com/guide/developing/tools/monkeyrunner_concepts.html)

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

device = MonkeyRunner.waitForConnection()
device.installPackage('/home/swarup/DummyApp.apk')
device.startActivity(component='com.collabera.swarup.DummyActivity')
device.press('KEYCODE_MENU','DOWN_AND_UP')
result = device.takeSnapShot()
result.writeToFile('myproject/shot1.png','png')



Running only 'monkey' command works fine, but monkeyrunner fails. Any
clue in this regard would be a great 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: Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-09 Thread oriharel
Well, I can't put a TextView inside a LinearLayout by drag n' drop at
all.
am I missing something?

On Dec 9, 4:12 am, Xavier Ducrohet x...@android.com wrote:
 hey all,

 We're actively working on the editor, so this is good feedback.

 The new editor in 8.x might look the same, but it's completely
 different underneath and we have added the +/- features back.
 the - button should be replaced by delete anyway. You can right
 click and choose delete or simply hit delete on your keyboard.

 The + option is indeed replaced by drag and drop. We've improved
 drag and drop significantly (and still improving it for the next
 version), and should be good enough that using + isn't needed.
 In some cases too, + isn't enough, you need more information to know
 where the item will be placed (like when dropping into a
 relativeLayout).
 (same thing with the up/down arrows)









 On Tue, Dec 7, 2010 at 11:52 PM, oriharel ori.ha...@gmail.com wrote:
  Before the newest version I was able to create hierarchies using drag
  n' drop, performed on the outline view.
  Since the upgrade, I can't and the controls ('+', '-' and arrows) are
  missing.

  So how am I suppose to build view hierarchies now?

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. 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: ADT8 proguard integration not reading proguard.cfg

2010-12-09 Thread swarup
get a clue from 
http://proguard.sourceforge.net/manual/examples.html#androidapplication
the defualt proguard.cfg file might not work w/o additional tweaks.

On Dec 8, 9:08 pm, jb cona...@gmail.com wrote:
 Hi,

 I just updated my SDK to 2.3 and ADT to 8.01.
 I updated 'default.properties' to include:
 proguard.config=proguard.cfg
 proguard.cfg is in my project root directory.
 One of the entries in my proguard.cfg is '-
 dontskipnonpubliclibraryclasses'

 When I run a release with ant (or export with Eclipse) it appears that
 the proguard.cfg is not being read by proguard.  I get the following
 message from proguard.

  Warning: there were 247 unresolved references to classes or
 interfaces.
  [proguard]          You may need to specify additional library jars
 (using '-libraryjars'),
  [proguard]          or perhaps the '-dontskipnonpubliclibraryclasses'
 option.

 Any ideas or suggestions.

 jb

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Rendering 24 bit RGB using Android Bitmap

2010-12-09 Thread Romain Guy
Hi,

Just use the ARGB_ configuration and make sure all your pixels are
opaque.

On Wed, Dec 8, 2010 at 11:54 PM, KK krishnakumar.ramachand...@gmail.comwrote:

 Hi,

  Is there anyway I can render a 24 bit RGB using Android Bitmap
 class? The Bitmap.Config does not seem to have a 24 bit option. Is
 there anyway to do this?

 Thanks in advance
 KK

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] what's the bnds mean in logcat

2010-12-09 Thread Ernest
Hi,Folk
  Have you ever seen the log such as:
12-09 16:14:24.456: INFO/ActivityManager(60): Starting activity:
Intent { act=android.intent.action.MAIN flg=0x1010
cmp=com.test.Start/.Start bnds=[0,101][320,165] }
  Do you know the meaning of bnds? Thank you very much.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: monkeyrunner fails for emulator: Error starting command: monkey --port 12345

2010-12-09 Thread swarup
the same issue also seen on ADP1.
I tried tunning monkeyrunner on ADP1, and got the exact the same
error.

Looks like not emulator problem, might be a ADB code issue.

did anyone face similar issue?



On Dec 9, 1:02 pm, swarup me.s...@gmail.com wrote:
 Hi,
 I am trying to run 'monkeyrunner' tool for emulator and I end up with
 the below error:
 
 101209 13:12:11.321:I [main] [com.android.monkeyrunner.MonkeyManager]
 Monkey Command: wake.
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice] Error starting command:
 monkey --port 12345
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]com.android.ddmlib.ShellComma 
 ndUnresponsiveException
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 com.android.ddmlib.Device.executeShellCommand(Device.java:276)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 com.android.monkeyrunner.adb.AdbMonkeyDevice
 $1.run(AdbMonkeyDevice.java:89)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
 417)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 java.util.concurrent.FutureTask.run(FutureTask.java:123)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 java.util.concurrent.ThreadPoolExecutor
 $Worker.runTask(ThreadPoolExecutor.java:651)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 java.util.concurrent.ThreadPoolExecutor
 $Worker.run(ThreadPoolExecutor.java:676)
 101209 13:12:14.345:S [pool-1-thread-1]
 [com.android.monkeyrunner.adb.AdbMonkeyDevice]  at
 java.lang.Thread.run(Thread.java:595)
 ...
 ...
 ...
 

 I am having the following environment:
 
 OS : Ubuntu 10.04
 Jython : 2.2.1
 Android SDK : 2.3 (GingerBread)
 Device : Emulator
 

 The target app for monkeyrunner is one of my DummyApp. Here is the
 jython script I am using (its same one mentioned 
 athttp://d.android.com/guide/developing/tools/monkeyrunner_concepts.html)
 
 from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

 device = MonkeyRunner.waitForConnection()
 device.installPackage('/home/swarup/DummyApp.apk')
 device.startActivity(component='com.collabera.swarup.DummyActivity')
 device.press('KEYCODE_MENU','DOWN_AND_UP')
 result = device.takeSnapShot()
 result.writeToFile('myproject/shot1.png','png')
 

 Running only 'monkey' command works fine, but monkeyrunner fails. Any
 clue in this regard would be a great 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: SDK 2.3: Get Multiple substitutions specified in non-positional format error

2010-12-09 Thread Ecthelion
On 8 Dez., 20:52, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Dec 8, 2010 at 2:40 PM, Ecthelion ep...@joergjahnke.de wrote:
  But if I should find one of these resource names
  thereby, how will I know whether the code inside the library relies on
  the old string format or whether it works fine with the new %1$s
  %2$s?

 Testing.

Brilliant. But that essentially means that I cannot be 100% sure that
my changes would not cause undesired side effects.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] what's the bnds mean in logcat

2010-12-09 Thread Dianne Hackborn
bounds, rectangle of the screen from which the intent originated.

On Thu, Dec 9, 2010 at 12:28 AM, Ernest sunkil...@gmail.com wrote:

 Hi,Folk
  Have you ever seen the log such as:
 12-09 16:14:24.456: INFO/ActivityManager(60): Starting activity:
 Intent { act=android.intent.action.MAIN flg=0x1010
 cmp=com.test.Start/.Start bnds=[0,101][320,165] }
  Do you know the meaning of bnds? Thank you very much.

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] TabActivity resulting in a crash.

2010-12-09 Thread ColletJb
Hi,

I have a small issue i hope someone will be able to help me.

Basically, I've a listactivity, and when the user clicks a line, it
starts a tabactivity.

The tabactivity starts with downloading a content in a separate thread
and when it's done, the runOnUI method is used to create the sub-tabs
accordingly to the downloaded data.

I works with the emulator on 2.2 and 2.3 but crashes with 2.1.

This is the resulting stack trace :

E/AndroidRuntime( 6306): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 6306): java.lang.RuntimeException: Unable to start
activity ComponentInfo{be.defimedia.android.walkawaremobile/
be.defimedia.android.walkawaremobile.ItemListActivity}:
java.lang.NullPointerException
E/AndroidRuntime( 6306):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
E/AndroidRuntime( 6306):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
E/AndroidRuntime( 6306):at android.app.ActivityThread.access
$2200(ActivityThread.java:119)
E/AndroidRuntime( 6306):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 6306):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 6306):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 6306):at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 6306):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 6306):at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 6306):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 6306):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 6306):at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 6306): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 6306):at
be.defimedia.android.walkawaremobile.ItemListActivity.onCreate(ItemListActivity.java:
75)
E/AndroidRuntime( 6306):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
E/AndroidRuntime( 6306):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
E/AndroidRuntime( 6306):... 11 more

Does anyone has an idea how I can do that for Android 2.1 ? Thanks a
lot.

Best regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: TableRow not on top of each others

2010-12-09 Thread Christophe
hello Bret,

I have try to put it in a vertical LinearLayout but the result is the
same ...

On Dec 8, 7:06 pm, Bret Foreman bret.fore...@gmail.com wrote:
 Try putting your TableLayout inside a LinearLayout with vertical
 orientation.

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


[android-developers] Re: Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-09 Thread oriharel
fill_parent should not be deprecated. it has different functionality
then match_parent

On Dec 9, 1:19 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 fill_parent has been deprecated since 2.2.  It's now match_parent

 On Dec 8, 10:01 pm, Julian cacif...@gmail.com wrote:







  Also de up and down arrows.
  Another thing, Where is the fill_parent option?

  2010/12/8 Prashast prash...@gmail.com

   At first I thought its because of a wrong view being opened but looks
   like they have removed the +, - and arrows.

   While working with a complex layout dragging the views just doesn't
   work me. The only solution is to go edit the files in XML.

   The +, - and arrows controls should be brought back IMO

   On Dec 8, 3:54 pm, Kumar Bibek coomar@gmail.com wrote:
Yep they are gone. Perhaps, we are now supposed to do drag and drop. +
   -
signs were helpful though.
Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

On Wed, Dec 8, 2010 at 1:22 PM, oriharel ori.ha...@gmail.com wrote:
 Before the newest version I was able to create hierarchies using drag
 n' drop, performed on the outline view.
 Since the upgrade, I can't and the controls ('+', '-' and arrows) are
 missing.

 So how am I suppose to build view hierarchies now?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
  ­cr...@googlegroups.comandroid-developers%2Bunsubs
   cr...@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.comandroid-developers%2Bunsubs
­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en-Hide quoted text -

  - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Browser screen flickering

2010-12-09 Thread Nitin Mahajan
Hello,

I am running the Android 2.2 rowboat-Froyo on a OMAP 3503 based board, and
have the evaluation version Adobe Flash plugin installed.

After I browse any website with flash content in it, I can see a lot of
flickering on the Browser when ever I do scrolling on the page, on any
website thereafter.

To get rid of this I have to forcefully kill the Browser from settings, and
then the flickering is gone, utill again I browse any website with flash
content.

Has anybody else faced the same problem? Can I get some pointers, as to
which areas to look in?

1. One thing which I have confirmed is that the GC is not the culprit...

2. Another observation: I am using TV and VGA as display devices
alternatively.

a. With TV resolution 720x480 flicker happens
b. With VGA monitor resolution 1024x768 flicker does not happen, with
all other conditions remaining same.
c. With VGA resolution 640x480 flicker happens.

thanks in advance

regards
-Nitin

regards
-Nitin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: WebView's JavaScriptInterface throwing exception 100% of time

2010-12-09 Thread String
Just yesterday I was getting a segfault from 2.2 at 0xdeadbaad. Not
consistently, but I certainly saw that address show up a couple of
times. Hah.


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

Re: [android-developers] Re: Does getBestLastKnownLocation block?

2010-12-09 Thread Kostya Vasilyev

09.12.2010 4:49, Greg Giacovelli пишет:

Kostya,
Is it just not able to get a fix or does your phone display become
completely black? If it just is not getting a fix then yes we know of
that issue. But on phones where the screen goes black reoccurs even
when restarting the phone (and consequently the gps). It's sort of
bizarre.


There is no black screen, crash or ANR.

Applications are able to get a network-provided location, but not GPS 
location.


There is no radar icon in the status bar to indicate working GPS.

When GPS works, GPS Test (available on Market), first shows a list of 
candidate satellites, which then change color to indicate signal 
strength. With this bug, no satellites show up ever.


-- Kostya


-Greg



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] TextView.setError() strange behavior

2010-12-09 Thread Etienne
The documentation for the method TextView.setError() says that the
method:

Sets the right-hand compound drawable of the TextView to the error
icon and sets an error message that will be displayed in a popup when
the TextView has focus. The icon and error message will be reset to
null when any key events cause changes to the TextView's text. If the
error is null, the error message and icon will be cleared.

So there are many EditText views that i use this method without any
problems.  However, there is one EditText view in which once i use the
arrows from my keyboard to gain focus on the view, the error icon gets
set to null and disappears but the error message is still displayed.
The desired behavior should be that both the icon and message show
until a key is pressed to enter text into the view.

The disappearing icon does not happen if i use my mouse to click on
the EditText view so that it gains focus.
Has anybody seen this issue or know what could be the cause of this?
Thanks for any help with 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: 安卓联航公司招聘And roid人才

2010-12-09 Thread James
招聘帖子居然没有被和谐掉。。probably the group administrators just have no idea what
you are talking about 哈哈

On Dec 6, 9:13 pm, 何斌斌 hbbs...@gmail.com wrote:
 一、企业介绍:
 安卓联航软件科技(北京)有限公司:http://www.andlisoft.com

 二、职位描述:
 从事Android相关软件的开发

 三、职位要求:
 1. Java技术扎实,同时有C++与Java开发经验优先;
 2. 半年以上Android平台开发经验,熟悉Android架构;
 3. 对研究和探索新技术有浓厚兴趣;
 4. 具备良好的职业素养和团队协作精神,以及较强的学习能力,能够承担工作压力;

 四、工作地点:北京

 五、联系方式:有意者请发简历至 an...@andlisoft.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] drawing 2D - vector based paths arcs etc

2010-12-09 Thread dashman
i'd like to get some info on how to draw vector based paths,
arcs and other shapes.

can someone point me in the right direction.

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: TextView.setError() strange behavior

2010-12-09 Thread Etienne
So i had a listener that i thought i got rid of but it was still in
the code:

emailEntry.setOnKeyListener(new View.OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
emailEntry.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
return false;
}
});

Now the setError behavior works fine.  Issue Resolved.

On Dec 9, 2:07 am, Etienne lawloretie...@gmail.com wrote:
 The documentation for the method TextView.setError() says that the
 method:

 Sets the right-hand compound drawable of the TextView to the error
 icon and sets an error message that will be displayed in a popup when
 the TextView has focus. The icon and error message will be reset to
 null when any key events cause changes to the TextView's text. If the
 error is null, the error message and icon will be cleared.

 So there are many EditText views that i use this method without any
 problems.  However, there is one EditText view in which once i use the
 arrows from my keyboard to gain focus on the view, the error icon gets
 set to null and disappears but the error message is still displayed.
 The desired behavior should be that both the icon and message show
 until a key is pressed to enter text into the view.

 The disappearing icon does not happen if i use my mouse to click on
 the EditText view so that it gains focus.
 Has anybody seen this issue or know what could be the cause of this?
 Thanks for any help with 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] Problem of debug build.

2010-12-09 Thread Farproc
I have upgraded to Android SDK 2.3(with Android SDK Tools, version 8 
Android SDK Platform-tools, version1) and ADT/DDMS Version:
8.0.1.v201012062107-82219. But I can't use the debug build feature.


I remove debuggable attribute in the AndroidManifest.xml of my
project because the doc says Developers no longer need to add the
android:debuggable attribute to the application tag in the manifest —
the build tools add the attribute automatically.



but when I try to debug that app in Eclipse, the Console window
shows[2010-.. - TestDebug] Device 'HT01TP*' requires that
applications explicitely declare themselves as debuggable in their
manifest.
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;
color: #ff1213} [2010-... - TestDebug]
Application 'com.x.testdebug' does not have the
attribute 'debuggable' set to TRUE in its manifest and cannot be
debugged.




Any idea? 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] drawing 2D - vector based paths arcs etc

2010-12-09 Thread Kostya Vasilyev

Canvas.drawPath:

http://developer.android.com/reference/android/graphics/Canvas.html

Path:

http://developer.android.com/reference/android/graphics/Path.html

addArc, arcTo, etc.

-- Kostya

09.12.2010 13:34, dashman пишет:

i'd like to get some info on how to draw vector based paths,
arcs and other shapes.

can someone point me in the right direction.

thanks.




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Problem of debug build.

2010-12-09 Thread Kostya Vasilyev

Same here.

Eclipse Helios SR1, ADT 8.0.1, Motorola Milestone.

Would like to know the answer as well.

-- Kostya

09.12.2010 13:43, Farproc ?:
I have upgraded to Android SDK 2.3(with Android SDK Tools, version 8  
Android SDK Platform-tools, version1) and ADT/DDMS Version: 
8.0.1.v201012062107-82219. But I can't use the debug build feature.


I remove debuggable attribute in the AndroidManifest.xml of my 
project because the doc says


Developers no longer need to add the
|android:debuggable| attribute to the |application| tag in the
manifest — the build tools add the attribute automatically.


but when I try to debug that app in Eclipse, the *Console* window shows

[2010-.. - TestDebug] Device 'HT01TP*' requires that
applications explicitely declare themselves as debuggable in their
manifest.

[2010-... - TestDebug] Application 'com.x.testdebug' does
not have the attribute 'debuggable' set to TRUE in its manifest
and cannot be debugged.


 Any idea? 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 



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] setOverScrollMode ListView

2010-12-09 Thread pedr0
Hi at all,

in the API documentation of ListView (http://developer.android.com/
reference/android/widget/ListView.html) I read that ListView class is
a child of android.widget.AbsListView but when I try to call the
method setOverScrollMode(int mode) I get a compiler error..

See documentation link:
http://developer.android.com/reference/android/widget/AbsListView.html#setOverScrollMode(int)



What's wrong?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] setOverScrollMode ListView

2010-12-09 Thread Kostya Vasilyev

Are you building your project with Android 2.3?

09.12.2010 14:01, pedr0 пишет:

Hi at all,

in the API documentation of ListView (http://developer.android.com/
reference/android/widget/ListView.html) I read that ListView class is
a child of android.widget.AbsListView but when I try to call the
method setOverScrollMode(int mode) I get a compiler error..

See documentation link:
http://developer.android.com/reference/android/widget/AbsListView.html#setOverScrollMode(int)



What's wrong?






--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: TableRow not on top of each others

2010-12-09 Thread Christophe
finally found the problem : I had 2 table row with the same id ...

On Dec 9, 10:16 am, Christophe christophe.lebesner...@gmail.com
wrote:
 hello Bret,

 I have try to put it in a vertical LinearLayout but the result is the
 same ...

 On Dec 8, 7:06 pm, Bret Foreman bret.fore...@gmail.com wrote:

  Try putting your TableLayout inside a LinearLayout with vertical
  orientation.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Installation of GALAXY Tab add-on

2010-12-09 Thread Sutanto 苏坦托
I have problem like yours,  but although still appear in available
packages it also appear in intalled packages so I can create AVD base on
Samsung Galaxy Tab SDK

On Thu, Dec 9, 2010 at 2:52 AM, Farproc farp...@gmail.com wrote:

 I have installed GALAXY Tab add-on in SDK And AVD manager, but it is still
 in Available packages always! What is the problem?

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




-- 
Sutanto
http://www.tnto.info

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: setOverScrollMode ListView

2010-12-09 Thread pedr0
Yes I do.

On 9 Dic, 12:04, Kostya Vasilyev kmans...@gmail.com wrote:
 Are you building your project with Android 2.3?

 09.12.2010 14:01, pedr0 пишет:









  Hi at all,

  in the API documentation of ListView (http://developer.android.com/
  reference/android/widget/ListView.html) I read that ListView class is
  a child of android.widget.AbsListView but when I try to call the
  method setOverScrollMode(int mode) I get a compiler error..

  See documentation link:
 http://developer.android.com/reference/android/widget/AbsListView.htm...)

  What's wrong?

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.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] Image zooming functionality in Android just like the iphone

2010-12-09 Thread Ajmer Singh
Hi All

I am working on an android app where i need to implement an image zooming
functionality(zoom will work by moving fingers apart and bringing them
together will zoom out the image).This is just like the way iphone does.

Could anyone please let me know is this possible?,Does Android provide any
inbuilt support in SDK for doing this?.Is there any kind of tutorial for
doing this?.

-- 
Thanks and Regards
Ajmer Singh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: setOverScrollMode ListView

2010-12-09 Thread pedr0
Excuse-me, I am developing with 2.2 SDK.

On 9 Dic, 12:04, Kostya Vasilyev kmans...@gmail.com wrote:
 Are you building your project with Android 2.3?

 09.12.2010 14:01, pedr0 пишет:









  Hi at all,

  in the API documentation of ListView (http://developer.android.com/
  reference/android/widget/ListView.html) I read that ListView class is
  a child of android.widget.AbsListView but when I try to call the
  method setOverScrollMode(int mode) I get a compiler error..

  See documentation link:
 http://developer.android.com/reference/android/widget/AbsListView.htm...)

  What's wrong?

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.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: ProGuard Integration?

2010-12-09 Thread jb
Hi Xavier,

I just updated my SDK to 2.3 and ADT to 8.01.
I updated 'default.properties' to include:
proguard.config=proguard.cfg
proguard.cfg is in my project root directory.
One of the entries in my proguard.cfg is
'-dontskipnonpubliclibraryclasses'

When I run a release with ant (or export with Eclipse) it appears that
the proguard.cfg is not being read by proguard.  I get the following
message from proguard.

 Warning: there were 247 unresolved references to classes or
interfaces.
 [proguard]  You may need to specify additional library jars
(using '-libraryjars'),
 [proguard]  or perhaps the '-dontskipnonpubliclibraryclasses'
option.

Any ideas or suggestions.

jb

On Dec 8, 4:39 pm, Xavier Ducrohet x...@android.com wrote:
 Robert, if you use the new build system and the default proguard
 config file, you shouldn't have any problem.

 you will however need Ant 1.8 as we use a new feature.

 I'm going to add a check on this to make sure people don't use a
 version of ant that's too low.



 On Wed, Dec 8, 2010 at 9:20 AM, Robert Nekic robertne...@gmail.com wrote:
  I'm also encountering problems getting the ProGuard integration
  going.  Everything was fine with a test project until I added a few
  jars to libs and added them to the Java Build Path.  Now my attempts
  to generate an unsigned release build causes the following error:

  com.android.ide.eclipse.adt.internal.build.ProguardResultException
         at
  com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(Unknown
  Source)
         at
  com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(Unknown
  Source)
         at com.android.ide.eclipse.adt.internal.project.ExportHelper
  $2.run(Unknown Source)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

  I have previously used ProGuard and Ant generate builds outside of
  Eclipse and my old build script included -libraryjars ${android-jar};
  ${external-libs-folder} in the ProGuard params.  I'm trying to figure
  out the equivalent addition to proguard.cfg but so far have not
  succeeded.

  Any tips?

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. 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: setOverScrollMode ListView

2010-12-09 Thread Kostya Vasilyev

There you go.

setOverscrollMode is new with API level 9.

You need to update your build environment and project settings to 
Android Platform SDK 2.3


-- Kostya

09.12.2010 14:51, pedr0 пишет:

Excuse-me, I am developing with 2.2 SDK.

On 9 Dic, 12:04, Kostya Vasilyevkmans...@gmail.com  wrote:

Are you building your project with Android 2.3?

09.12.2010 14:01, pedr0 пишет:










Hi at all,
in the API documentation of ListView (http://developer.android.com/
reference/android/widget/ListView.html) I read that ListView class is
a child of android.widget.AbsListView but when I try to call the
method setOverScrollMode(int mode) I get a compiler error..
See documentation link:
http://developer.android.com/reference/android/widget/AbsListView.htm...)
What's wrong?

--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Can't access SurfaceFlinger

2010-12-09 Thread 袁堂夫
Hi everyone,
I am using uses-permission
 android:name=android.permission.ACCESS_SURFACE_FLINGER /
to access the SurfaceFlinger.
But I am getting the error
*W/ServiceManager(   59): Permission failure:
android.permission.ACCESS_SURFACE_FLINGER from uid=10036 pid=325
E/SurfaceFlinger(   59): Permission Denial: can't access SurfaceFlinger
pid=325,
 uid=10036*
How to Rectify the above error?
With Regards,
Mr Yuan..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem Using Tamil font(Latha.ttf)

2010-12-09 Thread FTCube
I need to use tamil on textviews in my app so I create a TypeFace from
assets and set it to the textview.
The characters appear out of order for combined characters. I load the
strings from the resources.(string.xml in utf-8 encoding)
How to solve this issue?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Package Missing 2.3 Sample Application

2010-12-09 Thread gopu
I tried to build the  NFC sample application FakeTagsActivity .

I am getting the error for the packages  starts with
com.google.common.base

import com.google.common.base.Charsets;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;

i am using the Google Apis [Android 2.3]  .What packages should i need
to add more ?

android.jar  maps.jar are currently in the Eclipse path...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 zooming functionality in Android just like the iphone

2010-12-09 Thread guillaume benats
Android zoom works already that way for version 2.1 and greater

On Thu, Dec 9, 2010 at 11:51 AM, Ajmer Singh ajmersing...@gmail.com wrote:

 Hi All

 I am working on an android app where i need to implement an image zooming
 functionality(zoom will work by moving fingers apart and bringing them
 together will zoom out the image).This is just like the way iphone does.

 Could anyone please let me know is this possible?,Does Android provide any
 inbuilt support in SDK for doing this?.Is there any kind of tutorial for
 doing this?.

 --
 Thanks and Regards
 Ajmer Singh





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




-- 
Benats Guillaume .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Using Tamil font(Latha.ttf)

2010-12-09 Thread gopu
Grouping the characters handled by the Skia Graphics lib with the
Shaping Engine,For Tamil i don't think any shaping engines are
Available now with Android.

On Dec 9, 5:26 pm, FTCube fasttrackc...@gmail.com wrote:
 I need to use tamil on textviews in my app so I create a TypeFace from
 assets and set it to the textview.
 The characters appear out of order for combined characters. I load the
 strings from the resources.(string.xml in utf-8 encoding)
 How to solve this issue?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: JPEG Image has a map

2010-12-09 Thread sal
Thanks Igor, it was very useful

On Dec 9, 2:35 am, ip332 iprile...@gmail.com wrote:
 Here is the actual code to show an image on top of the Google map.
 Regards
 Igor
 ===
 package com.map.overlay;

 import java.util.List;

 import com.google.android.maps.GeoPoint;
 import com.google.android.maps.MapActivity;
 import com.google.android.maps.MapController;
 import com.google.android.maps.MapView;
 import com.google.android.maps.Overlay;

 import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
 import android.graphics.Canvas;
 import android.graphics.Point;
 import android.graphics.Rect;
 import android.os.Bundle;

 public class MyOverlay extends MapActivity {
         Bitmap          bmp;    // loaded bitmap in memory
         GeoPoint        min;    // top left corner (lat/long)
         GeoPoint        max;    // right bottom corner (lat/long)

         @Override
         public void onCreate(Bundle savedInstanceState) {
                 super.onCreate(savedInstanceState);
                 setContentView(R.layout.main);

                 bmp = BitmapFactory.decodeFile(/sdcard/test.bmp);   // load 
 bitmap
 (can use JPG,PNG,etc.)
                 min = new GeoPoint(37374000,-121913000);                // 
 bounding rectangle
                 max = new GeoPoint(37375000,-121912000);

                 MapView mapView = (MapView) findViewById(R.id.mapView);
                 mapView.setSatellite(true);                             // 
 switch to the satellite
 view
                 MapController ctrl = mapView.getController();
                 int x = (min.getLongitudeE6() + max.getLongitudeE6())/ 2;     
   // select
 map center
                 int y = (min.getLatitudeE6() + max.getLatitudeE6())/ 2;
                 ctrl.setCenter(new GeoPoint(y,x));
                 ctrl.setZoom(21);                                       // 
 set scale
                 mapView.setBuiltInZoomControls(true);                   // 
 enable zoom controls

                 MapOverlay mapOverlay = new MapOverlay();
                 ListOverlay listOfOverlays = mapView.getOverlays();
                 listOfOverlays.clear();
                 listOfOverlays.add(mapOverlay);

                 mapView.invalidate();
         }

         class MapOverlay extends Overlay
         {
                 @Override
                 public boolean draw(Canvas canvas, MapView mapView, boolean 
 shadow,
 long when)
                 {
                         // convert bitmap's bounding box into pixels
                         Point top_left = new Point();
                         mapView.getProjection().toPixels(min, top_left);
                         Point bottom_right = new Point();
                         mapView.getProjection().toPixels(max, bottom_right);

                         // Prepare two rectangles (pixels)
                         Rect src = new Rect( 0,0,bmp.getWidth() - 1, 
 bmp.getHeight() - 1 );
                         Rect dst = new Rect( top_left.x, bottom_right.y,
 bottom_right.x,top_left.y );

                         // draw bitmap
                         canvas.drawBitmap( bmp, src, dst, null);
                         return true;
                 }
         }

         @Override
         protected boolean isRouteDisplayed() {
                 // TODO Auto-generated method stub
                 return false;
         }

 }

 On Dec 8, 12:32 am, sal suhailb...@gmail.com wrote:







  Thank guys for your suggestion

  @Frank

  What do you mean Mobile CAD, i want just a mark up on the JPEG image
  based on predefined locations , thats it.
  i thot Google Map API would provide me better support of doing markup
  if i am able to convert JPEG image into google map
  do u have any good pointer or reference to application which does mark
  up on image.

  @Igor
  Buddy, i have developed an application to draw a image on MapView ,
  logic wise i know its right
  somewhere i am messing with certain objects which leads to exception .
  so i requested for  sample code  so that i can cross verify

  regards
  Sal

  On Dec 8, 6:04 am, ip332 iprile...@gmail.com wrote:

   Sol,
   No offense, but ability to debug the application (especially when you
   have source code and debugging tools) is one of the most basic things
   any programmer must have.
   Yes, Android make programming looks like a pretty simple and easy
   activity however when you don't understand what are you doing and
   cannot debug the problem - you won't get anything good out of it.
   They say There is no replacement for a displacement about a car
   engine. Same here - you can't ask for a ready-to-use code to get more
   or less acceptable result unless you spent certain amount of time,
   nerves, coffee, etc.
   Nobody get it from the first time. Google it, ask questions but do not
   expect someone to solve your problem.

   Anyway I will try to create a sample app but don't know when I'll have
   time (my current 

Re: [android-developers] Re: SDK 2.3: Get Multiple substitutions specified in non-positional format error

2010-12-09 Thread Mark Murphy
On Thu, Dec 9, 2010 at 3:50 AM, Ecthelion ep...@joergjahnke.de wrote:
 Brilliant. But that essentially means that I cannot be 100% sure that
 my changes would not cause undesired side effects.

You can't be 100% sure of anything with a third-party library.

How do you ensure that you are passing the proper parameters to
methods? Testing.

How do you ensure that you are covering all RuntimeExceptions the
library might throw? Testing.

How do you ensure that the third-party library handles edge cases
(e.g., WiFi failing over to 3G)? Testing.

And so on.

Resources are, in effect, part of the public API, just like method
parameters and exceptions.

Now, don't get me wrong -- I agree with the general sentiment that the
String.format()/string resource stuff should be a warning, not an
error.

However, modifying resources, particularly string resources, is an
important part of the reuse of an Android library project. No
developer should say well, we have to live with a messy translation
of this string, because they did not use indexed substitutions, and so
we have to keep everything in the same order, even if that makes no
sense in such-and-so language.

If the developer of a library failed to use indexed substitutions, and
they somehow rely upon the implicit ordering, that is a bug in the
library, plain and simple. Like any other bug in the library, reusers
find out about it via testing, plain and simple.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


Re: [android-developers] Edittext mask

2010-12-09 Thread Rogério de Souza Moraes
Hi TreKing,

thanks for helping me. i created an video on youtube to show the problem:

http://www.youtube.com/watch?v=pwZp9s9su10

The source code:

http://pastebin.com/FKSvzSSb
http://pastebin.com/rj0M3RCR

Regards,

Rogerio

2010/12/8 TreKing treking...@gmail.com

 2010/12/7 Rogério de Souza Moraes rogerio.so...@gmail.com

 When he clicks enter the finale text is fine, but I am afraid that a dummy
 user will not understand what happened when the edittext hide the numbers
 that he typed.


 What do you mean the edit text hides the first three numbers? Do you have a
 screen shot to illustrate?


 -
 TreKing http://sites.google.com/site/rezmobileapps/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.comandroid-developers%2bunsubscr...@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] TabActivity resulting in a crash.

2010-12-09 Thread Mark Murphy
You have a NullPointerException at ItemListActivity.java line 75.

On Thu, Dec 9, 2010 at 4:06 AM, ColletJb collet...@gmail.com wrote:
 Hi,

 I have a small issue i hope someone will be able to help me.

 Basically, I've a listactivity, and when the user clicks a line, it
 starts a tabactivity.

 The tabactivity starts with downloading a content in a separate thread
 and when it's done, the runOnUI method is used to create the sub-tabs
 accordingly to the downloaded data.

 I works with the emulator on 2.2 and 2.3 but crashes with 2.1.

 This is the resulting stack trace :

 E/AndroidRuntime( 6306): Uncaught handler: thread main exiting due to
 uncaught exception
 E/AndroidRuntime( 6306): java.lang.RuntimeException: Unable to start
 activity ComponentInfo{be.defimedia.android.walkawaremobile/
 be.defimedia.android.walkawaremobile.ItemListActivity}:
 java.lang.NullPointerException
 E/AndroidRuntime( 6306):        at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2496)
 E/AndroidRuntime( 6306):        at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2512)
 E/AndroidRuntime( 6306):        at android.app.ActivityThread.access
 $2200(ActivityThread.java:119)
 E/AndroidRuntime( 6306):        at android.app.ActivityThread
 $H.handleMessage(ActivityThread.java:1863)
 E/AndroidRuntime( 6306):        at
 android.os.Handler.dispatchMessage(Handler.java:99)
 E/AndroidRuntime( 6306):        at android.os.Looper.loop(Looper.java:123)
 E/AndroidRuntime( 6306):        at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 E/AndroidRuntime( 6306):        at
 java.lang.reflect.Method.invokeNative(Native Method)
 E/AndroidRuntime( 6306):        at
 java.lang.reflect.Method.invoke(Method.java:521)
 E/AndroidRuntime( 6306):        at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:860)
 E/AndroidRuntime( 6306):        at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 E/AndroidRuntime( 6306):        at dalvik.system.NativeStart.main(Native
 Method)
 E/AndroidRuntime( 6306): Caused by: java.lang.NullPointerException
 E/AndroidRuntime( 6306):        at
 be.defimedia.android.walkawaremobile.ItemListActivity.onCreate(ItemListActivity.java:
 75)
 E/AndroidRuntime( 6306):        at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1047)
 E/AndroidRuntime( 6306):        at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2459)
 E/AndroidRuntime( 6306):        ... 11 more

 Does anyone has an idea how I can do that for Android 2.1 ? Thanks a
 lot.

 Best regards

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




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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


Re: [android-developers] Are activity managed cursors requeried on the UI thread?

2010-12-09 Thread Mark Murphy
You do not need to manage all cursors, regardless of thread. Managing
a SQLiteCursor may not be a bad idea, but it is not required.

On Thu, Dec 9, 2010 at 2:39 AM, Jonas Schwertfeger
jschwertfe...@gmail.com wrote:
 From looking at Activity's source code it seems like managed cursors
 are requiered straight from the UI thread.  Am I reading this wrong or
 is this indeed the case?

 -Jonas

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




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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


Re: [android-developers] Are activity managed cursors requeried on the UI thread?

2010-12-09 Thread Mark Murphy
Whoops. I read required where you had requeried.

A managed cursor will re-run the query on the main application thread.
I do not know of a way around that, other than to have the Cursor not
be managed.

On Thu, Dec 9, 2010 at 8:27 AM, Mark Murphy mmur...@commonsware.com wrote:
 You do not need to manage all cursors, regardless of thread. Managing
 a SQLiteCursor may not be a bad idea, but it is not required.

 On Thu, Dec 9, 2010 at 2:39 AM, Jonas Schwertfeger
 jschwertfe...@gmail.com wrote:
 From looking at Activity's source code it seems like managed cursors
 are requiered straight from the UI thread.  Am I reading this wrong or
 is this indeed the case?

 -Jonas

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




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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!




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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


Re: [android-developers] Re: Market not updating?

2010-12-09 Thread David Erosa García
On Wed, Dec 8, 2010 at 10:28 PM, WhitneyApps whitneya...@gmail.com wrote:
 There is something weird going on in the market.  Both of my apps'
 total counts went down today.  Active installs can drop but total
 count shouldn't!


Now my total downloads  active installs counts are also dropping!
I'll file a report about 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: Child View events in adapter for gallery

2010-12-09 Thread sunrises
Hi Treking,
Thank you for your reply
case 1:when I added click listeners for each image in the adapter then
the gallery app stopped scrolling, so I chosen another alternative
case 2:in which I used HorizontalScrollView which consists in
LinearLayout as child aging this LinearLayout contains a lot number of
LinearLayouts again each of these child LinearLayouts contains two
ImageViews as child for each ImageView I added OnClickListeners...It
is good if the images which are static, but Im downloading the Images
from my HTTP server.. it takes time to load the images and it some
times throws the unknown host exception(in OS 2.2, but  works better
in 2.1) even my network does not have any problems..Im not sure where
it is wrong...
I have used the asynchronous image loading for downloading the
images..still Im searching alternatives  to improve the scrolling and
downloading the images
My goals are:
1.designing layout as two rows and each row contains images which are
downloaded from the internet
which should have smooth horizontally scrolling
2.each ImageView should handle the click event seprately
3.Need  to down load the images asynchronously
Thank You

On Dec 9, 4:32 am, TreKing treking...@gmail.com wrote:
 On Tue, Dec 7, 2010 at 4:18 AM, sunrises surya@gmail.com wrote:
   I need to handle the user events separately for each ImageView..

 Then add click handlers separately to each ImageView.

 -
 TreKing http://sites.google.com/site/rezmobileapps/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: Back button problem

2010-12-09 Thread YuviDroid
So...if you have 2 items in your listview and you delete one...and call your
method that reloads the list you get 3 items instead of 1?
Probably you just have to empty the list before re-adding the items that are
in the db.

On Thu, Dec 9, 2010 at 4:53 AM, pramod.deore deore.pramo...@gmail.comwrote:

 Hello , Now I had place the code that loads data from the database in
 a function and called that function when user hit the delete button .
 But now record gets deleted, but changes are not visible properly.
 (Properly means suppose there are 2 records and if I delete one record
 then at this time it shows me 3 records i.e 2 earlier and one after
 removing one record out of that 2 But actually one record gets
 successfully deleted. When I restarts the application and see the
 record then only one record it shows.)  Then how to refresh this list
 view screen?

 On Dec 8, 4:47 pm, Kostya Vasilyev kmans...@gmail.com wrote:
  Also, don't do this:
 
  startActivity(getIntent());
 
  This launches a new activity just like the current one.
 
  If you need to keep the current activity and update the UI with new
  data, just put that code in a function and call it when necessary.
 
  -- Kostya
 
  08.12.2010 14:31, pramod.deore пишет:
 
 
 
   Thanks Kostya for your suggestion and link.
 
   On Dec 8, 4:27 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
   Pramod,
 
   Move the code that loads data from the database from onCreate to
 onStart.
 
   See this for an explanation:
 
  http://developer.android.com/guide/topics/fundamentals.html#actlife
 
   ( scroll down to see a very useful flowchart )
 
   -- Kostya
 
   08.12.2010 14:08, pramod.deore пишет:
 
   Hi everybody,
 In my application I am displaying list. I have created
   ContextMenu. In that there are options like add,remove,back,etc...
 Now when I select Remove option then  I call method
   deleteRecord(), which  delete that list record from database. After
   that I call method - startActivity(getIntent());  Because of this
   method activity restarts and list changes are instantly visible to
   user because in start method I had write code that display the list
   like.
   public void onCreate(Bundle savedInstanceState)
 {
 super.onCreate(savedInstanceState);
 try
 {
   sampleDB =  this.openOrCreateDatabase(SAMPLE_DBNAME,
   MODE_PRIVATE, null);
   Cursor c = sampleDB.rawQuery (SELECT RoomName,
   SwitchFullName FROM SwitchTable ORDER BY RoomName,null);
   int count = c.getCount();
   System.out.println (Total number of records are+count);
   if (c != null )
   {
   if  (c.moveToFirst())
   {
   do
   {
   roomName =
 c.getString(c.getColumnIndex(RoomName));
   switchName =
   c.getString(c.getColumnIndex(SwitchFullName));
   System.out.println
 (roomName+:+switchName);
  
 results.add(roomName+-+switchName);
   }
   while (c.moveToNext());
   c.close();
   }
   }
   this.setListAdapter(new ArrayAdapterString(this,
   android.R.layout.simple_list_item_1,results));
 }
 catch (SQLiteException se )
 {
   Log.e(getClass().getSimpleName(), Could not create or
 Open
   the database);
 }
 finally
 {
   //sampleDB.close();
 }
 registerForContextMenu(getListView());
 }
   Now suppose I have list like this
   Hall - Fan
   Kitchen - AC
   Bedroom - tv
   and suppose I delete record no 1 then list display as following
   Kitchen - AC
   Bedroom - tv
   It looks perfectly well. But suppose I press the back button then
   list is again display as
   Hall - Fan
   Kitchen - AC
   Bedroom - tv
   Actually first record is deleted succesfully, but though also it is
   displayed when I press back button. How to avoid this problem?
   --
   Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com
 
  --
  Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)

[android-developers] Re: Market not updating?

2010-12-09 Thread Chris Johnson
My Total Downloads dropped too. And my active installs dropped a lot
faster today than other days.

On Dec 9, 7:48 am, David Erosa García soul...@gmail.com wrote:
 On Wed, Dec 8, 2010 at 10:28 PM, WhitneyApps whitneya...@gmail.com wrote:
  There is something weird going on in the market.  Both of my apps'
  total counts went down today.  Active installs can drop but total
  count shouldn't!

 Now my total downloads  active installs counts are also dropping!
 I'll file a report about 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: Proguard and Conversion to Dalvik format failed with error 1

2010-12-09 Thread Felix Oghina
I've had the same problem with JTPL http://jtpl.sf.net/

The solution I've found (not the best solution, but a pretty quick and
simple one) was to actually get the source code of the library and
include it in the project. I.e. now I have the packages:

com.android.vending.licensing;
com.android.vending.licensing.util;
com.myapp;
com.myapp.activity;
com.myapp.service;
...
net.sf.jtpl;
net.sourceforge.jtpl;

It's apparent Android (or Eclipse?) doesn't like JARs very much.

A note is that even with this solution (including the source code in
your own project), Eclipse still won't be able to build your app. I do
it from the command line using ant, which, yes, it's pretty
rudimentary and slower than Eclipse.

Eclipse has a very erratic behavior (3.5 and 3.6 as well).. it will
sometimes build my app (after a clean project), but then I modify the
source code a bit and it will start giving the Conversion to Dalvik
format failed with error 1 message. Other times it will give the
error immediately after clean project.

Have no idea what's going on. My bet is the ADT Plugin is messing up
for some reason (BTW they released 8.0.1 like less than a day after
releasing 8.0.0, to fix bugs. I'd expect an 8.0.2 pretty soon...).


On Dec 8, 5:24 pm, olivier olivier.stev...@treebux.fr wrote:
 After few test,

 the problem is coming from an external Jar.
 twitter4J -http://twitter4j.org/en/index.html.

 I try to exclude the file doing :
 -keep public class twitter4j.**{ public protected *; }

 I still got the problem.

 I have no problem with the libGoogleAnalytics.jar

 Does someone has a solution ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] double buffering OpenGL ES

2010-12-09 Thread Paolo
Hi there, I'm a newbie in OpenGL and OpenGL ES. I need some
clarifications about double buffering in Android.

I read Android supports implicit double-buffering for OpenGL, is
right?
Could I manage it or it is totally controlled by Android?

Thanks in advance.

Paolo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] double buffering OpenGL ES

2010-12-09 Thread Paolo
Hi there, I'm a newbie in OpenGL and OpenGL ES. I need some
clarifications about double buffering in Android.

I read Android supports implicit double-buffering for OpenGL, is
right?
Could I manage it or it is totally controlled by Android?

Thanks in advance.

Paolo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: setOverScrollMode ListView

2010-12-09 Thread pedr0
Thanks so much.


On 9 Dic, 13:15, Kostya Vasilyev kmans...@gmail.com wrote:
 There you go.

 setOverscrollMode is new with API level 9.

 You need to update your build environment and project settings to
 Android Platform SDK 2.3

 -- Kostya

 09.12.2010 14:51, pedr0 пишет:









  Excuse-me, I am developing with 2.2 SDK.

  On 9 Dic, 12:04, Kostya Vasilyevkmans...@gmail.com  wrote:
  Are you building your project with Android 2.3?

  09.12.2010 14:01, pedr0 пишет:

  Hi at all,
  in the API documentation of ListView (http://developer.android.com/
  reference/android/widget/ListView.html) I read that ListView class is
  a child of android.widget.AbsListView but when I try to call the
  method setOverScrollMode(int mode) I get a compiler error..
  See documentation link:
 http://developer.android.com/reference/android/widget/AbsListView.htm...)
  What's wrong?
  --
  Kostya Vasilyev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.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] testing NDK on HTC Magic

2010-12-09 Thread Alexander
Hello everybody.

I'm trying to port an app using NDK in order to be capable of reusing
the C code of the application.

starting to work with the libs, i tested bitmap-plasma from the
sample projs and i'ts working OK
in the emulator (target 2.2), but when uploaded to the device (HTC
Magic. system. 1.5) the debugger
gives exception saying the native lib was not loaded.
I'm using Eclipse for the android proj. and compiling the native code
with cygwin make. the ndk-version is r4.

i also tried the hellojni projects and that one works fine on the
device, so i'm thinking maybe there is some parameter in
bitmap-plasma that is causing problems??

please any help on what is causing this and how can i fix it. Thank
you very much!.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Installation of GALAXY Tab add-on

2010-12-09 Thread Streets Of Boston
Yep, same problem here.

First i didn't check the 'installed packages' and did an install again
from the 'available packages'.
Now it shows up twice in my installed emulator targets

I bet that if i installed it 'again', it will show up three
times... :-)


On Dec 9, 5:52 am, Farproc farp...@gmail.com wrote:
 I have installed GALAXY Tab add-on in SDK And AVD manager, but it is
 still in Available packages always! What is the problem?

  OU�g 2010-12-09 H06.49.13.png
 107KViewDownload

  OU�g 2010-12-09 H06.49.39.png
 85KViewDownload

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Market not updating?

2010-12-09 Thread Yahel
Guys, it is notorious that the only thing the Market console allows
you to do is post your app and update it.

It already has a lot of trouble doing this, don't expect anything else
from it.

The numbers you see are random at worth, hints at best.

The market console is a temporary-we'll make it better someday when we
have time-half baked-we need to ship tomorrow so do your best-one man
team effort-crapware :s

But hey as Google always says, it's free, so be happy you can at least
post your apps :D

We repeat out loud for everyone : DO NOT RELY ON THE NUMBERS, OR
ANYTHING FOR THAT MATTER, IN THE MARKET CONSOLE. It is a waste of time
for you.

Yahel

On Dec 8, 1:30 am, Brill Pappin br...@pappin.ca wrote:
 I seem to be having a problem with my paid apps in the market. No
 comments or downloads showing but I have about 30 purchases since this
 morning.

 Is anyone else noticing their apps stuck like that?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Installation of GALAXY Tab add-on

2010-12-09 Thread Kevin Yuan
Yes, I have installed it more than 5 times and it ends up with more than 5
that add-ons in the list.
在 2010-12-9 下午11:01,Streets Of Boston flyingdutc...@gmail.com写道:
 Yep, same problem here.

 First i didn't check the 'installed packages' and did an install again
 from the 'available packages'.
 Now it shows up twice in my installed emulator targets

 I bet that if i installed it 'again', it will show up three
 times... :-)


 On Dec 9, 5:52 am, Farproc farp...@gmail.com wrote:
 I have installed GALAXY Tab add-on in SDK And AVD manager, but it is
 still in Available packages always! What is the problem?

  OU�g 2010-12-09 H06.49.13.png
 107KViewDownload

  OU�g 2010-12-09 H06.49.39.png
 85KViewDownload

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] What's the general consensus on the non-Android affiliated app stores?

2010-12-09 Thread Rich
I have gotten a few emails from proprietary app stores that offer
distribution to their network of devices that don't come with the
Android Market.  Are these a sham?  Are there any legit ones that
stand out?  I like the idea of one centralized market so that my
download/rating metrics are accurate, and I imagine that the apk's
must be pretty easy to crack open and decompile, but I was curious to
see what the community thinks.  The one email in particular I just
received is from a company called Handster offering distribution on HP
and LG devices.  Anyone heard of them and/or have dealings with them?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: testing NDK on HTC Magic

2010-12-09 Thread Alexander
i'm seeing that there is an Application.mk with the directive
APP_ABI := armeabi armeabi-v7a.
i commented this line to check if the device couldn't support it. but
it still says Library plasma Not Found

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: testing NDK on HTC Magic

2010-12-09 Thread Alexander
ok
i just saw that the code is using ljnigraphics.  and thats for = 2.2.
so that's pretty much 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] Button color - StateListDrawable question

2010-12-09 Thread AUandroid
I am allowing the user to change the color of the buttons. I want to
maintain the default drawables used for focused and onPressed state
and apply the color only when the button is neither  pressed nor
focused.

I am currently achieving this by checking the state of the view in
onDraw() on the button class and apply the color filter if it is
neither pressed or focused, else I am passing null to color filter.

Is there any easier way of doing this? Is there a way to get the
default StateListDrawable of the button and change only the desired
state drawable. I have too many views in my layout and I am trying to
reduce any work done in onDraw method as it is slows down the
layout.Thanks

-VK


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Button color - StateListDrawable question

2010-12-09 Thread Mark Murphy
The StateListDrawable and nine-patch PNG resources used by a Button
are in your SDK. Copy them into your project and modify to suit.

On Thu, Dec 9, 2010 at 10:24 AM, AUandroid thevk...@gmail.com wrote:
 I am allowing the user to change the color of the buttons. I want to
 maintain the default drawables used for focused and onPressed state
 and apply the color only when the button is neither  pressed nor
 focused.

 I am currently achieving this by checking the state of the view in
 onDraw() on the button class and apply the color filter if it is
 neither pressed or focused, else I am passing null to color filter.

 Is there any easier way of doing this? Is there a way to get the
 default StateListDrawable of the button and change only the desired
 state drawable. I have too many views in my layout and I am trying to
 reduce any work done in onDraw method as it is slows down the
 layout.Thanks

 -VK


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




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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


[android-developers] Re: Button color - StateListDrawable question

2010-12-09 Thread AUandroid
thanks, I will try that way

On Dec 9, 9:26 am, Mark Murphy mmur...@commonsware.com wrote:
 The StateListDrawable and nine-patch PNG resources used by a Button
 are in your SDK. Copy them into your project and modify to suit.



 On Thu, Dec 9, 2010 at 10:24 AM, AUandroid thevk...@gmail.com wrote:
  I am allowing the user to change the color of the buttons. I want to
  maintain the default drawables used for focused and onPressed state
  and apply the color only when the button is neither  pressed nor
  focused.

  I am currently achieving this by checking the state of the view in
  onDraw() on the button class and apply the color filter if it is
  neither pressed or focused, else I am passing null to color filter.

  Is there any easier way of doing this? Is there a way to get the
  default StateListDrawable of the button and change only the desired
  state drawable. I have too many views in my layout and I am trying to
  reduce any work done in onDraw method as it is slows down the
  layout.Thanks

  -VK

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

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


[android-developers] Re: ADT8 proguard integration not reading proguard.cfg

2010-12-09 Thread dooblou
I am having the same issues.

I previously used the tutorial on the official Android Developers Blog
to set up an Ant build that integrated ProGuard and it all worked
fine.  After updating the SDK and tools to 2.3, that automated build
broke, so I tried using the new integration method for Eclipse and
ProGuard.  I think it's not finding my external JARs in the 'libs'
directory, but no matter what I specify in '-libraryjars' it can't
seem to find them.

Is there any special format for defining paths on this '-libraryjars'
option?  I have more than 1 external JAR.

On Dec 8, 4:08 pm, jb cona...@gmail.com wrote:
 Hi,

 I just updated my SDK to 2.3 and ADT to 8.01.
 I updated 'default.properties' to include:
 proguard.config=proguard.cfg
 proguard.cfg is in my project root directory.
 One of the entries in my proguard.cfg is '-
 dontskipnonpubliclibraryclasses'

 When I run a release with ant (or export with Eclipse) it appears that
 the proguard.cfg is not being read by proguard.  I get the following
 message from proguard.

  Warning: there were 247 unresolved references to classes or
 interfaces.
  [proguard]          You may need to specify additional library jars
 (using '-libraryjars'),
  [proguard]          or perhaps the '-dontskipnonpubliclibraryclasses'
 option.

 Any ideas or suggestions.

 jb

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: What's the general consensus on the non-Android affiliated app stores?

2010-12-09 Thread Maps.Huge.Info (Maps API Guru)
I would be wary of the Chinese companies, you have no control over
what they do and payment would be problematic. Most of the others are
legitimate and offer an alternative to the somewhat quirky Android
market. The issue isn't the companies offering these services, it's
one of being in a small niche. Most mobile users depend on the market
that came with their device. Only a handful of people will go outside
the standard market to look for apps.

-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] Conflicts with framework classes

2010-12-09 Thread BoD
Hi!

I have a project that uses a library (a jar file in the project) that
defines classes in the javax.sip package.
Until now it worked fine.

But when trying in a 2.3 emulator, it appears that the same classes
(but probably a different version) already exist in the framework, and
that causes problems.

I was kind of assuming that in such cases the project classes would
take over but in my instance it seems it's not the case. Is this
behavior expected or an anomaly?

If it's the expected behavior, how should this be handled?

Thanks a lot for your 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: ProGuard Integration?

2010-12-09 Thread Robert Nekic
Hi Xavier,

I updated from Ant 1.7.1 to 1.8.1 but that did not change anything.  I
also updated to ADT 8.0.1; I hadn't noticed the quick follow-up to
it.   I now see more information in my Console view.  I'm getting all
kinds of Warnings (239 to be exact) that  x.y.z can't find referenced
class a.b.c followed by the suggestion that perhaps I need to specify
more library jars using the -libraryjar option...or perhaps specify -
dontskipnonpubliclibraryclasses...which is already in my
proguard.cfg.  For example, my project uses BouncyCastle and many
warnings relate to bouncy castle references to javax.naming.*

ProGuard's website lead me to the scary -ignorewarnings option and
that gets me past the issue and the build completes.  But their
website also warns only use these options if you really know what
you're doing and I'm not inclined to claim that I do!


Robert

On Dec 8, 7:39 pm, Xavier Ducrohet x...@android.com wrote:
 Robert, if you use the new build system and the default proguard
 config file, you shouldn't have any problem.

 you will however need Ant 1.8 as we use a new feature.

 I'm going to add a check on this to make sure people don't use a
 version of ant that's too low.









 On Wed, Dec 8, 2010 at 9:20 AM, Robert Nekic robertne...@gmail.com wrote:
  I'm also encountering problems getting the ProGuard integration
  going.  Everything was fine with a test project until I added a few
  jars to libs and added them to the Java Build Path.  Now my attempts
  to generate an unsigned release build causes the following error:

  com.android.ide.eclipse.adt.internal.build.ProguardResultException
         at
  com.android.ide.eclipse.adt.internal.build.BuildHelper.runProguard(Unknown
  Source)
         at
  com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk( 
  Unknown
  Source)
         at com.android.ide.eclipse.adt.internal.project.ExportHelper
  $2.run(Unknown Source)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

  I have previously used ProGuard and Ant generate builds outside of
  Eclipse and my old build script included -libraryjars ${android-jar};
  ${external-libs-folder} in the ProGuard params.  I'm trying to figure
  out the equivalent addition to proguard.cfg but so far have not
  succeeded.

  Any tips?

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. 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: SDK 2.3: Get Multiple substitutions specified in non-positional format error

2010-12-09 Thread chaozh
I still can not solve it with adding 'n$' prefix for every format
string. The error still exist.
I'm using android-8 tools but compile with android 2.1 sdk. Is it only
used for android 2.3 sdk compiling enviroment?
I tried to add formatted=false in this string line, just like:
string name=my name formatted=falsesomething %d %s/string
Still can not pass compilation. How do I do? it make me annoy.
Thanks a lot!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Child View events in adapter for gallery

2010-12-09 Thread sunrises
My concept is similar to 
http://lifehacker.com/5636202/droidiris-is-a-gesture+based-google-images-search-tool

On Dec 9, 7:08 pm, sunrises surya@gmail.com wrote:
 Hi Treking,
 Thank you for your reply
 case 1:when I added click listeners for each image in the adapter then
 the gallery app stopped scrolling, so I chosen another alternative
 case 2:in which I used HorizontalScrollView which consists in
 LinearLayout as child aging this LinearLayout contains a lot number of
 LinearLayouts again each of these child LinearLayouts contains two
 ImageViews as child for each ImageView I added OnClickListeners...It
 is good if the images which are static, but Im downloading the Images
 from my HTTP server.. it takes time to load the images and it some
 times throws the unknown host exception(in OS 2.2, but  works better
 in 2.1) even my network does not have any problems..Im not sure where
 it is wrong...
 I have used the asynchronous image loading for downloading the
 images..still Im searching alternatives  to improve the scrolling and
 downloading the images
 My goals are:
 1.designing layout as two rows and each row contains images which are
 downloaded from the internet
 which should have smooth horizontally scrolling
 2.each ImageView should handle the click event seprately
 3.Need  to down load the images asynchronously
 Thank You

 On Dec 9, 4:32 am, TreKing treking...@gmail.com wrote:

  On Tue, Dec 7, 2010 at 4:18 AM, sunrises surya@gmail.com wrote:
    I need to handle the user events separately for each ImageView..

  Then add click handlers separately to each ImageView.

  -
  TreKing http://sites.google.com/site/rezmobileapps/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] What's the general consensus on the non-Android affiliated app stores?

2010-12-09 Thread TreKing
On Thu, Dec 9, 2010 at 9:10 AM, Rich aguynamedr...@gmail.com wrote:

 Are these a sham?


Probably some.


 Are there any legit ones that stand out?


AndAppStore, SlideMe, and the upcoming Amazon store, stand out based on what
I've seen around here.


 I like the idea of one centralized market so that my download/rating
 metrics are accurate


I KNOW you're not talking about the Android Market with this talk of
accuracy. =)


 I imagine that the apk's must be pretty easy to crack open and decompile


Yup.


 but I was curious to see what the community thinks.


I don't think you're going to find a general consensus. It depends on your
app and what makes sense for you and how much hassle you're willing to go
through to maintain multiple distributions.


 The one email in particular I just received is from a company called
 Handster offering distribution on HP and LG devices.  Anyone heard of them
 and/or have dealings with them?


I have not.

-
TreKing http://sites.google.com/site/rezmobileapps/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] sqlite3 on Android

2010-12-09 Thread Michael MacDonald
The initial cursor position is before the first row.  You have to
moveToNext() or moveToFirst( before you get  any data out of the cursor.

On 12/09/10 01:36, kypriakos wrote:
 I have the following code that accesses data on a database residing
 in
 /data/data/app name/databases (I copy my database from the assets
 dir into the databases dir at runtime).

 c = myDB.rawQuery(SELECT * FROM +dbTable+ WHERE name='+line
 +', null);
System.out.println (Executing :: SELECT * FROM +dbTable+ WHERE
 name='+line+');
System.out.println (Cols = +c.getColumnCount()+, Col Idx for data
 = +c.getColumnIndex(data));
 return(c.getString(c.getColumnIndex(data)));

 I can run the query manually and things look good. However at runtime
 the above code gives the following
 exception. Why is the cursor index out of bounds?? There are two
 columns and the data coln has
 the index of 1. Why is it saying that it is -1 even though I am
 passing it 1? Any idea?

  Database connection established
  Executing :: SELECT * FROM groceries WHERE name='yourlist3'
  Cols = 2, Col Idx for data = 1
  android.database.CursorIndexOutOfBoundsException: Index -1 requested,
 with a size of 1
 at
 android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
 at
 android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:
 172)
 at
 android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:
 41)
 at
 com.p2pSOAAndroidCP_16.DA.sqlite3DBHandler.query(sqlite3DBHandler.java:
 84)
 at com.p2pSOAAndroidCP_16.DA.DiscoveryAgent
 $ServerConnection.run(DiscoveryAgent.java:1671)
  Database connection terminated

   

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: LVL and 2.3 Emulator

2010-12-09 Thread Goddchen
same problem here... :(

On 8 Dez., 03:58, Nick nick1...@gmail.com wrote:
 I have LVL working with my app and am able to test it with the 2.2
 Google API emulator. I updated to 2.3 and created a 2.3 Google API
 emulator. I signed in with you dev account on the emulator just like
 before, but now I am getting:

 12-07 21:42:57.879: INFO/LicenseChecker(760): Binding to licensing
 service.
 12-07 21:42:57.899: WARN/ActivityManager(61): Unable to start service
 Intent { act=com.android.vending.licensing.ILicensingService }: not
 found
 12-07 21:42:57.899: ERROR/LicenseChecker(760): Could not bind to
 service.

 I haven't changed anything in the code and it still works on 2.2. I
 have read the 2.3 release docs and haven't found any documented
 changes to LVL? Obviously I don't have a real phone with 2.3 to test
 on :)

 Does 2.3 w/ Google API SDK support LVL?
 Any ideas?

 Thanks,
 Nick

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


Re: [android-developers] Re: SDK 2.3: Get Multiple substitutions specified in non-positional format error

2010-12-09 Thread chaozh
If there is only one format tag in single string line, do I need
add '1$' prefix for it?
I don't know what happened on my strings file. I also tried to add the
prefix for that string line reported by aapt, but It also tell me the
same error is on this line.
I don't know what it really used for format syntax, is only for strict
check? or you will add some feature on it in the feature?
If we need replace all format tags even there is only one tag in single
string. I don't think this is good way since this change make us do
more useless work as so far I can see.
This change also still not be made clear tag on SDK document. At least,
i didn't find it.
Another question, I'm not sure my app can work well on old version if
it is compiled with this new change. From my understanding, I think no
problem.
Sorry for my poor English. It really make me annoy. Please forgive that
my words. I just only want to know how to solve this problem.

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

[android-developers] ADB drivers for Windows XP available for Android devices

2010-12-09 Thread Gus
Hi All:

I have the Viewsonic G Tablet with Android 2.2, and I want to debug my
own programs.
Once I connected to my PC (Windows XP), it was recognized and I'm able
to access the tablet as a Mass Storage Device.
However, when I want to debug the application, the tablet it's not
being recognized as a ADB device (Android Debug Bridge). (USB
Debugging is enable in the device).
I know there is a USB drivers which cover many of the available
Android devices, but not all of them.
My question is, does the manufacturer (Viewsonic in this case) need to
develop and provide an ADB driver for each device? Otherwise, how can
we debug the device? Is there any other solution for this (like a
generic driver)?

Thanks;
Gus

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Samsung-Specific Media Player Errors

2010-12-09 Thread Rich
Hello!

I'm having some significant issues with MP3 streaming on large files
on Samsung Devices with Android 2.1 (ie, the Samsung Galaxy S). This
is using mfrederick's NPR-code for streaming mp3 support. Has anybody
else encountered this? Does anybody have a Samsung phone which allows
side-loading who would be willing to help debug this?

Here is the dump trace. SISO apparently means Samsung India Software
Operations


12-07 17:39:35.812 D/MediaPlayerService( 2209): getPlayerType : url =
http://127.0.0.1:60943/http://mymp3.mp3, filePath =
http://127.0.0.1:60943/http://mymp3.mp3
12-07 17:39:35.812 D/( 2209): SISO TEST registering
PVMFRecognizerPluginFactory
12-07 17:39:35.812 D/( 2209): SISO TEST registering
PVMFRecognizerPluginFactory success
12-07 17:39:35.822 E/( 2209): III Inside Constructor of
PVMFMemoryBufferWriteDataStreamImpl
12-07 17:39:35.912 I/System.out( 2935): interface name: null
12-07 17:39:38.515 I/AudioHardwareALSA( 2209): Output standby
called!!. Turn off PCM device.
12-07 17:39:41.147 D/dalvikvm( 2935): GC freed 890 objects / 108752
bytes in 93ms
12-07 17:39:45.377 E/MediaPlayer( 2935): message received msg=3,
ext1=0, ext2=0
12-07 17:39:45.377 E/MediaPlayer( 2935): callback application
12-07 17:39:45.377 E/MediaPlayer( 2935): back from callback
12-07 17:39:45.392 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.392 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin()
12-07 17:39:45.392 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin() plugin found
12-07 17:39:45.392 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::DestroyRecognizerPlugin()
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin()
12-07 17:39:45.412 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin() plugin found
12-07 17:39:45.412 D/( 2209): PVFile::GetFileName
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::DestroyRecognizerPlugin()
12-07 17:39:45.417 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.417 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:55.817 E/PlayerDriver( 2209): Command (6) was cancelled

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Conflicts with framework classes

2010-12-09 Thread Mark Murphy
On Thu, Dec 9, 2010 at 10:53 AM, BoD bodl...@gmail.com wrote:
 I was kind of assuming that in such cases the project classes would
 take over but in my instance it seems it's not the case. Is this
 behavior expected or an anomaly?

That behavior is expected. AFAIK, the project cannot override the OS's classes.

 If it's the expected behavior, how should this be handled?

Either stop using that JAR, or convert it to a new package. There's a
utility for that floating around, though I forget the name and don't
have a link -- sorry!

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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


[android-developers] Re: SyncAdapter questions: monitoring sync status; getting sync settings; sync icon

2010-12-09 Thread focuser
anyone could help please?

On Dec 3, 2:11 pm, focuser linto...@gmail.com wrote:
 Thanks,

 but like I've already said in the message, The
 ContentResolver.addSyncStatusListener method
 seems not useful since it notifies SyncStatusObserver when the sync
 status of any SyncAdapter changes, not the particular sync identified
 by an account+authority combination. 

 Using SyncStatusObserver would cause way too many refreshes.

 On Dec 2, 4:04 pm, afterhoursdevelopers.com







 ch...@afterhoursdevelopers.com wrote:
  Check out

 http://developer.android.com/reference/android/content/SyncStatusObse...

  On Dec 2, 6:34 pm, focuser linto...@gmail.com wrote:

   Hi,

   I am experiementing with SyncAdatpers and have a few questions that I
   could not find answers either in the documentation or this group
   yet.

   - How to monitor the status of sync after requesting it via
   ContentResolver.requestSync?  For example, I need to refresh the UI
   when the requested sync finishes.

   The javadoc of the method talks about SyncObserver which does not
   actually exist.  The ContentResolver.addSyncStatusListener method
   seems not useful since it notifies SyncStatusObserver when the sync
   status of any SyncAdapter changes, not the particular sync identified
   by an account+authority combination.  The current method I use is to
   spawn a thread which checks the result of ContentResolver.isSyncActive/
   isSyncPending continuously.  But it's quick and dirty solution.  I
   guess one could also extends AbstractThreadedSyncAdapter and write a
   new binder but it seems overkill.  I assume there are better
   solutions?

   - How to check if a SyncAdatper is CHECKED in the Accounts  Sync
   settings?  ContentResolver.getIsSyncable only checks if a SyncAdapter
   is available for a given account.  It will always return true no
   matter if that checkbox is checked or not, as long as the checkbox
   exists in the settings.

   - The sync icon on the status bar seems only visible when calling
   requestSync with SYNC_EXTRAS_MANUAL set to true.  Without that extra,
   a sync would be succesfully requested and executed, but the icon does
   not appear at all.  Is this by design?  And why?

   Thanks for your 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


Re: [android-developers] Re: SDK 2.3: Get Multiple substitutions specified in non-positional format error

2010-12-09 Thread chaozh
The problem solved now.
The error reported by Eclipse made me confusion. It also made me think
this change does not work. Seems there is redundancy error after I made
a right change.
Anyway, everything is ok now. Thanks a lot!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] sqlite3 on Android

2010-12-09 Thread H
Personally, I use the following logic which caters nicely for no rows
as well:


if (cursor != null) {
cursor.moveToPosition(-1);
while (cursor.moveToNext()) {
// doSomething with cursor row
}
cursor.close();
}

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

Re: [android-developers] ADB drivers for Windows XP available for Android devices

2010-12-09 Thread Kostya Vasilyev

Gus,

As first step, enable ADB in device settings (on the tablet).

There is no generic driver for ADB. Each device uses its own UPnP vendor 
 device IDs, although I understand all NVidia Tegra based devices use 
the same ones.


Some manufacturers do provide an ADB driver (Samsung, Motorola).

Since Viewsonic does not seem to be among them:

- Connect the tablet to the computer, wait until driver installation fails
- Find out the UPnP IDs used by the tablet (Device Manager, hardware 
info tool, etc.)

- Edit android_winusb.inf in the standard Android driver and add those IDs
- Reinstall the driver and reconnect the tablet, this time it should connect

Also see this, which pretty much says the same thing:

http://tegradeveloper.nvidia.com/tegra/forum/faq-where-can-i-find-usb-drivers

-- Kostya

09.12.2010 19:39, Gus пишет:

Hi All:

I have the Viewsonic G Tablet with Android 2.2, and I want to debug my
own programs.
Once I connected to my PC (Windows XP), it was recognized and I'm able
to access the tablet as a Mass Storage Device.
However, when I want to debug the application, the tablet it's not
being recognized as a ADB device (Android Debug Bridge). (USB
Debugging is enable in the device).
I know there is a USB drivers which cover many of the available
Android devices, but not all of them.
My question is, does the manufacturer (Viewsonic in this case) need to
develop and provide an ADB driver for each device? Otherwise, how can
we debug the device? Is there any other solution for this (like a
generic driver)?

Thanks;
Gus




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] sqlite3 on Android

2010-12-09 Thread Kostya Vasilyev

No need to explicitly move to position -1 - it's the initial position.

Just doing while (moveNext()) is fine.

09.12.2010 20:00, H ?:
Personally, I use the following logic which caters nicely for no rows 
as well:


if (cursor != null) {
cursor.moveToPosition(-1);
while (cursor.moveToNext()) {
   // doSomething with cursor row
}
cursor.close();
}
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Conflicts with framework classes

2010-12-09 Thread BoD
Thanks a lot for your answer.
You probably think of jarjar links (http://code.google.com/p/
jarjar/).

I'm a bit surprised though because I seem to remember 'redefining'
other libraries (HttpClient, and some XML lib) and we never had a
problem.

If somebody from the Android team could confirm this, it would be
greatly appreciated. Thanks a lot!

BoD


On Dec 9, 5:42 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Dec 9, 2010 at 10:53 AM, BoD bodl...@gmail.com wrote:
  I was kind of assuming that in such cases the project classes would
  take over but in my instance it seems it's not the case. Is this
  behavior expected or an anomaly?

 That behavior is expected. AFAIK, the project cannot override the OS's 
 classes.

  If it's the expected behavior, how should this be handled?

 Either stop using that JAR, or convert it to a new package. There's a
 utility for that floating around, though I forget the name and don't
 have a link -- sorry!

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

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


[android-developers] Re: What's the general consensus on the non-Android affiliated app stores?

2010-12-09 Thread Phil Endecott
On Dec 9, 3:10 pm, Rich aguynamedr...@gmail.com wrote:
 I have gotten a few emails from proprietary app stores that offer
 distribution to their network of devices that don't come with the
 Android Market.  Are these a sham?  Are there any legit ones that
 stand out?

I've also been looking into this.  Alongside these stores, you should
consider selling the download directly from your own website as people
with these non-market devices will also be able to install things in
that way.

My expectation would be to get very modest download numbers, so my
main consideration is the level of admin overhead.  I looked at
SlideMe, and it seems to be more bureaucratic than even Google or
Apple!  (You have to send them an invoice before they will pay you.)
If anyone can suggest other stores that are really easy to set up and
use, it would be interesting to hear about them.  Maybe Amazon will be
good, but their obvious deficiency is their geographic limitation.


Regards,  Phil.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: What's the general consensus on the non-Android affiliated app stores?

2010-12-09 Thread Brill Pappin
I'm only a week into deploying my first paid app, and already I'm not
happy with the Google Market.
There are basic features for a developer that are missing.
For instance I've been manually recording counts and statistics for my
apps to see how the adoption rates change with the versions.

I'm willing to try a few other app stores if I get better tools, but I
likely won't leave my app out of the Market just because of it.

- Brill

On Dec 9, 10:10 am, Rich aguynamedr...@gmail.com wrote:
 I have gotten a few emails from proprietary app stores that offer
 distribution to their network of devices that don't come with the
 Android Market.  Are these a sham?  Are there any legit ones that
 stand out?  I like the idea of one centralized market so that my
 download/rating metrics are accurate, and I imagine that the apk's
 must be pretty easy to crack open and decompile, but I was curious to
 see what the community thinks.  The one email in particular I just
 received is from a company called Handster offering distribution on HP
 and LG devices.  Anyone heard of them and/or have dealings with them?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Proguard and Conversion to Dalvik format failed with error 1

2010-12-09 Thread Felix
Here's an update.


Ant stopped working at one point so I got desperate and Googled around
and finally did this:


touch `find .`


In my workspace directory (which updates all the files' modification
dates). Then refresh every project in Eclipse (select it and press F5),
then clean all projects, and it seems to work now (both Eclipse and
Ant).


I'll let you know if the errors come back (OHGODPLEASEDONT).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: What's the general consensus on the non-Android affiliated app stores?

2010-12-09 Thread Nathan
 The one email in particular I just received is from a company called
 Handster offering distribution on HP and LG devices.  Anyone heard of them
 and/or have dealings with them?

Handster is legitimate, but worthwhile is the question you'll need to
answer.

HP doesn't make Android devices, but LG does. Find out about that LG
store and if it actually is preloaded on on the LG Android devices and
if the same LG Android Devices do not have the Market.

It might be more of a placement and publicity thing. That's why I'm
going along with the Amazon store. I don't how big a seller my app
will be on an Android Kindle, but there is some benefit to more people
knowing it exists.

I have an AndAppStore listing and actually update it once in a while.
I have it so if some one says they can't see my paid app in the
Market, or they don't want to deal with Google Checkout, I have
somewhere to send them. It is more of a customer service time saver
than a significant revenue generator (1% of Market sales).

Nathan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Nested ImageButtons overlayed on top of one another

2010-12-09 Thread TreKing
On Mon, Dec 6, 2010 at 6:03 PM, sogwiz sog...@gmail.com wrote:

 Is this possible?


Probably.

Try FrameLayout or RelativeLayout, for starters.

-
TreKing http://sites.google.com/site/rezmobileapps/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] problem with tab view

2010-12-09 Thread gullapalli
hi could u tell me how to work with tab view in my list view
actually i developed one tab application.
But i want ,i select the expandable list . in that place(means  insted
of list items ) i keep my tabs
 how?
pls send total code
waiting for ur reply

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Maps for Mobile 5 Vector Mapping SDK availability

2010-12-09 Thread Dangerous Daren

First a quick hello to all as this is my first post on Android
Developers Group.

I have been searching and unable to find any information with respect
to a new SDK for Google Maps for mobile on Android for the imminent
release of version 5 with vector mapping.

I am assuming that there will be a new SDK released inline with the
new version allowing developers to use the new functionality.  My
question is does anyone know if this will be released alongside the
application or will we have to wait for some time for it to appear ?

Regards

Daren

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Convert .JPG image to .PNG

2010-12-09 Thread David Feshbach
There may be a better way, but you can read the jpg into a BufferedImage, then 
write it out to a png.

On Dec 8, 2010, at 8:45 AM, Sripati Misra wrote:

 Hi,
 
 How to convert .JPG image to .PNG image in Android. Please anybody knows let 
 me know.
 
 Thanks,
 Sripati
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Recognizer not present

2010-12-09 Thread VIP
I am using Antroid 2.2 and using Voice API sample application .

 setContentView(R.layout.main);
Button speakButton = (Button) findViewById(R.id.Button01);
mList = (ListView) findViewById(R.id.List);
PackageManager pm = getPackageManager();
ListResolveInfo activities = pm.queryIntentActivities( new
Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);

if (activities.size() != 0) {
speakButton.setOnClickListener(this);
}   else {
speakButton.setEnabled(false);
 speakButton.setText(Recognizer not present);
 }


I am always getting Recognizer not present .Do I need to do special
configurations to enable this feature ?


Regards, Anil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] problem in displaying the google maps

2010-12-09 Thread j...@n$
I got my key by registering debug ceritificate but still i'm only able
to view the grids instead of google map.can anyone help me to solve
this problem

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


[android-developers] how to change webview's transparency

2010-12-09 Thread Volter Yen
Sorry to resend this top, I found I forgot to write subject just now :)
--

Hi all,
  I am new to android, I want to implement transparent result with webview,
but I could find the interface to set webview's alpha value , I google on
this issue without useful answer.
 some friend advise me use the setbackgroundcloror(0). I tried, found it
could only achieve transparent result when the html page is text only,  if
the html page is layout with pictures, it still mask the backgourd view,
dose anybody know the way out? please give me some hint on this, thank you!

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

[android-developers] Re: ant build seems to be broken on lib-projects with Android 2.3 SDK

2010-12-09 Thread Cyril.S (Wedroid)
http://code.google.com/p/android/issues/detail?id=13024

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bump API

2010-12-09 Thread Vaishnavi Senthilnathan
Can we test bump api on android emulators. If so, can any of you give
ideas or sample code.

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


[android-developers] Android market ratings

2010-12-09 Thread Kev
I recently released my first android app (http://lambfruit.com) and I
have been left frustrated with the markets rating system. The reason
for this is that I would like to get valid feedback about my app,
areas I can improve and areas that people are having trouble with,
crashes or UI issues etc.. however I have received a couple of one
star ratings without any comments at all!
This is very frustrating because I would really like to know why
someone felt the app only deserved one star, so that I can change
things that people don't like. Does anyone else think that users
should be forced to comment when providing one or two star ratings?

Thanks,

Kev

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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:-CTS ERROR:: install met failure [install_failed_older_sdk]

2010-12-09 Thread Babu
Dear sir/madam,
 I am trying to test device with Configuration :
HTC TATOO Device
Android 1.6
To test Device: Android-CTS _2.1.
When I am trying to start CTS plans I am getting below error
cts_host  start --plan Java
cts_host  There are 1 existing session(s) for plan Java.
Create a new session or choose an existing one?
  Create a new session [0]
  Choose a session [1]
0
install met failure [install_failed_older_sdk]
start test plan Java
==
Test package: android.core.tests.annotation
04:44:48 E/ddms: Can't bind to local 8607 for debugger
install met failure [install_failed_older_sdk]
Please give solution for this Problem? 2weeks onwards I am trying to
solve this problem...
When I am trying to execute in emulator with confoguration as Android
2.1 and AndroidCTS-2.1 it is executing normally.When I tried with
Android 1.6 getting an error.If any one knows , please,  please give
me  solution.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GK: drawable-mdpi vs drawable-ldpi

2010-12-09 Thread Volter Yen
Hi all,
  I am new to android, I want to implement transparent result with webview,
but I could find the interface to set webview's alpha value , I google on
this issue without useful answer.
 some friend advise me use the setbackgroundcloror(0). I tried, found it
could only achieve transparent result when the html page is text only,  if
the html page is layout with pictures, it still mask the backgourd view,
dose anybody know the way out? please give me some hint on this, thank you!

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

[android-developers] Re: Repacking a .apk file

2010-12-09 Thread Justin Buser
If you just need to alter the AndroidManifest.xml file and add
additional classes then the answer is yes. As an example I have an app
in the market (air.com.justinbuser.BuzeyTunes) that was built under
similar circumstances. Being as it's an Adobe Air application built
using Flash Builder Burrito there is no inherent way to modify the
classes/manifest that gets generated, compiled, signed and packaged in
an apk during the build process. What I had to do was decompile the
apk generated by FB and merge it with another project I built in
eclipse to handle the loading, system notifications and other things
that aren't currently possible in Air. You can create a new
application in this manner, signed with your own certs, but if you're
purpose is to update the application for the third party then it will
have to be signed with the same credentials they used in order to be
posted as an upgrade to an existing market application.

On Dec 8, 1:14 am, TigerFox harold.alc...@gmail.com wrote:
 Hi all,

 Forgive my ignorance, I would just like to ask if it possible for me
 to repack (unpack and pack the binaries again and sign it using my own
 certificates) a .apk file that's been done by another party?

 Well, let's just say I've got this special agreement with a third
 party that I can add features or some sort of starter Activity before
 their application -- no original source codes and recompiling required
 on their end but just their existing .apk file.  Is this even possible?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Repacking a .apk file

2010-12-09 Thread Oscar Marques
Try smali or apktools.

http://code.google.com/p/smali/

http://code.google.com/p/android-apktool/

2010/12/8 Thant Thura Myo thuramyo.th...@gmail.com

 The approach that we use in my group is getting jar file and dependency
 file from third party rather than apk file itself.
 It is much more easier to integrate as well.
 For some reason, if the third party have some logic to hide, they can put
 it inside jar file.


 On Wed, Dec 8, 2010 at 5:17 PM, Sarwar Erfan erfanonl...@gmail.comwrote:

 Possible. This is what some thieves do with other's applications.
 You need to change the extension to .zip from .apk. Then extract the
 files. Remove to META-INF directory (to make it unsigned). Modify the
 contents. Then, make zip, change extension to .apk to .zip. Finally sign the
 apk with your own cert.

 Search in google or this group.

 I hope you really have an agreement, though I have never heard of this
 kind of agreement. If I was the first party to have any such agreement, I
 would send you an unsigned apk, you would add your contents, sign and
 publish. And, if I had done the major development, I would rather ask you to
 send me the part you developed, then add that and sign with my cert and then
 publish.

 Regards
 Sarwar Erfan

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




 --
 Beside the Planet of Big Blue Sea, lies the moon called proteus . Please
 come and visit me :)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] SIP Demo and Android 2.3 problem

2010-12-09 Thread jan telega
Hi,
i tried to run SIP Demo (http://developer.android.com/resources/
samples/SipDemo/index.html) and start developing SIP application,
but i found one problem at the beginning (of course i updated sdk, adt
and set up new virtual device with api level 9):
 in main activity class [line 86]:

 public void initializeManager() {
if(manager == null) {
  manager = SipManager.newInstance(this);  -- this always
returns null, which means that SIP API is not supported
}

initializeLocalProfile();
}

i also checked SipManager.isApiSupported(applicationContext) and it
always returns false, i set up several virtual devices and it didnt
help.

SipManager declatarion is the first step during establishing Sip
connection, so this problem does not concern sip domain etc.

It looks like problem with emulator.

Have you faced this problem?
Any ideas how to resolve 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: NFC Demo errors?

2010-12-09 Thread phillin77
Dear Dominik,

I'm new to Android development,
I use Eclipse and had opened the NFCDemo project which Android 2.3
provided
Can you kindly explain more detail how to import Guava
Thanks a lot !

On 12月7日, 下午8時50分, Dominik dominik.gru...@fhnw.ch wrote:
 I have no problems with the NFC Demo (after I added the google guava
 library to the project).
 Seems to be that you have the same problem (e.g. BiMap is contained in
 com.google.common.collect).
 Guava is a superset of the Google Collections Library 
 (seehttp://code.google.com/p/guava-libraries/)
 Dominik

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


  1   2   3   >