[android-developers] Google Streetview for 2.0 emulator, to test invocation through an Intent

2009-10-29 Thread JP

My apps invoke Google Streetview through an Intent (as document here:
http://developer.android.com/intl/zh-TW/guide/appendix/g-app-intents.html).
Right now I am testing things out for Android 2.0. In the absence of a
physical device, this is through emulator testing only, for now.
I noticed the Google apps, which are needed to test the above, are
missing in  2.0. I did some poking around but couldn't find a source
to install those on the emulator (I am aware there's been some
commotion around that aspect of Android...). So I tried the Cyanogen
(sp?) route, pull Street.apk off a 1.6 device and then adb install it
in the emulator. That didn't work... Street.apk is reported as already
existing, and I cannot replace it ("failure").
BTW: I cross checked this method against Maps.apk, and that went
through OK.

Anybody got an idea how to properly install street view on the 2.0
emulator? (Did I fundamentally miss something here?)

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



[android-developers] Re: PNG "optimization" on packaging process

2009-10-29 Thread webmonkey

To do a true comparison of what the PNG is like after 'optimization'
take it out of the final APK, it is just a zip archive.

The banding artifacts you see are because the device and the emulator
are displaying in 16-bit 565 pixel format, they can't display all the
colors. Have you tried painting the image with Paint.setDither(true)
turned on:

http://developer.android.com/reference/android/graphics/Paint.html#setDither%28boolean%29


On Oct 28, 9:20 pm, Ian  wrote:
> Hi all,
>
> I've noticed that the PNGs of my application with some gradients
> effects looked terribly bad at the device (a Samsung Galaxy) and at
> the emulator, and I've found the following note at the documentation
> (http://developer.android.com/guide/topics/graphics/2d-
> graphics.html):
>
> "Note: Image resources placed in res/drawable/ may be automatically
> optimized with lossless image compression by the aapt tool. For
> example, a true-color PNG that does not require more than 256 colors
> may be converted to an 8-bit PNG with a color palette. This will
> result in an image of equal quality but which requires less memory. So
> be aware that the image binaries placed in this directory can change
> during the build. If you plan on reading an image as a bit stream in
> order to convert it to a bitmap, put your images in the res/raw/
> folder instead, where they will not be optimized."
>
> I've tried the res/raw suggestion, but it didn't worked.
>
> I've tried to use the image as JPEG as a workaround, but I couldn't
> use 9-patch.
>
> I've uploaded a comparison between the original png and the
> "optimized" png that is shown on the emulator or 
> devices:http://www.weka.com.br/temp/img/comparison.jpg
>
> One workaround would be put the images at /assets/ and manually load
> and set the image on the ImageViews, but it requires a lot of code
> changes.
>
> Any ideas? Is there any way to disable this optimization?
>
> Thanks in advance,
> Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: My appwidget broken Donut when keyboard slide out/in

2009-10-29 Thread String

On Oct 29, 6:51 am, Eong  wrote:

> Yeap. My users reported this to me today. The OTA release has the same
> bug. They should push a fixed update right now.

FWIW, I'm not convinced it's a bug in Donut. I'm not seeing the same
issue in my widgets, and I do plenty in onUpdate. If you genuinely
think it's a platform bug, produce a minimal test case and write it
up, please.

I'm assuming you're aware that keyboard open/close on an HTC Dream
destroys and recreates the widget instance, so if (for example) you're
referencing any static vars in your code, those will no longer exist.
I'm also assuming that you're sending a complete set of views to the
RemoteViews object every time, or you probably would have had trouble
before now. But you might check those things. :^)

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



[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-29 Thread Armond Avanes

Raphael,

I'm installing from command-line using "SDK Setup.exe" but the same locking
problem still exists for me.

I just installed "Process Explorer" and monitored the process which is
locking "android-sdk-windows\temp\..." directory. While downloading the
package not even a single process has any lock on it. But while installing,
only "java.exe" keeps the lock once in a while (I pressed the "Search"
button many times quickly while installing, to have a live view of what's
going on). As an important note, after several retries I succeeded once to
download and install android-1.1!! I guess it may be a threading problem
because for the one I succeed I was pressing/repressing the "Search" button
quickly (on Process Explorer) and it kinda slowed down my computer a bit.
Just thought it may help!

And by the way I'm running JDK 1.6.0_12.

After all, I'm still on my opinion. In the case of failure, the update
process should try to COPY the contents instead of moving/renaming. And a
warning that some garbage have been left on "temp" directory. For those of
us on slow connections it's really a pain to download that much and throw it
away!!! I guess I've downloaded 500MB worth of data so far and still
trying...

Regards,
Armond 

> -Original Message-
> From: android-developers@googlegroups.com [mailto:android-
> develop...@googlegroups.com] On Behalf Of Raphael
> Sent: Wednesday, October 28, 2009 9:55 PM
> To: android-developers@googlegroups.com
> Subject: [android-developers] Re: Eclair install choked with errors about
> locks and died horribly leaving corrupted install
> 
> 
> Hey, do you still have the lock issue from Eclipse?
> 
> I could use a bit of help understand what's going on:
> - Install Process Explorer from
> http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
> - Run Process Explorer
> - Go to Find > Find Handle
> - Search for the one of the locked path, e.g. C:\android-sdk-windows-
> 1.6_r1\temp
> - Tell me which process is locking it.
> 
> That will help me a lot :-)
> R/
> 
> On Tue, Oct 27, 2009 at 2:31 PM, Jim Showalter
>  wrote:
> > Followed the instructions in
> > http://developer.android.com/sdk/adding-components.html for adding 2.0
> as
> > components to an existing 1.6 SDK, from within Eclipse.
> >
> > It didn't work. Not by a long shot. Instead, it got partway through and
> then
> > said that C:\android-sdk-windows-1.6_r1\
> > temp\DocPackage.new01 couldn't be copied because of a lock, and
> similarly
> > for PlatformPackage.new01.
> >
> > It said to shut down running programs, but the only program running was
> > Eclipse, which was needed to do the upgrade.
> >
> > The cancel button was disabled, and the close box didn't work. Shutting
> down
> > Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a corrupted
> > state. Restarting Eclipse showed the Android projects with errors, no
> SDK,
> > and a disabled Android SDK and AVD Manager (which means no ability to
> rerun
> > the install).
> >
> > Shutting down Eclipse, renaming the corrupted SDK directory, unzipping
> 1.6
> > again into C:, and restarting Eclipse made it as if nothing had ever
> > happened, which is good. But it is not possible to complete the install
> from
> > Eclipse, which is bad.
> >
> > The dialog says:
> >
> > Failed to rename directory
> > C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
> > C:\android-sdk-windows-1.6_r1\docs
> > -= Warning ! =-
> > A folder failed to be renamed or moved. On Windows this typically means
> that
> > a program is using that folder (for example Windows Explorer.) Please
> close
> > all running programs that may be locking the directory
> > 'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
> >
> > Failed to rename directory
> > C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
> > C:\android-sdk-windows-1.6_r1\docs
> > -= Warning ! =-
> > A folder failed to be renamed or moved. On Windows this typically means
> that
> > a program is using that folder (for example Windows Explorer.) Please
> close
> > all running programs that may be locking the directory
> > 'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
> > Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)
> > >
> >
> 
> 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: app gives layout errors only on Sprint HTC Hero devices

2009-10-29 Thread Jayesh



On Oct 21, 10:24 pm, Streets Of Boston 
wrote:
> That's why i put 'official' in quotes :-)
>
> One should not manipulate windows/views in any other thread than the
> main UI-thread (e.g. textView.setText(...) or imageView.setImageBitmap
> (...), hiding/showing views, etc.). If you do this in a background
> thread, then you may get exceptions or other weird behavior.
>
> If 'inflating a view' falls under the 'manipulating windows/views'
> category then one should not inflate views inside any other thread by
> the main UI-thread.
>

You are right. I finally got a report yesterday from one of the users
that a modified apk that does view inflating in GUI thread, doesn't
give this problem. I have released the fix accordingly and got one
more user confirming that it's working for him now.

So thanks for the advice. Inflating view in a thread other than GUI
thread, indeed seems to be unsupported, even if it doesn't throw any
explicit exception deterministically.

> I'm just saying: try to do the inflate in the main UI-thread and check
> if this solves the problem for HTC Heros. If so, your particular
> problem is fixed.
>
> On Oct 21, 11:34 am, Jayesh Salvi  wrote:
>
> > --
> > Jayesh...
>
> > read more »
>
> > On Wed, Oct 21, 2009 at 7:39 PM, Streets Of Boston
> > wrote:
>
> > > I still would try to inflate your view inside your main gui-thread and
> > > not in a seperate background thread.
>
> > > The fact that it works on other phones does not guarantee it works on
> > > all phones, if inflating views on non-gui threads is 'officially' not
> > > supported.
>
> > Could you elaborate on how it is 'officially' not supported?
>
> > I know that a particular exception is thrown if the framework finds that a
> > different thread is trying to manipulate widgets in view hierarchy.(I hit it
> > yesterday elsewhere in the code, and it is not the same as this error). I
> > haven't found any documentation in this matter, that mentions what is
> > supported/forbidden practice in this matter. Did I miss something?
>
> > > Who knows, it may fix it (if you already haven't tried it). :-)
> > > But i may be wrong...
>
> > > On Oct 20, 11:57 pm, Jayesh Salvi  wrote:
> > > > Thanks Shane and Amir for confirming the doubts.
> > > > It's frustrating that all I can say to users is to wait until Sprint/HTC
> > > > issues firmware update, then hopefully the problem will be fixed. The
> > > users
> > > > are willing to test if I have any fix, but I can't find root cause even
> > > > after looking inside the android code, let alone a fix/workaround.
>
> > > > Does anyone know if Sprint or HTC have any channels to report 
> > > > complaints?
> > > > Are there any means to know when they will issue next firmware update?
>
> > > > IIUC Sprint HTC Hero is "with Google" branded phone. I would have 
> > > > assumed
> > > it
> > > > would be the one with most conformance to Android platform; one that has
> > > > passed all test suites required to qualify for the "with Google" logo.
> > > Yet
> > > > we see these anomalies. :(
>
> > > > --
> > > > Jayesh
>
> > > > On Mon, Oct 19, 2009 at 1:15 PM, Amir Alagic  wrote:
>
> > > > > I saw somwhere else that one developer also has problems only with HTC
> > > > > Hero (Sprint) ...
>
> > > > > On Oct 18, 9:48 am, Shane  wrote:
> > > > > > We are having problems only with HTC Hero phones as well.  Our issue
> > > > > > is different that yours but it is very disappointing to see not all
> > > > > > phones handle the SDK the same.
>
> > >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > > > > > I suspect this is just going to get worse as more branded android
> > > > > > experiences get released by manufacturers.  G
>
> > > > > > On Oct 12, 9:46 pm, Jayesh Salvi  wrote:
>
> > > > > > > I tried to look into the android framework code
> > > > > > > (link<
> > > > >http://www.google.com/codesearch/p?hl=en&sa=N&cd=1&ct=rc#uX1GffpyOZk/.
> > > ..
> > > > > > > android.view.InflateException Error inflating class
> > > > > > > java.lang.reflect.Constructor&l=458>). The topmost frame refers to
> > > a
> > > > > 'throw'
> > > > > > > statement(line 512) that is inside a catch of a lower level
> > > exception.
> > > > > I
> > > > > > > can't tell what part of the createView() function throws that 
> > > > > > > lower
> > > > > level
> > > > > > > exception.
> > > > > > > I also tried to search around for the error string "Error 
> > > > > > > inflating
> > > > > class
> > > > > > > java.lang.reflect.Constructor", but couldn't found one with a
> > > similar
> > > > > stack
> > > > > > > trace. (There are known crashes with this error message caused
> > > inside
> > > > > > > android.preference.* package, but mine is a simple widget layout
> > > and
> > > > > not
> > > > > > > preferences, as you might have seen in the XML file I attached
> > > > > earlier.)
>
> > > > > > > I now have 9 reports of this crash and all of them are confirmed 
> > > > > > > to
> > > be
> > > > > usin

[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-29 Thread skink



On Oct 29, 8:25 am, "Armond Avanes"  wrote:
For those of
> us on slow connections it's really a pain to download that much and throw it
> away!!! I guess I've downloaded 500MB worth of data so far and still
> trying...
>
>

hi Armond,

you can manually download stuff from:

http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip

and then unzip it to platforms folder

skink
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Does DexClassLoader works correctly?

2009-10-29 Thread mongd

I've been trying to load a class with DexClassLoader, but it doesn't
really work.
There was a couple of posts about this, so I tried some of them, but
it didn't work.

Here's my code:

DexClassLoader dLoader = new DexClassLoader("/data/app/
com.testpackage.test2.apk", "/data/dalvik-cache", null,
ClassLoader.getSystemClassLoader());
try {
Class cLoad = 
dLoader.loadClass("com.testpackage.test2.Test2");

} catch (ClassNotFoundException e) {
Log.d("ERROR", "Class Not Found");
e.printStackTrace();
}

As you can see, I used "/data/dalvik-cache" for the 2nd parameter of
DexClassLoader constructor because I found the dex file of this
package in that directory. (I saw a person used "/data/app-private",
but that directory has nothing in it)

When I ran this code, I got 'ClassNotFound' exception, and right
before that, I got the following log, "Can't open dex cache '/data/
dalvik-cache/com.testpackage.test2.dex': No such file or directory".

If you look into the directory, '/data/dalvik-cache', all dex files
are preceded with the directory where it is located, but it appears
that DexClassLoader doesn't know about that. I mean if I'm right about
the dexOuputPath, it should try to find dex with
"d...@app@com.testpackage.test2.dex".

Is this a kind of bug? or... am I doing something wrong?
Please help me~!! T^T

Great thanks in advance. =D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: 3D Developers - Motorola Droid OpenGL ES Specs are in

2009-10-29 Thread Robert Green

I'm sure you're right about that.  I'll update my manifest to test.
Boy, we're in kind of a bad spot right now.  Hero just came out and is
only 1.5 but next week we'll have a 2.0 device to deal with...

On Oct 28, 11:40 pm, Lance Nanek  wrote:
> Wow, interesting stuff. Thanks!
>
> The resolution you mention on your site sounds odd, though:
>
> >Native 3D full screen size: 569x320
>
> The Motorola site claims a different resolution:>3.7"; WVGA (480 x 854 
> pixels); 16:9 widescreen
>
> http://www.motorola.com/Consumers/US-EN/Consumer-Product-and-Services...
>
> If you don't have the android:targetSdkVersion attribute in your
> manifest set high enough, or it is missing and you don't have the
> android:minSdkVersion attribute set high enough, then sometimes the
> system reports a lower resolution than native for compatibility
> purposes. Maybe that's why you are seeing the lower resolution in your
> tests?
>
> Some examples in this 
> thread:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> On Oct 28, 11:35 pm, Robert Green  wrote:
>
> > I just got my hands on this phone.  Here's my summary:
>
> > 1)  It's really fast.  Runs all my games at max framerates.
> > 2)  The screen is 16:9 and will probably mess with your layouts and
> > games and stuff.
> > 3)  It has a PowerVR SGX530.  That's right around iPhone 3GS's GPU
> > speed.  Wow!!
>
> > I believe the hardware supports OpenGL ES 2.0 but since Android
> > doesn't, there's no way to use it right now.  I did, however, dump all
> > of the GL extensions and put them alongside the G1 and Emulator
> > extension lists into this handy-dandy article 
> > -http://www.rbgrn.net/content/345-hands-on-motorola-droid-opengl-es-specs
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: A table-type layout with the contents centered inside

2009-10-29 Thread Miguel Paraz

On Oct 22, 8:05 pm, Mark Murphy  wrote:
> MiguelParazwrote:
> > Hi,
> > I would like a table-style layout where the cell sizes are
> > automatically computed, without using AbsoluteLayout to position
> > them.
>
> > For example, the table has width 320 and height 240. For a 4x4 cell
> > table, each cell is of width 80 and height 60.
>
> > Inside each cell, I'd like the images centered inside. For example, if
> > the image is of width 40 and height 30, they will be positioned at
> > (20, 15) inside each cell.
>
> > I can't see how TableLayout supports - does it?
>
> Not the "automatically computed" part. There is no layout that achieves
> your desired effect and does the "automatically computed" part.GridView
> does the "automatically computed" work, but it is not a layout, but a
> selection widget (extends AdapterView).


Hi Mark,
GridView plus using ImageView.ScaleType.CENTER does achieve the effect
I want.
The drawback is that I need to set the ImageViews and their intents in
code.
It's no big deal for now, but going forward I'd like to make this into
a Layout so I can do the layout in XML.

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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-10-29 Thread skink



On Oct 28, 7:01 pm, Babak  wrote:
> I also experience this issue, Im on a clean install of Ubuntu 9.04,
> have tried
> to make the file androidtool.cfg and chmod 777  the directory ./
> android.
>
> Nothing so far, would it be possible to provide a link to a download
> of
> each platform as a zip etc, for the mean while?
>
> Thanks,
> Bob
>

Bob,

try this one:

http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip

or:

http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip

when you are penguin fan :)

and the unzip it to platforms folder

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



[android-developers] Looking for Custom Layout/ViewGroup Tutorial

2009-10-29 Thread Miguel Paraz

Hi,
Could you recommend a tutorial for custom Layouts / ViewGroups? I
couldn't find one.

My first project is to move the functionality of a GridView + Adapter
to a ViewGroup, to put the enclosed Views in a grid.

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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-10-29 Thread Cédric Berger

I can't download through a proxy requiring authentication.

I had to select force http, and put user/password for proxy in JVM
command line. This way I can get the list of available updates.
But when trying to download, it stays stuck (looks like it waits for
user/password, but no prompt).

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



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

2009-10-29 Thread Cédric Berger

2009/10/29 Cédric Berger :
> I can't download through a proxy requiring authentication.
>
> I had to select force http, and put user/password for proxy in JVM
> command line. This way I can get the list of available updates.
> But when trying to download, it stays stuck (looks like it waits for
> user/password, but no prompt).
>

Oh in fact it is ok. Through a second proxy (with authentication too)
it worked. Looks like the first proxy (a bit more restrictive) blocked
the downloading url. (I could not check why since the URL is not
shown)

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

2009-10-29 Thread Ne0

Ah yes, so i was missing something, thanks.

Liam

On Oct 29, 1:15 am, CLC  wrote:
> skink is right.
>
> Here's a simple example of creating a list of discovered 
> devices:http://code.google.com/p/apps-for-android/source/browse/trunk/BTClick...
>
> Hope this helps! :)
>
> -Charles
>
> On Oct 28, 1:02 pm, skink  wrote:
>
> > On Oct 28, 5:10 pm, Ne0  wrote:
>
> > > Ok i may be missing something here, but i can't see any documentation
> > > on what (if any) data is returned with Intent
> > > ACTION_DISCOVERY_FINISHED.
>
> > > I would hope that there is a list of discovered devices, but i cant
> > > find any documentation on it plus i don't have an android phone to
> > > test this on.
>
> > > Any idea's on how we get the actually get a List of "discovered"
> > > devices back? or is it possible from the SDK?
>
> > > Thanks,
>
> > > Liam.
>
> > > Also anyone know where i can get an Android 2 image for the ADP1,
> > > still waiting for the source code!!
>
> > Liam,
>
> > you have to register for ACTION_FOUND
>
> >http://developer.android.com/reference/android/bluetooth/BluetoothDev...
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: cant see my text box while typing on soft keypad

2009-10-29 Thread zeeshan

any help plz

On Oct 28, 4:10 pm, zeeshan  wrote:
> Hi Dear,
>
> i have a relative layout with Edit text fileds and some buttons at
> bottom.
> when i try to write anything on edittext field in the middle of
> screen, it just being hidden by the keypad and buttons layout comes on
> top.
>
> any idea how can i have soft keypad working fine for my edit texts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: 3D Developers - Motorola Droid OpenGL ES Specs are in

2009-10-29 Thread MrChaz

Thanks for that,

Assuming Anandtech is right about the 3gs that chip is actually
better.
I'm guessing they'll open 2.0 later - they did hint at another sdk by
years end.

On Oct 29, 3:35 am, Robert Green  wrote:
> I just got my hands on this phone.  Here's my summary:
>
> 1)  It's really fast.  Runs all my games at max framerates.
> 2)  The screen is 16:9 and will probably mess with your layouts and
> games and stuff.
> 3)  It has a PowerVR SGX530.  That's right around iPhone 3GS's GPU
> speed.  Wow!!
>
> I believe the hardware supports OpenGL ES 2.0 but since Android
> doesn't, there's no way to use it right now.  I did, however, dump all
> of the GL extensions and put them alongside the G1 and Emulator
> extension lists into this handy-dandy article 
> -http://www.rbgrn.net/content/345-hands-on-motorola-droid-opengl-es-specs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] My layout doesn't fit on WVGA emulator skin , any help?

2009-10-29 Thread zeeshan

Hi Experts,

i been working on default skin before, if i change my skin to WVGA ,
my layout displays only in a portion of the skin and the rest of
screen is black.

although, i can see android's home screen in full view.
do i need to change my skin settings or my layout itself?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to remove contact from a group]]

2009-10-29 Thread Shrenik Vikam

please look at the this, here is the answer

http://groups.google.com/group/android-developers/browse_frm/thread/282b854006f45da/471262461845f964?hl=en#471262461845f964



On Sep 15, 1:18 am, Pedro Fernandes  wrote:
> [ Attached Message ]From:Pedro Fernandes 
> To:android-develop...@googlegroups.comdate:Mon, 14 Sep 2009 
> 18:52:53 +0100Local:Mon, Sep 14 2009 10:52 pmSubject:[Fwd: 
> [android-developers] How to remove contact from a group]
>
>
> >
>
>
> [ Attached Message ]From:Henry To:Android 
> Developers Date:Mon, 14 Sep 2009 
> 01:52:58 -0700 (PDT)Local:Mon, Sep 14 2009 
> 1:52 pmSubject:[android-developers] How to remove contact from a group
>
> I have i little problem, I can create groups for contacts, can add
> persons to this group, can edit group, can also delete a group but I
> can NOT remove a contact from a group.
>
> Can anyone help me with 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 
> athttp://groups.google.com/group/android-developers?hl=en
> -~--~~~~--~~--~--~---

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



[android-developers] Re: My layout doesn't fit on WVGA emulator skin , any help?

2009-10-29 Thread skink



On Oct 29, 10:52 am, zeeshan  wrote:
> Hi Experts,
>
> i been working on default skin before, if i change my skin to WVGA ,
> my layout displays only in a portion of the skin and the rest of
> screen is black.
>
> although, i can see android's home screen in full view.
> do i need to change my skin settings or my layout itself?

hi,

see docs about 'supports-screens' tag in your manifest

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



[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-10-29 Thread Armond Avanes

Hi Skink,

I was trying to guess the correct path for direct download but no success!
Thanks a million :-) I'm downloading it...

For those who want Google API v5 as well, here it is:
http://dl-ssl.google.com/android/repository/google_apis-5_r01.zip

After all, it would be great if Google mentioned the direct download paths
on Android download page (for those having problem).

Skink, Thanks again :-)

Armond

> -Original Message-
> From: android-developers@googlegroups.com [mailto:android-
> develop...@googlegroups.com] On Behalf Of skink
> Sent: Thursday, October 29, 2009 11:19 AM
> 
> On Oct 29, 8:25 am, "Armond Avanes"  wrote:
> For those of
> > us on slow connections it's really a pain to download that much and
> throw it
> > away!!! I guess I've downloaded 500MB worth of data so far and still
> > trying...
> >
> >
> 
> hi Armond,
> 
> you can manually download stuff from:
> 
> http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
> 
> and then unzip it to platforms folder
> 
> skink
> 

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

2009-10-29 Thread Wiebbe

You can't at this moment. The only 2.0 update currently available is
the emulator one and most likely the Motorola Droid that is coming out
soon in the USA. Other then that, you are at 1.6 with an Dev Phone 1.

On Oct 29, 7:13 am, "vitalii.mi...@gmail.com"
 wrote:
>  Hi ,
>  How can I update my Dev Phone 1 to Android 2.0  I don't see any
> updates onhttp://developer.htc.com/adp.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to read the app package under /data/app

2009-10-29 Thread vovkab

Because in /data/app they added automaticaly, and to keep file names
clear, they uses package name as file name.
Any way you can get all files in data/app and system/app:

for (int i = 0 ;i < count; i++){
   File f = new File(appList.get
(i).activityInfo.applicationInfo.sourceDir);
 if (f != null){
   read file binary here
 }
}

p.s you don't need INSTALL_PACKAGE permission ;)

On 29 окт, 09:39, Zhihong GUO  wrote:
> Hi all,
> I just find a solution on get app package binary:
>
> first, the manifest.xml should have permission: INSTALL_PACKAGE
>
> then:
>
>         PackageManager pm = this.getPackageManager();
>         Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
>         mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
>         List appList = pm.queryIntentActivities(mainIntent,
> 0);
>         Collections.sort(appList, new
> ResolveInfo.DisplayNameComparator(pm));
>         int count = appList.size();
>         for (int i = 0 ;i < count; i++){
>          new File f = new
> File("/data/app/"+appList.get(i).activityInfo.applicationInfo.packageName+" 
> .apk");
>                 if (f != null){
>                     read file binary here
>                 }
>         }
>
> My question now is why the application's name under system/app have
> different format from the app under /data/app. For example, the app under
> system folder is looks like AlarmClock.apk, while the app under /data/app
> fold is com..xxx.test.apk.
>
> 2009/10/28 vovkab 
>
>
>
>
>
> > Seems like, you don't know what you need.
>
> > Use WallpaperManager to get wallpapper. Why you need filename from
> > package o_O?
>
> > On 28 окт, 10:46, Zhihong GUO  wrote:
> > > Can you give some example code on how to get the file name of the current
> > > wallpaper?
>
> > > Thanks
>
> > > 2009/10/27 vovkab 
>
> > > > Yes you can.
>
> > > > Just read it with
> > > > File apkfile = new File("/data/app/com.package.name");
>
> > > > On 27 окт, 11:43, Zhihong GUO  wrote:
> > > > > Hi All,
>
> > > > > I want to read out the binary content of the .apk packages installed
> > in
> > > > > /data/app. Not only the package information, but the content of the
> > > > package
> > > > > itselt.
> > > > > How can I do that.
> > > > > Thanks a lot,
>
> > > > > James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Looking for Custom Layout/ViewGroup Tutorial

2009-10-29 Thread Miguel Paraz

On Oct 29, 4:27 pm, Miguel Paraz  wrote:
> Hi,
> Could you recommend a tutorial for custom Layouts / ViewGroups? I
> couldn't find one.
>
> My first project is to move the functionality of a GridView + Adapter
> to a ViewGroup, to put the enclosed Views in a grid.

I found some GridView in Romain Guy's Google I/O session, but it's not
complete and does not compile:
http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFast.html

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



[android-developers] [Eclipse] layout preview doesn't work properly when using

2009-10-29 Thread Stefan Klumpp

When I include 

[android-developers] Re: how to be paid by the market?

2009-10-29 Thread MrChaz

The money is sent straight to my bank account so I guess that's a wire
transfer.

On Oct 28, 10:02 pm, shadow_of__soul 
wrote:
> Hi,
>
> i'm interested to develop games for the android platform, but i have a
> question that i haven't been able to answer.
>
> i'm from argentina, if i pay the $25 fee, i'm able to publish my app
> in the store, but how i'm paid the revenue if i publish a paid app?
> wire transfer? check?
>
> also, there is any other requirement to publish paid app's in the
> store?
>
> Regards,
> Shadow.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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.0 SDK is here!

2009-10-29 Thread Abhi

Hi,

I am having trouble upgrading my SDK 1.6 to 2.0 on my laptop. My
laptop is behind my company's firewall and when I try to install the
new SDK components using the Android SDK and AVD Manager, I get this
error saying "Failed to fetch URL 
http://dl-ssl.google.com/android/repository/repository.xml,
reason: Connection timed out: connect". I tried all methods, using
Eclipse, using command 'android.bat update sdk' and also directly
running 'SDK Setup.exe'.

Please help! I need to get this new SDK running ASAP.

Thanks,

Abhi

On Oct 27, 12:45 pm, Xavier Ducrohet  wrote:
> Hello everyone!
>
> We've just announced the Android 2.0 
> SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-...
>
> If you already have the 1.6 SDK, note that you can simply use the SDK
> Manager to add Android 2.0 to your SDK. Make sure you also get the new
> SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that
> shipped with 1.6) doesn't enforce dependencies between platforms and
> Tools (fixed in rev 3)
>
> For more information about using the SDK Manager, 
> see:http://developer.android.com/sdk/adding-components.html
>
> Have fun!
> Xav
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 writing on Bitmap

2009-10-29 Thread manoj

Hi friends,

In my application I am using Bitmap, on that I am writing some data.

I dont know why suddenly my app is getting exited.

here is the log:
I/DEBUG   (   32): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***

I/DEBUG   (   32): Build fingerprint: 'android-devphone1/
dream_devphone/dream/trout:1.5/CRB43/148830:userdebug/adp,test-keys'

I/DEBUG   (   32): pid: 1152, tid: 1186  >>>
com.blumedialab.karaoke_smooth <<<

I/DEBUG   (   32): signal 7 (SIGBUS), fault addr 

I/DEBUG   (   32):  r0 0080  r1   r2 0060  r3 17808000

I/DEBUG   (   32):  r4 000c  r5 5e02  r6 452f36d0  r7 452f36e8

I/DEBUG   (   32):  r8 00190690  r9 ff80  10 0152  fp 0200

I/DEBUG   (   32):  ip bc04  sp 452f3698  lr afc1d698  pc
ace07fcc  cpsr 2010

I/DEBUG   (   32):  #00  pc 7fcc  /system/lib/libcorecg.so

I/DEBUG   (   32):  #01  lr afc1d698  /system/lib/libm.so

I/DEBUG   (   32): stack:

I/DEBUG   (   32): 452f3658  000b

I/DEBUG   (   32): 452f365c  ac12736c

I/DEBUG   (   32): 452f3660  0009a1b8  [heap]

I/DEBUG   (   32): 452f3664  

I/DEBUG   (   32): 452f3668  ac12736c

I/DEBUG   (   32): 452f366c  001f5130  [heap]

I/DEBUG   (   32): 452f3670  452f3d10

I/DEBUG   (   32): 452f3674  beb580f4  [stack]

I/DEBUG   (   32): 452f3678  0001

I/DEBUG   (   32): 452f367c  5e02

I/DEBUG   (   32): 452f3680  

I/DEBUG   (   32): 452f3684  0060

I/DEBUG   (   32): 452f3688  17808000

I/DEBUG   (   32): 452f368c  afc1d6ac  /system/lib/libm.so

I/DEBUG   (   32): 452f3690  df002777

I/DEBUG   (   32): 452f3694  e3a070ad

I/DEBUG   (   32): #00 452f3698  0074

I/DEBUG   (   32): 452f369c  0080

I/DEBUG   (   32): 452f36a0  452f37ec

I/DEBUG   (   32): 452f36a4  0020

I/DEBUG   (   32): 452f36a8  

I/DEBUG   (   32): 452f36ac  0080

I/DEBUG   (   32): 452f36b0  fff4

I/DEBUG   (   32): 452f36b4  0074

I/DEBUG   (   32): 452f36b8  0180

I/DEBUG   (   32): 452f36bc  00190690  [heap]

I/DEBUG   (   32): 452f36c0  ff80

I/DEBUG   (   32): 452f36c4  beb58144  [stack]

I/DEBUG   (   32): 452f36c8  0200

I/DEBUG   (   32): 452f36cc  ac03e01c  /system/lib/libsgl.so

I/DEBUG   (   32): 452f36d0  0147

I/DEBUG   (   32): 452f36d4  ac0a4ad8  /system/lib/libsgl.so

I/DEBUG   (   32): 452f36d8  452f36e8

I/DEBUG   (   32): 452f36dc  0147

Can you please help me to solve this.

Thanks,
Manoj.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App name/icon problems on Hero after reboot

2009-10-29 Thread gdonald



On Oct 28, 6:51 pm, Arron La  wrote:
> My application started having this problem after I updated the
> launcher activity with a different root package. Here's the sequence:
>
> 1) Install application on the phone with [com.package] as the path to
> my launcher activity.
> 2) Changed the path to be [com.package2] and updated the
> AndroidManifest.xml
> 3) Now some Hero phones are encountering the the bug you have
> described above with the icon.  Somehow the old package path is being
> cached and you will get an exception when rebooting the phone

My path has been the same since I started building my app.

Other apps on my phone are having the same problem now.  Google Sky is
now broken after this morning's update for example.

Reinstall fixes the broken apps, and then a reboot breaks them again.

Anyone know of a workaround yet?

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



[android-developers] Re: how to be paid by the market?

2009-10-29 Thread nagaraj attimani
Nothing 2 worry..
Defn u will get gud money for u r app..
Good Luck :)

On Thu, Oct 29, 2009 at 5:59 PM, MrChaz  wrote:

>
> The money is sent straight to my bank account so I guess that's a wire
> transfer.
>
> On Oct 28, 10:02 pm, shadow_of__soul 
> wrote:
>  > Hi,
> >
> > i'm interested to develop games for the android platform, but i have a
> > question that i haven't been able to answer.
> >
> > i'm from argentina, if i pay the $25 fee, i'm able to publish my app
> > in the store, but how i'm paid the revenue if i publish a paid app?
> > wire transfer? check?
> >
> > also, there is any other requirement to publish paid app's in the
> > store?
> >
> > Regards,
> > Shadow.
> >
>


-- 
Warm Regards,
Nagaraj

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App name/icon problems on Hero after reboot

2009-10-29 Thread Dianne Hackborn
What phones are people seeing this on?  Just the HTC Hero, or is this also
happening on stock Android?

On Thu, Oct 29, 2009 at 7:18 AM, gdonald  wrote:

>
>
>
> On Oct 28, 6:51 pm, Arron La  wrote:
> > My application started having this problem after I updated the
> > launcher activity with a different root package. Here's the sequence:
> >
> > 1) Install application on the phone with [com.package] as the path to
> > my launcher activity.
> > 2) Changed the path to be [com.package2] and updated the
> > AndroidManifest.xml
> > 3) Now some Hero phones are encountering the the bug you have
> > described above with the icon.  Somehow the old package path is being
> > cached and you will get an exception when rebooting the phone
>
> My path has been the same since I started building my app.
>
> Other apps on my phone are having the same problem now.  Google Sky is
> now broken after this morning's update for example.
>
> Reinstall fixes the broken apps, and then a reboot breaks them again.
>
> Anyone know of a workaround yet?
>
> >
>


-- 
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] Re: app gives layout errors only on Sprint HTC Hero devices

2009-10-29 Thread Dianne Hackborn
Yes you definitely can not inflate views from the thread they won't run in.
 The reason is that views may create a handler, and when the handler is
created it is bound to the thread that is creating it.  So if you try to
attach that view hierarchy to a window being run in another thread, all hell
breaks loose as work is dispatched on two different threads.

On Thu, Oct 29, 2009 at 12:46 AM, Jayesh  wrote:

>
>
>
> On Oct 21, 10:24 pm, Streets Of Boston 
> wrote:
> > That's why i put 'official' in quotes :-)
> >
> > One should not manipulate windows/views in any other thread than the
> > main UI-thread (e.g. textView.setText(...) or imageView.setImageBitmap
> > (...), hiding/showing views, etc.). If you do this in a background
> > thread, then you may get exceptions or other weird behavior.
> >
> > If 'inflating a view' falls under the 'manipulating windows/views'
> > category then one should not inflate views inside any other thread by
> > the main UI-thread.
> >
>
> You are right. I finally got a report yesterday from one of the users
> that a modified apk that does view inflating in GUI thread, doesn't
> give this problem. I have released the fix accordingly and got one
> more user confirming that it's working for him now.
>
> So thanks for the advice. Inflating view in a thread other than GUI
> thread, indeed seems to be unsupported, even if it doesn't throw any
> explicit exception deterministically.
>
> > I'm just saying: try to do the inflate in the main UI-thread and check
> > if this solves the problem for HTC Heros. If so, your particular
> > problem is fixed.
> >
> > On Oct 21, 11:34 am, Jayesh Salvi  wrote:
> >
> > > --
> > > Jayesh...
> >
> > > read more »
> >
> > > On Wed, Oct 21, 2009 at 7:39 PM, Streets Of Boston
> > > wrote:
> >
> > > > I still would try to inflate your view inside your main gui-thread
> and
> > > > not in a seperate background thread.
> >
> > > > The fact that it works on other phones does not guarantee it works on
> > > > all phones, if inflating views on non-gui threads is 'officially' not
> > > > supported.
> >
> > > Could you elaborate on how it is 'officially' not supported?
> >
> > > I know that a particular exception is thrown if the framework finds
> that a
> > > different thread is trying to manipulate widgets in view hierarchy.(I
> hit it
> > > yesterday elsewhere in the code, and it is not the same as this error).
> I
> > > haven't found any documentation in this matter, that mentions what is
> > > supported/forbidden practice in this matter. Did I miss something?
> >
> > > > Who knows, it may fix it (if you already haven't tried it). :-)
> > > > But i may be wrong...
> >
> > > > On Oct 20, 11:57 pm, Jayesh Salvi  wrote:
> > > > > Thanks Shane and Amir for confirming the doubts.
> > > > > It's frustrating that all I can say to users is to wait until
> Sprint/HTC
> > > > > issues firmware update, then hopefully the problem will be fixed.
> The
> > > > users
> > > > > are willing to test if I have any fix, but I can't find root cause
> even
> > > > > after looking inside the android code, let alone a fix/workaround.
> >
> > > > > Does anyone know if Sprint or HTC have any channels to report
> complaints?
> > > > > Are there any means to know when they will issue next firmware
> update?
> >
> > > > > IIUC Sprint HTC Hero is "with Google" branded phone. I would have
> assumed
> > > > it
> > > > > would be the one with most conformance to Android platform; one
> that has
> > > > > passed all test suites required to qualify for the "with Google"
> logo.
> > > > Yet
> > > > > we see these anomalies. :(
> >
> > > > > --
> > > > > Jayesh
> >
> > > > > On Mon, Oct 19, 2009 at 1:15 PM, Amir Alagic 
> wrote:
> >
> > > > > > I saw somwhere else that one developer also has problems only
> with HTC
> > > > > > Hero (Sprint) ...
> >
> > > > > > On Oct 18, 9:48 am, Shane  wrote:
> > > > > > > We are having problems only with HTC Hero phones as well.  Our
> issue
> > > > > > > is different that yours but it is very disappointing to see not
> all
> > > > > > > phones handle the SDK the same.
> >
> > > >
> http://groups.google.com/group/android-developers/browse_thread/threa...
> >
> > > > > > > I suspect this is just going to get worse as more branded
> android
> > > > > > > experiences get released by manufacturers.  G
> >
> > > > > > > On Oct 12, 9:46 pm, Jayesh Salvi 
> wrote:
> >
> > > > > > > > I tried to look into the android framework code
> > > > > > > > (link<
> > > > > >
> http://www.google.com/codesearch/p?hl=en&sa=N&cd=1&ct=rc#uX1GffpyOZk/.
> > > > ..
> > > > > > > > android.view.InflateException Error inflating class
> > > > > > > > java.lang.reflect.Constructor&l=458>). The topmost frame
> refers to
> > > > a
> > > > > > 'throw'
> > > > > > > > statement(line 512) that is inside a catch of a lower level
> > > > exception.
> > > > > > I
> > > > > > > > can't tell what part of the createView() function throws that
> lower
> > > > > > level
> > > > > > > > excep

[android-developers] Re: problem with TabHost

2009-10-29 Thread Kevin Bailey

On Wed, Oct 28, 2009 at 06:40:24PM -0700, tatman wrote:
> 
> 
>xmlns:android="http://schemas.android.com/apk/res/android";
>   android:id="@+id/tabhost"

Don't know if it will help but my main.xml file says:

android:id="@android:id/tabhost"

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



[android-developers] Re: how to be paid by the market?

2009-10-29 Thread Disconnect

On Thu, Oct 29, 2009 at 10:24 AM, nagaraj attimani
 wrote:
> Nothing 2 worry..
> Defn u will get gud money for u r app..
> Good Luck :)

It appears that your keyboard has broken, possibly due to the PEBKAC
bug. Please turn your computer in at your local repair shop and a new
one will be dispatched within 2-4 weeks.

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



[android-developers] Re: how to read the app package under /data/app

2009-10-29 Thread Dianne Hackborn
The contents of /data/app and /system are private implementation details of
the platform and you should never touch them directly or make assumptions
about what they contain.

The PackageManager is the API for accessing all information about installed
applications.  Please don't directly access .apks.  (And in the code posted
previously for querying the main activities, there is absolutely no need for
the "INSTALL_PACKAGE" permission for this.  In fact, third party apps can't
get that permission, period.)

2009/10/29 vovkab 

>
> Because in /data/app they added automaticaly, and to keep file names
> clear, they uses package name as file name.
> Any way you can get all files in data/app and system/app:
>
> for (int i = 0 ;i < count; i++){
>File f = new File(appList.get
> (i).activityInfo.applicationInfo.sourceDir);
>  if (f != null){
>   read file binary here
> }
> }
>
> p.s you don't need INSTALL_PACKAGE permission ;)
>
> On 29 окт, 09:39, Zhihong GUO  wrote:
> > Hi all,
> > I just find a solution on get app package binary:
> >
> > first, the manifest.xml should have permission: INSTALL_PACKAGE
> >
> > then:
> >
> > PackageManager pm = this.getPackageManager();
> > Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
> > mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
> > List appList = pm.queryIntentActivities(mainIntent,
> > 0);
> > Collections.sort(appList, new
> > ResolveInfo.DisplayNameComparator(pm));
> > int count = appList.size();
> > for (int i = 0 ;i < count; i++){
> >  new File f = new
> >
> File("/data/app/"+appList.get(i).activityInfo.applicationInfo.packageName+"
> .apk");
> > if (f != null){
> > read file binary here
> > }
> > }
> >
> > My question now is why the application's name under system/app have
> > different format from the app under /data/app. For example, the app under
> > system folder is looks like AlarmClock.apk, while the app under /data/app
> > fold is com..xxx.test.apk.
> >
> > 2009/10/28 vovkab 
> >
> >
> >
> >
> >
> > > Seems like, you don't know what you need.
> >
> > > Use WallpaperManager to get wallpapper. Why you need filename from
> > > package o_O?
> >
> > > On 28 окт, 10:46, Zhihong GUO  wrote:
> > > > Can you give some example code on how to get the file name of the
> current
> > > > wallpaper?
> >
> > > > Thanks
> >
> > > > 2009/10/27 vovkab 
> >
> > > > > Yes you can.
> >
> > > > > Just read it with
> > > > > File apkfile = new File("/data/app/com.package.name");
> >
> > > > > On 27 окт, 11:43, Zhihong GUO  wrote:
> > > > > > Hi All,
> >
> > > > > > I want to read out the binary content of the .apk packages
> installed
> > > in
> > > > > > /data/app. Not only the package information, but the content of
> the
> > > > > package
> > > > > > itselt.
> > > > > > How can I do that.
> > > > > > Thanks a lot,
> >
> > > > > > James
> >
>


-- 
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] Re: 3D Developers - Motorola Droid OpenGL ES Specs are in

2009-10-29 Thread Dianne Hackborn
It's because your app is running in density compatibility mode.  Note that
if you are using a surface view, this means there is a good chance that your
surface is actually the smaller size and being scaled up to the full screen
size (854x480) during compositing.  if that is the case, turning off density
compatibility may have a significant impact on your rendering speed,
depending on what you are doing.

On Thu, Oct 29, 2009 at 1:06 AM, Robert Green  wrote:

>
> I'm sure you're right about that.  I'll update my manifest to test.
> Boy, we're in kind of a bad spot right now.  Hero just came out and is
> only 1.5 but next week we'll have a 2.0 device to deal with...
>
> On Oct 28, 11:40 pm, Lance Nanek  wrote:
> > Wow, interesting stuff. Thanks!
> >
> > The resolution you mention on your site sounds odd, though:
> >
> > >Native 3D full screen size: 569x320
> >
> > The Motorola site claims a different resolution:>3.7"; WVGA (480 x 854
> pixels); 16:9 widescreen
> >
> > http://www.motorola.com/Consumers/US-EN/Consumer-Product-and-Services...
> >
> > If you don't have the android:targetSdkVersion attribute in your
> > manifest set high enough, or it is missing and you don't have the
> > android:minSdkVersion attribute set high enough, then sometimes the
> > system reports a lower resolution than native for compatibility
> > purposes. Maybe that's why you are seeing the lower resolution in your
> > tests?
> >
> > Some examples in this thread:
> http://groups.google.com/group/android-developers/browse_thread/threa...
> >
> > On Oct 28, 11:35 pm, Robert Green  wrote:
> >
> > > I just got my hands on this phone.  Here's my summary:
> >
> > > 1)  It's really fast.  Runs all my games at max framerates.
> > > 2)  The screen is 16:9 and will probably mess with your layouts and
> > > games and stuff.
> > > 3)  It has a PowerVR SGX530.  That's right around iPhone 3GS's GPU
> > > speed.  Wow!!
> >
> > > I believe the hardware supports OpenGL ES 2.0 but since Android
> > > doesn't, there's no way to use it right now.  I did, however, dump all
> > > of the GL extensions and put them alongside the G1 and Emulator
> > > extension lists into this handy-dandy article -
> http://www.rbgrn.net/content/345-hands-on-motorola-droid-opengl-es-specs
> >
> >
> >
>


-- 
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] Re: Android WVGA support

2009-10-29 Thread Dianne Hackborn
I am pretty positive it works.  Nothing changed in 2.0 -- this has been the
same since 1.0, if the platform's SDK version is < the resource version,
then the resource is ignored.

On Wed, Oct 28, 2009 at 5:28 PM, Jeff  wrote:

>
> Looks like -v4 flag doesn't work in Android 2.0. Any ideas?
>
> On Oct 22, 8:38 am, Nikolay Ananiev  wrote:
> > This is how I made my app resolution-independent and with Android 1.5
> legacy
> > support:
> >
> > Why did I put my high-dpi images in the drawable-hdpi-v4 folder and not
> in
> > drawable-hdpi? Because the Android 1.5 OS can't handle the -hdpi and
> tries
> > to use these images instead of the ones in the res/drawable folder. The
> -v4
> > flag is only meaningful for Android 1.6 and works perfect.
>
> >
>


-- 
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] Re: App name/icon problems on Hero after reboot

2009-10-29 Thread Greg Donald

On Thu, Oct 29, 2009 at 9:32 AM, Dianne Hackborn  wrote:
> What phones are people seeing this on?  Just the HTC Hero, or is this also
> happening on stock Android?

For me, I personally have seen two Heros it's happening on.

I don't have access to stock Android, unless you count the emulator,
but I can't reproduce the issues there.


-- 
Greg Donald
http://destiney.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] How to disable touch event on listView

2009-10-29 Thread jax

I have a ListView with a setOnItemClickListener.  I am trying to
prevent the user from pressing an item repeatedly but can't seem to
get it to work.  I have tried the following.

mAvailableOptionsListView.setClickable(false);
mAvailableOptionsListView.setEnabled(false);

and then a little time later in a TimerTask enabling them again

mAvailableOptionsListView.setClickable(true);
mAvailableOptionsListView.setEnabled(true);

This does not seem to work
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 WVGA support

2009-10-29 Thread webmonkey

Hi Dianne,

The v flag does indeed not work, I am using the Android 2.0 SDK with
the following AndroidManifest settings:



Running on a WVGA854 emulator with density 240 and API 5, I get the
following results:

drawable-hdpi-v4

is ignored

drawable-hdpi-v5

is ignored, very strange

drawable-hdpi

works, but we can't use that


On Oct 29, 3:45 pm, Dianne Hackborn  wrote:
> I am pretty positive it works.  Nothing changed in 2.0 -- this has been the
> same since 1.0, if the platform's SDK version is < the resource version,
> then the resource is ignored.
>
>
>
> On Wed, Oct 28, 2009 at 5:28 PM, Jeff  wrote:
>
> > Looks like -v4 flag doesn't work in Android 2.0. Any ideas?
>
> > On Oct 22, 8:38 am, Nikolay Ananiev  wrote:
> > > This is how I made my app resolution-independent and with Android 1.5
> > legacy
> > > support:
>
> > > Why did I put my high-dpi images in the drawable-hdpi-v4 folder and not
> > in
> > > drawable-hdpi? Because the Android 1.5 OS can't handle the -hdpi and
> > tries
> > > to use these images instead of the ones in the res/drawable folder. The
> > -v4
> > > flag is only meaningful for Android 1.6 and works perfect.
>
> --
> 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] Android 2.0 camera.setParameters(p) - Picture size must be 213x350?

2009-10-29 Thread chrispix

I am having an issue w/ 2.0 in the emulator when I am trying to set a
couple of parameters.  Including the size.

It appears these messages appear.. I guess my question is, why is the
picture size stuck at 213x350? If I set my picture size to 640x480 it
fails.

Chris.

10-29 14:55:24.261: DEBUG/CameraService(31): getParameters(picture-
format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-
rate=15;preview-size=176x144)
10-29 14:55:24.261: DEBUG/CameraService(31): setParameters(preview-
size=176x144;preview-format=yuv422sp;picture-size=640x480;picture-
format=jpeg;preview-frame-rate=15)
10-29 14:55:24.261: ERROR/CameraHardwareStub(31): Still picture size
must be size of canned JPEG (213x350)
10-29 14:55:24.271: DEBUG/CameraService(31): setParameters(focus-
mode=auto;preview-size=176x144;preview-format=yuv422sp;picture-
size=640x480;rotation=90;picture-format=jpeg;preview-frame-rate=15)
10-29 14:55:24.271: ERROR/CameraHardwareStub(31): Still picture size
must be size of canned JPEG (213x350)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 SDK loads every time i open Eclipse

2009-10-29 Thread Teo

Can i stop that? Sometimes i don't use Eclipse for Android development
but it still bugs me to see it load every time =D

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



[android-developers] Re: How to capture Soft keyboard key events.

2009-10-29 Thread Gulfam

Is there any solution I am still waiting for your Response

Gulfam Hassa

On Oct 28, 9:41 pm, Gulfam  wrote:
> Hi all group members,
>
> I am facing a problem any one can help me regarding this.
>
> I have an  EditText and a list of contacts. I want to search a
> contacts on maching with characters entered in EditText field. In my
> activity I have implemented  "OnKeyListener" .
>
> and in onCreat (){
>   searchField = (EditText)findViewById(R.id.search_field);
>   searchField.setOnKeyListener(this);}
>
>  and i have also implemented the method like this
>
> public boolean onKey(View v, int keyCode, KeyEvent event) {
>
> //Here i am getting text from my search field and comparing with
> contacts and updating contacts list
>
> }
>
> When i pressed keys like (abc ---> xyz or 0 -->9 or any key) from my
> computer key board or
> keyboard which is displaying on right side of the emulator my code is
> working fine. Currently I am using HTC Magic Emulator and Device also.
>
> ***Its workin fine for me**
> But now move to issue-->>>
>
> when i touch EditText field  a software keyboard launched and when i
> pressed any key from my screen keyboard
> its not giving me the events in onKey() method in other words its not
> calling onKey(){} method. but this method is called on specific keys
> like (0 to 9 and Delete key).
>
> I have also implement "keyListener" interface and its 4 to 5 methods
> like keyUp(), keyDown(),etc  but when i implement "keyListener"
> softkeyboard is not launching on touching my EditText field.
>
> Any useful solution would be highly appriciated.
> Thanks in advance.
> Gulfam Hassan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to be paid by the market?

2009-10-29 Thread nagaraj attimani
Hi Disconnect,

Your are right ..There is some problem in Keyboard.

On Thu, Oct 29, 2009 at 8:08 PM, Disconnect  wrote:

>
> On Thu, Oct 29, 2009 at 10:24 AM, nagaraj attimani
>  wrote:
> > Nothing 2 worry..
> > Defn u will get gud money for u r app..
> > Good Luck :)
>
> It appears that your keyboard has broken, possibly due to the PEBKAC
> bug. Please turn your computer in at your local repair shop and a new
> one will be dispatched within 2-4 weeks.
>
> >
>


-- 
Warm Regards,
Nagaraj

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 with Wi-Fi connectivity with Android 1.6

2009-10-29 Thread skyhigh

Another difference that I have noticed with Android 1.6 is that when
it shows the Wi-Fi connectivity icon in the bar at the top of the
screen, it still continues to show the EDGE connection icon next to
it.  With Android 1.5 when the device connects to a Wi-Fi network the
Wi-Fi icon would appear in the top bar and the EDGE connection icon
would go away.

An am concerned about the network connectivity because my application
has to do large downloads, often in the range of 400MB to 800MB, and I
would like to do these downloads over the Wi-Fi network instead of the
phone data network.

Does anyone know why the active network connection on Android 1.6
continues to be the Mobile connection even when it also has Wi-Fi
connectivity?  Is there a way to work around 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: Problem with Wi-Fi connectivity with Android 1.6

2009-10-29 Thread Mark Murphy

skyhigh wrote:
> Another difference that I have noticed with Android 1.6 is that when
> it shows the Wi-Fi connectivity icon in the bar at the top of the
> screen, it still continues to show the EDGE connection icon next to
> it.  With Android 1.5 when the device connects to a Wi-Fi network the
> Wi-Fi icon would appear in the top bar and the EDGE connection icon
> would go away.

Android 1.6 on my stock G1 behaves as 1.5 does -- you either have the
WiFi status bar icon or the EDGE status bar icon.

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

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

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



[android-developers] Re: how to be paid by the market?

2009-10-29 Thread a1

I think you should first take a look at this page:
http://www.google.com/support/androidmarket/bin/answer.py?answer=150324,
as you see Argentina is not supported merchant location.

--
Regards,
Bart Janusz

On 28 Paź, 23:02, shadow_of__soul  wrote:
> Hi,
>
> i'm interested to develop games for the android platform, but i have a
> question that i haven't been able to answer.
>
> i'm from argentina, if i pay the $25 fee, i'm able to publish my app
> in the store, but how i'm paid the revenue if i publish a paid app?
> wire transfer? check?
>
> also, there is any other requirement to publish paid app's in the
> store?
>
> Regards,
> Shadow.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] unsubscribe

2009-10-29 Thread stonestrange stone
unsubscribe,
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: Couldn't install Android 2.0 platform

2009-10-29 Thread www.rzr.online.fr

On Oct 28, 11:01 pm, sanczo_dev  wrote:
> I have the similar problem. But after download i get: "unzip failed:
> Cannot run program "chmod": java.io.IOException: error=24, too many
> files opened". I downloading Android 2.0 sdk and API 5. I have
> installed already sdk 1.1 and 1.5 before AVD comes.

hi

this has been reported on tracker :

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

can anyone here tell were and2.0 is installed into the sdk ?

Then we can just unzip it in the right place :
http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip

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] Unexpected Resumes Running Under 2.0

2009-10-29 Thread Nmix

I just installed SDK 2.0 and tested a stable app on a 2.0 AVD to make
sure it's still ok. It isn't. I'm trying to debug this, but the
problem, whatever it is, looks to be happening in Android, not in my
app.

App starts fine, flowing through the entire onCreate() and
initializing everything. I tested this with by attaching the debugger
to the emulator and setting breakpoints throughout. Good so far. Then
the application resumes, calling the onCreate() again. This continues,
presumably forever or until I kill the app.

On every iteration I am getting log messages with the tag UsageStats.
The messages I'm seeing include:

W UsageStats Something wrong here, didn't expect *packagename* to be
resumed
W UsageStats Unexpected resume of com.android.launcher while already
resumed in *packagename*

The first of these messages appears for every iteration. The second
one appeared only once.

The app I'm testing isn't too fancy, but I have had 6-figures worth of
user downloads and no one has ever reported a problem like this.

Suggestions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Sampling points along a path

2009-10-29 Thread RalphLeon

In my application I use cubic bezier curves to position images in a
pattern.

I just noticed that Path has a nice "cubicTo" method, that can
construct the same shape that I manually sample. However, I need to be
able to extract the X,Y positions along the path... is there anyway to
access these points given an arbitrary path?

Cheers,
Ralph
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Couldn't install Android 2.0 platform

2009-10-29 Thread skink



On Oct 29, 5:05 pm, "www.rzr.online.fr" 
wrote:
> can anyone here tell were and2.0 is installed into the sdk ?
>
> Then we can just unzip it in the right place 
> :http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip
>
> Regards

hi,

just unzip it in platform folder

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



[android-developers] Re: Problem with Wi-Fi connectivity with Android 1.6

2009-10-29 Thread skyhigh

I also have a stock G1.  Perhaps the issue is a result of something
wrong after the upgrade to 1.6 on certain phones.  There is another
topic on this forum at
http://groups.google.com/group/android-developers/browse_thread/thread/2a221443d0298d50/e29c74cb934027ba?hl=en&lnk=gst&q=wifi+mobile+connection#e29c74cb934027ba
titled "  I get the "unable to start wifi" " where people are
discussing being unable to use Wi-Fi after upgrading to 1.6 until they
hard reset their device to the factory defaults.

I don't think this is exactly the same issue I am seeing because I am
not seeing the "unable to start wifi" message they discuss.  When I go
to the Wi-Fi settings it says I am connected through Wi-Fi, and the Wi-
Fi icon is shown at the top of the screen.

In the Wi-Fi settings when I disable Wi-Fi, the Wi-Fi icon at the top
of the screen goes away.  When I re-enable Wi-Fi in the settings, it
says that it connects and I see the Wi-Fi icon come back at the top of
the screen.  Watching during this process I can see that the EDGE icon
did go away when the Wi-Fi icon showed up, but about 2 seconds later
the EDGE icon came back on at the top of the screen.  Both the Wi-Fi
and EDGE icons stay on after that.

I don't know if the phone is actually using the Wi-Fi network or the
EDGE network, only that it is reporting the active network is the
Mobile network.

I have had some customers contacting me about issues with the
application downloading over Wi-Fi, so I think that others must also
be seeing the Wi-Fi not working  correctly on their phones.



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

2009-10-29 Thread vovkab

Need help.

On 27 окт, 15:17, vovkab  wrote:
> So, how to get it?
>
> On 19 окт, 05:57, Dianne Hackborn  wrote:
>
>
>
> > The concept of the alt lock state only exists inside of the text object, as
> > it deals with editing being done on it.
>
> > On Sun, Oct 18, 2009 at 6:57 AM, iron  wrote:
>
> > > Any ideas?
>
> > --
> > 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] Re: Couldn't install Android 2.0 platform

2009-10-29 Thread vovkab

Do not install through eclipse. Close everything and run "android"
command in your tools folder.

On 29 окт, 01:01, sanczo_dev  wrote:
> I have the similar problem. But after download i get: "unzip failed:
> Cannot run program "chmod": java.io.IOException: error=24, too many
> files opened". I downloading Android 2.0 sdk and API 5. I have
> installed already sdk 1.1 and 1.5 before AVD comes.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 with Wi-Fi connectivity with Android 1.6

2009-10-29 Thread Mark Murphy

> I also have a stock G1.  Perhaps the issue is a result of something
> wrong after the upgrade to 1.6 on certain phones.

I'm assuming you've tried a garden-variety power-off-and-reboot to see if
that clears things up.

> I don't know if the phone is actually using the Wi-Fi network or the
> EDGE network, only that it is reporting the active network is the
> Mobile network.

What API are you using to determine this?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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



[android-developers] Null pointer exception Calling getContentResolver().query for video file URI

2009-10-29 Thread Pablo Szyrko

Sometimes (this happens randomly) my application crashes when it tries
to perform a query passing as parameter a video file URI.
I have found a similar issue (http://groups.google.com/group/android-
developers/msg/0715a5f641ef0757) but it doesn't have any reply.
Thanks, Pablo

Following is the stacktrace:

10-27 15:15:05.531: ERROR/MediaPlayer(37): Unable to to create media
player
10-27 15:15:05.531: ERROR/CameraService(37): Failed to load
CameraService sounds.
10-27 15:15:05.531: ERROR/Camera(931): _getParameters:
antibanding=auto;antibanding-values=off,50hz,
60hz,auto;brightness=5;brightness-max=10;brightness-
min=0;contrast=5;contrast-max=10;contrast-min=0;effect=none;effect-
values=mono,negative,solarize,pastel,mosaic,resize,sepia,posterize,whiteboard,blackboard,aqua;img-
timestamp=0;jpeg-quality=100;jpeg-thumbnail-height=384;jpeg-thumbnail-
quality=30;jpeg-thumbnail-width=512;luma-adaptation=0;meter-mode=meter-
average;meter-mode-values=meter-spot,meter-center,meter-
average;nightshot-mode=0;picture-format=jpeg;picture-
size=2048x1536;preview-format=yuv420sp;preview-frame-rate=15;preview-
size=480x320;rotation=0;saturation=5;saturation-max=10;saturation-
min=0;sharpness=15;sharpness-max=30;sharpness-min=0;taking-picture-
zoom=0;taking-picture-zoom-max=40;taking-picture-zoom-
min=0;whitebalance=auto;whitebalance-
values=auto,custom,incandescent,fluorescent,daylight,cloudy,twilight,shade
10-27 15:15:05.801: ERROR/Camera(931): setParameters()
10-27 15:15:05.821: ERROR/QualcommCameraHardware(37):
LINK_camera_set_thumbnail_properties returned 2
10-27 15:15:10.381: ERROR/QualcommCameraHardware(37): camera cb:
autofocus has started.
10-27 15:15:12.993: ERROR/QualcommCameraHardware(37): camera cb:
autofocus succeeded.
10-27 15:15:13.111: ERROR/(37): Dynamically Loading the library :
libOmxVidEnc.so
10-27 15:15:13.111: ERROR/OMXVenc(37): get_parameter::788 unsupported
index 267887431
10-27 15:15:13.111: ERROR/VENC_DRV(37): venc_drv_malloc::1138 phys
lookup success 0x41ba8000 -- 0x26a0 -- size - 2097152
10-27 15:15:13.131: ERROR/QualcommCameraHardware(37):
LINK_camera_set_thumbnail_properties returned 2
10-27 15:15:13.191: ERROR/VENC_DRV(37): venc_drv_rtos_msg_cb::1081
received invalid message ID from VIDEOENC task, 65535
10-27 15:15:13.311: ERROR/QualcommCameraHardware(37): startPreview is
already in progress, doing nothing.
10-27 15:15:20.532: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness, 102) failed!
10-27 15:15:20.532: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness): read from property = 102
10-27 15:15:30.212: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness, 102) failed!
10-27 15:15:30.212: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness): read from property = 102
10-27 15:15:30.212: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness, 102) failed!
10-27 15:15:30.221: ERROR/HardwareService(63): GetPreferredValue
(settings.display.brightness): read from property = 102
10-27 15:15:31.463: ERROR/VENC(37): venc_stop::772 finalizing stop in
context of caller(command)
10-27 15:15:31.463: ERROR/VENC_DRV(37): venc_drv_close::529 Send
VENC_IDLE_CMD to DSP
10-27 15:15:31.463: ERROR/VENC_DRV(37): venc_drv_rtos_msg_cb::1064
received QDSP_VIDEOENCTASK_VENC_CMD_DONE_MSG callback from DSP for
VENC_IDLE_CMD
10-27 15:15:31.471: ERROR/VENC_DRV(37): venc_drv_close::577
venc_drv_close: counter (0), venc_idle_cmd_done_recved(1)
10-27 15:15:38.301: ERROR/QualcommCameraHardware(37): Preview not in
progress!
10-27 15:15:38.311: ERROR/LocationHandler(931): mLocationManager ==
null
10-27 15:15:38.421: ERROR/AndroidRuntime(753): Uncaught handler:
thread main exiting due to uncaught exception
10-27 15:15:38.551: ERROR/AndroidRuntime(753):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{com.nimbuzz/com.pas.InboxMessageComposerScreen}:
java.lang.NullPointerException
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
3278)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.app.ActivityThread.access$1900(ActivityThread.java:112)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.os.Looper.loop(Looper.java:123)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
android.app.ActivityThread.main(ActivityThread.java:3948)
10-27 15:15:38.551: ERROR/AndroidRuntime(753): at
java.lang.reflect.Method.invokeNative(Na

[android-developers] Re: Android WebView and HTML5

2009-10-29 Thread Joe Bowser

Hey

Has anyone got the Database going on WebView?  I've gotten it to work
on the browser itself on the Emulator (using the Stickies example),
but not in the WebView.  I noticed that Google added
setDatabaseEnabled and setDatabasePath, but there's no examples or
source anywhere that's actually using this code.

I'm guessing that Geolocation in the WebView has similar issues, but I
haven't tried to use the WebView geolocation as of yet.

On Oct 28, 2:28 am, Miguel Paraz  wrote:
> Hi,
>
> On Oct 9, 6:37 pm, Anton Pirker  wrote:
>
> > Hey fellow Androids!
>
> > I am experimenting with Androids WebView[1] and itsHTML5features.
> > I have written a little webpage with does the features detection like
> > described here:http://diveintohtml5.org/detect.html
>
> > And now I see (I am on a SDK1.6 Emulator) that the LocalStorage, the
> > WebWorkers and Offline Web Applications are not supported!
>
> > Does anyone know when these features will be supported? Or does anyone
> > know the exact version (or build) of the webkit engine, that is used in
> >Android1.6?
>
> > Any hints are greatly appreciated!
>
> Looks like we have a pleasant surprise inAndroid2.0.
> I triedhttp://diveintohtml5.org/detect.htmlin a WebView, and it does
> the detection.
>
> However, it seems that the touch UI has some limitations. I tried the
> examples inhttp://htmlfive.appspot.com/and they don't work in the
> touch UI. The  tag doesn't support the sample which is an Ogg
> file - maybe it supports 3GPP only? We'll find out when we see the
> Eclair source.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App name/icon problems on Hero after reboot

2009-10-29 Thread Greg Donald

On Thu, Oct 29, 2009 at 9:18 AM, gdonald  wrote:
> Other apps on my phone are having the same problem now.  Google Sky is
> now broken after this morning's update for example.

After more app upgrades and reboots/testing today I've found the
following apps are all broken the same way as my own app:

Pandora
Coin Flip
Guitar Tuner Action
GPS Status
Where (doesn't crash but doesn't work)
PicSay

App icons are all changed and the apps crash or don't work at all.

A friend's Hero has a broken Google Voice app now, but mine seems ok.

Anyone have any work arounds?

Where is the Android bug reporting site?


-- 
Greg Donald
http://destiney.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: Android SDK loads every time i open Eclipse

2009-10-29 Thread Streets Of Boston

Eclipse loads from a work-space (e.g. try to start eclipse up twice in
a row and the second time it'll complain that the works-space is
already in use).

Create a different workspace that does not have Android SDK. Then
start Eclipse from there.

On Oct 29, 11:04 am, Teo  wrote:
> Can i stop that? Sometimes i don't use Eclipse for Android development
> but it still bugs me to see it load every time =D
>
> Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Tripit Oauth

2009-10-29 Thread Wouter

I'm sorry to hear this all.. I search a lot on the net and I try a lot
to find it by myself but this isnt always successful.
This website here is my last place to ask when I don't know how to
solve it.

Now I have succedeed to solve this and I have an application where I
can receive the oauth_token and the authorized access token.

But now I want to access protected resources and when I try to do this
i get a 404 error not found while the url is valid and working.

I use this:

OAuthClient client = getOAuthClient();

OAuthMessage responseMsg = null;

...

responseMsg = client.invoke(access, "GET", baseUrl, null);

10-29 18:52:21.141: ERROR/AndroidRuntime(749): Caused by:
net.oauth.OAuthProblemException: HTTP/1.1 404 Not Found

And yes I have tried a lot myself but I don't succeed to access
anything..

Wouter


On Oct 27, 4:30 pm, "nEx.Software" 
wrote:
> I'll be honest, I have provided you with source code in the past (for
> other stuff) and you struggled with that and ended up asking for yet
> more source code. While I don't mind sharing it in most cases, I do
> grow weary of constantly providing my source to people who, if they
> simply put in the work (in this case it isn't that much), would be
> able to figure it out just like I had to do.
>
> Besides, in looking at the documentation for the TripIt API, my
> implementation for Twitter will not help.
>
> On Oct 27, 3:50 am, Wouter  wrote:
>
> > Is it possible to post your source code for your application with
> > Twitter Oauth so I can make my application work?
>
> > Thank you,
>
> > Wouter
>
> > On 26 okt, 22:00, Wouter  wrote:
>
> > > Hey,
>
> > > I had followed this blog post also but it doesnt works for me..
>
> > > I also have this problem:
> > > when I get to the following line: provider.retrieveAccessToken
> > > (verifier); I receive this
> > > exception:"oauth.signpost.exception.OAuthExpectationFailedException:
> > > Authorized request token or token secret not set. Did you retrieve an
> > > authorized request token before?"
>
> > > Do you know what I can do to solve this problem? Thank you.
>
> > > On Oct 26, 4:53 pm, "nEx.Software" 
> > > wrote:
>
> > > > I have successfully used signpost in Android for Twitter's OAuth API.
> > > > If I remember correctly, it is actually quite trivial. This blog post
> > > > explains how to do it with Twitter. I had commented on there that I
> > > > was not able to get it to work. Found out it was something stupid on
> > > > my part.
>
> > > >http://dev.bostone.us/2009/07/16/android-oauth-twitter-updates/#awp::...
>
> > > > On Oct 26, 1:48 pm, Wouter  wrote:
>
> > > > > Hey,
>
> > > > > I am working on a new project with TripIt integration. Tripit has an
> > > > > api and has Oauth authentication.
> > > > > I have tested much with oauth-signpost but I am not able to receive an
> > > > > access token.
>
> > > > > Does someone has a good example for oauth (signpost) that works good
> > > > > with Android?
>
> > > > > Thank you,
>
> > > > > Wouter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App name/icon problems on Hero after reboot

2009-10-29 Thread RichardC

"Where is the Android bug reporting site? "
b.android.com

--
RichardC

On Oct 29, 5:40 pm, Greg Donald  wrote:
> On Thu, Oct 29, 2009 at 9:18 AM, gdonald  wrote:
> > Other apps on my phone are having the same problem now.  Google Sky is
> > now broken after this morning's update for example.
>
> After more app upgrades and reboots/testing today I've found the
> following apps are all broken the same way as my own app:
>
> Pandora
> Coin Flip
> Guitar Tuner Action
> GPS Status
> Where (doesn't crash but doesn't work)
> PicSay
>
> App icons are all changed and the apps crash or don't work at all.
>
> A friend's Hero has a broken Google Voice app now, but mine seems ok.
>
> Anyone have any work arounds?
>
> Where is the Android bug reporting site?
>
> --
> Greg Donaldhttp://destiney.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] is there a way to get the "carrier"

2009-10-29 Thread sdphil

tia.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App name/icon problems on Hero after reboot

2009-10-29 Thread Mark Murphy

I apologize for not responding to one of your earlier posts:

> Mine has: 1.29.651.1 CL69164 release-keys

Since I haven't seen this problem to date on my test Hero, running an
older firmware, I'm suspecting they broke something in that newer
firmware.

I have a second test Hero now and will do a bit more experimenting on this
later today or tomorrow.

I can say that I have not seen this problem at all on my main phone (a
stock G1 with 1.6), and I have definitely rebooted that one in recent
weeks.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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



[android-developers] Re: App name/icon problems on Hero after reboot

2009-10-29 Thread TreKing

I've only had one user report my app's label showing up as "#ff"
and they are also using a Hero.
I have not seen any of these problems on my own G1 or the emulator.

On Oct 29, 9:32 am, Dianne Hackborn  wrote:
> What phones are people seeing this on?  Just the HTC Hero, or is this also
> happening on stock Android?
>
>
>
> On Thu, Oct 29, 2009 at 7:18 AM, gdonald  wrote:
>
> > On Oct 28, 6:51 pm, Arron La  wrote:
> > > My application started having this problem after I updated the
> > > launcher activity with a different root package. Here's the sequence:
>
> > > 1) Install application on the phone with [com.package] as the path to
> > > my launcher activity.
> > > 2) Changed the path to be [com.package2] and updated the
> > > AndroidManifest.xml
> > > 3) Now some Hero phones are encountering the the bug you have
> > > described above with the icon.  Somehow the old package path is being
> > > cached and you will get an exception when rebooting the phone
>
> > My path has been the same since I started building my app.
>
> > Other apps on my phone are having the same problem now.  Google Sky is
> > now broken after this morning's update for example.
>
> > Reinstall fixes the broken apps, and then a reboot breaks them again.
>
> > Anyone know of a workaround yet?
>
> --
> 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] Pending intent receiverPermission

2009-10-29 Thread Loki117

Morning all,

I've started using an AlarmManager for some tasks i'm doing and while
setting up the pendingIntent to be broadcast I noticed there is no
receiverPermission option. Can anyone tell me is it possible to set
the receiver permission on a pendingIntent?

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



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

2009-10-29 Thread Xavier Ducrohet

On Wed, Oct 28, 2009 at 9:23 PM, orange80  wrote:
>
> We already know about that... our problem is that the "force http"
> workaround DOES NOT work for us either.

which, frankly, is mind boggling.
Can you give me the exact output of the status window in the SDK
Manager when you try to update from the repository?

Also, can you tell me which JDK you are using, OS config, etc..

thanks!
Xav

-- 
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: App name/icon problems on Hero after reboot

2009-10-29 Thread Greg Donald

On Thu, Oct 29, 2009 at 1:03 PM, TreKing  wrote:
>
> I've only had one user report my app's label showing up as "#ff"
> and they are also using a Hero.

Yes, I've seen that too, it's unpredictable what the app icon's new
(broken) title will be.  Occasionally it's something like
com.example.foo, other times it's a color like you noted.


-- 
Greg Donald
http://destiney.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: Problem with Wi-Fi connectivity with Android 1.6

2009-10-29 Thread skyhigh

Thanks Mark, that fixed the problem.  When I powered the phone off and
then back on it started working properly.

The API that I am calling to check the active network is
ConnectivityManager.getActiveNetworkInfo().  Please see the code
sample I posted earlier on this thread for how I am using this API.


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



[android-developers] Layout animation, clipping to parent

2009-10-29 Thread RalphLeon

So, if you have a layout animation attached to a gallery with the
views coming from _outside_ of the parent (a translation animation):
how do we get the views to not be clipped to the gallery?

At first guess:

Gallery.setClipChildren(false);

seems like it should work, but the animations are still clipped to the
bottom of the gallery!

My current work around is to setClipPadding(false) then add 100px of
padding. Finally use a relative layout with negative margins to put
things in the correct position. This _seems_ to work, though smells of
"hack".

Any thoughts?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App name/icon problems on Hero after reboot

2009-10-29 Thread Dianne Hackborn
On Thu, Oct 29, 2009 at 10:52 AM, RichardC
wrote:

> "Where is the Android bug reporting site? "
> b.android.com


If this is only happening on Hero, it needs to be reported to HTC, not as a
generic platform bug.

Has anyone tried installing an alternate home app and seeing if it still
happens there?  I wonder if this is something in their custom home app.

-- 
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] Re: Pending intent receiverPermission

2009-10-29 Thread Dianne Hackborn
It is not possible.

You really should have the pending intent deliver directly to an intent
receiver component you have declared in your manifest (set the component of
the pending intent to that component).  If you don't want other apps to be
able to access that receiver, just don't declare any intent filters (or
explicitly make the component non-exported).

On Thu, Oct 29, 2009 at 11:11 AM, Loki117 wrote:

>
> Morning all,
>
> I've started using an AlarmManager for some tasks i'm doing and while
> setting up the pendingIntent to be broadcast I noticed there is no
> receiverPermission option. Can anyone tell me is it possible to set
> the receiver permission on a pendingIntent?
>
> Tom
> >
>


-- 
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] Re: Keyboard, detect ALT Locked

2009-10-29 Thread Dianne Hackborn
Again, there is no "lock state" in general.  The text receiving input
maintains its own internal state for some things like this; if you want to
get at that state, you can do so with the text APIs.  See:
http://developer.android.com/reference/android/text/method/MetaKeyKeyListener.html

Other
than that, no lock state exists.

2009/10/29 vovkab 

>
> Need help.
>
> On 27 окт, 15:17, vovkab  wrote:
> > So, how to get it?
> >
> > On 19 окт, 05:57, Dianne Hackborn  wrote:
> >
> >
> >
> > > The concept of the alt lock state only exists inside of the text
> object, as
> > > it deals with editing being done on it.
> >
> > > On Sun, Oct 18, 2009 at 6:57 AM, iron  wrote:
> >
> > > > Any ideas?
> >
> > > --
> > > 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.
> >
>


-- 
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] Re: App name/icon problems on Hero after reboot

2009-10-29 Thread Greg Donald

On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn  wrote:
> If this is only happening on Hero, it needs to be reported to HTC, not as a
> generic platform bug.

Do you know where the HTC bug reporting site is?  All I can find is a
simple support form that doesn't even confirm I posted anything.

> Has anyone tried installing an alternate home app and seeing if it still
> happens there?  I wonder if this is something in their custom home app.

I'd be happy to try if I can.  What would you suggest I try?  (I
wasn't previously aware I could install a new home app.)


-- 
Greg Donald
http://destiney.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: Does DexClassLoader works correctly?

2009-10-29 Thread fadden

On Oct 29, 1:02 am, mongd  wrote:
> DexClassLoader dLoader = new DexClassLoader("/data/app/
> com.testpackage.test2.apk", "/data/dalvik-cache", null,

Your application doesn't have write permission on /data/dalvik-cache.
It can't create a file there.

You should either use your app's private data area (which has the
advantage of getting cleaned up automatically when your app is
uninstalled), or request the WRITE_EXTERNAL_STORAGE permission and
use /sdcard.

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

2009-10-29 Thread fadden

On Oct 29, 12:15 am, webmonkey  wrote:
> On Oct 28, 9:20 pm, Ian  wrote:
> > I've noticed that the PNGs of my application with some gradients
> > effects looked terribly bad at the device (a Samsung Galaxy) and at
>
> The banding artifacts you see are because the device and the emulator
> are displaying in 16-bit 565 pixel format, they can't display all the
> colors. Have you tried painting the image with Paint.setDither(true)
> turned on:

To emphasize a related point: the compression performed during the
packaging step should have no impact on the rendered image.  If it
does, there's a bug somewhere in the process, but to determine that
you need to compare the appearance of both images on the same device
(e.g. both on the emulator or both on your workstation).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Updating one view also causes another view to update

2009-10-29 Thread Mihai Fonoage

Hello everyone,

I have two views, one of which is a Chronometer. Whenever the
Chronometer gets updated (every second, automatically, after its start
() method has been called), the onDraw method of my second view is
called. Any way I can stop this from happening?

Thank you!

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

2009-10-29 Thread fadden

On Oct 28, 11:31 pm, Samuh  wrote:
> However, when the user was trying to open an image from the SD card
> the app ran into strange errors.
>
> Stack dump :
>
> 10-29 08:51:35.536: ERROR/IMemory(18142): binder=0x191868 transaction
> failed fd=-2147483647, size=0, err=-2147483646 (Unknown error:
> 2147483646)
> 10-29 08:51:35.536: ERROR/IMemory(18142): cannot dup fd=-2147483647,
> size=0, err=-2147483646 (Bad file number)
> 10-29 08:51:35.536: ERROR/IMemory(18142): cannot map BpMemoryHeap
> (binder=0x191868), size=0, fd=-1 (Bad file number)
> 10-29 08:51:35.555: ERROR/Surface(18142): Couldn't map Surface's heap
> (binder=0x191868, heap=0x1918c0)
[...]
> 10-29 08:51:35.675: ERROR/AndroidRuntime(18142):
> java.lang.IllegalArgumentException
> 10-29 08:51:35.675: ERROR/AndroidRuntime(18142):     at
> android.view.Surface.lockCanvasNative(Native Method)

Looks like some of the core framework stuff went a little nutty.
-2147483647 is 0x8001, so seeing that in a file descriptor is a
bit weird.  Something low-level failed and the problem bubbled up;
maybe a magic error result got passed back in an fd result and didn't
get trapped.

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

2009-10-29 Thread Loki117

Ok so I had a look added it to the manifest and it runs under the
context of the Application I need the receiver to run under the
context of a defined service in the manifest file. I had a look at the
manifest docs and it seems you can not assign a receiver to a service
(from what I can see) so now i'm stuck again.

On Oct 29, 3:01 pm, Dianne Hackborn  wrote:
> It is not possible.
>
> You really should have the pending intent deliver directly to an intent
> receiver component you have declared in your manifest (set the component of
> the pending intent to that component).  If you don't want other apps to be
> able to access that receiver, just don't declare any intent filters (or
> explicitly make the component non-exported).
>
> On Thu, Oct 29, 2009 at 11:11 AM, Loki117 wrote:
>
>
>
> > Morning all,
>
> > I've started using an AlarmManager for some tasks i'm doing and while
> > setting up the pendingIntent to be broadcast I noticed there is no
> > receiverPermission option. Can anyone tell me is it possible to set
> > the receiver permission on a pendingIntent?
>
> > Tom
>
> --
> 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] Re: How to disable touch event on listView

2009-10-29 Thread Piotr

If you want to disable something, that intent was to be enabled,
rethink your idea.

Use access mutex, message to user, or threads.

On 29 Paź, 15:52, jax  wrote:
> I have a ListView with a setOnItemClickListener.  I am trying to
> prevent the user from pressing an item repeatedly but can't seem to
> get it to work.  I have tried the following.
>
>                                 mAvailableOptionsListView.setClickable(false);
>                                 mAvailableOptionsListView.setEnabled(false);
>
> and then a little time later in a TimerTask enabling them again
>
>                                 mAvailableOptionsListView.setClickable(true);
>                                 mAvailableOptionsListView.setEnabled(true);
>
> This does not seem to work
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example Needed: a view containing a reference to its activity

2009-10-29 Thread jotobjects



On Oct 28, 2:07 pm, ClarkBattle  wrote:
> But my activity never explicitly calls the view's constructor.  The
> activity simply calls:
>
> setContentView( R.layout.main );

You can instead call setContentView(myCustomView)

Does this only work if myCustomView is the whole layout?  How do you
get this custom view to be referenced referenced within a layout file?

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

2009-10-29 Thread Mark Murphy

> I need the receiver to run under the
> context of a defined service in the manifest file.

Why?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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



[android-developers] Free, OpenSource Android project for all: AnCal

2009-10-29 Thread Piotr

Hi,

At least, I had some free time for publishing my project. It was done
in dark days, totally with emulator, so, it needs some improvements
for devices. Besides, this was my first Android project, so please, be
understaing for my rubbish code :D

AnCal - Android Calendar.

Some years ago, I used Palm devices with PalmOS and great PIM's.
That's why I created AnCal - there are best ideas form Palm's.

Information page:
http://vetch.magot.pl/pages/ancal.html

Code page:
http://code.google.com/p/ancal/

Contact me, if you want to develop this project under AnCal name.

Have fun :)

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

2009-10-29 Thread Loki117

Because the service implements an interface to which I require access
to by casting the context to it's type.

On Oct 29, 3:59 pm, "Mark Murphy"  wrote:
> > I need the receiver to run under the
> > context of a defined service in the manifest file.
>
> Why?
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Setting Drawable/ClipDrawable level from XML

2009-10-29 Thread Artem

Wise Fellow Androiders,

I am trying to use a ClipDrawable in my XML to position a part of an
image on top of another image (We are doing to save us space in APK by
not having to include several large backgrounds). This is needed for
the start screen splash, so I don't think any code is allowed, only
XML.

However, clip drawable don't seem to be at all made for being used
from purely XML. This is because after searching around, I found this
in the ClipDrawable onDraw code:
   @Override
public void draw(Canvas canvas) {

if (mClipState.mDrawable.getLevel() == 0) {
return;
}
  ...
}

And I don't see a way to set the level from XML. Is this an oversight
and should we maybe allow this level to be set from XML too?

XML code.

http://schemas.android.com/apk/res/
android">






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

2009-10-29 Thread Mark Murphy

> Because the service implements an interface to which I require access
> to by casting the context to it's type.

Then don't do that.

One solid pattern for AlarmManager is to have alarms trigger a
manifest-registered broadcast receiver, that in turn calls startService()
on an IntentService that processes whatever work needs to be done
periodically. This allows the work to be done on a background thread and
shuts the IntentService down when there is no more work, minimizing memory
impact.

Conversely, I really do not recommend trying to use AlarmManager with a
receiver registered in Java code, because that receiver hopefully is
rarely around, because the service that hosts it hopefully is rarely
around.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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



[android-developers] Re: Pending intent receiverPermission

2009-10-29 Thread Loki117

Agreed going forward this is a better plan and something which I am
moving towards but with my current inherited code base this is not a
possible so "don't do that" isn't really an option for the moment.

On Oct 29, 4:15 pm, "Mark Murphy"  wrote:
> > Because the service implements an interface to which I require access
> > to by casting the context to it's type.
>
> Then don't do that.
>
> One solid pattern for AlarmManager is to have alarms trigger a
> manifest-registered broadcast receiver, that in turn calls startService()
> on an IntentService that processes whatever work needs to be done
> periodically. This allows the work to be done on a background thread and
> shuts the IntentService down when there is no more work, minimizing memory
> impact.
>
> Conversely, I really do not recommend trying to use AlarmManager with a
> receiver registered in Java code, because that receiver hopefully is
> rarely around, because the service that hosts it hopefully is rarely
> around.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Setting RFCOMM/SPP Bluetooth Baud rate

2009-10-29 Thread Aakash Patel

Hello,

I am making an app that utilizes the BlutoothSocket API and am trying
to create a serial connection over Bluetooth with RFCOMM/SPP profile.

I do not see how I set the baud rate for the connection, how would I
set it?

Thanks,
Aakash Patel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Pending intent receiverPermission

2009-10-29 Thread Dianne Hackborn
Sorry it's "you can't do that".  If the receiver is in the manifest, it is a
top-level component not associated with any of your other components.

On Thu, Oct 29, 2009 at 1:20 PM, Loki117 wrote:

>
> Agreed going forward this is a better plan and something which I am
> moving towards but with my current inherited code base this is not a
> possible so "don't do that" isn't really an option for the moment.
>
> On Oct 29, 4:15 pm, "Mark Murphy"  wrote:
> > > Because the service implements an interface to which I require access
> > > to by casting the context to it's type.
> >
> > Then don't do that.
> >
> > One solid pattern for AlarmManager is to have alarms trigger a
> > manifest-registered broadcast receiver, that in turn calls startService()
> > on an IntentService that processes whatever work needs to be done
> > periodically. This allows the work to be done on a background thread and
> > shuts the IntentService down when there is no more work, minimizing
> memory
> > impact.
> >
> > Conversely, I really do not recommend trying to use AlarmManager with a
> > receiver registered in Java code, because that receiver hopefully is
> > rarely around, because the service that hosts it hopefully is rarely
> > around.
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > Android App Developer Books:http://commonsware.com/books.html
> >
>


-- 
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] Re: App name/icon problems on Hero after reboot

2009-10-29 Thread Greg Donald

On Thu, Oct 29, 2009 at 1:58 PM, Dianne Hackborn  wrote:
> Has anyone tried installing an alternate home app and seeing if it still
> happens there?  I wonder if this is something in their custom home app.

I just tried Panda Home and still have the same broken app issues on reboot.


-- 
Greg Donald
http://destiney.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: HttpConnection forWifi

2009-10-29 Thread Roman ( T-Mobile USA)

See response to your post on beginner

http://groups.google.com/group/android-beginners/browse_thread/thread/6b3d05991fbc9cb2?hl=en

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Oct 28, 11:22 pm, Nemat  wrote:
> Hi Friends
>
> I have written my HttpConnection code for Android.I have also set
> Network preferences. Should I change the code so that it would be able
> to work for Wifi?or I dont need any change.Does the same code work for
> Wifi correctly?Here is my code:
>
> public static String http_get(String urlParameters)
>           {
>                     String msg = "",uid = "";
>                     int ch;
>
>                     url = url + urlParameters ;
>
>                     int BUFFER_SIZE = 2000;
>                     InputStream in = null;
>                     try {
>                         in = OpenHttpConnection(url);
>                     } catch (IOException e1) {
>                         // TODO Auto-generated catch block
>                         e1.printStackTrace();
>
>                     }
>
>                     try
>                     {
>                          InputStreamReader isr = new InputStreamReader
> (in);
>                          int charRead;
>                            String str = "";
>                            char[] inputBuffer = new char
> [BUFFER_SIZE];
>                          try {
>                              while ((charRead = isr.read(inputBuffer))>0)
>
>                              {
>                                  //---convert the chars to a String---
>                                  String readString =
>                                      String.copyValueOf(inputBuffer,
> 0, charRead);
>                                  str += readString;
>                                  inputBuffer = new char[BUFFER_SIZE];
>                              }
>                              in.close();
>                          } catch (IOException e) {
>                              // TODO Auto-generated catch block
>                              e.printStackTrace();
>
>                          }
>                          Log.i("Server",str);
>
>                               if(str.indexOf("1_")!=-1)
>                               {
>
>                                     uid = str.substring(2);
>
>                               }
>                               else
>                               {
>
>                                  uid="0";
>
>                               }
>
>                     }
>                     catch (Exception e)
>                     {
>                               msg = e.toString();
>                     }
>                     return uid;
>           }
>
>   public static String postData(String user,String file, String
> Contents){
>
>               // Create a new HttpClient and Post Header
>               HttpClient httpclient = new DefaultHttpClient();
>               HttpPost httppost = new HttpPost(url+file);
>               String result="";
>
>           try {
>                // Add your data
>                List nameValuePairs = new
> ArrayList(1);
>                Log.i("POSTDATA",user);
>                nameValuePairs.add(new BasicNameValuePair("sID",
> user));
>                nameValuePairs.add(new BasicNameValuePair("content",
> Contents));
>                httppost.setEntity(new UrlEncodedFormEntity
> (nameValuePairs));
>
>                // Execute HTTP Post Request
>                HttpResponse response = httpclient.execute(httppost);
>
>                InputStream is = response.getEntity().getContent();
>                BufferedInputStream bis = new BufferedInputStream(is);
>                ByteArrayBuffer baf = new ByteArrayBuffer(20);
>
>                 int current = 0;
>                 while((current = bis.read()) != -1){
>                     baf.append((byte)current);
>                 }
>                   Log.d("GETANDPOST",new String(baf.toByteArray()));
>                   result=new String(baf.toByteArray());
>                /* Convert the Bytes read to a String. */
>           //     text = new String(baf.toByteArray());
>              //  tv.setText(text);
>
>           } catch (ClientProtocolException e) {
>                // TODO Auto-generated catch block
>           } catch (IOException e) {
>                // TODO Auto-generated catch block
>           }
>           return result;
>      }
>
> public String SetPreference() {
>         ConnectivityManager
> connMgr=(ConnectivityManager)getSystemService
> (this.CONNECTIVITY_SERVICE);
>         NetworkInfo info=connMgr.getActiveNetworkInfo();
>         connMgr.setNetworkPreference(ConnectivityManager.TYPE_WIFI);
>                    return (connMgr.getActiveNetworkInfo().getTypeName
> ());
>
> }
>
>
--~--~---

[android-developers] Re: use data network while connected to wifi

2009-10-29 Thread Roman ( T-Mobile USA)

This is right now not supported from SDK level. You can modify the
framework/platform code to get this running...

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Oct 28, 4:07 pm, syronet  wrote:
> Is it possible to use the cellular 3g data network while connected to
> wifi ?
>
> I want to create connection through the 3g network while wifi is also
> connected
>
> Any help is greatly appreciated
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Unexpected Resumes Running Under 2.0

2009-10-29 Thread Nmix

I did some additional testing on the 2.0 AVD, including numerous
project cleans, compiling with 1.5, 1.6 and 2.0, and cutting out large
swaths of code. The problem persists. Yet other apps I have work fine
on 2.0.

I peppered logs in each of the major life cycle methods I implement,
and this is what I get:
10-29 20:33:23.561: DEBUG/tag(502): onCreate
10-29 20:33:24.271: DEBUG/tag(502): onResume
10-29 20:33:26.101: DEBUG/tag(502): onSaveInstanceState
10-29 20:33:26.214: DEBUG/tag(502): onPause
10-29 20:33:26.311: DEBUG/tag(502): onCreate
10-29 20:33:26.561: DEBUG/tag(502): onRestoreInstanceState
10-29 20:33:26.571: DEBUG/tag(502): onResume
10-29 20:33:27.081: DEBUG/tag(502): onSaveInstanceState
10-29 20:33:27.130: DEBUG/tag(502): onPause
10-29 20:33:27.211: DEBUG/tag(502): onCreate
10-29 20:33:27.601: DEBUG/tag(502): onRestoreInstanceState
10-29 20:33:27.611: DEBUG/tag(502): onResume
10-29 20:33:28.162: DEBUG/tag(502): onSaveInstanceState
10-29 20:33:28.201: DEBUG/tag(502): onPause
10-29 20:33:28.541: DEBUG/tag(502): onCreate
10-29 20:33:28.951: DEBUG/tag(502): onRestoreInstanceState
10-29 20:33:28.960: DEBUG/tag(502): onResume
10-29 20:33:29.631: DEBUG/FatCalc(502): onPause

I finally kill it with the back key, though it sometimes takes a few
tries because the timing is critical.

Elsewhere in the log, I found something in the logs put out by the
system process that from their timestamp may be correlated with the
uninstall/install process initiated by ADB:

10-29 20:33:14.391: WARN/ResourceType(55): Resources don't contain
package for resource number 0x7f06
10-29 20:33:14.461: WARN/ResourceType(55): Resources don't contain
package for resource number 0x7f060001

These correspond to string resources in the app, both of which appear
to display normally when the app runs, in the momentary glimpses of
the app's UI display before it gets destroyed.

This really has me puzzled. Any help appreciated.

On Oct 29, 12:06 pm, Nmix  wrote:
> I just installed SDK 2.0 and tested a stable app on a 2.0 AVD to make
> sure it's still ok. It isn't. I'm trying to debug this, but the
> problem, whatever it is, looks to be happening in Android, not in my
> app.
>
> App starts fine, flowing through the entire onCreate() and
> initializing everything. I tested this with by attaching the debugger
> to the emulator and setting breakpoints throughout. Good so far. Then
> the application resumes, calling the onCreate() again. This continues,
> presumably forever or until I kill the app.
>
> On every iteration I am getting log messages with the tag UsageStats.
> The messages I'm seeing include:
>
> W UsageStats Something wrong here, didn't expect *packagename* to be
> resumed
> W UsageStats Unexpected resume of com.android.launcher while already
> resumed in *packagename*
>
> The first of these messages appears for every iteration. The second
> one appeared only once.
>
> The app I'm testing isn't too fancy, but I have had 6-figures worth of
> user downloads and no one has ever reported a problem like this.
>
> Suggestions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example Needed: a view containing a reference to its activity

2009-10-29 Thread Streets Of Boston

Or you could use the getTag and setTag methods on your view:

myView.setTag(myActivity)
...
myActivity = (MyActivity)someView.getTag();
...

On Oct 28, 5:08 pm, ClarkBattle  wrote:
> Very tricky.  I like it!  Thanks.
>
> On Oct 28, 1:12 pm, RichardC  wrote:
>
>
>
> > In your activity onCreate method
> > 1. find your custom view by id.
> > 2. call a method on your custom view and pass it "this" (of your
> > activity class) and save it in the custom view.
>
> > In the custom view used the saved reference to your activity class to
> > call back into your activity class when you need to.
>
> > --
> > RichardC
>
> > On Oct 28, 7:40 pm, ClarkBattle  wrote:
>
> > > I have a custom view that needs a reference to the activity that
> > > created it.
>
> > > Dianne Hackborn said in another thread:
>
> > > >Give your view a reference to the activity (or a Java interface it 
> > > >implements) and call back through that.
> > > >Much much MUCH more efficient than sending a broadcast.
> > > >See all of the standard view and view subclass callbacks for examples.
>
> > > Sadly, I dont understand her reply and cant find any decent examples
> > > that show how to do this.
>
> > > Can anyone point me to an example or post one here?
>
> > > Thanks.- 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] Re: App name/icon problems on Hero after reboot

2009-10-29 Thread Robert Green

Dianne, it's happening to me on 3 out of the 5 apps I have published.

All apps work fine on:
Emulator 1.1, 1.5, 1.6
G1 1.1, 1.5, 1.6
Mytouch 1.5, 1.6
Droid 2.0

The 3 apps have the issue on
Hero 1.5

I had originally assumed it had something to do with the manifest,
specifically the way the app label was defined.  The 3 apps that I
have that had problems had the raw string as the app label.  The 2
that worked use @string/app_name.  That's the only difference I could
really see.  I changed the 3 apps so that they use the resource
pointer but on test phones, once it's broken, it appears as though it
doesn't recover, even after uninstall/reboot/reinstall.

I'd really like to get to the bottom of this but it's nearly
impossible to get any response from Sprint/HTC.  If you happen to have
any leads and could send them this info, many of us would very much
appreciate that.

Thank you.


PS - I "fixed" Light Racer so if any of you have a Hero and haven't
ever installed that game before, please do then reboot and let me know
if the label goes bad for you.  If it still works after the reboot
then my suspicions about the app label are confirmed.  If not, back to
the old drawing board.

On Oct 29, 1:58 pm, Dianne Hackborn  wrote:
> On Thu, Oct 29, 2009 at 10:52 AM, RichardC
> wrote:
>
> > "Where is the Android bug reporting site? "
> > b.android.com
>
> If this is only happening on Hero, it needs to be reported to HTC, not as a
> generic platform bug.
>
> Has anyone tried installing an alternate home app and seeing if it still
> happens there?  I wonder if this is something in their custom home app.
>
> --
> 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] Android 2.0 Google Maps Navigation and app use of turn-by-turn directions?

2009-10-29 Thread blindfold

Is anything known about how an app may tap turn-by-turn directions
generated by Android 2.0's Google Maps Navigation? Until now we were
prohibited by the Google Maps ToS to offer turn-by-turn directions in
our apps. Clearly it would be attractive to integrate some of that
functionality in other mobile applications, or to be able to exert
some level of control over Google Maps Navigation from one's app. In
other words, are there any supplementary APIs for use with Google Maps
Navigation?

Or does Google Maps Navigation run as a Service such that at least one
need not switch between applications to still get spoken turn-by-turn
directions even while one's app Activity is running in the foreground?

See also the discussion in the TTS-for-Android group at
http://groups.google.com/group/tts-for-android/browse_thread/thread/484fd86f1ab39e9b

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] Choosing a reliable Web Hosting company

2009-10-29 Thread David Smith

Are you looking for a reliable, stable and quality hosting company
that you can bank upon? The answer would by default be Yes!

These days there are so many options available as far as web hosting
plans and web hosting companies are concerned. A new customer would be
utterly confused by the claims of each and every web hosting company –
about their services and plans offered. But still there are few things
that one can keep in mind before finalizing a web hosting company and
its hosting plan.

There are quite a few things that one should know while looking out
for a good hosting company.

•   Know your requirements. Do not get carried away by the discounts and
bulk offers and additional services given to you as these may not be
used. Selection of the plan that suits your needs is important.
•   Does the web hosting company provide Linux hosting plans?
•   Does the hosting company have a good user friendly CPanel control
panel for the plans?
•   Does the web hosting service provider provide round-the-clock
customer support?
•   Does the hosting company have ticketing or help desk systems?
•   What kind of back up plans does the company have? Do they provide
weekly data backups?
•   How is the infrastructure support like? Does the web hosting company
have DG Sets or options of UPS or any other mode of continuous power
supply?
•   What is the guaranteed up time of the web hosting service provider?
•   When purchasing the web hosting plan, what kind of software and
hardware are supported? What do they do to prevent security issues
like hacking, virus attacks, etc.?

It is important to know these things and many more about your Web
Hosting Company and its reliability. This is especially crucial when
you are trying to launch an e-commerce site or trying to launch a site
for online business. A 100% up time is ideally suited and important.
Websites are like a virtual face of your company.

Remember this rule of thumb, we need to cater to the customer the very
first time and first impression is the last one. You don’t get a
second chance.  A reliable web hosting company would ensure that all
of the concerns mentioned above have been addressed.

Your efforts to look out for a reliable and a genuine web hosting
company with apt services would end here. You can reach us at
http://www.getsimple.net

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

2009-10-29 Thread Fedor Vlasov

I can see a new Quick Contacts popup in Android 2.0. How can I use it
in my application? Can't find any samples.

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] SoftKeyboard - detecting pressed key

2009-10-29 Thread Hilly

Hi,

I am currently developing an android app which opens the soft keyboard
in order to get an input from the user.
I would like to detect when the user has finished using the soft
keyboard by clicking the "Done" key.
Is there anyway I can do it? Is there some kind of event that I can
catch to detect that the user pressed the "Done" key or that the soft
keyboard was closed?

Thanks,
Hilly

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



[android-developers] Re: How to launch activity act2.class (contained in project2.apk) from activity1 in project1.apk ?

2009-10-29 Thread kirti kaul

hi,

try this:

Intent intent = new Intent();
intent.setComponent(new 
ComponentName("gal.com.app",
"gal.com.app.gallery"));
startActivity(intent);

Where gal.com.app is the name of the other package in which the other
activity resides and gal.com.app.gallery is the application name
appended with the name of the activity in the other package


On Oct 2, 11:41 pm, DaminouU  wrote:
> Hi,
>
> I have two .apk file (wit their respective activity). I want to launch
> the second one from the first one. How can I do this?
>
> Just to be clear :
> I have project1.apk and project2.apk.
> act1 belongs to project1.apk and act2 to project2.apk.
>
> I would have done
> [in the code of act1]
>
> Intent intent = new Intent();
> intent.setClass(this, act2.class);
> startActivity(intent);
>
> if it was in the same apk but it is not working here. Could you
> explain to me the best way to do this ?
>
> Thanks,
>
> D.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] About relationship between android PM(Power Management) and Linux kernel ACPI

2009-10-29 Thread Tyler

Since I traced android code and surveyed the Internet, nobody talks
about relationship between android PM and Linux kernel ACPI.

Does android only support PM that use "wake lock" mechanism to control
behavior of CPU and ignore the ACPI of kernel?

I think may be ACPI used by PM but didn't use keyword "acpi" in
function code. This is my assumption.

I will trace code continually.

I hope everybody can Provides some hint.

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



  1   2   >