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

2010-12-07 Thread Kumar Bibek
Yep they are gone. Perhaps, we are now supposed to do drag and drop. "+" "-"
signs were helpful though.
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Dec 8, 2010 at 1:22 PM, oriharel  wrote:

> Before the newest version I was able to create hierarchies using drag
> n' drop, performed on the outline view.
> Since the upgrade, I can't and the controls ('+', '-' and arrows) are
> missing.
>
> So how am I suppose to build view hierarchies now?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-07 Thread oriharel
Before the newest version I was able to create hierarchies using drag
n' drop, performed on the outline view.
Since the upgrade, I can't and the controls ('+', '-' and arrows) are
missing.

So how am I suppose to build view hierarchies now?

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


[android-developers] playing yuv file

2010-12-07 Thread venu
Hi everyone,

I am playing a yuv file on my hardware using my one own c
application(using v4l2 interface).It is playing but display is not
comming.If i play the samething on linux its gets display on lcd. In
android just some blinking is there on lcd apart from that nothing is
showing. How to play yuv file in android using own application or
using android application.


Any suggestion welcome..

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] Android Search Dialog behavior

2010-12-07 Thread Yogini
Hi All,

This query is about Android Search Dialog, we are displaying Android
Search Dialog in an activity. Now the problem we are facing is when
user press device search button when search dialog already displayed
then on this the search dialog gets cancel instead of performing
search.
So my question is ' is this a device behavior or an issue with our
implementation? '

Thanks in advance
 Yogini

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get root permissions to do a adb remount?

2010-12-07 Thread FrankG
Maybe this will help you :

http://groups.google.com/group/android-platform/msg/da581f1b398fdf8b

Good luck ! Frank



On 8 Dez., 02:25, gato chlr  wrote:
> Hi does anybody knows how to get root permissions to do adb remount?
>
> 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: Choosing the right Layout(s)

2010-12-07 Thread Bret Foreman
What use is a smart-phone if it can't keep golf scores for you and all
your buddies?

You're going to need to stream the UI creation with runnables.
Otherwise, you may get an ANR if the phone is too busy to init all
those TextViews in time. Do about 30 TextViews in each runnable.

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

2010-12-07 Thread FrankG
Hi Douglas.

http://developer.android.com/guide/topics/manifest/receiver-element.html#nm

In the Manifest you write that your receiver class is called
Receiver .. and
later you call the class NoteReceiver ??

But nevertheless I have my doubts that you have your public class
NoteReceiver in
a file "Receiver".

Good luck ! Frank



On 8 Dez., 03:33, Douglas Fonseca  wrote:
> Hi,
> I'm developing an app that needs to start when the phone is power plugged.
> To do so, I used this code in manifest file
>
> 
>                            android:label="@string/app_name">
>             
>                 
>                 
>             
>         
>   android:label="@string/app_name" />
> 
>        
>                 android:name="android.intent.action.ACTION_POWER_CONNECTED" />
>        
> 
>     
>
> In Receiver file:
>
> public class NoteReceiver extends BroadcastReceiver
> {
> @Override
> public void onReceive(Context context, Intent intent)
> {
> context.startActivity(new Intent(context,Activity2.class));
>
> }
> }
>
> This code was suposed to start the Activity2 Activity, but it's not working!
> Does someone know that's wrong?
> Thanks,
> ---
> Douglas Fonseca
> Engenharia da Computação 2010
> Universidade Estadual de Campinas

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Google Nexus S - Please provide as DEV phone, asap :-)

2010-12-07 Thread gjs
Hi,

It's a long walk from here in Australia to Best Buy, hence requesting
it as a Dev phone ;-)

They are starting to appear in ebay with +$200 or more over the rrp...

Regards

ps Wish it had 8MP+ camera (!), guess I'll have to buy some other non
google nexus phone as well...

On Dec 8, 2:17 pm, Dianne Hackborn  wrote:
> You will be able to walk into Best Buy and buy one as soon as it comes out.
>
>
>
>
>
>
>
>
>
> On Tue, Dec 7, 2010 at 6:28 PM, gjs  wrote:
> > Hi,
>
> > Google Nexus S - Please provide as DEV phone, asap :-)
>
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Sending key event to foreground app from background app.

2010-12-07 Thread nikki
Hi Group

My query is I have a service running in a separate application process
and a activity in another application process running in foreground.
Can i send key event from the service to foreground activity. If yes
how can i achieve this.

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: Google Nexus S - Please provide as DEV phone, asap :-)

2010-12-07 Thread Brill Pappin
Sure you will, in the US... Us Canadian are always the last to gen
anything google releases... it even goes to Europe first!

- Brill

On Dec 7, 10:17 pm, Dianne Hackborn  wrote:
> You will be able to walk into Best Buy and buy one as soon as it comes out.

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


[android-developers] Re: Market not updating?

2010-12-07 Thread Zsolt Vasvari
The download count is not real time, and maybe nobody left you a
comment?

On Dec 8, 8:30 am, Brill Pappin  wrote:
> I seem to be having a problem with my paid apps in the market. No
> comments or downloads showing but I have about 30 purchases since this
> morning.
>
> Is anyone else noticing their apps "stuck" like that?

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


[android-developers] device id

2010-12-07 Thread yanamala siddaiah
HOw to get device id using phone gap application.

device.uuid ; not working for this one .

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


Re: [android-developers] Re: GLIBC 2.11 needed for emulator in SDK 2.3 !!!!

2010-12-07 Thread Atul Raut
Hi DrBrain ,

Thanks, its working fine for me.
Appreciate you reply.
Now Eclipse able to launch emulator.

--
Atul Raut, Yavatmal, MH, India
 Android Telephony Engineer
http://rautatul.weebly.com/
http://rautatul.wordpress.com/
Mobile : 9581819292
atulrau...@gmail.com 




On Wed, Dec 8, 2010 at 9:50 AM, DrBrain  wrote:

> Just found a work-around solution:
> 1. Add this repository: "deb http://security.ubuntu.com/ubuntu lucid-
> security main" to software sources (/etc/apt/sources.list)
> 2. Start update aptitude: sudo apt-get update
> 3. Start update libc6: sudo apt-get install libc6
>
> Best Regards.
>
> On Dec 8, 11:07 am, jtoolsdev  wrote:
> > Found out the QA machines at Android were upgraded to Lucid so they
> > didn't catch the glibc thing.  They are hoping to issue a fix.
> >
> > On Dec 7, 2:22 pm, jtoolsdev  wrote:
> >
> > > Same here on Ubuntu 9.10.  Hoses any development until there is a
> > > solution.  Looking at reported 2.3 errors popping developers may want
> > > to wait to update.
> >
> > > On Dec 7, 6:56 am, Fred J  wrote:
> >
> > > > Same error on (Mandriva release 2010)
> >
> > > > On 6 déc, 22:27, elpix1  wrote:
> >
> > > > > Hi,
> >
> > > > > I updated the SDK for the Android 2.3 and the emulator is not
> > > > > running anymore because it needs GLIBC 2.11 and my
> > > > > system has 2.10 !
> > > > > It seems that the emulator is the only tool from the new
> > > > > SDK that requires 2.11 !
> >
> > > > > ./emulator: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not
> > > > > found (required by ./emulator)
> > > > > linux-gate.so.1 =>  (0x00cf8000)
> > > > > libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1
> (0x003ae000)
> > > > > librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00851000)
> > > > > libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0
> (0x00724000)
> > > > > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0017e000)
> > > > > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00779000)
> > > > > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0023e000)
> > > > > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0011)
> > > > > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x003b2000)
> > > > > /lib/ld-linux.so.2 (0x00221000)
> >
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Documentation errors for LocationManager.requestSingleUpdate() ?

2010-12-07 Thread davemac
This is a new method in Android 2.3's LocationManager. It says
basically the same thing as what it says for requestLocationUpdates(),
except that there's no way to specify a minTime or minDistance. From
the name I would guess that my listener is going to be called once and
that's it, maybe as soon as a reliable location is available. But the
descriptions start with this:

Registers the current activity to be notified periodically by the
named provider. Periodically, the supplied LocationListener will be
called with the current Location or with status updates.

"Periodically" is not defined nor settable it seems. And why would
this method be called requestSingleUpdate if it gets multiple updates?
Does anyone know how to use these methods?

Thanks.

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


Re: [android-developers] ContactsContract.Contacts & .PhoneLookup

2010-12-07 Thread nithya nataraj
refer to expandablelist2.java site
there 's also sample code contactManager in android sdk

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

2010-12-07 Thread Samuh
We have four ListViews in a FrameLayout in one of our activities. We
also have a common WebView in this Framelayout set as EmptyView for
each of these lists.
The content of this TextView is supposed to change at runtime
depending on different contexts.

As a result, we call:
1. mEmptyView.loadData(...) followed by
2. mListOne.setEmptyView(mEmptyView) calls.

This works fine most of the times. But sometimes we are getting,
IllegalStateException.

java.lang.IllegalStateException: The content of the adapter has
changed but ListView did not receive a notification. Make sure the
content of your adapter is not modified from a background thread, but
only from the UI thread. [in ListView(2131362332, class
android.widget.ListView) with Adapter(class my.own.activity.MainAct
$UIAdapter)]
at android.widget.ListView.layoutChildren(ListView.java:1492)
at android.widget.AbsListView.onLayout(AbsListView.java:1147)
at android.widget.AdapterView.updateEmptyStatus(AdapterView.java:724)
at android.widget.AdapterView.setEmptyView(AdapterView.java:637)

Question: Is it safe to change content of an empty view and call
ListView#setEmptyView at runtime?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: GLIBC 2.11 needed for emulator in SDK 2.3 !!!!

2010-12-07 Thread DrBrain
Just found a work-around solution:
1. Add this repository: "deb http://security.ubuntu.com/ubuntu lucid-
security main" to software sources (/etc/apt/sources.list)
2. Start update aptitude: sudo apt-get update
3. Start update libc6: sudo apt-get install libc6

Best Regards.

On Dec 8, 11:07 am, jtoolsdev  wrote:
> Found out the QA machines at Android were upgraded to Lucid so they
> didn't catch the glibc thing.  They are hoping to issue a fix.
>
> On Dec 7, 2:22 pm, jtoolsdev  wrote:
>
> > Same here on Ubuntu 9.10.  Hoses any development until there is a
> > solution.  Looking at reported 2.3 errors popping developers may want
> > to wait to update.
>
> > On Dec 7, 6:56 am, Fred J  wrote:
>
> > > Same error on (Mandriva release 2010)
>
> > > On 6 déc, 22:27, elpix1  wrote:
>
> > > > Hi,
>
> > > > I updated the SDK for the Android 2.3 and the emulator is not
> > > > running anymore because it needs GLIBC 2.11 and my
> > > > system has 2.10 !
> > > > It seems that the emulator is the only tool from the new
> > > > SDK that requires 2.11 !
>
> > > > ./emulator: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not
> > > > found (required by ./emulator)
> > > >         linux-gate.so.1 =>  (0x00cf8000)
> > > >         libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0x003ae000)
> > > >         librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00851000)
> > > >         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 
> > > > (0x00724000)
> > > >         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0017e000)
> > > >         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00779000)
> > > >         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0023e000)
> > > >         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0011)
> > > >         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x003b2000)
> > > >         /lib/ld-linux.so.2 (0x00221000)
>
>

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


Re: [android-developers] Google Nexus S - Please provide as DEV phone, asap :-)

2010-12-07 Thread pohtzeyun
Anyone knows If and / or WHEN it will be available to pple in asia /
singapore??? 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: Google Nexus S - Please provide as DEV phone, asap :-)

2010-12-07 Thread Maps.Huge.Info (Maps API Guru)
How about sending me a free one, oh, make it an AT&T network version
please. I dislike T-M.

(in the mean time, I'll continue to enjoy the heck out of my Nexus
One)

-John Coryat

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


[android-developers] android 2.3 hierarchyviewer.bat problems

2010-12-07 Thread ryan cheng
In android 2.3 sdk, the hierarchyviewer.bat don't work, it shows

" Failed to get the adb version: Cannot run program "adb.exe" "

after I put all "platform-tools" dir files to "tools" dir, it works fine.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: GLIBC 2.11 needed for emulator in SDK 2.3 !!!!

2010-12-07 Thread jtoolsdev
Found out the QA machines at Android were upgraded to Lucid so they
didn't catch the glibc thing.  They are hoping to issue a fix.

On Dec 7, 2:22 pm, jtoolsdev  wrote:
> Same here on Ubuntu 9.10.  Hoses any development until there is a
> solution.  Looking at reported 2.3 errors popping developers may want
> to wait to update.
>
> On Dec 7, 6:56 am, Fred J  wrote:
>
> > Same error on (Mandriva release 2010)
>
> > On 6 déc, 22:27, elpix1  wrote:
>
> > > Hi,
>
> > > I updated the SDK for the Android 2.3 and the emulator is not
> > > running anymore because it needs GLIBC 2.11 and my
> > > system has 2.10 !
> > > It seems that the emulator is the only tool from the new
> > > SDK that requires 2.11 !
>
> > > ./emulator: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not
> > > found (required by ./emulator)
> > >         linux-gate.so.1 =>  (0x00cf8000)
> > >         libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0x003ae000)
> > >         librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00851000)
> > >         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00724000)
> > >         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0017e000)
> > >         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00779000)
> > >         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0023e000)
> > >         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0011)
> > >         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x003b2000)
> > >         /lib/ld-linux.so.2 (0x00221000)

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


Re: [android-developers] Making Toast with JavaScript, Android and the 2.3 emulator

2010-12-07 Thread Zsolt Vasvari
What a mess this 2.3 release of the emulator is... First of all, it
seems way slower than the 2.2. I really hope we are going to see a .1
update very soon.

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

2010-12-07 Thread doles
Hello folks,

I am working with a freshly installed android SDK and each time I try
to run the emulator, I see a message "Error loading preferences" in
the second command prompt window that comes up. After that, my
emulator comes up fine. I can even install apps once my emulator is
up. The problem is when I run the emulator through my IDE, something
prevents my IDE from knowing that my emulator is up. So, it never
installs my apk to the emulator. I can install it using the adb
manually but not through my IDE. I suspect that it is this "Error
loading preferences" thing, but dont know for sure. This command
prompt window shows up only for like less than a second and its really
hard to read what it is for in those few milliseconds. I ran the
emulator in -verbose mode and also googled this problem - no doughnut
for me so far. Does anyone know this error?

Thanks,
Sachin

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

2010-12-07 Thread .?793
Thank you very much.

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

[android-developers] reading Gallery 3D cache

2010-12-07 Thread Alex Chandra
I am working on improving the Gallery 3D program.

I add StorageEventListener so it can detect the state change
if the SD card is pulled out or put in. Below is the code I added in
"onCreate" of Gallery.java

/
mStorageListener = new StorageEventListener() {
@Override
public void onStorageStateChanged(String path, String oldState,
String newState) {
checkStorage();
}
};

if (mStorageManager == null) {
mStorageManager = (StorageManager) getSystemService("storage");
mStorageManager.registerListener(mStorageListener);
}
/

Here is what I notice when I do this:
1. Open the Gallery 3D program
2. Put in the SD card, wait until the program finishes building the
cache (indicated by all thumbnails are shown)
3. Pull out the SD card
4. Press back button
5. Kill the program by using "force stop" in the "manage applications"
6. Put in the same SD card again WITHOUT any modification (adding,
deleting, moving, etc)
7. Wait until the "preparing SD card" message is gone
8. Open the Gallery 3D program again
9. Voila! The program reads the cache and can load the thumbnails in a
very quick speed.
(note: the SD card contains about 3 Gigabytes of images and videos)

But, if I don't do "force stop", when I put in the same SD card again
(without modification),
the program will rebuild the cache again.

Is there any way to read the cache directly after I put in the SD card
again without killing the application?

Thank you.

Sincerely,
Alex Chandra

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Adapter fetches and parses RSS feed to get data - best practice?

2010-12-07 Thread DanH
Many an atrocity has been committed in the name of "best practices",
"object oriented design", "design patterns", et al.  (Not to mention
"performance".)  Any time someone's throwing around buzzwords like
that I tend to run the other direction.

Ultimately, the only criteria for good code is that it works, it does
the required job in a timely fashion, without excessive use of
resources, it's reliable, it's maintainable, and it was written with a
reasonable amount of effort and expenditure.  Any code that
accomplishes those goals is good code.  Any that doesn't isn't, no
matter how high-falutin' the technology is.

On Dec 5, 9:49 am, jim  wrote:
> In a shared project, we have an Adapter class (extends BaseAdapter,
> implements ListAdapter).  In its constructor, this class fetches an
> RSS feed from the internet and parses the returned XML document to
> obtain the data it will 'adapt'; the data is kept in a private class
> variable.
> This is seen as the "Android way" of doing things by the author and is
> supported by the project lead.
> Can this be considered a "Best Practice"?
> Can it be justified on the grounds that it (may?) increase
> performance?
> Doesn't it violate the general Object Oriented Design (OOD) principle
> that a class should have only a "Single Responsiblity"?
> Are best practices for OOD or Java to be set aside in Android
> development?

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


Re: [android-developers] Google Nexus S - Please provide as DEV phone, asap :-)

2010-12-07 Thread Dianne Hackborn
You will be able to walk into Best Buy and buy one as soon as it comes out.

On Tue, Dec 7, 2010 at 6:28 PM, gjs  wrote:

> Hi,
>
> Google Nexus S - Please provide as DEV phone, asap :-)
>
> 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
>



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

Re: [android-developers] How to add Google Search Widget in my App Activity or Screen

2010-12-07 Thread argon gold
Hi Mark,

Thanks for your quick response . In fact I want to add it in the same way as
it appears in Home Screen .
or in other way as a shortcut for search .

What should be the straightforward way to do it?

Kind regards,
argongold



On Wed, Dec 8, 2010 at 10:19 AM, Mark Murphy wrote:

> There is no "Google Search Widget" in Android.
>
> If you want the Quick Search Box, you do not add it to an activity,
> but rather integrate with Android's search framework:
>
> http://developer.android.com/guide/topics/search/search-dialog.html
>
> On Tue, Dec 7, 2010 at 9:16 PM, argon gold  wrote:
> > Hi,
> >
> > How will I add  Google Search Widget  in my Activity either by XML file
> or
> > through Java code ( or any other Pre-Built  widget).
> >  Suppose I have a simple activity which display a Linear Layout with
> Google
> > Search Widget in it on screen.
> >
> > Thanks in advance for your help
> >
> > Regards,
> > argongold
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Google Nexus S - Please provide as DEV phone, asap :-)

2010-12-07 Thread gjs
Hi,

Google Nexus S - Please provide as DEV phone, asap :-)

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] ACTION_POWER_CONNECTED not working

2010-12-07 Thread Douglas Fonseca
Hi,
I'm developing an app that needs to start when the phone is power plugged.
To do so, I used this code in manifest file










   
   
   



In Receiver file:

public class NoteReceiver extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent)
{
context.startActivity(new Intent(context,Activity2.class));
}
}

This code was suposed to start the Activity2 Activity, but it's not working!
Does someone know that's wrong?
Thanks,
---
Douglas Fonseca
Engenharia da Computação 2010
Universidade Estadual de Campinas

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

Re: [android-developers] 2.3 Emulator instability

2010-12-07 Thread Raymond Rodgers
Thanks for replying David. I just set the flag to 256 and 512 with the 
same results.

On 12/07/2010 12:35 PM, David Turner wrote:
I'm currently looking into it, but it seems the emulator needs more 
emulated RAM to run 2.3 properly. Try starting it with the "-memory 
256" option and tell me if it behaves better for 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


Re: [android-developers] How to add Google Search Widget in my App Activity or Screen

2010-12-07 Thread Mark Murphy
There is no "Google Search Widget" in Android.

If you want the Quick Search Box, you do not add it to an activity,
but rather integrate with Android's search framework:

http://developer.android.com/guide/topics/search/search-dialog.html

On Tue, Dec 7, 2010 at 9:16 PM, argon gold  wrote:
> Hi,
>
> How will I add  Google Search Widget  in my Activity either by XML file or
> through Java code ( or any other Pre-Built  widget).
>  Suppose I have a simple activity which display a Linear Layout with Google
> Search Widget in it on screen.
>
> Thanks in advance for your help
>
> Regards,
> argongold
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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

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


Re: [android-developers] Making Toast with JavaScript, Android and the 2.3 emulator

2010-12-07 Thread Mark Murphy
That is a firmware bug. Please see:

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

On Tue, Dec 7, 2010 at 9:15 PM, paulb  wrote:
> I'm working through Building Web Apps in WebView (http://
> developer.android.com/guide/webapps/webview.html).
>
> The JavaScript function successfully makes Toast when I deploy the app
> to a device running Froyo or to a 2.2 emulator.  However, when I try
> to run in the 2.3 emulator, it crashes.
>
> Any suggestions?  The DDMS log is below.  The onClick event occurs at
> 18:06:33
>
> 12-07 18:06:12.864: DEBUG/AndroidRuntime(2010): >> AndroidRuntime
> START com.android.internal.os.RuntimeInit <<
> 12-07 18:06:12.864: DEBUG/AndroidRuntime(2010): CheckJNI is ON
> 12-07 18:06:13.684: DEBUG/AndroidRuntime(2010): Calling main entry
> com.android.commands.pm.Pm
> 12-07 18:06:13.864: DEBUG/dalvikvm(1253): GC_EXPLICIT freed 9K, 54%
> free 2540K/5511K, external 716K/1038K, paused 65ms
> 12-07 18:06:13.874: WARN/ActivityManager(74): No content provider
> found for:
> 12-07 18:06:13.904: WARN/ActivityManager(74): No content provider
> found for:
> 12-07 18:06:13.944: DEBUG/PackageParser(74): Scanning package: /data/
> app/vmdl-92669324.tmp
> 12-07 18:06:14.214: DEBUG/dalvikvm(74): GC_CONCURRENT freed 633K, 60%
> free 4076K/10183K, external 1488K/1916K, paused 8ms+9ms
> 12-07 18:06:14.254: INFO/PackageManager(74): Removing non-system
> package:g1.pk
> 12-07 18:06:14.254: INFO/ActivityManager(74): Force stopping package
> g1.pk uid=10030
> 12-07 18:06:14.363: DEBUG/PackageManager(74): Scanning package g1.pk
> 12-07 18:06:14.363: INFO/PackageManager(74): Package g1.pk codePath
> changed from /data/app/g1.pk-2.apk to /data/app/g1.pk-1.apk; Retaining
> data and using new
> 12-07 18:06:14.373: INFO/PackageManager(74): Unpacking native
> libraries for /data/app/g1.pk-1.apk
> 12-07 18:06:14.404: DEBUG/installd(34): DexInv: --- BEGIN '/data/app/
> g1.pk-1.apk' ---
> 12-07 18:06:14.764: DEBUG/dalvikvm(2019): DexOpt: load 81ms, verify
> +opt 71ms
> 12-07 18:06:14.784: DEBUG/installd(34): DexInv: --- END '/data/app/
> g1.pk-1.apk' (success) ---
> 12-07 18:06:14.794: WARN/PackageManager(74): Code path for pkg : g1.pk
> changing from /data/app/g1.pk-2.apk to /data/app/g1.pk-1.apk
> 12-07 18:06:14.794: WARN/PackageManager(74): Resource path for pkg :
> g1.pk changing from /data/app/g1.pk-2.apk to /data/app/g1.pk-1.apk
> 12-07 18:06:14.794: DEBUG/PackageManager(74):   Activities:
> g1.pk.g1act
> 12-07 18:06:14.814: INFO/ActivityManager(74): Force stopping package
> g1.pk uid=10030
> 12-07 18:06:14.894: INFO/installd(34): move /data/dalvik-cache/
> d...@app@g1.pk-1@classes.dex -> /data/dalvik-cache/
> d...@app@g1.pk-1@classes.dex
> 12-07 18:06:14.894: DEBUG/PackageManager(74): New package installed
> in /data/app/g1.pk-1.apk
> 12-07 18:06:14.964: INFO/ActivityManager(74): Force stopping package
> g1.pk uid=10030
> 12-07 18:06:15.074: DEBUG/dalvikvm(1230): GC_EXPLICIT freed 137K, 51%
> free 2869K/5767K, external 2566K/3176K, paused 91ms
> 12-07 18:06:15.214: WARN/RecognitionManagerService(74): no available
> voice recognition services found
> 12-07 18:06:15.624: DEBUG/dalvikvm(74): GC_EXPLICIT freed 437K, 61%
> free 4071K/10183K, external 1488K/1916K, paused 117ms
> 12-07 18:06:15.664: INFO/installd(34): unlink /data/dalvik-cache/
> d...@app@g1.pk-2@classes.dex
> 12-07 18:06:15.674: DEBUG/AndroidRuntime(2010): Shutting down VM
> 12-07 18:06:15.704: DEBUG/dalvikvm(2010): GC_CONCURRENT freed 101K,
> 72% free 295K/1024K, external 0K/0K, paused 2ms+2ms
> 12-07 18:06:15.704: DEBUG/jdwp(2010): Got wake-up signal, bailing out
> of select
> 12-07 18:06:15.714: DEBUG/dalvikvm(2010): Debugger has detached;
> object registry had 1 entries
> 12-07 18:06:15.744: INFO/AndroidRuntime(2010): NOTE: attach of thread
> 'Binder Thread #3' failed
> 12-07 18:06:16.334: DEBUG/AndroidRuntime(2024): >> AndroidRuntime
> START com.android.internal.os.RuntimeInit <<
> 12-07 18:06:16.334: DEBUG/AndroidRuntime(2024): CheckJNI is ON
> 12-07 18:06:17.104: DEBUG/AndroidRuntime(2024): Calling main entry
> com.android.commands.am.Am
> 12-07 18:06:17.154: INFO/ActivityManager(74): Starting: Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x1000
> cmp=g1.pk/.g1act } from pid 2024
> 12-07 18:06:17.344: INFO/ActivityManager(74): Start proc g1.pk for
> activity g1.pk/.g1act: pid=2032 uid=10030 gids={3003}
> 12-07 18:06:17.354: DEBUG/AndroidRuntime(2024): Shutting down VM
> 12-07 18:06:17.425: INFO/AndroidRuntime(2024): NOTE: attach of thread
> 'Binder Thread #3' failed
> 12-07 18:06:17.464: DEBUG/dalvikvm(2024): GC_CONCURRENT freed 102K,
> 69% free 319K/1024K, external 0K/0K, paused 2ms+2ms
> 12-07 18:06:17.494: DEBUG/jdwp(2024): Got wake-up signal, bailing out
> of select
> 12-07 18:06:17.494: DEBUG/dalvikvm(2024): Debugger has detached;
> object registry had 1 entries
> 12-07 18:06:19.224: INFO/ActivityManager(74): Displayed g1.pk/.g1act:
> +1s895ms
> 12-07 18:06

[android-developers] How to add Google Search Widget in my App Activity or Screen

2010-12-07 Thread argon gold
Hi,

How will I add  Google Search Widget  in my Activity either by XML file or
through Java code ( or any other Pre-Built  widget).
 Suppose I have a simple activity which display a Linear Layout with Google
Search Widget in it on screen.

Thanks in advance for your help

Regards,
argongold

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

2010-12-07 Thread paulb
I'm working through Building Web Apps in WebView (http://
developer.android.com/guide/webapps/webview.html).

The JavaScript function successfully makes Toast when I deploy the app
to a device running Froyo or to a 2.2 emulator.  However, when I try
to run in the 2.3 emulator, it crashes.

Any suggestions?  The DDMS log is below.  The onClick event occurs at
18:06:33

12-07 18:06:12.864: DEBUG/AndroidRuntime(2010): >> AndroidRuntime
START com.android.internal.os.RuntimeInit <<
12-07 18:06:12.864: DEBUG/AndroidRuntime(2010): CheckJNI is ON
12-07 18:06:13.684: DEBUG/AndroidRuntime(2010): Calling main entry
com.android.commands.pm.Pm
12-07 18:06:13.864: DEBUG/dalvikvm(1253): GC_EXPLICIT freed 9K, 54%
free 2540K/5511K, external 716K/1038K, paused 65ms
12-07 18:06:13.874: WARN/ActivityManager(74): No content provider
found for:
12-07 18:06:13.904: WARN/ActivityManager(74): No content provider
found for:
12-07 18:06:13.944: DEBUG/PackageParser(74): Scanning package: /data/
app/vmdl-92669324.tmp
12-07 18:06:14.214: DEBUG/dalvikvm(74): GC_CONCURRENT freed 633K, 60%
free 4076K/10183K, external 1488K/1916K, paused 8ms+9ms
12-07 18:06:14.254: INFO/PackageManager(74): Removing non-system
package:g1.pk
12-07 18:06:14.254: INFO/ActivityManager(74): Force stopping package
g1.pk uid=10030
12-07 18:06:14.363: DEBUG/PackageManager(74): Scanning package g1.pk
12-07 18:06:14.363: INFO/PackageManager(74): Package g1.pk codePath
changed from /data/app/g1.pk-2.apk to /data/app/g1.pk-1.apk; Retaining
data and using new
12-07 18:06:14.373: INFO/PackageManager(74): Unpacking native
libraries for /data/app/g1.pk-1.apk
12-07 18:06:14.404: DEBUG/installd(34): DexInv: --- BEGIN '/data/app/
g1.pk-1.apk' ---
12-07 18:06:14.764: DEBUG/dalvikvm(2019): DexOpt: load 81ms, verify
+opt 71ms
12-07 18:06:14.784: DEBUG/installd(34): DexInv: --- END '/data/app/
g1.pk-1.apk' (success) ---
12-07 18:06:14.794: WARN/PackageManager(74): Code path for pkg : g1.pk
changing from /data/app/g1.pk-2.apk to /data/app/g1.pk-1.apk
12-07 18:06:14.794: WARN/PackageManager(74): Resource path for pkg :
g1.pk changing from /data/app/g1.pk-2.apk to /data/app/g1.pk-1.apk
12-07 18:06:14.794: DEBUG/PackageManager(74):   Activities:
g1.pk.g1act
12-07 18:06:14.814: INFO/ActivityManager(74): Force stopping package
g1.pk uid=10030
12-07 18:06:14.894: INFO/installd(34): move /data/dalvik-cache/
d...@app@g1.pk-1@classes.dex -> /data/dalvik-cache/
d...@app@g1.pk-1@classes.dex
12-07 18:06:14.894: DEBUG/PackageManager(74): New package installed
in /data/app/g1.pk-1.apk
12-07 18:06:14.964: INFO/ActivityManager(74): Force stopping package
g1.pk uid=10030
12-07 18:06:15.074: DEBUG/dalvikvm(1230): GC_EXPLICIT freed 137K, 51%
free 2869K/5767K, external 2566K/3176K, paused 91ms
12-07 18:06:15.214: WARN/RecognitionManagerService(74): no available
voice recognition services found
12-07 18:06:15.624: DEBUG/dalvikvm(74): GC_EXPLICIT freed 437K, 61%
free 4071K/10183K, external 1488K/1916K, paused 117ms
12-07 18:06:15.664: INFO/installd(34): unlink /data/dalvik-cache/
d...@app@g1.pk-2@classes.dex
12-07 18:06:15.674: DEBUG/AndroidRuntime(2010): Shutting down VM
12-07 18:06:15.704: DEBUG/dalvikvm(2010): GC_CONCURRENT freed 101K,
72% free 295K/1024K, external 0K/0K, paused 2ms+2ms
12-07 18:06:15.704: DEBUG/jdwp(2010): Got wake-up signal, bailing out
of select
12-07 18:06:15.714: DEBUG/dalvikvm(2010): Debugger has detached;
object registry had 1 entries
12-07 18:06:15.744: INFO/AndroidRuntime(2010): NOTE: attach of thread
'Binder Thread #3' failed
12-07 18:06:16.334: DEBUG/AndroidRuntime(2024): >> AndroidRuntime
START com.android.internal.os.RuntimeInit <<
12-07 18:06:16.334: DEBUG/AndroidRuntime(2024): CheckJNI is ON
12-07 18:06:17.104: DEBUG/AndroidRuntime(2024): Calling main entry
com.android.commands.am.Am
12-07 18:06:17.154: INFO/ActivityManager(74): Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x1000
cmp=g1.pk/.g1act } from pid 2024
12-07 18:06:17.344: INFO/ActivityManager(74): Start proc g1.pk for
activity g1.pk/.g1act: pid=2032 uid=10030 gids={3003}
12-07 18:06:17.354: DEBUG/AndroidRuntime(2024): Shutting down VM
12-07 18:06:17.425: INFO/AndroidRuntime(2024): NOTE: attach of thread
'Binder Thread #3' failed
12-07 18:06:17.464: DEBUG/dalvikvm(2024): GC_CONCURRENT freed 102K,
69% free 319K/1024K, external 0K/0K, paused 2ms+2ms
12-07 18:06:17.494: DEBUG/jdwp(2024): Got wake-up signal, bailing out
of select
12-07 18:06:17.494: DEBUG/dalvikvm(2024): Debugger has detached;
object registry had 1 entries
12-07 18:06:19.224: INFO/ActivityManager(74): Displayed g1.pk/.g1act:
+1s895ms
12-07 18:06:24.314: DEBUG/dalvikvm(1230): GC_EXPLICIT freed 93K, 50%
free 2912K/5767K, external 2566K/3176K, paused 63ms
12-07 18:06:29.334: DEBUG/dalvikvm(1253): GC_EXPLICIT freed 6K, 54%
free 2539K/5511K, external 716K/1038K, paused 69ms
12-07 18:06:33.954: WARN/dalvikvm(2032): JNI WARNING: jarray
0x40541be0 points to non-array object (

[android-developers] Re: Android Startup Developer

2010-12-07 Thread Brill Pappin
Try this link:
http://lmgtfy.com/?q=Android+tutorial



On Dec 7, 8:43 pm, ".?793"  wrote:
> Team, I am thinking of developing apps for the "Android" system. I need
> some advice on where to start.

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


[android-developers] Re: JPEG Image has a map

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

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


On Dec 6, 11:54 pm, sal  wrote:
> thanks for ur concerns,
>
> @Frank
> I have JPEG sketch of my apartment, getting just geocode of my
> apartment doesnt serve my purpose.
> i want to do location markup on that JPEG image,  i have stored
> location information which i want to mark on the image using android
> API's
> so i want to convert my image as a google map then use android API's
> to mark location on that. let me know if u need more information.
>
> @Igor
> As i am new to android
> can u give me simple example with main activity illustrating on " how
> to draw JPEG image on MapView with overlays to mark on the co-ordinate
> of the image"
> i tried doing it but i am getting NULL exception while using overlays
>
> rgds
> Sal
>
> On Dec 6, 6:46 am, ip332  wrote:
>
>
>
>
>
>
>
> > I used the Overlay class for this purpose.
> > Here is the main part of the MyOverlay::Draw() method:
> >         // convert bitmap's bounding box into pixels
> >         Point top_left = new Point();
> >         mapView.getProjection().toPixels(min, top_left);
> >         Point bottom_right = new Point();
> >         mapView.getProjection().toPixels(max, bottom_right);
> >         // Prepare two rectangles (pixels)
> >         Rect src = new Rect( 0,0,bmp.getWidth() - 1, bmp.getHeight() -
> > 1 );
> >         Rect dst = new Rect( top_left.x, bottom_right.y,
> > bottom_right.x,top_left.y );
> >         // draw bitmap
> >         canvas.drawBitmap( bmp, src, dst, null);
> > Since it uses current mapView then zooming and panning are supported
> > automatically.
> > Obviously you need to know left top (GeoPoint min in the code above)
> > and right bottom (GeoPoint max) coordinates for your picture (I used
> > Google Earth for this purpose).
> > Good luck.
> > Igor
>
> > On Dec 5, 6:36 am, suhail ahmed  wrote:
>
> > > Hi,
>
> > > I have JPEG, PDF of sketch of my apartment, i want to make it as a google
> > > map so that i can use Google API's (geocoding, reverse geocoding) on that.
>
> > > may i know the solution for the problem
>
> > > regards
> > > Sal

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

2010-12-07 Thread .?793
Team, I am thinking of developing apps for the "Android" system. I need
some advice on where to start.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get root permissions to do a adb remount?

2010-12-07 Thread gato chlr
Hi does anybody knows how to get root permissions to do adb remount?

thanks

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

Re: [android-developers] Re: JPEG Image has a map

2010-12-07 Thread Frank Weiss
It just doesn't seem like a good idea to use Android Google map to display a
plan view of an apartment and call out POIs within it. On my Droid, at full
zoom-in, my apartment takes up about 1/12 of the screen. Also, if you placed
markers for POIs within your apartment, when you zoom out, they just overlap
and become useless. Is there really a compelling reason to mashup your
floorplan with all the features and layers of Google maps? Is is just a
specifc feature of GM you are interested in? What is that feature?

I suggest you use a different approach, like simply displaying the floorplan
as an image view, displaying markers on that, and providing whatever
detailed callouts you want. Chances are people are working on mobile CAD
apps like 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: Android 2.3: eclipse reporting "Unable to execute dex: null"

2010-12-07 Thread Ken
Hi All,

I got the caption problem and quickly update ADT to 8.0.1. It's not
work when including a Project in Build Path (no problem if include
external jars):

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lorg/apache/james/
mime4j/util/StringArrayMap;
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
123)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.dex.file.DexFile.add(DexFile.java:143)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.command.dexer.Main.processClass(Main.java:338)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.command.dexer.Main.processFileBytes(Main.java:315)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.command.dexer.Main.access$100(Main.java:56)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:266)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
134)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:
190)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
122)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:
190)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
122)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:
190)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
122)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:
190)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
122)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:
190)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
122)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:
190)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
122)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
108)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.command.dexer.Main.processOne(Main.java:284)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.dx.command.dexer.Main.run(Main.java:176)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
java.lang.reflect.Method.invoke(Unknown Source)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.ide.eclipse.adt.internal.build.DexWrapper.run(Unknown
Source)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(Unknown
Source)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(Unknown
Source)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
627)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
170)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
201)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
253)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
256)
[2010-12-08 09:03:50 - AndroidUsenetReader]: Dx at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.j

[android-developers] Market not updating?

2010-12-07 Thread Brill Pappin
I seem to be having a problem with my paid apps in the market. No
comments or downloads showing but I have about 30 purchases since this
morning.

Is anyone else noticing their apps "stuck" like that?

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


[android-developers] AccountManager and invalidateAuthToken problem

2010-12-07 Thread лойк
I'm currently working on an application that will make use of
AccountManager and AbstractAccountAuthenticator. I used the SampleSync
sample as basis but I still don't get some things.

First I'd like to explain what I'm currently doing so I know if what
I'm doing is fine. The api I currently use doesn't have passwords or
authtoken. I use a webview to authenticate. In my response I have a
(session_id, user_id and secret).

Once I get those values, I do a first call to get some UserInfo. (only
for user creation)

Then I have: username, user_id, session_id, secret.

I set the account name to Username and Password to user_id and I add
session_id and secret as userData. Since the most unpriviliged
function to get my credentials is getAuthToken. In this function I
return a semicolon separated string of these 3 values. For example:
"93458;sowen;sjfdhlksjdfhskljdfh".

So I'd like to know when getAuthToken is called. I only saw it being
called once after user creation. My problem is that I have an invalid
token and it never gets renewed. I do call invalidateAuthToken but it
doesn't do anything and it never call getAuthToken again. So according
to the docs, invalidateAuthToken does nothing if a token isn't cached.
Since my authToken is invalid and never calls again getAuthToken, why
isn't it being invalidated.

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


Re: [android-developers] does anybody know how to copy files to the internal storage?

2010-12-07 Thread Mark Murphy
On Tue, Dec 7, 2010 at 6:26 PM, gato chlr  wrote:
> does anybody know how to copy files to the internal storage?

Use Java file I/O. Use getFilesDir() (called on Activity, Service, or
other Context) to find the application's spot in the internal storage.

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

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

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


[android-developers] does anybody know how to copy files to the internal storage?

2010-12-07 Thread gato chlr
does anybody know how to copy files to the internal storage?

thanks

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

Re: [android-developers] Choosing the right Layout(s)

2010-12-07 Thread TreKing
On Mon, Dec 6, 2010 at 11:09 AM, Jwohlhueter wrote:

> There will be 283 TextViews.
>

Goddamn.


> I have experimented with a layout that requires nesting together 23
> LinearLayouts.
>

Goddamn.


> Should I be looking at using RelativeLayout or TableLayout or a
> combination.
>

Looks like this to me:

LinearLayout (Vertical)
+- TextView
+- TableLayout
+- LinearLayout (Horizontal)
 +-Button
 +-Button
 +-Button

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

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

[android-developers] Re: 2.3 Emulator instability

2010-12-07 Thread Kugelschlag
Yes, I have seen it as well using maps and when I send latitude/
longitude points to the Emulator (using DDMS with
GPX file) 100% reproducible


On Dec 7, 6:13 am, Raymond Rodgers  wrote:

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


Re: [android-developers] How do you hide a ListView on button press/click?

2010-12-07 Thread TreKing
On Sun, Dec 5, 2010 at 10:40 AM, Acoole  wrote:

> the problem is I can't get it to appear in my R.java
>

Because it's not your resource. You're using android:id="android:id/list" -
which deliberately assigns this view to an existing ID declared in the
android namespace.

Try "android.R.id.list"

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

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

Re: [android-developers] Adapter fetches and parses RSS feed to get data - best practice?

2010-12-07 Thread TreKing
On Sun, Dec 5, 2010 at 9:49 AM, jim  wrote:

> Can this be considered a "Best Practice"?
>

I don't think so.


>  Can it be justified on the grounds that it (may?) increase performance?
>

I don't see how it would increase performance based on your anecdote.


>  Doesn't it violate the general Object Oriented Design (OOD) principle that
> a class should have only a "Single Responsiblity"?
>

Apparently.


>  Are best practices for OOD or Java to be set aside in Android development?
>

Not really.

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

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

Re: [android-developers] How to deploy and display images in App

2010-12-07 Thread TreKing
On Sun, Dec 5, 2010 at 2:20 AM, Stephan Wiesner
wrote:

> What I don't manage to do is:
> - load pictures that are stored locally as part of my app (e.g. in
> the drawable folder)
>

Pretty much any view can take a drawable resource for a background.
ImageView in particular should suit you.


> - where in my app would i ideally put those files?
>

In the drawable folder.


> please help me out with a code example.
>

Really not necessary. =)

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

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

Re: [android-developers] Obtaining view hierarchy of application currently in focus

2010-12-07 Thread TreKing
On Sat, Dec 4, 2010 at 7:17 PM, Kayne  wrote:

> Any suggestions?


I highly doubt this is possible.

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

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

Re: [android-developers] Datepicker problem

2010-12-07 Thread TreKing
On Sat, Dec 4, 2010 at 11:01 AM, Azhar Khan  wrote:

> any solution??


Write it.

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

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

[android-developers] Re: GLIBC 2.11 needed for emulator in SDK 2.3 !!!!

2010-12-07 Thread jtoolsdev
Same here on Ubuntu 9.10.  Hoses any development until there is a
solution.  Looking at reported 2.3 errors popping developers may want
to wait to update.

On Dec 7, 6:56 am, Fred J  wrote:
> Same error on (Mandriva release 2010)
>
> On 6 déc, 22:27, elpix1  wrote:
>
> > Hi,
>
> > I updated the SDK for the Android 2.3 and the emulator is not
> > running anymore because it needs GLIBC 2.11 and my
> > system has 2.10 !
> > It seems that the emulator is the only tool from the new
> > SDK that requires 2.11 !
>
> > ./emulator: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not
> > found (required by ./emulator)
> >         linux-gate.so.1 =>  (0x00cf8000)
> >         libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0x003ae000)
> >         librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00851000)
> >         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00724000)
> >         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0017e000)
> >         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00779000)
> >         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0023e000)
> >         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0011)
> >         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x003b2000)
> >         /lib/ld-linux.so.2 (0x00221000)

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


Re: [android-developers] Disable all other Layout Views while playing Animation within ImageView

2010-12-07 Thread TreKing
On Sat, Dec 4, 2010 at 5:25 AM, Vadim Vohmjanin  wrote:

> Is there any nice way to disabling all other ImageViews besides that i can
> take all of Views and setEnabled(false) like this:
>

Something like this maybe:

void disableAllBut(int imageViewID)
{
 foreach (ImageView iv in myTable)
  iv.setEnabled(false);

 findViewById(imageViewID).setEnabled(true);
}


> And other question, is there is no other nice way to get a callback from
> AnimationDraw, when it is finished playing??
>

http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html
 ?

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

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

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

2010-12-07 Thread Matt Quigley
To all the various responses:

1. To the guys asking about plurals, have you seen
http://developer.android.com/guide/topics/resources/string-resource.html#Plurals
?

2. To the guys who think the errors for the multiple formatters is
over the top... it isn't just over the top, it has really screwed us
over!

I guarantee you what happened is that someone working with Google
wasn't using positional formatters in the strings, and in the latest
batch of translations, one of the positions was supposed to be moved
and it wasn't.  So, one person at Google (maybe Romain? he was talking
about it's reasoning earlier) decided that it should be an error for
all people everywhere, because of the screwup in the translation.  It
wouldn't have been a problem if this was the way it started out when
Android was initially released, but what actually happened is that the
innocent upgrading of the latest SDK (even though you're supposed to
be able to use any older API levels you want) has made all of our
projects break.

It has made a lot of unnecessary work for me and my team.  We've got
multiple projects with a build machine, everything's F'd now.  If you
upgrade the SDK Tools on the build machine, half the projects don't
release.  Not only that, the same project can have multiple branches
in git.  Even as good as git's merging abilities are, after changing
all of the various strings in various branches (which change often),
now the strings.xml is hell to merge when you add in formatted="false"
to the line.  To create a hotfix on an older version, we are forced to
make manual changes on these old branches.

To put it succinctly, this seemingly innocuous "feature" to error on
all these types of strings whereas before it didn't has invalidated
every old build in our system, period.  There's no way to turn it off,
even if you set the API level to 1.  We can no longer build anything
before 12/6/2010, without creating a special separate build machine
which has an old version of the tools on it.

Okay, this rant is over, have a good rest of your day!

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

2010-12-07 Thread Kavinder Dhaliwal
Hi

I'm trying to use a custom cursoradapter and an autocompletetextview
to allow a user to filter through their contacts...I have been able to
use get results with Contacts.DISPLAY_NAME...however whenever I try to
add PhoneLookup.NUMBER into my string array I get an illegal argument
exception: Invalid column number

I think the reason this is happeneing is because I pass
Contacts.CONTENT_URI as the parameter in my query() methodbut have
no solution yet

The android doc for PhoneLookup says that "Columns from the Contacts
table are also available through a join. "

but i don't know how to do that

Any Help?

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


[android-developers] Re: Urgent Opening for Android Developers -- Malvern, PA & Bay Area, CA

2010-12-07 Thread elizabeth talbot
ok

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

2010-12-07 Thread elizabeth talbot
wow

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Urgent Opening for Android Developers -- Malvern, PA & Bay Area, CA

2010-12-07 Thread Recruiter [AITRG, Inc]
Hello All,
We have few very urgent requirements for Android Developers at these
locations:


Malvern, PA & Bay Area, CA.


Please forward resume along with contact details to: reks.inc [at]
gmail.com


Thank you,
Recruiter
AIT Resource Group, 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

Re: [android-developers] OS Access WiLink hardware ANT+

2010-12-07 Thread TreKing
On Wed, Dec 1, 2010 at 3:34 PM, mindfultech  wrote:

> This seems to be a OS question, does anyone know the answer?


Try the "platform" discussion group.

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

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

Re: [android-developers] webview loading issue

2010-12-07 Thread TreKing
On Wed, Dec 1, 2010 at 1:51 PM, amin tavassolian  wrote:

>  i turned to use onpagefinished() finction to make sure that each page has
> loaded completely, but i donno how to work wotk with this function:( any
> guide about how can i use this function is appreciated,
>

What exactly doesn't make sense about this function? It's explained in the
documentation and works pretty much as it's name implies.

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

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

[android-developers] Re: 2 Best Practices: Licensing and Eula. 1 ready to run Activity

2010-12-07 Thread Brill Pappin
Thank you very much for this!

I was just going through this exact process.

- Brill

On Dec 7, 3:19 pm, Hunter  Peress  wrote:
> 2 Best Practices: Licensing and Eula. Provided in 1 ready to run
> Activityhttp://code.google.com/p/androidbest/

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


[android-developers] 2 Best Practices: Licensing and Eula. 1 ready to run Activity

2010-12-07 Thread Hunter Peress
2 Best Practices: Licensing and Eula. Provided in 1 ready to run
Activity
http://code.google.com/p/androidbest/

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


Re: [android-developers] How can a Service close an open AIDL connection?

2010-12-07 Thread Olivier Guilyardi
On 12/07/2010 08:47 PM, Jin Chiu wrote:
> The only way I've seen for closing AIDl connections is client-
> initiated: Context.unbindService()
> 
> Is it possible the Service itself to initiate disconnects for existing
> AIDL connections?
> 

You could use a callback from the service to the clients, to notify them that
they should disconnect.

RemoteService.java, in the SDK ApiDemos sample, shows how to use AIDL callbacks.

--
  Olivier

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

2010-12-07 Thread Superbiji
There are some user that will donate and ask additional feature of my
free apps. Does patrick approach is possible? How many test users can
i put in text box?


Thanks
Khad

On Nov 29, 6:30 pm, "Michael A."  wrote:
> Hi Patrick,
>
> Your use case is not really relevant, because if you release an app
> for free, you cannot later charge money for it. I don't recall whether
> this is actually in the distribution agreement, but it is the way the
> market dashboard has been implemented.
>
> If you do not release the app through the market, you will also not
> have access to the licensing server except through test accounts. You
> could release the app to testers and put their Id into the server as
> test accounts. That would allow them to run a version that you've
> given them with whichever response you've set up in your dashboard
> (but the same response for all).
>
> Regards,
>
> Michael A.
>
> On Nov 29, 10:25 am, Patrick  wrote:
>
>
>
> > Hallo!
>
> > I have the following usecase: I am developing an application, that
> > will be commercial once it is done. Currently it is unfinished but I
> > want a "beta version" to be offered to a list of selected users. Those
> > users should be able to download the application using the market for
> > free.
>
> > Going throught the tutorial of the licensing server I found the
> > following: "Licensing is currently for paid apps only, since free apps
> > are considered licensed for all users. If your application is already
> > published as free, you won't be able to upload a new version that uses
> > licensing."
>
> > Is it possible to implement licensing in the application, upload it to
> > the market for free and offer it to a list of users, whose gmail
> > address I know? Other users should not see the application or at least
> > should not be able to run it.
>
> > Thanks in advance for your help
> > Patrick

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


Re: [android-developers] How can a Service close an open AIDL connection?

2010-12-07 Thread Mark Murphy
On Tue, Dec 7, 2010 at 2:47 PM, Jin Chiu  wrote:
> The only way I've seen for closing AIDl connections is client-
> initiated: Context.unbindService()
>
> Is it possible the Service itself to initiate disconnects for existing
> AIDL connections?

Not that I am aware of.

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

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

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


[android-developers] Re: Application help (Communication between phone and computer)

2010-12-07 Thread Hal
I believe that messaging is a good solution. A Socket connection
should work.
You may want to used the Messaging Design Pattern (MDP) for this:


a) Messaging Design Pattern and a distributed Component/Service Model
https://jt.dev.java.net/files/documents/5553/149793/MDPdistributedModel.pdf

This would provide the communication mechanism.
For additional information please refer to the following URLs:

a) Java Pattern Oriented Framework, An application of the Messaging
Design Pattern
IBM Technical Library
http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html

b) Messaging Design Pattern (MDP) and pattern implementation -
Published in the 17th conference on Pattern Languages of Programs
(PLoP 2010).
https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf

You can also use Jt Web services in case you decide to use
an intermediary Web server.


On Dec 3, 5:07 pm, Neykho  wrote:
> Hi guys, I'm having some trouble with coding. Basically what I want to
> do is have my phone application communicate with another application
> running on the desktop. Except after some searching I couldn't really
> find a good way to do it (I'm a pretty new Android developer). It
> doesn't matter how it's done, so USB, wifi, etc. will work (But the
> easier to code, the better).
>
> Here's a diagram of what I want to do:http://dl.dropbox.com/u/103233/quad.jpg
> The phone application is to the left and the desktop application is to
> the right.
>
> What basically is going to happen is the dekstop application will
> select a random quadrant, and the user will have to press that
> quadrant on the phone. So this means having to pass a message from the
> desktop to the phone, saying that "this is the quadrant that should be
> pressed by the user".
>
> Once the user selects a quadrant, the phone will compare the quadrant
> pressed with the message that the desktop sent. And from there, the
> phone application will return either a "succeed" or "fail" mesage to
> the desktop application. The application will store the results.
>
> The actual implementation shouldn't be too hard, it's just I'm not too
> sure what to use to get the two applications communicating. Any
> suggestions or advice would be awesome.
>
> Thanks.
> -N

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


Re: [android-developers] New ADT 8.0.1

2010-12-07 Thread Tom Gibara
I actually tried both: the generic "Check for Updates" and explictly
selecting the "Android" site explicitly.

I just tried again. A little experimentation reveals that the update
is available from http://dl-ssl.google.com/android/eclipse/ but not
with https.

Tom.

On 7 December 2010 19:34, Xavier Ducrohet  wrote:
> are you trying to have Eclipse look for updates or are you pointing it
> to our update site?
> Pointing it to our update site as if you install new software (not
> update) should work.
>
> Worst case, download it from:
> http://dl.google.com/android/ADT-8.0.1.zip and install it from this
> archive.
>
> On Tue, Dec 7, 2010 at 11:29 AM, Tom Gibara  wrote:
>> My eclipse isn't picking up any new packages when I try "Install New
>> Software...". Is there another channel through which to pick up the
>> new version, or is there just some propagation delay?
>>
>> Tom.
>>
>> On 7 December 2010 19:08, Xavier Ducrohet  wrote:
>>> Hey all,
>>>
>>> If you installed ADT 8.0.0 and had issue when compiling Android
>>> projects that referenced Java projects (error show as error executing
>>> dex), please update to ADT 8.0.1
>>>
>>> Sorry for the inconvenience.
>>>
>>> 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
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
>
> Please do not send me questions directly. Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can a Service close an open AIDL connection?

2010-12-07 Thread Jin Chiu
The only way I've seen for closing AIDl connections is client-
initiated: Context.unbindService()

Is it possible the Service itself to initiate disconnects for existing
AIDL connections?

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


Re: [android-developers] New ADT 8.0.1

2010-12-07 Thread Xavier Ducrohet
are you trying to have Eclipse look for updates or are you pointing it
to our update site?
Pointing it to our update site as if you install new software (not
update) should work.

Worst case, download it from:
http://dl.google.com/android/ADT-8.0.1.zip and install it from this
archive.

On Tue, Dec 7, 2010 at 11:29 AM, Tom Gibara  wrote:
> My eclipse isn't picking up any new packages when I try "Install New
> Software...". Is there another channel through which to pick up the
> new version, or is there just some propagation delay?
>
> Tom.
>
> On 7 December 2010 19:08, Xavier Ducrohet  wrote:
>> Hey all,
>>
>> If you installed ADT 8.0.0 and had issue when compiling Android
>> projects that referenced Java projects (error show as error executing
>> dex), please update to ADT 8.0.1
>>
>> Sorry for the inconvenience.
>>
>> 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
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] New ADT 8.0.1

2010-12-07 Thread Tom Gibara
My eclipse isn't picking up any new packages when I try "Install New
Software...". Is there another channel through which to pick up the
new version, or is there just some propagation delay?

Tom.

On 7 December 2010 19:08, Xavier Ducrohet  wrote:
> Hey all,
>
> If you installed ADT 8.0.0 and had issue when compiling Android
> projects that referenced Java projects (error show as error executing
> dex), please update to ADT 8.0.1
>
> Sorry for the inconvenience.
>
> 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
>

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

2010-12-07 Thread Xavier Ducrohet
Hey all,

If you installed ADT 8.0.0 and had issue when compiling Android
projects that referenced Java projects (error show as error executing
dex), please update to ADT 8.0.1

Sorry for the inconvenience.

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


Re: [android-developers] Re: Android 2.3: eclipse reporting "Unable to execute dex: null"

2010-12-07 Thread Xavier Ducrohet
We've just released ADT 8.0.1 to fix this issue.

You can use the update site or the direct link (dev site not updated
yet): http://dl.google.com/android/ADT-8.0.1.zip

Xav

On Tue, Dec 7, 2010 at 10:21 AM, Xavier Ducrohet  wrote:
> I'm going to investigate this later today but quick looking at the
> source, I suspect this never worked.
> I'm not holding 8.0.1 for this but we'll certainly fix this for the
> next release.
>
> On Tue, Dec 7, 2010 at 5:46 AM, garbeam  wrote:
>> I also wanted to note, that I see similar problems with Android
>> Library projects. It appears as if the ADK does not properly include
>> the Android Library project classes in a APK project (this is at least
>> true for interface classes that my Android Library project contains).
>>
>> Can you confirm this?
>>
>> Thanks,
>> Anselm
>>
>> On Dec 7, 9:48 am, Tom Gibara  wrote:
>>> Thanks Xavier.
>>>
>>> That's definitely the cause of the problem. Eclipse projects, when
>>> stripped of their dependencies on other eclipse projects, build fine.
>>>
>>> Tom.
>>>
>>> On 7 December 2010 00:54, Xavier Ducrohet  wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> > hey all, we found the issue. It's related to referencing java project.
>>>
>>> > We're looking at pushing a fix to ADT asap. In the meantime you can
>>> > temporarily change to including your java project as a jar file.
>>>
>>> > On Mon, Dec 6, 2010 at 4:42 PM, Mario Zechner  
>>> > wrote:
>>> >> I have the exact same issue. I went the exact same route as the
>>> >> original poster. The "verbose" output of all the Android tools in
>>> >> Eclipse is not all that verbose it turns out. However, digging up
>>> >> the .log file in $workspace/.metadata/.log brought this up:
>>>
>>> >> !ENTRY com.android.ide.eclipse.adt 4 0 2010-12-07 01:40:29.576
>>> >> !MESSAGE Unable to execute dex: null
>>> >> !STACK 0
>>> >> java.lang.reflect.InvocationTargetException
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>>> >>        at 
>>> >> com.android.ide.eclipse.adt.internal.build.DexWrapper.run(Unknown
>>> >> Source)
>>> >>        at
>>> >> com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(Unknown
>>> >> Source)
>>> >>        at
>>> >> com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui
>>> >>  ld(Unknown
>>> >> Source)
>>> >>        at org.eclipse.core.internal.events.BuildManager
>>> >> $2.run(BuildManager.java:629)
>>> >>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>> >>        at
>>> >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
>>> >> 172)
>>> >>        at
>>> >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
>>> >> 203)
>>> >>        at org.eclipse.core.internal.events.BuildManager
>>> >> $1.run(BuildManager.java:255)
>>> >>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>> >>        at
>>> >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
>>> >> 258)
>>> >>        at
>>> >> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.j
>>> >>  ava:
>>> >> 311)
>>> >>        at
>>> >> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
>>> >> 343)
>>> >>        at
>>> >> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
>>> >> 144)
>>> >>        at
>>> >> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
>>> >> 242)
>>> >>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>> >> Caused by: java.lang.NullPointerException
>>> >>        at java.io.File.(Unknown Source)
>>> >>        at
>>> >> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
>>> >> 106)
>>> >>        at com.android.dx.command.dexer.Main.processOne(Main.java:284)
>>> >>        at 
>>> >> com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
>>> >>        at com.android.dx.command.dexer.Main.run(Main.java:176)
>>> >>        ... 19 more
>>> >> Root exception:
>>> >> java.lang.NullPointerException
>>> >>        at java.io.File.(Unknown Source)
>>> >>        at
>>> >> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
>>> >> 106)
>>> >>        at com.android.dx.command.dexer.Main.processOne(Main.java:284)
>>> >>        at 
>>> >> com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
>>> >>        at com.android.dx.command.dexer.Main.run(Main.java:176)
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>>> >>        at 
>>> >> c

Re: [android-developers] Re: What Tablet would you get

2010-12-07 Thread Jon F Hancock
So the more I use my Viewsonic g Tablet, the more I love it.  It does have
some weird issues, but in general, it is fantastic.  After using Android and
especially playing Angry Birds on a nice big 10" screen, my phone seems
useless.  If I wasn't so concerned about having internet everywhere, I would
switch to a feature phone, and just use the tablet for internet and gaming.

It's also comforting that my main app (LauncherPro Icons) works beautifully
on the higher resolution screen.  I want to scream at Google though because
the Google Reader app looks great in the listing activity, then when you go
to actually read a story, it confines itself to a little window the size of
my phone...  What is so hard about following the design guidelines of fluid
resizing, Google?


On Fri, Dec 3, 2010 at 4:25 PM, Bill Morgan  wrote:

>  On 12/3/2010 6:09 PM, Phil Endecott wrote: Giving a
>
> crapo resistive cheaptab would be an insult.  So buy a NOOKcolor.  Or
> an iPad :-)
>
> (Anyone here played with the new Nook yet?  I think I need to get one.)
>
>  Had one for about a week now. Seems solid. B&N just
> made their SDK available today.
>
> People over at XDA got it rooted this week:
> http://forum.xda-developers.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
>

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

Re: [android-developers] Does getBestLastKnownLocation block?

2010-12-07 Thread Mark Murphy
On Tue, Dec 7, 2010 at 1:49 PM, Greg Giacovelli  wrote:
> After which we
> call on the UI thread LocationManager.getBestLastKnownLocation() for
> the provider we were interested in.

There is no getBestLastKnownLocation() in LocationManager in Android.
I am assuming you are referring to getLastKnownLocation().

> However on certain phones, the
> Epic in particular sometimes this call never returns.

Seriously? That's a Galaxy S phone, which is pretty popular, though it
is not one I have in my stable.

It certainly feels like a compatibility bug. Do you have any info on
criteria for when this will block (e.g., only if no providers are
enabled)?

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

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

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


[android-developers] Does getBestLastKnownLocation block?

2010-12-07 Thread Greg Giacovelli
Hi,
I was wondering if this is a bad thing to do or if it is just a buggy
ROM. The location strategy my application uses is from the UI Thread
register for a location update. We then schedule a cancel request on
the handler of the UI thread within a given timeout to cancel the
location update if nothing was returned in that time. After which we
call on the UI thread LocationManager.getBestLastKnownLocation() for
the provider we were interested in.

This seemed like a sane idea since the async callback wouldn't block
and we could give the user some animation loading indication for our
best attempt. And if we timeout we just use the system's last known
location as a best effort follow up. However on certain phones, the
Epic in particular sometimes this call never returns. This call is
documented as being pretty light weight and since all of the other
interaction with the LocationManager is to be done on the UI thread
(like registering for updates) this just seems to be understood as
needing that as well.

Is there a better pattern than 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


Re: [android-developers] Re: source for SDK

2010-12-07 Thread Xavier Ducrohet
You're right of course, that this is less than optimal for some
people. Most people actually even though windows users are a majority
(I'm well aware of you all :)), downloading 2-3 GB of source is not
easy.

There are reasons though for not doing it.
- You should be able to rely on the API descriptions and not focus on
a particular implementation
- the implementation could to change version to version
- the implementation could change on some devices (while keeping the
API contract valid)

Note also that Eclipse is unable to deal with compiling for android
1.5 but running on android 2.3 where the source code is really
different. Eclipse can only handle one source location of a jar file,
but android.jar is a runtime jar not an included jar, and if you ran
your 1.5 application on 2.3 you would want to see the source of 2.3

Xav

On Mon, Dec 6, 2010 at 11:42 PM, Bob Kerns  wrote:
> You know, those of us who normally develop with Windows would
> certainly appreciate a nice .zip file of at least the .java sources.
>
> It doesn't have to be buildable, or even complete to every last
> obscure file. Just something similar to how Sun/Oracle provide
> src.zip.
>
> Yes, I can fire up a virtual machine or Amazon EC2 instance, and make
> my own. In fact, I'm loading the sources into an Amazon EC2 instance
> right now, but it's a lot more time consuming than it needs to be --
> and there are a lot of us Windows-using developers out here, believe
> it or not!
>
> On Dec 6, 8:48 pm, Xavier Ducrohet  wrote:
>> http://source.android.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: Android 2.3: eclipse reporting "Unable to execute dex: null"

2010-12-07 Thread Xavier Ducrohet
I'm going to investigate this later today but quick looking at the
source, I suspect this never worked.
I'm not holding 8.0.1 for this but we'll certainly fix this for the
next release.

On Tue, Dec 7, 2010 at 5:46 AM, garbeam  wrote:
> I also wanted to note, that I see similar problems with Android
> Library projects. It appears as if the ADK does not properly include
> the Android Library project classes in a APK project (this is at least
> true for interface classes that my Android Library project contains).
>
> Can you confirm this?
>
> Thanks,
> Anselm
>
> On Dec 7, 9:48 am, Tom Gibara  wrote:
>> Thanks Xavier.
>>
>> That's definitely the cause of the problem. Eclipse projects, when
>> stripped of their dependencies on other eclipse projects, build fine.
>>
>> Tom.
>>
>> On 7 December 2010 00:54, Xavier Ducrohet  wrote:
>>
>>
>>
>>
>>
>>
>>
>> > hey all, we found the issue. It's related to referencing java project.
>>
>> > We're looking at pushing a fix to ADT asap. In the meantime you can
>> > temporarily change to including your java project as a jar file.
>>
>> > On Mon, Dec 6, 2010 at 4:42 PM, Mario Zechner  
>> > wrote:
>> >> I have the exact same issue. I went the exact same route as the
>> >> original poster. The "verbose" output of all the Android tools in
>> >> Eclipse is not all that verbose it turns out. However, digging up
>> >> the .log file in $workspace/.metadata/.log brought this up:
>>
>> >> !ENTRY com.android.ide.eclipse.adt 4 0 2010-12-07 01:40:29.576
>> >> !MESSAGE Unable to execute dex: null
>> >> !STACK 0
>> >> java.lang.reflect.InvocationTargetException
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>> >>        at 
>> >> com.android.ide.eclipse.adt.internal.build.DexWrapper.run(Unknown
>> >> Source)
>> >>        at
>> >> com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(Unknown
>> >> Source)
>> >>        at
>> >> com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui
>> >>  ld(Unknown
>> >> Source)
>> >>        at org.eclipse.core.internal.events.BuildManager
>> >> $2.run(BuildManager.java:629)
>> >>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> >>        at
>> >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
>> >> 172)
>> >>        at
>> >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
>> >> 203)
>> >>        at org.eclipse.core.internal.events.BuildManager
>> >> $1.run(BuildManager.java:255)
>> >>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> >>        at
>> >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
>> >> 258)
>> >>        at
>> >> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.j
>> >>  ava:
>> >> 311)
>> >>        at
>> >> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
>> >> 343)
>> >>        at
>> >> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
>> >> 144)
>> >>        at
>> >> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
>> >> 242)
>> >>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>> >> Caused by: java.lang.NullPointerException
>> >>        at java.io.File.(Unknown Source)
>> >>        at
>> >> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
>> >> 106)
>> >>        at com.android.dx.command.dexer.Main.processOne(Main.java:284)
>> >>        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
>> >>        at com.android.dx.command.dexer.Main.run(Main.java:176)
>> >>        ... 19 more
>> >> Root exception:
>> >> java.lang.NullPointerException
>> >>        at java.io.File.(Unknown Source)
>> >>        at
>> >> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
>> >> 106)
>> >>        at com.android.dx.command.dexer.Main.processOne(Main.java:284)
>> >>        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
>> >>        at com.android.dx.command.dexer.Main.run(Main.java:176)
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> >>        at java.lang.reflect.Method.invoke(Unknown Source)
>> >>        at 
>> >> com.android.ide.eclipse.adt.internal.build.DexWrapper.run(Unknown
>> >> Source)
>> >>        at
>> >> com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(Unknown
>> >> Source)
>> >>        at
>> >> com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui
>> >>  ld(Unknown
>> >> Source)
>> >>        at org.eclipse.core.internal.events.

[android-developers] Edittext mask

2010-12-07 Thread Rogério de Souza Moraes
Hi folks,

I am with a problem with edittext mask. I need to allow the user to enter
the information, where the tree first fields must to be letters and the
following four fields must to be numbers. The mask is like this: "AAA-".


I tried to solve this checking the number of the field that the user is
typing, if it is lower than 4, I set the InputType to TYPE_CLASS_NUMBER, if
the number field is equal or higher 4, I set the InputType to
TYPE_CLASS_TEXT. In portrait mode this works fine, but in landscape mode,
when the android hide the edittext field, when the mask changes from
TYPE_CLASS_NUMBER to TYPE_CLASS_TEXT, the edittext hide the tree numbers
that the user typed and allow him to type the four letters.

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

Regards,

Rogerio

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

Re: [android-developers] android onkeydown()

2010-12-07 Thread TreKing
On Wed, Dec 1, 2010 at 5:44 AM, udledzepp wrote:

> Can anyone suggest the method?
>

Exactly as you stated in the title, with the right keycode (look in the
documentation).

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

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

Re: [android-developers] Custom Color Picker Button

2010-12-07 Thread TreKing
On Tue, Nov 30, 2010 at 2:30 PM, Jenzza  wrote:

> So my question is how to create this properly?


Have you looked through the various animation classes?

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

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

Re: [android-developers] How To Programmatically Customize Android Home Screen's Icons And Background Image?

2010-12-07 Thread TreKing
On Mon, Nov 29, 2010 at 5:04 PM, srikanth wrote:

> a. Change Home Screen's background image.
> b. Get rid of all the icons. Instead have just one link at the bottom
> that lists all applications.
> c. Have One or Two Icons that I specify explicitly.
>

Unless I'm misunderstanding you, you can do all of that as a user with the
stock home screen. No custom code necessary.

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

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

Re: [android-developers] drawCircle call causes an extra elipse draw in a custom Drawable object for google map overlay using google map android API

2010-12-07 Thread TreKing
On Tue, Nov 30, 2010 at 9:51 AM, Pierre-yves  wrote:

> It works find but the drawCircle call also draw a elipse, and if a try to
> draw a rectangle, an extra rectangle it also draw.
>

Log or step through your draw call. Can you verify it's only being called
once, with the parameters you set?

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

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

Re: [android-developers] 2.3 Emulator instability

2010-12-07 Thread David Turner
I'm currently looking into it, but it seems the emulator needs more emulated
RAM to run 2.3 properly. Try starting it with the "-memory 256" option and
tell me if it behaves better for you.

On Tue, Dec 7, 2010 at 3:13 PM, Raymond Rodgers wrote:

> I've noticed that the 2.3 emulator seems to be a lot slower overall, and
> has a tendency to spontaneously reboot. Has anyone else noticed this? I have
> updated two machines to use the latest SDK and ADT, one is on Fedora 13, the
> other on 14. I've been using both machines in development, and they both ran
> the 2.2 emulator just fine, though I haven't tried the 2.2 emulator with the
> latest SDK.
>
> At first I thought it was my app which might have been triggering the
> sluggish performance and reboots, but as I just finished installing the
> updates on the F13 machine, and simply ran the 2.3 emulator without
> installing my app at all in it when it rebooted while I was trying to open
> the Maps application. A key feature of the reboot attempt, by the way, seems
> to be that it never completes: I have to close the emulator altogether, then
> restart it because it never gets out of the boot animation. It also isn't
> sending messages to LogCat.
>
> This will make working with 2.3 a little bit tougher until it gets pushed
> to my Nexus One... :-)
> Raymond
>
> --
> Raymond Rodgers
> http://www.badlucksoft.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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Reasoning behind disabling certain ProGuard optimizations?

2010-12-07 Thread Matt Quigley
In the latest Android SDK Tools (revision 8), ProGuard has been
integrated into the ant build.  This is easier to set up than it was
before (http://www.androidengineer.com/2010/07/optimizing-obfuscating-
and-shrinking.html), but I'm curious about the optimizations that are
disabled by default.

>From the proguard.cfg file created with "android update project -p .":
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/
*

#1: code/simplification/arithmetic: This removes things like turning
"3 + 3" into "6".  A shame, but understandable, because there are much
more complicated optimizations to the byte code that Dalvik doesn't
handle well.  This one is completely understood.

#2: !field/*: This refers to the following:
field/removal/writeonly - Removes write-only fields.
field/marking/private - Marks fields as private, whenever possible.
field/propagation/value - Propagates the values of fields across
methods.

#3: !class/merging/*: This disables merging two or more classes
horizontally or vertically (in the same class hierarchy).

The question here is, why would #2 and #3 give Android or Dalvik any
problems?  The classes are valid Java classes in the end.  I suspect
the answer for #2 is that projects built into Android require that the
R.* classes to remain intact.  However, this is NOT the case for
private apps created by developers, unless they use introspection to
access those fields.  There is no need for the R class at all; all of
the constants of that class can be propagated into whomever uses them,
and the the R class can be removed.  For #3, this might have something
to do with the fact that Views referenced in layout .xml files are
dynamically created at runtime by reflection, and maybe merging these
classes together messes them up.  But isn't that prevented by -keep
public class * extends **View?

For over a year I've been obfuscating my app and #2 and #3 have never
been used.  I don't plan on using them from now on, either.  Unless,
someone can clarify why I shouldn't be enabling #2 and #3?

Thanks!
-Matt

P.S. I would recommend adding the following to the next version of the
Android SDK Tool's automatically generated proguard.cfg file:
# Keep classes which are not directly referenced by code, but
referenced by layout files.
-keep public class * extends **View {
public (android.content.Context);
public (android.content.Context, android.util.AttributeSet);
public (android.content.Context, android.util.AttributeSet,
int);
public void set*(...);
}
This prevents classes which extend View, TextView, etc. classes from
being renamed.  This will avoid ClassNotFoundExceptions when
developers use custom View classes referenced in their layout files.
It will hit some false positives (i.e. a class which ends with View
may not actually be used as such), but that is acceptable IMHO, and
can be easily changed by a developer as needed.

An alternative is to use -keep public class * extends
android.view.View, which removes all false positives, but will add
some missed cases, such as a class which extends TextView.

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


Re: [android-developers] QRCODE TEST

2010-12-07 Thread Rogério de Souza Moraes
Hi this works and shows a link to:

http://t.co/AruCtJn

2010/11/30 Yo Shr 

> Please, could you check if this code works?
>
> 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

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

Re: [android-developers] Confused by Market to Checkout link

2010-12-07 Thread TreKing
On Tue, Dec 7, 2010 at 10:55 AM, Brill Pappin  wrote:

> All the transactions have a "Send shipping notice". Do I need to click that
> to complete the order?
>

No. You really don't have to do anything. Checkout is primarily used for
buying physical goods online, so that's why that's there. It's a complete
hack as far as Android is concerned since Google wanted to use it's own
payment system even though it wasn't designed for virtual goods. Just ignore
it.


> This is all a bit weak, it looks like the Android and Checkout folks don't
> actually talk to each other!
>

You will find that many of Google's different departments are apparently
unaware that the others exist. Like how Google Chrome does not natively
support Google Bookmarks. I mean, honestly.

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

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

[android-developers] Re: Android 2.3 not handling orientation change properly - screen is not redrawn

2010-12-07 Thread Streets Of Boston
Yep, i see the same issue in the Emulator.
Rotating back from landscape to portrait does not happen until the app
(any app, it looks like) 'exits' back to the home-screen.

On Dec 6, 4:31 pm, Max Binshtok  wrote:
> Hi,
>
> Just tried my app on Android 2.3 and it seems that it is not handling
> screen rotation from landscape to portrait mode properly.
>
> - It rotates without problem from portrait to landscape on 2.3 (but
> not the other way around, once rotated to landscape it is just stuck)
> - It rotates perfectly fine on all other OS versions 1.5 through 2.3
> - I placed a debug notification on configuration change event and I
> can see that the system is notifying the application about the change
> and the onConfugurationChange method is called BUT the screen is not
> properly redrawn.
> - This happens on all of my screens (all of my activities)
>
> Anyone encountered this problem? Any thoughts on 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] Confused by Market to Checkout link

2010-12-07 Thread Brill Pappin
So its a bit on clear what I need to be doing in Checkout for order
from Market.
All the transactions have a "Send shipping notice". Do I need to click
that to complete the order?

This is all a bit weak, it looks like the Android and Checkout folks
don't actually talk to each other!

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


Re: [android-developers] SQLite problem

2010-12-07 Thread Filip Havlicek
I would say show us your AndroidManifest.xml, might be some problem there.

Best regards,
Filip Havlicek

2010/12/7 Kostya Vasilyev 

>  What happens when you run it from the installed apps list?
>
> Are you doing any type of lengthy operation in onCreate / onStart /
> onResume, such as downloading data from the Internet?
>
> -- Kostya
>
> 07.12.2010 18:33, Robin Talwar пишет:
>
> Yes yes it is very much there.
>
>
> On Tue, Dec 7, 2010 at 7:36 PM, Kostya Vasilyev wrote:
>
>>  Did the application actually install on the emulator?
>>
>> Can you run it from the emulator's installed applications list?
>>
>> -- Kostya
>>
>> 07.12.2010 16:55, Robin Talwar пишет:
>>
>> Yes i created a newhelloworld project and it is running perfectly
>>
>> On Tue, Dec 7, 2010 at 7:18 PM, Kostya Vasilyev wrote:
>>
>>>  I don't think it's the code.
>>>
>>> Can you create a new HelloWorld type project using the wizard (File: New
>>> Android Project) and try to run that?
>>>
>>> -- Kostya
>>>
>>> 07.12.2010 16:41, Robin Talwar пишет:
>>>
>>> Yes i can see the home screen.
>>> Do you have some time to read my code? It wont take much time as it is
>>> basic application
>>>
>>> On Tue, Dec 7, 2010 at 7:09 PM, Kostya Vasilyev wrote:
>>>
 Is the emulator already running at this point?

 Did you give it enough time to properly start up (you should see the
 Android home screen)?

 -- Kostya

 07.12.2010 16:28, Abhishek Talwar пишет:

  So i was doing some Database stuff
> I read the Notepad tutorial completed it and started making my first
> database application.
> I am not extracting data from user instead i have one application and
> on helper class .
> The application class calls the method of the helper class which adds
> the content in database.
> So the data is provided by main application and the the UI of the
> application should be just the list of the data.
> Basically very simple database application but still i am not able to
> complete it.
> I started commenting the code from bottom to check where the problem
> may have lied but
> it seems to me that i have commented every line of code lol :) and
> stll cant fix the problem .
> The Error Log which i get everytime i run the application is :-
>
> eclipse.buildId=M20100211-1343
> java.version=1.6.0_20
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IN
> Command-line arguments:  -os linux -ws gtk -arch x86
>
>
> Error
> Tue Dec 07 18:45:33 IST 2010
> No command output when running: 'am start -n org.simpledatabase/
> org.simpledatabase.simpledatabase -a android.intent.action.MAIN -c
> android.intent.category.LAUNCHER' on device emulator-5554
>
> com.android.ddmlib.ShellCommandUnresponsiveException
>at
> com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:
> 408)
>at
> com.android.ddmlib.Device.executeShellCommand(Device.java:277)
>at
>
> com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(Unknown
> Source)
>at
>
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(Unknown
> Source)
>at
>
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleLaunch(Unknown
> Source)
>at
>
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.access
> $3(Unknown Source)
>at
> com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController
> $3.run(Unknown Source)
>
>

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


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

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

[android-developers] Re: Please help with an ideea

2010-12-07 Thread String
On Dec 7, 4:00 pm, Alex Munteanu  wrote:

> Does anyone knows if going with an OpenGL approach would be a solution
> for this ?

No offense, Alex, but it's pretty clear by this point that nobody
reading this group has a good idea of how to accomplish this - or at
the very least, not one that they're willing to share. It probably
won't matter how many times you ask.

Strikes me as a case where you need to do the legwork yourself. Read
up and experiment.

Good luck with it!

String

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


Re: [android-developers] Re: Free version to Paid version

2010-12-07 Thread Mark Murphy
On Tue, Dec 7, 2010 at 11:38 AM, Brill Pappin  wrote:
> I've been pretty disappointed in the library projects. They are pretty
> much broken IMO.

I haven't had a problem yet.

> Although I have set it up there way, a lot of the application is
> resources, which don't seem to be picked up properly.

I haven't had a problem yet. You might consider starting a new thread,
or asking a question on StackOverflow, with specific symptoms.

> Then you have
> the problem of providers with the same authority in two different
> packages!

Content providers in a free/paid setup will be difficult regardless of
whether you use library projects or not.

> Not to mention having no end of issue when UI code is stored in a lib.

I haven't had a problem yet.

Here is a sample library project employing resources and UI code:

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

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

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

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


[android-developers] Re: Free version to Paid version

2010-12-07 Thread Brill Pappin
Actually, it looks like you don't actually need to rename the physical
packages, you only need to rename that one line in the manifest to the
alternate package (I'm not positive about that, but I think thats what
my initial experimenting showed).

If that is the case, maybe you can automate your build with a script
that would update that line in the manifest and you could put the demo
mode parameter in a file in your assets dir so that the app would know
what to allow.

You might also use Licensing to enable or disable the free mode.

- Brill

On Dec 7, 4:03 am, YuviDroid  wrote:
> To maintain two versions of the app, I personally simply use a static
> boolean "RELEASE_DEMO", that I set to true when releasing the demo one.
> It's just a little pain that you have to rename the packages, and eventually
> some code if it references the package in some hard-coded way. But at least
> I don't have two completely separate applications in which case I would have
> to keep copying/pasting every fix/modification/feature/etc...
>
> Yuvi
>
>
>
>
>
> On Tue, Dec 7, 2010 at 3:50 AM, Brill Pappin  wrote:
> > I've been thinking of trying that. It can only popup once to let the
> > user know because it would be a real pain for them if it popped up
> > every time the keyboard did :)
>
> > However they would be able to click directly to download it or maybe
> > tell it to remind them rather than just going away for ever.
> > If you combine that with TreKing's idea of a button in the settings,
> > and you have a pretty good chance that the user will know they have
> > the option.
>
> > I must say, I'm happy that the users will have a chance to try it free
> > first, because its the kind of thing that there are many poor
> > implementations of. Now I have to figure out how to maintain two
> > versions of the app, as the library system seems to be very broken!
>
> > - Brill Pappin
>
> > On Dec 3, 5:52 pm, YuviDroid  wrote:
> > > You could push an update to the free version, and then in its app
> > > description advertise the paid version. In this way users who will want
> > to
> > > update their free-installed version will see the promo text in the
> > market.
> > > (although they might use the "Update all" button and not see the new
> > > description...).
>
> > > I've never written an input-method, but if it's possible to show a dialog
> > > (or launch an activity) you could show a one time promotion of the paid
> > > version when your input method gets opened. Mmmdoes it make sense? :P
>
> > > Yuvi
>
> > > On Fri, Dec 3, 2010 at 11:12 PM, Brill Pappin  wrote:
> > > > Actually, my question was not about a separate app, but more along the
> > > > lines of how you tell the user they can upgrade. What ways work and
> > > > are unobtrusive and what ways don't.
>
> > > > - Brill Pappin
>
> > > > On Dec 2, 5:46 pm, Leon Moreyn-Android Development
> > > >  wrote:
> > > > > pretty much thats the general method being used. One thing to
> > consider
> > > > > is unpublishing the app and releasing a paid version in its place.
> > But
> > > > > users may find that kinda a slap in the face. I would say do as your
> > > > > doing, add features to the app and call it app Plus and charge money
> > > > > for it. Remember though those feature need to be worth the price you
> > > > > apply to the app though. What you can do is remove features in an
> > > > > update to your free app and keep them in your paid version.
>
> > > > > On Dec 2, 3:42 pm, Brill Pappin  wrote:
>
> > > > > > I've got a situation a lot of us do, where I have released a free
> > > > > > version and now need to make a Paid version of the same app.
>
> > > > > > As those who have tried will know, you can't change an app from
> > Free
> > > > > > to Paid (a silly feature of the Market).
>
> > > > > > So, what I'm planning to do is release a "Plus" version that has
> > more
> > > > > > features.
>
> > > > > > What are others doing to help direct users to their paid versions
> > from
> > > > > > their Free versions?
> > > > > > I'n my case its an input method, so I have to be careful about how
> > I
> > > > > > tell the user about the paid version with more features.
>
> > > > > > Comments?
>
> > > > > > - Brill Pappin
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > YuviDroid
> > > Check out Launch-X  (a
> > widget to
> > > quickly access your favorite apps and contacts!)
> >http://android.yuvalsharon.net
>
> > --
> > You received this message because you are subscribed to the Go

[android-developers] Re: Free version to Paid version

2010-12-07 Thread Brill Pappin
I've been pretty disappointed in the library projects. They are pretty
much broken IMO.
Although I have set it up there way, a lot of the application is
resources, which don't seem to be picked up properly. Then you have
the problem of providers with the same authority in two different
packages!
Not to mention having no end of issue when UI code is stored in a lib.

Its pretty crazy how limited the library projects actually are.

However, I have set that up, but I'm still having to maintain two
versions on the fly. At the moment I'm being very good about making a
change across both but we both know that can't last :)

In the mean time, I'm simply working to extract the logic of the
app(s) and move it into the lib.

- Brill Pappin

On Dec 7, 10:39 am, Emanuel Moecklin <1gravity...@gmail.com> wrote:
> Hi YuviDroid
>
> To maintain several versions of the same app with minimum redundancy
> and without any refactoring you can use library 
> projects:http://developer.android.com/guide/developing/eclipse-adt.html#librar...
> (link if you are working with Eclipse).
> Since the September update of the SDK it's also possible to have
> library projects depending on other library projects.
>
> I'm maintaining three versions of one app and two more versions of an
> app based on the first app with two Android library projects, one
> depending on the other one,  and five Android projects with almost no
> redundancy (app icon, manifest, some assets but all these files would
> differ from version to version of the app anyway). Seven projects
> sounds like a lot but five of them are really just "skeletons", the
> real code is within the two library projects. Google really did a good
> job here (although I would appreciate if assets could be stored in
> library projects too;-).
>
> Emanuel Moecklin
> 1gravity LLC
>
> On Dec 7, 4:03 am, YuviDroid  wrote:
>
>
>
> > To maintain two versions of the app, I personally simply use a static
> > boolean "RELEASE_DEMO", that I set to true when releasing the demo one.
> > It's just a little pain that you have to rename the packages, and eventually
> > some code if it references the package in some hard-coded way. But at least
> > I don't have two completely separate applications in which case I would have
> > to keep copying/pasting every fix/modification/feature/etc...
>
> > Yuvi
>
> > On Tue, Dec 7, 2010 at 3:50 AM, Brill Pappin  wrote:
> > > I've been thinking of trying that. It can only popup once to let the
> > > user know because it would be a real pain for them if it popped up
> > > every time the keyboard did :)
>
> > > However they would be able to click directly to download it or maybe
> > > tell it to remind them rather than just going away for ever.
> > > If you combine that with TreKing's idea of a button in the settings,
> > > and you have a pretty good chance that the user will know they have
> > > the option.
>
> > > I must say, I'm happy that the users will have a chance to try it free
> > > first, because its the kind of thing that there are many poor
> > > implementations of. Now I have to figure out how to maintain two
> > > versions of the app, as the library system seems to be very broken!
>
> > > - Brill Pappin
>
> > > On Dec 3, 5:52 pm, YuviDroid  wrote:
> > > > You could push an update to the free version, and then in its app
> > > > description advertise the paid version. In this way users who will want
> > > to
> > > > update their free-installed version will see the promo text in the
> > > market.
> > > > (although they might use the "Update all" button and not see the new
> > > > description...).
>
> > > > I've never written an input-method, but if it's possible to show a 
> > > > dialog
> > > > (or launch an activity) you could show a one time promotion of the paid
> > > > version when your input method gets opened. Mmmdoes it make sense? 
> > > > :P
>
> > > > Yuvi
>
> > > > On Fri, Dec 3, 2010 at 11:12 PM, Brill Pappin  wrote:
> > > > > Actually, my question was not about a separate app, but more along the
> > > > > lines of how you tell the user they can upgrade. What ways work and
> > > > > are unobtrusive and what ways don't.
>
> > > > > - Brill Pappin
>
> > > > > On Dec 2, 5:46 pm, Leon Moreyn-Android Development
> > > > >  wrote:
> > > > > > pretty much thats the general method being used. One thing to
> > > consider
> > > > > > is unpublishing the app and releasing a paid version in its place.
> > > But
> > > > > > users may find that kinda a slap in the face. I would say do as your
> > > > > > doing, add features to the app and call it app Plus and charge money
> > > > > > for it. Remember though those feature need to be worth the price you
> > > > > > apply to the app though. What you can do is remove features in an
> > > > > > update to your free app and keep them in your paid version.
>
> > > > > > On Dec 2, 3:42 pm, Brill Pappin  wrote:
>
> > > > > > > I've got a situation a lot of us do, where I have released a free
> > > > > > > version an

[android-developers] Re: Android 2.3: eclipse reporting "Unable to execute dex: null"

2010-12-07 Thread dario
Anselm, I couldn't repro with latest build. Xavier, I posted the bug I
described as issue #13010

-Dario

On Dec 7, 8:46 am, garbeam  wrote:
> I also wanted to note, that I see similar problems with Android
> Library projects. It appears as if the ADK does not properly include
> the Android Library project classes in a APK project (this is at least
> true for interface classes that my Android Library project contains).
>
> Can you confirm this?
>
> Thanks,
> Anselm
>
> On Dec 7, 9:48 am, Tom Gibara  wrote:
>
>
>
>
>
>
>
> > Thanks Xavier.
>
> > That's definitely the cause of the problem. Eclipse projects, when
> > stripped of their dependencies on other eclipse projects, build fine.
>
> > Tom.
>
> > On 7 December 2010 00:54, Xavier Ducrohet  wrote:
>
> > > hey all, we found the issue. It's related to referencing java project.
>
> > > We're looking at pushing a fix to ADT asap. In the meantime you can
> > > temporarily change to including your java project as a jar file.
>
> > > On Mon, Dec 6, 2010 at 4:42 PM, Mario Zechner  
> > > wrote:
> > >> I have the exact same issue. I went the exact same route as the
> > >> original poster. The "verbose" output of all the Android tools in
> > >> Eclipse is not all that verbose it turns out. However, digging up
> > >> the .log file in $workspace/.metadata/.log brought this up:
>
> > >> !ENTRY com.android.ide.eclipse.adt 4 0 2010-12-07 01:40:29.576
> > >> !MESSAGE Unable to execute dex: null
> > >> !STACK 0
> > >> java.lang.reflect.InvocationTargetException
> > >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > >>        at java.lang.reflect.Method.invoke(Unknown Source)
> > >>        at 
> > >> com.android.ide.eclipse.adt.internal.build.DexWrapper.run(Unknown
> > >> Source)
> > >>        at
> > >> com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(Unknown
> > >> Source)
> > >>        at
> > >> com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui
> > >>  ld(Unknown
> > >> Source)
> > >>        at org.eclipse.core.internal.events.BuildManager
> > >> $2.run(BuildManager.java:629)
> > >>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> > >>        at
> > >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > >> 172)
> > >>        at
> > >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > >> 203)
> > >>        at org.eclipse.core.internal.events.BuildManager
> > >> $1.run(BuildManager.java:255)
> > >>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> > >>        at
> > >> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> > >> 258)
> > >>        at
> > >> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.j
> > >>  ava:
> > >> 311)
> > >>        at
> > >> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
> > >> 343)
> > >>        at
> > >> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
> > >> 144)
> > >>        at
> > >> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
> > >> 242)
> > >>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> > >> Caused by: java.lang.NullPointerException
> > >>        at java.io.File.(Unknown Source)
> > >>        at
> > >> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
> > >> 106)
> > >>        at com.android.dx.command.dexer.Main.processOne(Main.java:284)
> > >>        at 
> > >> com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
> > >>        at com.android.dx.command.dexer.Main.run(Main.java:176)
> > >>        ... 19 more
> > >> Root exception:
> > >> java.lang.NullPointerException
> > >>        at java.io.File.(Unknown Source)
> > >>        at
> > >> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
> > >> 106)
> > >>        at com.android.dx.command.dexer.Main.processOne(Main.java:284)
> > >>        at 
> > >> com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
> > >>        at com.android.dx.command.dexer.Main.run(Main.java:176)
> > >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > >>        at java.lang.reflect.Method.invoke(Unknown Source)
> > >>        at 
> > >> com.android.ide.eclipse.adt.internal.build.DexWrapper.run(Unknown
> > >> Source)
> > >>        at
> > >> com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(Unknown
> > >> Source)
> > >>        at
> > >> com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui
> > >>  ld(Unknown
> > >> Source)
> > >>        at org.eclipse.core.internal.ev

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

2010-12-07 Thread Bob Kerns
There's a terminology conflict at work here.

Class.getResource(String) and friends vs. Context.getResources() and
friends. To add to the confusion, they really *are* performing the
same task, albeit differently and on disjoint data.

The stuff inside a .jar file is accessed with
Class.getResource(String), while strings.xml is accessed via
Context.getResources().

To add further to the confusion, most of my comments could apply to
either, but the main discussion is referring to
Context.getResources().

On Dec 7, 7:39 am, Mark Murphy  wrote:
> On Tue, Dec 7, 2010 at 10:35 AM, Ecthelion  wrote:
> > Yes, if the library project includes all the sources. But in this case
> > part of the foreign code is inside a jar file.
>
> Resources cannot be in a JAR 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] 2.3: WebView's JavaScriptInterface throwing exception 100% of time

2010-12-07 Thread jsdf
Hi all,
Has anyone played with the 2.3, WebViews, and the JavaScript to Java
interface?
If so, have you gotten it working?

I, and a number of others, have seen this fail 100% of the time.
http://code.google.com/p/android/issues/detail?id=12987

This is a very serious issue.

Anyone have 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: NFC: Tag Emaulation

2010-12-07 Thread gamtgamt
It seems that even in the Nexus S there will be no tag emulation.
Simon Wilson (Android Engineer) says http://youtu.be/wk5mUdeEF8c at
1:02 that.

Did you find out how to write information to an nfc-tag? That I could
not find out till now.

Thomas

On 7 Dez., 12:01, Gruntz Dominik  wrote:
> Hi Everyone,
> In the android.nfc package documentation I read:
>
>   Provides access to Near Field Communication (NFC) functionality, allowing 
> applications
>   to read NDEF message in NFC tags. A "tag" may actually be another device 
> that appears
>   as a tag.
>
> Question: Can tags be emulated with the Android NFC API, and if yes, how?
>
> Dominik

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


Re: [android-developers] SQLite problem

2010-12-07 Thread Kostya Vasilyev

What happens when you run it from the installed apps list?

Are you doing any type of lengthy operation in onCreate / onStart / 
onResume, such as downloading data from the Internet?


-- Kostya

07.12.2010 18:33, Robin Talwar пишет:

Yes yes it is very much there.


On Tue, Dec 7, 2010 at 7:36 PM, Kostya Vasilyev > wrote:


Did the application actually install on the emulator?

Can you run it from the emulator's installed applications list?

-- Kostya

07.12.2010 16:55, Robin Talwar пишет:

Yes i created a newhelloworld project and it is running perfectly

On Tue, Dec 7, 2010 at 7:18 PM, Kostya Vasilyev
mailto:kmans...@gmail.com>> wrote:

I don't think it's the code.

Can you create a new HelloWorld type project using the wizard
(File: New Android Project) and try to run that?

-- Kostya

07.12.2010 16:41, Robin Talwar пишет:

Yes i can see the home screen.
Do you have some time to read my code? It wont take much
time as it is basic application

On Tue, Dec 7, 2010 at 7:09 PM, Kostya Vasilyev
mailto:kmans...@gmail.com>> wrote:

Is the emulator already running at this point?

Did you give it enough time to properly start up (you
should see the Android home screen)?

-- Kostya

07.12.2010 16:28, Abhishek Talwar пишет:

So i was doing some Database stuff
I read the Notepad tutorial completed it and started
making my first
database application.
I am not extracting data from user instead i have
one application and
on helper class .
The application class calls the method of the helper
class which adds
the content in database.
So the data is provided by main application and the
the UI of the
application should be just the list of the data.
Basically very simple database application but still
i am not able to
complete it.
I started commenting the code from bottom to check
where the problem
may have lied but
it seems to me that i have commented every line of
code lol :) and
stll cant fix the problem .
The Error Log which i get everytime i run the
application is :-

eclipse.buildId=M20100211-1343
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk,
NL=en_IN
Command-line arguments:  -os linux -ws gtk -arch x86


Error
Tue Dec 07 18:45:33 IST 2010
No command output when running: 'am start -n
org.simpledatabase/
org.simpledatabase.simpledatabase -a
android.intent.action.MAIN -c
android.intent.category.LAUNCHER' on device
emulator-5554

com.android.ddmlib.ShellCommandUnresponsiveException
   at

com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:
408)
   at
com.android.ddmlib.Device.executeShellCommand(Device.java:277)
   at

com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(Unknown
Source)
   at

com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(Unknown
Source)
   at

com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleLaunch(Unknown
Source)
   at

com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.access
$3(Unknown Source)
   at

com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController
$3.run(Unknown Source)



-- 
Kostya Vasilyev -- WiFi Manager + pretty widget --

http://kmansoft.wordpress.com


-- 
You received this message because you are subscribed to

the Google
Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.goog

Re: [android-developers] Best way to store data in database

2010-12-07 Thread Kostya Vasilyev
Sure, a database would work, but, depending on how many colors you have, 
it might be overkill.


Also note that you don't have to use Android color resources unless it 
is actually convenient for your application.


I'd use a text file with simple "color: #abcdef" definitions, in res/raw 
to define the colors in the first place (so you could get the entire 
list for the user to pick from) and a database or SharedPreferences or a 
data file to save user selections.


-- Kostya

07.12.2010 18:18, Danny Schimke пишет:
The change of R was my guess too and the main reason why I asked here. 
Ahh, ok, I understand, you would save color names or the code like 
#RRGGBB. But what happens when I delete or change colors... Once a 
color is part of my app i can't remove it, cause users who used them 
saved the code or name into the database and then there is a problem...


What do you think about a separate database table? Not good?

Thank you!
-Danny Schimke

2010/12/7 Kostya Vasilyev mailto:kmans...@gmail.com>>

Danny,

The values in R can change as you add and remove resources.

I'd say store color names, or actual RGB values (and match them to
names when need to present to the user).

-- Kostya

07.12.2010 16:56, Danny Schimke пишет:

Hi,

I have 2 textual inputs that I saved to database, furthermore
I have a spinner with color selection. Color names and color
values both stored in the application resources. I want to
save a color in the database, but what is the best way to do
this in your mind? Should I save the resource id? I figured
out, that the int value of the color resource is allways the
same, e.g. when I delete the "R" file and let it recreate. I
do not have the certainty that this is correct?!

Or would you put colors in a seperate database table instead
using resources for this? This seems to be a good way and the
user is able to add own colors to the application.

I don't know what is the best way to store this. What are your
experiences?

Thank you very much!
-Danny Schimke
-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



-- 
Kostya Vasilyev -- WiFi Manager + pretty widget --

http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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



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

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

  1   2   >