[android-developers] Cross compiling e2fsprogs for android

2011-11-21 Thread maikelalonso
Hi developers:

I'm cross compiling e2fsprogs because I need libraries into it for and
android tool I'm developing. I know I've to run command:

../configure --host="arm-linux-gnueabi"  --enable-elf-shlibs

Here all is OK.

Then, I run  make && make install && make install-libs and know errors
are found. Here the output:

[sbox-armv7: ~/e2fsprogs-1.41.14/build] > make install-libs
making install in lib/et
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
et'
MKINSTALLDIRS /lib /usr/lib
INSTALL-ELF-LIB /lib/libcom_err.so.2.1
SYMLINK /lib/libcom_err.so.2
SYMLINK /usr/lib/libcom_err.so
LDCONFIG
SUBST compile_et
MKINSTALLDIRS /usr/lib /usr/include/et /usr/share/et /usr/bin /usr/
share/man/man1 /usr/share/man/man3
INSTALL_DATA /usr/lib/libcom_err.a
INSTALL_DATA /usr/include/et/com_err.h
INSTALL_DATA /usr/share/et/et_c.awk
INSTALL_DATA /usr/share/et/et_h.awk
INSTALL_SCRIPT /usr/bin/compile_et
INSTALL_DATA /usr/share/man/man3/com_err.3
INSTALL_DATA /usr/share/man/man1/compile_et.1
INSTALL_DATA /usr/lib/pkgconfig/com_err.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
et'
making install in lib/ss
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ss'
SUBST mk_cmds
MKINSTALLDIRS /lib /usr/lib
INSTALL-ELF-LIB /lib/libss.so.2.0
SYMLINK /lib/libss.so.2
SYMLINK /usr/lib/libss.so
LDCONFIG
MKINSTALLDIRS /usr/lib /usr/include/ss /usr/share/ss /usr/bin
INSTALL_DATA /usr/lib/libss.a
INSTALL_DATA /usr/include/ss/ss.h
INSTALL_DATA /usr/include/ss/ss_err.h
INSTALL_DATA /usr/share/ss/ct_c.awk
INSTALL_DATA /usr/share/ss/ct_c.sed
INSTALL /usr/bin/mk_cmds
INSTALL_DATA /usr/share/man/man1/mk_cmds.1
INSTALL_DATA /usr/lib/pkgconfig/ss.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ss'
making install in lib/e2p
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
e2p'
MKINSTALLDIRS /lib /usr/lib
INSTALL-ELF-LIB /lib/libe2p.so.2.3
SYMLINK /lib/libe2p.so.2
SYMLINK /usr/lib/libe2p.so
LDCONFIG
MKINSTALLDIRS /usr/lib /usr/include/e2p
INSTALL_DATA /usr/lib/libe2p.a
INSTALL_DATA /usr/include/e2p/e2p.h
INSTALL_DATA /usr/lib/pkgconfig/e2p.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
e2p'
making install in lib/uuid
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
uuid'
MKINSTALLDIRS /lib /usr/lib
INSTALL-ELF-LIB /lib/libuuid.so.1.2
SYMLINK /lib/libuuid.so.1
SYMLINK /usr/lib/libuuid.so
LDCONFIG
MKINSTALLDIRS /usr/lib /usr/include/uuid /usr/share/man/man3
INSTALL_DATA /usr/lib/libuuid.a
INSTALL_DATA /usr/include/uuid/uuid.h
INSTALL_DATA /usr/share/man/man3/uuid.3
INSTALL_DATA /usr/share/man/man3/uuid_clear.3
INSTALL_DATA /usr/share/man/man3/uuid_compare.3
INSTALL_DATA /usr/share/man/man3/uuid_copy.3
INSTALL_DATA /usr/share/man/man3/uuid_generate.3
INSTALL_DATA /usr/share/man/man3/uuid_is_null.3
INSTALL_DATA /usr/share/man/man3/uuid_parse.3
INSTALL_DATA /usr/share/man/man3/uuid_time.3
INSTALL_DATA /usr/share/man/man3/uuid_unparse.3
LINK /usr/share/man/man3/uuid_generate_random.3
LINK /usr/share/man/man3/uuid_generate_time.3
INSTALL_DATA /usr/lib/pkgconfig/uuid.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
uuid'
making install in lib/ext2fs
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ext2fs'
SUBST ext2_err.et
MKINSTALLDIRS /lib /usr/lib
INSTALL-ELF-LIB /lib/libext2fs.so.2.4
SYMLINK /lib/libext2fs.so.2
SYMLINK /usr/lib/libext2fs.so
LDCONFIG
MKINSTALLDIRS /usr/lib /usr/include/ext2fs
INSTALL_DATA /usr/lib/libext2fs.a
INSTALL_DATA /usr/include/ext2fs/bitops.h
INSTALL_DATA /usr/include/ext2fs/ext2fs.h
INSTALL_DATA /usr/include/ext2fs/ext2_io.h
INSTALL_DATA /usr/include/ext2fs/ext2_fs.h
INSTALL_DATA /usr/include/ext2fs/ext2_ext_attr.h
INSTALL_DATA /usr/include/ext2fs/ext3_extents.h
INSTALL_DATA /usr/include/ext2fs/tdb.h
INSTALL_DATA /usr/include/ext2fs/ext2_err.h
INSTALL_DATA /usr/include/ext2fs/ext2_types.h
INSTALL_DATA /usr/lib/pkgconfig/ext2fs.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ext2fs'
making install in lib/blkid
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
blkid'
MKINSTALLDIRS /lib /usr/lib
INSTALL-ELF-LIB /lib/libblkid.so.1.0
SYMLINK /lib/libblkid.so.1
SYMLINK /usr/lib/libblkid.so
LDCONFIG
MKINSTALLDIRS /usr/lib /usr/include/blkid

[android-developers] Location Manager

2011-11-21 Thread Siva Prakash
Hi


Im listening for current location by

locationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER, 5000, 1000.0f,
locationListener);

I have couple of questions


- Will it work though I close my application ?
- Anyway for me to

locationManager.removeUpdates ()

when user close the application? Basically I want to handle
application close event.

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

2011-11-21 Thread BelvCompSvs
yes - put that in the search bar at developer.android.com

On Nov 21, 10:54 pm, mohana priya  wrote:
> Hello android developers.I want to know whether we can start the
> activity life cycle manually in android.Please reply me.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


RE: [android-developers] Re: Please Help with GPS Provider Switch

2011-11-21 Thread Tommy Hartz
Good call I guess I could do all three at once then check to see which is
more accurate. startNetwork does get called which is why its so why it is so
weird. I though maybe I was doing some wrong. I'll give it a shot with all 3
and see what happens. Thanks for your time and input!

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of gjs
Sent: Monday, November 21, 2011 9:22 PM
To: Android Developers
Subject: [android-developers] Re: Please Help with GPS Provider Switch

Hi,

Yes I understand what you are attempting, I was just suggesting doing all
three at the same time in parallel , that way you'd have a results in 30
seconds or less & not have to wait for up 90 seconds.

And no I don't know why your network provider is no working, try adding some
debug statement to see if startNetwork() is being called ok. Other
suggestion is to use getLastKnownLocation(String).

Regards

On Nov 22, 5:00 am, "Tommy Hartz"  wrote:
> Well I am not using them at the same time. Here is my process.
>
> 1) Start with GPS, set timer for 30 seconds. If GPS has not got a 
> location in that time my timer goes off and stops the GPS. I then 
> request the Passive provider. I allow again 30 seconds for that. If 
> nothing happens in 30 seconds the timer goes off, and starts my Network
Provider.
>
> 2) Once the network provider gets called nothing happens it just sits
there.
>
> 3) If I bypass the GPS and Passive the network provider works as it is 
> suppose to.
>
> I am just trying to find out if I am doing something wrong or maybe 
> there is a bug that screws the network provider up if the GPS provider 
> has been requested and stopped before hand. Below is my original post 
> with my code
> included:
>
> Hey,
>
> Right now when trying to get a user location I start with the GPS
Provider.
> I have a timer set for 30 seconds, If a location is not found in 30 
> seconds the timer goes off and stops that location request. When that 
> happens I move to the Passive Provider. After 30 seconds if a location 
> is not found I stop the location request and move to the Network Provider.
>
> My issue is that when the network provider gets called it never does 
> anything. If I start with the network provider it goes off just fine 
> and returns a location back to me. Below is the code I am trying to use:
>
> gpsTimer.schedule(new TimerTask(){
>                   @Override
>                   public void run() {
>
>                         startPassive();
>
>                   }
>             }, 3);
>
>             currentTimer = "GPS";
>
> locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 
> 0, 0, locationListener);
>
> private void startPassive(){
>
>             locationManager.removeUpdates(locationListener);
>
>             //Now we want to try for a Passive Fix
>             currentTimer = "Passive";
>             passiveTimer.schedule(new TimerTask(){
>
>                   @Override
>                   public void run() {
>                         startNetwork();
>                   }
>
>             }, 3);
>             Looper.prepare();
>             Looper.myLooper().quit();
>
> locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDE
> R, 0, 0, locationListener);
>
> private void startNetwork(){
>             locationManager.removeUpdates(locationListener);
>             currentTimer = "Network";
>             Looper.prepare();
>             Looper.myLooper().quit();
>
> locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDE
> R, 0, 0, locationListener);
>
> any help or suggestions would be greatly appreciated. Thank so much 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Lots of "the layout ID xyz is not valid" errors in ADT r15

2011-11-21 Thread olefevre
Yes.

On Nov 20, 11:29 pm, Kostya Vasilyev  wrote:
> Have you tried making a fresh workspace and importing a fresh copy of your
> sources?

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

2011-11-21 Thread vedika nimje
Hi all Android Developers. I need ur help. I lost the code to how can i
pass website link to a button. Pls help me again.

Thank u all 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: NoClassDefFoundError

2011-11-21 Thread rachana govilkar
yes it is declared in Manifest..


On Nov 22, 5:01 am, TreKing  wrote:
> On Mon, Nov 21, 2011 at 6:47 AM, rachana govilkar <
>
> rachana.govil...@gmail.com> wrote:
> > I am getting this error frequently when i execute my
> > app..RegionStandardMapActivity class does existbut am not
> > getting where i have made a mistake.please anyone can help???
>
> Was it declared in your manifest?
>
> -
> 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] to start an activity

2011-11-21 Thread mohana priya
Hello android developers.I want to know whether we can start the
activity life cycle manually in android.Please reply me.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: HD Displays and JavaBinder: !!! FAILED BINDER TRANSACTION !!!

2011-11-21 Thread BelvCompSvs
if you really want to have some fun go listen to Brad Fitzpatrick at
the video tab of developer.android ~ then if you agree in principle
with general concept of where he tries to go with the discussion
consider writing correct code for your apps and do not engage
lookbacks .

I am not going against what you say

On Nov 21, 4:54 am, Tomáš  Hubálek  wrote:
> Hello,
>
> my app Make Your Clock Widget (https://market.android.com/details?
> id=net.hubalek.android.makeyourclock.pro) is generating widget content
> as custom drawn bitmap.
>
> As you probably know there is (not specified in documentation but
> existing) limit on size of bitmap sent via RemoteViews.
>
> It was possible to live with it (I just didn't allow bigger widgets)
> but with HD displays this stops working as even 4x2 widget contains
> too big bitmap as 294 wide * 146 high * 1.6^2 (density of SGS display)
> was bellow limit but 294 * 146 * 1.97^2 (density of Galaxy Nexus) is
> above limit.
>
> There exist following workarounds but I'm not happy with them:
>
> 1) Create bitmap with Config.ARGB_?This causes banding for
> gradients and also antialiasing does not look superior. And also
> Config.ARGB_ is deprecated.
>
> 2) Generate bitmap in lower resolution and let layout upscale bitmap
> to appropriate size? This counteracts to idea of HD displays that
> should provide superior graphics quality
>
> 3) Created content provider that provides bitmap for RemoveViews
> bitmap and use method setImageViewUri()?
>
> BTW: Splitting bitmap into multiple chunks does now work as
> undocumented limit is for whole RemoteView update.
>
> So my questions/conclusions:
>
> 1) What Google recommends to do?
>
> -> Don't allow smaller widgets than 4x2 for HD displays?
> -> Render them in poor quality?
> -> Use content provider?
>
> 2) I'm really unhappy with widgets API and behavior
>
> Why widget behavior didn't change since Android 1.5 when there was
> single core/MDPI only devices. It reminds me Bill Gate's 640 kB or RAM
> is enough :-/
>
> Why I don't get any Exception when something fails? Why there is only
> LogCat message that can't be handled correctly?
>
> Why there is not meaningful documentation about setImageBitmap()
> method limitations in JavaDoc?
>
> Thanks
> Tom

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


Re: [android-developers] Re: onActivityResult not Triggering

2011-11-21 Thread B Lyon
Are any other startActivityForResult calls working for that
TabActivity, successfully coming back to onActivityResult?



On Mon, Nov 21, 2011 at 9:54 PM, BelvCompSvs  wrote:
> To do this, you call the startActivityForResult(Intent, int) version
> with a second integer parameter identifying the call. The result will
> come back through your onActivityResult(int, int, Intent) method -
> which you dont have .,...
>
> just code that method for what you want it do do when it comes back an
> very likely you can at least make progress
>
> On Nov 20, 11:02 pm, Cody Duncan  wrote:
>> Hi guys,
>>
>> For some reason, an activity's onActivityResult method is not being
>> called.  It is a tab within a tab Activity which is sending a
>> startActivityForResult to an independent activity.  Here is the
>> relevant code.
>>
>> in MealsTodayList class:
>> void createEntry()
>>         {
>>                 Intent newMeal = new Intent(this, MealAdder.class);
>>                 newMeal.setAction(NEW_MEAL);
>>                 newMeal.putExtra(MealDbAdapter.KEY_DATE, todayDate);
>>                 startActivityForResult(newMeal, NEW_ENTRY); //NEW_ENTRY=1
>>         }
>>
>> in MealAdder class:
>> public void saveNewEntry(View v)
>>         {
>>                 Intent mealEntryIntent = new 
>> Intent(this,MealsTodayList.class);
>>                 [...]
>>                 if (updatedEntry)
>>                 {
>>                         this.setResult(RESULT_EDIT_OK, mealEntryIntent);
>>                 }
>>                 else
>>                 {
>>                         this.setResult(RESULT_OK, mealEntryIntent);
>>                 }
>>                 finish();
>>         }
>>
>> In this case, the activity MealAdder is completed once the save button
>> is called, which calls this method.
>>
>> Any suggestions would be magnificent.  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] Re: how to decompose .apk file

2011-11-21 Thread BelvCompSvs
a lot of times that is the only way to learn as the only one true docs
is what the compiler actually does

On Nov 21, 9:12 am, lbendlin  wrote:
> Sure.  Smells very phishy.

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

2011-11-21 Thread BelvCompSvs
To do this, you call the startActivityForResult(Intent, int) version
with a second integer parameter identifying the call. The result will
come back through your onActivityResult(int, int, Intent) method -
which you dont have .,...

just code that method for what you want it do do when it comes back an
very likely you can at least make progress

On Nov 20, 11:02 pm, Cody Duncan  wrote:
> Hi guys,
>
> For some reason, an activity's onActivityResult method is not being
> called.  It is a tab within a tab Activity which is sending a
> startActivityForResult to an independent activity.  Here is the
> relevant code.
>
> in MealsTodayList class:
> void createEntry()
>         {
>                 Intent newMeal = new Intent(this, MealAdder.class);
>                 newMeal.setAction(NEW_MEAL);
>                 newMeal.putExtra(MealDbAdapter.KEY_DATE, todayDate);
>                 startActivityForResult(newMeal, NEW_ENTRY); //NEW_ENTRY=1
>         }
>
> in MealAdder class:
> public void saveNewEntry(View v)
>         {
>                 Intent mealEntryIntent = new 
> Intent(this,MealsTodayList.class);
>                 [...]
>                 if (updatedEntry)
>                 {
>                         this.setResult(RESULT_EDIT_OK, mealEntryIntent);
>                 }
>                 else
>                 {
>                         this.setResult(RESULT_OK, mealEntryIntent);
>                 }
>                 finish();
>         }
>
> In this case, the activity MealAdder is completed once the save button
> is called, which calls this method.
>
> Any suggestions would be magnificent.  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: Please Help with GPS Provider Switch

2011-11-21 Thread gjs
Hi,

Yes I understand what you are attempting, I was just suggesting doing
all three at the same time in parallel , that way you'd have a results
in 30 seconds or less & not have to wait for up 90 seconds.

And no I don't know why your network provider is no working, try
adding some debug statement to see if startNetwork() is being called
ok. Other suggestion is to use getLastKnownLocation(String).

Regards

On Nov 22, 5:00 am, "Tommy Hartz"  wrote:
> Well I am not using them at the same time. Here is my process.
>
> 1) Start with GPS, set timer for 30 seconds. If GPS has not got a location
> in that time my timer goes off and stops the GPS. I then request the Passive
> provider. I allow again 30 seconds for that. If nothing happens in 30
> seconds the timer goes off, and starts my Network Provider.
>
> 2) Once the network provider gets called nothing happens it just sits there.
>
> 3) If I bypass the GPS and Passive the network provider works as it is
> suppose to.
>
> I am just trying to find out if I am doing something wrong or maybe there is
> a bug that screws the network provider up if the GPS provider has been
> requested and stopped before hand. Below is my original post with my code
> included:
>
> Hey,
>
> Right now when trying to get a user location I start with the GPS Provider.
> I have a timer set for 30 seconds, If a location is not found in 30 seconds
> the timer goes off and stops that location request. When that happens I move
> to the Passive Provider. After 30 seconds if a location is not found I stop
> the location request and move to the Network Provider.
>
> My issue is that when the network provider gets called it never does
> anything. If I start with the network provider it goes off just fine and
> returns a location back to me. Below is the code I am trying to use:
>
> gpsTimer.schedule(new TimerTask(){
>                   @Override
>                   public void run() {
>
>                         startPassive();
>
>                   }
>             }, 3);
>
>             currentTimer = "GPS";
>
> locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
> locationListener);
>
> private void startPassive(){
>
>             locationManager.removeUpdates(locationListener);
>
>             //Now we want to try for a Passive Fix
>             currentTimer = "Passive";
>             passiveTimer.schedule(new TimerTask(){
>
>                   @Override
>                   public void run() {
>                         startNetwork();
>                   }
>
>             }, 3);
>             Looper.prepare();
>             Looper.myLooper().quit();
>
> locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0,
> 0, locationListener);
>
> private void startNetwork(){
>             locationManager.removeUpdates(locationListener);
>             currentTimer = "Network";
>             Looper.prepare();
>             Looper.myLooper().quit();
>
> locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0,
> 0, locationListener);
>
> any help or suggestions would be greatly appreciated. Thank so much 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


Re: [android-developers] Re: Fw: Friends, I need help

2011-11-21 Thread J Handal
Wait for the emulator(which version are you running?)

The picture that you said means that you have to unlock the emulator(like
in the real phones)

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

[android-developers] Re: android with radio wave

2011-11-21 Thread gjs
Hi,

Which radio ? Cell, Wifi, bluetooth, FM, NFC, Ant etc ?

Regards

On Nov 20, 9:08 am, boniyustin  wrote:
> Hi , I'm android developer,, very need help.
> anyone know how android receive radio wave..
> any idea for developer.?
>
> big 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: Testing App Battery Usage

2011-11-21 Thread gjs
Hi,

No I don't think so. You can run adb over tcp/ip wifi but that will
effect battery usage as well. Maybe just log to file on the device.

Regards

On Nov 18, 6:02 am, Ika Balzam  wrote:
> Hey Guys,
>
> We want to have a live debugger (mobile connected to the computer by
> usb) but we don't want the PC to charge the mobile so we will be able
> to see how our tests affect the battery.
>
> Is this possible?
> Running a debugger/logviewer on the device may cause a false report,
> so we want to use the PC, which should be a very low cost on the
> device.
>
> Thanks in advance,
> Ika

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

2011-11-21 Thread gjs
Hi,

Looks ok, you need to wait a few minutes before the emulator starts,
also look in eclipse log for any errors.

Regards

On Nov 21, 9:53 pm,  wrote:
> Speak Lord, in peace?
> Friends, I need help, what version we are using Eclipse with Android?
>
> I'm new and I'm embarrassed about it: already installed the Android Eclipse 
> several times but can not run any application!
>
> When run command simply opens the Android emulator screen and displays a 
> message in the center of the screen 'ANDROID' and stands ...
>
> Already installed and uninstalled Eclipse several times, installed the 
> Android plugin online and offline ... and nothing ever the same behavior.
>
> I downloaded Eclipse Classic Indigo site:www.eclipse.org
>
> I downloaded the Android plugin 
> sites:https://dl-ssl.google.com/android/eclipse/http://dl.google.com/android/ADT-15.0.1.zip
>
> I downloaded the SDK 
> addresses:http://dl.google.com/android/android-sdk_r15-windows.ziphttp://dl.google.com/android/installer_r15-windows.exe
>
> I am using Windows XP, I thought to be the Android version, I downloaded all 
> ... and continue the mistake!
>
> Is it the version of Eclipse?
> Am I doing stupid things?
>
> thank you
>
> Francisco
>
> PS: Sorry for the bad English, I'm using a translator

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

2011-11-21 Thread gjs
Hi,

Did you change all url's from http: to https: ?

Also this might help - http://exampledepot.com/egs/javax.net.ssl/TrustAll.html

Regards

On Nov 18, 11:37 pm, Mike Mike  wrote:
> I need to develop an application that bring data from google.com/
> contacts. I have manage to do that in java  but in android I have
> some problems with ssl comunication. Caused by:
> javax.net.ssl.SSLException: Connection closed by peer) -  Android
> untrust my connection.
>
> I have used this exemple:  
> http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s...
> - in java works fine but in android  it bring a SSLException.
>
> Also I've tried this 
> exemple:http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-...
> , but same problem with https request. What should I do?
>
> 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: createRfcommSocket

2011-11-21 Thread gjs
Hi,

I find the Galaxy S2 quite problematic with bluetooth as well, often
needing to stop & start bluetooth in order to get it to device to
connect. I found it is more reliable using the undocumented method you
mentioned as well as using the insecure versions of the same method
calls and that this seems to work ok on all the devices I have tested
with - GS2, Nexus 1, Nexus S, Xperia Arc, LG 2x, HTC Evo 3D & Motorola
Xoom.

As far as what the diferences are it is best if you read through the
Android source code.

Regards

On Nov 18, 5:07 am, John  wrote:
> Our app uses a bluetooth connection and has been working fine for
> about a year. On a new Samsung G S2 phone we are seeing a problem
> connection the socket. The error is 'Service discovery failed'.
>
> Now we've seen this on HTC phones, and the solution was to include a
> call to createRfcommSocket, if the call to
> createRfcommSocketToServiceRecord failed. But the same code isn't
> working on this Samsung.
>
> So I am thinking that maybe by forcing the call to createRfcommSocket
> we can get this to work.
>
> However I cannot find any information about what createRfcommSocket is
> doing, differently than createRfcommSocketToServiceRecord. Is there
> any information on what that call does?
>
> Are there any other ideas on how to resolve this issue that doesn't
> include using an undocumented call?
>
> 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] Bizarre issue on Galaxy Tab 8.9: no options menu?

2011-11-21 Thread Mark Murphy
On Mon, Nov 21, 2011 at 7:59 PM, Adam Ratana  wrote:
> My app seems to not be showing a "menu" link in the honeycomb system bar at
> the bottom of the screen on one of my users' Galaxy Tab 8.9 running 3.1.
> He sent me a screenshot of this asking how he can access the
> menu/preferences, which works fine on his phone.
> My app DOES show the "menu" link on my Galaxy Tab 10.1.  I haven't done much
> optimization for tablets yet, other than some layout/font size things,
> haven't played with Fragments much yet.
> But I'm wondering, is this something anyone else has encountered?  If so,
> what would be a way to solve it?  If not, any ideas on what could be going
> on here?

No. But one likely workaround would be to set targetSdkVersion="11" or
higher, so you get the action bar and your options menu appears there.

-- 
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] Bizarre issue on Galaxy Tab 8.9: no options menu?

2011-11-21 Thread Adam Ratana
My app seems to not be showing a "menu" link in the honeycomb system bar at 
the bottom of the screen on one of my users' Galaxy Tab 8.9 running 3.1.   
He sent me a screenshot of this asking how he can access the 
menu/preferences, which works fine on his phone.

My app DOES show the "menu" link on my Galaxy Tab 10.1.  I haven't done 
much optimization for tablets yet, other than some layout/font size things, 
haven't played with Fragments much yet. 

But I'm wondering, is this something anyone else has encountered?  If so, 
what would be a way to solve it?  If not, any ideas on what could be going 
on here?

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

[android-developers] Touch to erase portions of foreground ImageView to expose background View

2011-11-21 Thread Diego Tori
So I've been struggling with this for a better part of a day. Suppose
I have a custom ImageView that I want to overlay over a background
View (both within a RelativeLayout), which when touched, it erases
portions of the View's source bitmap like the erase tool in MS Paint,
exposing the View below it. I've checked pretty much all of the
threads (like this one:
http://groups.google.com/group/android-developers/browse_thread/thread/5b0a498664b17aa0/de4aab6fb7e97e38?lnk=gst&q=erase+transparent#
) and they suggest to use PorterDuff SRC Mode in the Paint object as
well as creating a Canvas out out the ARGB_ shadow copy of the
source bitmap to apply the masking.

Also, I can't set the source of the overlay ahead of time since I have
to download it over the network so that the ImageView's scale type
takes care of the scaling for me.

Every time I override onDraw, when I apply the erase on the IV's
Bitmap, it unveils a black background instead of the view below it,
even though I set the background to transparent. So I'm at my last
rope as to what to do in order to unveil the background view.

Here's what I have so far:


view constructor:

paint.setXfermode(new 
PorterDuffXfermode(PorterDuff.Mode.CLEAR));
paint.setColor(Color.TRANSPARENT);
paint.setStyle(Paint.Style.STROKE);
paint.setStrokeJoin(Paint.Join.ROUND);
paint.setStrokeWidth(STROKE_WIDTH);
paint.setAntiAlias(true);

overrode setImageBitmap to set my canvas from my re-configed source
bitmap:

public void setImageBitmap(Bitmap bitmap){
super.setImageBitmap(bitmap);
Drawable bd = getDrawable();
if(bd == null){
return;
}

Bitmap fullSizeBitmap = ((BitmapDrawable) bd).getBitmap();
overlay = fullSizeBitmap.copy(Config.ARGB_, true);
c2 = new Canvas(overlay);
}


onDraw method:

protected void onDraw(Canvas canvas) {
/*
 * Override paint call by re-drawing the view's Bitmap first, 
then
overlaying our path on top of it
 */
Drawable bd = getDrawable();
if(bd == null){
return;
}
Bitmap fullSizeBitmap = ((BitmapDrawable) bd).getBitmap();
if(fullSizeBitmap != null && c2 != null){
canvas.drawColor(Color.TRANSPARENT);
c2.drawBitmap(fullSizeBitmap, 0, 0, null);
c2.drawPath(path, paint);
canvas.drawBitmap(overlay, 0, 0, null);
}
}

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


Re: [android-developers] Need urgent Help for Overlays in android maps

2011-11-21 Thread TreKing
On Sun, Nov 20, 2011 at 11:17 AM, raj mhalotra  wrote:

> But now the problem is I want that map to zoomin and zoom out with the
> original map.
>

OK.


> Can anyone please help me.
>

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

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

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

Re: [android-developers] NoClassDefFoundError

2011-11-21 Thread TreKing
On Mon, Nov 21, 2011 at 6:47 AM, rachana govilkar <
rachana.govil...@gmail.com> wrote:

> I am getting this error frequently when i execute my
> app..RegionStandardMapActivity class does existbut am not
> getting where i have made a mistake.please anyone can help???
>

Was it declared in your manifest?

-
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] XML file parsing ............

2011-11-21 Thread TreKing
On Sun, Nov 20, 2011 at 2:54 AM, parth hargan  wrote:

> friends i am having am URL, from which i would get XML code and need to
> parse it to extract details from it .
>

Jesus. http://bit.ly/uJBD7q

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

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

Re: [android-developers] Android 2.2 download

2011-11-21 Thread TreKing
On Sun, Nov 20, 2011 at 1:18 AM, Nirmal George  wrote:

> MY PHONE IS WORKING ON ANDROID 2.1, HOW CAN I UPGRADE TO 2.2, WHERE IS THE
> LINK ???
>

Here is the link. http://bit.ly/uQynLK


> DO I  NEED TO PAY FOR DOWNLOAD ???
>

Yes. Please send $10,000 via Paypal to my email. Your download will start
automatically upon receipt. Thanks.

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

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

Re: [android-developers] android application which communicates with one central database?

2011-11-21 Thread TreKing
On Sun, Nov 20, 2011 at 7:20 AM, mark kelly  wrote:

> Can anyone point me to tutorials or resources on this sort of development?
>

Google "web database server restful" or some combination of said terms.
This is not Android-specific.

-
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] Need urgent Help for Maps custom Tiles in android

2011-11-21 Thread TreKing
On Sun, Nov 20, 2011 at 2:01 PM, nikhil  wrote:

> I am also told to overwrite/overlay the default map with the customized
> image of the area(say garden).
>

Have you read the maps TOS? Because that may very well violate them.

After lot of search I found that Maps Tiles is one of the option.
> But again I am really stuck on this, as I really don't know how to use
> the tiles. I mean I have no idea how to create use...
> I also found many Blogs, forums suggesting other about some osmdroid
> stuff... and many other option
>

http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapView.html#onDraw(android.graphics.Canvas)


> So I am really confused to what / how to do this.
> Please help me to complete this... My Job hangs on this
>

Best of luck in your upcoming job search.

(I'm sorry, I couldn't help myself.)

-
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] Zoom using Multi touch

2011-11-21 Thread TreKing
On Mon, Nov 21, 2011 at 4:44 AM, Manivannan wrote:

> i have 3 images in Relative layout.i want to zoom entire layout including
> images.
>

Cool. Thanks for sharing. Now get to work.
http://www.catb.org/~esr/faqs/smart-questions.html

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

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

Re: [android-developers] Geopoint range of values

2011-11-21 Thread TreKing
On Mon, Nov 21, 2011 at 12:02 AM, AndroidCoder wrote:

> Is the range for geopoint latitude is from -80 to + 80?


Try reading the documentation for GeoPoint. It will blow your mind.

-
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] Best way to handle incoming call and Network connectivity

2011-11-21 Thread Tommy Hartz
Hi everyone,

I am trying to figure out the best way to handle this situation. My app will
need to use the internet to check for certain things. Sometimes it is a
multi part request, meaning I call one web service to get certain data pass
it back to the phone and if needed call another web service. My question is
what would be a good way to handle stopping these requests if a phone call
comes in and it kills my network connectivity so I can avoid a force close?

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


Re: [android-developers] Adding a view to Overlay in MapView Or Animation in overlay in mapview

2011-11-21 Thread TreKing
On Mon, Nov 21, 2011 at 10:08 AM, cookie1986  wrote:

> I am able to create alpha animation independently in android project
> but I cannot put it over the map as an overlay.
>

Why not ?

-
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] Wildfire S - Unsupported Device Due To Manifest Settings

2011-11-21 Thread TreKing
On Sat, Nov 19, 2011 at 7:45 AM, Adam Greenwood
wrote:

> I do not know how to edit the manifest, as I created it in Flash.
>

That would really be a question for Adobe then. You'll likely be hard
pressed to find anyone here that knows anything about that.

-
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: Digest for android-developers@googlegroups.com - 23 Messages in 11 Topics

2011-11-21 Thread Ali Chousein
What is "AndroiBidi class"? If it's something from Google probably
it's open source. Find its source code and you'll have the complete
logic you need.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/store/products/994

On Nov 21, 1:14 pm, do die  wrote:
> Can anyone tel me the functionality of directions() method in
> AndroiBidi class.I need complete logic how android fills directions
> array.
>

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

2011-11-21 Thread Ali Chousein
If you already have the Facebok Android SDK, study Facebook Graph API
also: https://developers.facebook.com/docs/reference/api/  All
information is there, documented and explained very well.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/store/products/994

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Disappearing files from Storage Card on Droid Incredible?

2011-11-21 Thread Nathan
While its possible, I'm not putting SQLite oddities at the top of the
list. It appears the file actually is missing.

Urban Airship client for inapp purchases puts downloads in a directory
structure like this:
sdcard/iap/downloads//

The iap folder under sdcard was missing when the customer checked it.
In fact the sdcard had very few folders at the top level.

Storage card failure is near the top, though it just seems to happen a
lot with the Incredible.

Nathan

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


Re: [android-developers] Re: Activity animation

2011-11-21 Thread TreKing
On Mon, Nov 21, 2011 at 12:04 PM, Neilz  wrote:

> The function *is* being called on the new activity. It's when the user
> clicks 'back' and the activity disappears, that I want to add an exit
> animation.
>

Let me rephrase - did you try calling that method on *both* activities or
just one?

-
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] Blank Map When download app Android Market

2011-11-21 Thread TreKing
2011/11/21 Duygu Kahraman 

> i solve my problem.
>

Good.

Hi Treking.Do you have got same problem?
>

Uh ... nope :)

-
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] How come there is no PROFILE specific URI for raw contact data in the contact api?

2011-11-21 Thread Satya Komatineni
I see that there is a URI for inserting/contributing a raw contact to
the new (4.0) personal profile

ContactsContract.Profile.CONTENT_RAW_CONTACTS_URI

I am able to use this URI to insert a raw contact (with a specific
account type and name) into the personal profile.

However I don't see a corresponding URI for the Data contract such as

ContactsContract.Data.PROFILE_CONTENT_URI

How do one go about addint a data element to a raw contact that
contributes to a profile?

For example I ran the following code

private void insertPhoneNumber(long rawContactId)
{
  ContentValues cv = new ContentValues();
  cv.put(Data.RAW_CONTACT_ID, rawContactId);
  cv.put(Data.IS_USER_PROFILE, "1");
  cv.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
  cv.put(Phone.NUMBER,"P123 123 " + rawContactId);
  cv.put(Phone.TYPE,Phone.TYPE_HOME);
  this.mContext.getContentResolver().insert(Data.CONTENT_URI, cv);
  if (puri == null) {
  log("Not able to insert phone number");
  }
  else {
  log("Not able to insert phone number");   
  }
}

This returns a NULL phone uri indicating that the operation failed.

I am not able to get a clear picture from the documentation. I see
that there are two databases: one for the regular contacts
(contacts.db) and one for the profile contacts (profile.db). I also
see that the raw contacts for profile and the regular contacts are
kept separately.

However I am not able to insert a data value for a personal profile
raw contact.

Appreciate if someone can clarify

Thanks
Satya

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

2011-11-21 Thread cellurl
watch a movie on how to setup eclipse and sign your app...
http://goo.gl/9gtgC

-cellurl

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 install APK which has more than 50MB from the Android Market?

2011-11-21 Thread Oldes
Hi,

we have a game made in AIR which we would like to put on the Android
Market. The problem is, that the game for the hi-resolution has 179MB.
I would like to know how we must modify it so it would be possible to
install it from the Android Market, which should support app up to
4GB, but in separated files, but I cannot find technical detail how
it's supposed to work... when I put my multimedia assets like music a
graphics to additional archive, how the game will work with it? Will
the main app found these files like if they would be in one APK, which
we have now?

Thank you,

Oldes

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

2011-11-21 Thread Duygu Kahraman
i solve my problem.

Hi Treking.Do you have got same problem?

21 Kasım 2011 19:48 tarihinde TreKing  yazdı:

> On Mon, Nov 21, 2011 at 10:30 AM, Duygu Kahraman <
> duygu.kahram...@gmail.com> wrote:
>
>> I signed the app and upload Android Market. When i dowload this app
>> for check i see the map blank.
>>
>
> Did you test your signed version *before* uploading and then redownloading
> from the Market.
> Please say yes. In which case, did it work then?
>
>
> -
> 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
>



-- 
---
Duygu Kahraman

http://tr.linkedin.com/in/duygukahramann

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

2011-11-21 Thread vedika nimje
Thank u Mark for ur help. U r truely a good friend. Thanks a lot.
On Nov 18, 2011 2:09 AM, "Mark Murphy"  wrote:

> When the button is clicked (e.g., android:onClick attribute), call
> startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); where
> url is the URL you want to link to.
>
> On Thu, Nov 17, 2011 at 2:09 AM, vedika nimje  wrote:
> > How to link a web page through a button.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Android & WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY

2011-11-21 Thread Ravi Singh
I am trying to get multiple touch events on a system overlay view, but
am only receiving the MotionEvent.ACTION_OUTSIDE event.

Is there any possible way of getting multiple touch events on a system
overlay?

Any examples or links would be very helpful.

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


[android-developers] Need urgent Help for Overlays in android maps

2011-11-21 Thread raj mhalotra
Hi All new to android. 
I am given a task to create a application which includes adding a custom 
map on the existing google map.
I think that can be done with help of overlays.
But now the problem is I want that map to zoomin and zoom out with the 
original map.
Can anyone please help me.

Raj

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

2011-11-21 Thread Raymond C. Rodgers
It's probably a font, not code. Most fonts have a strikethru character 
set and the operating  system simply chooses it when indicated. I don't 
have an answer for this particular request other than the possibility of 
using a custom font, and then I'm not sure if it's possible to use it 
within an Android app...


On 11/19/2011 9:41 PM, Zsolt Vasvari wrote:

Get the source code for the class that implements strikethru and
modiify it to your liking.

On Nov 20, 4:43 am, Jay  wrote:

Is it possible to to create a span of text in a textview in which the
strikethru line is a different color than the text. I cannot find much
documentation on the SpannableString interface.

Thanks,
Jay


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


[android-developers] ArrayAdapter not updating its ListView

2011-11-21 Thread scottishwildcat
Are their known issues with ArrayAdapters not updating their corresponding 
ListViews, even when you're just using the standard add(), remove(), 
insert() methods that are supposed to update them automatically?

In my activity I'm declaring:

public class ShoppingListAdapter extends ArrayAdapter{
>
> public ShoppingListAdapter(Context c, int layoutId, 
> ArrayList itemList){
>
> super(c, layoutId, itemList);
>
> } 
>
> @Override
>
> public View getView(int position, View convertView, ViewGroup parent) {
>
>
>  CheckedTextView rowView = (CheckedTextView)convertView;
>
>  
>
> if (rowView==null){
>
> LayoutInflater inflater = getLayoutInflater();
>
> rowView = (CheckedTextView)inflater.inflate(android.R.layout.
> simple_list_item_multiple_choice, parent, false);
>
> }
>
> rowView.setText(shoppingItems.getItem(position).getName());
>
> rowView.setChecked(shoppingItems.getItem(position).isChecked());
>
>
> return rowView;
>
> }
>
> }
>
>  private ShoppingListAdapter slAdapter;
>

where ShoppingListItem is a simple class containing a String (the shopping 
list item name) and a Boolean (whether it is currently checked in the 
ListView). 

In some parts of my activity, adding or removing list items using the 
adapter's add() and remove() methods works fine. In others, the view 
doesn't update itself, even I explicitly call notifyDataSetChanged, which I 
shouldn't have to (notification is turned on by default for new 
ArrayAdapters). In one case, re-assigning the existing adapter to the 
ListView immediately after calling remove() inexplicably triggers the 
correct behavior. In other cases, it has no effect. If I remove() the first 
item in the array, it will disappear from the ListView, but its checkbox 
state will transfer to the new first item in the ListView. If I remove() 
the last item and then add a new one, I won't see the new item, but instead 
whatever used to be the last item before I deleted it.

Are ArrayAdapters just fundamentally somewhat broken? (I'm currently 
targeting 2.3.3, API 10, FWIW.)

Cheers,
Calum.

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

[android-developers] Convert AMR to MP3

2011-11-21 Thread Giuseppe Porcelli- FINM
Dear All,

someone can help me to convert AMR file to MP3 on the device? No experience
with NDK only JAVA.

 

Thank's

Giuseppe

 

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

[android-developers] Looking for Java/Android Mobile Developer for an IT Company based in Ortigas

2011-11-21 Thread Ronald
Hi All,

My name is Ronald Valencia, and I am a recruitment consultant.  I am
currently doing recruitment services to Code8 Technology Solutions,
(www.code8tech.com) a company based in Ortigas, Pasig City who
specializes in outsourced software development and design on various
platform which includes web and mobile, and we are currently looking
for a Java Mobile Developers.

Basically, we are looking for someone with:

•   Experience in mobile development using Java
•   Knowledge in XML
•   Android OS would be an advantage
•   Preferably with experience in network programming, audio/video
formats and encoding
•   Ability to understand Flash and PHP codes
•   Good English communications skills
•   Willing to travel abroad

Successful candidates would be part of a development team working on
mobile English learning application based on android and would
interact with a global team in defining requirements implementing
solutions and tracking progress.  Possible travel opportunity to Japan
awaits the successful candidates.

Let me know if you are interested by sending your updated CV, salary
information and expectations and availability to
racvalen...@gmail.com.

Thanks and looking forward to your response.



Regards,

Ronald Valencia
Recruitment Consultant
Mobile: +63 9228028251

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 application which communicates with one central database?

2011-11-21 Thread mark kelly
Hi
Im new to android development. The application I would like to write
needs to have one database on a server, which all instances of the
application needs to communicate with simply. So there will be no
database on each android, just an ability to send info to the central
database. Can anyone point me to tutorials or resources on this sort
of development? A lot of the tutorials i looked at just seem to have
native databases on each android...
Thanks
Mark

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


[android-developers] NoClassDefFoundError

2011-11-21 Thread rachana govilkar
11-21 18:12:52.874: ERROR/AndroidRuntime(282): FATAL EXCEPTION: main
11-21 18:12:52.874: ERROR/AndroidRuntime(282):
java.lang.NoClassDefFoundError:
com.accommodation.activity.RegionStandardMapActivity
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
com.accommodation.activity.MainRegionDetailsActivity
$1.onClick(MainRegionDetailsActivity.java:59)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
android.view.View.performClick(View.java:2408)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at android.view.View
$PerformClick.run(View.java:8816)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
android.os.Handler.handleCallback(Handler.java:587)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
android.os.Handler.dispatchMessage(Handler.java:92)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
android.os.Looper.loop(Looper.java:123)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
android.app.ActivityThread.main(ActivityThread.java:4627)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
java.lang.reflect.Method.invokeNative(Native Method)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
java.lang.reflect.Method.invoke(Method.java:521)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-21 18:12:52.874: ERROR/AndroidRuntime(282): at
dalvik.system.NativeStart.main(Native Method)


I am getting this error frequently when i execute my
app..RegionStandardMapActivity class does existbut am not
getting where i have made a mistake.please anyone can 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] WebView lost JavaScript update contents after called goBack()

2011-11-21 Thread alex
I have a problem that when I click back button on a WebView, my
previous page losts all contents updated by JavaScript.

My steps in WebView was below:
- after Main page loaded, JavaScript starts update contents, like
refresh shoppings with links;
- user will see some shopping lists after updated;
- then user click each link will load new url in same WebView;
- user click back to Main page;

the problem is when user back to Main page, user cannot see any
shopping updated by JavaScript, they were gone!
I tried my page on IE and FF, both works fine, but had problem on
Android WebView. I'm not sure this issue caused by I'm not set some
settings correctly or other issues.

My sample code as below:

// set settings for webview
WebSettings webSettings = web.getSettings();
webSettings.setBuiltInZoomControls(true);
webSettings.setJavaScriptEnabled(true);
webSettings.setUseWideViewPort(true);
webSettings.setDomStorageEnabled(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);

// call JavaScript to update shoppings
webView.loadUrl("javascript:addShoppings(" + str + ");");

// add interface for callback
webView.addJavascriptInterface(new
BusinessJavaScriptInterface(), "business");

final class BusinessJavaScriptInterface
{
public void businessListReceived()
{
... ...
}
}

// handle back key event
public boolean onKeyDown(int keyCode, KeyEvent event)
{
WebView web = (WebView) this.findViewById(R.id.browser);
if (web != null)
{
if ((keyCode == KeyEvent.KEYCODE_BACK) && web.canGoBack())
{
web.goBack();
return true;
}
return super.onKeyDown(keyCode, event);
}
return false;
}

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


[android-developers] Crop issuing,

2011-11-21 Thread Mukesh Srivastav
When i trying for Crop using Camera Crop intent, It shows a
Rectangle ,when i select an object from the pic, the whole Rectangle
box is getting re-sized.

please help me in is regards,
Mukesh

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


[android-developers] Widget not working on spb shell 3d

2011-11-21 Thread Giuseppe
Dear All,
I have developed a widget that work very well on my device.

But the same widget don't wont to work on SPB Shell 3d (home
switcher), the widget is unable to send or receive broadcast.

Please any help is helpfully.

Giuseppe

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


[android-developers] Broken link at Tutorial

2011-11-21 Thread Sergey
http://developer.android.com/resources/tutorials/hello-world.html

The first link at page, "Building and Running from the Command Line"
leads to http://guide/developing/building/building-cmdline.html, must
be a 
http://developer.android.com/guide/developing/building/building-cmdline.html

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


[android-developers] XML file parsing ............

2011-11-21 Thread parth hargan
friends i am having am URL, from which i would get XML code and need
to parse it to extract details from it .

can any one help me for the same  that how to fire url
and where to store the returend xml code and how to parse it

thank you 

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


[android-developers] Android 2.2 download

2011-11-21 Thread Nirmal George
HI,

MY PHONE IS WORKING ON ANDROID 2.1, HOW CAN I UPGRADE TO 2.2, WHERE IS
THE LINK ???

DO I  NEED TO PAY FOR DOWNLOAD ???

PLS ADVICE

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] Android implementation of the EGNOS SDK

2011-11-21 Thread Matteo gps
Hello,

surfing on the EGNOS website (the European service augmenting for free
GPS signal) I found out that the European Commission has released an
open-source SDK for Android. Thanks to the SDK smartphone app
developers can exploit EGNOS features: increased accuracy and
reliability of the position. The SDK is downloadable for free at:

http://www.egnos-portal.eu/developer-platform/egnos-toolkits

Besides the SDK, all the necessary information is available on the
website,  including a Demo App, HowTos, Videos..

Higher GPS position accuracy and reliability (they call this feature
""integrity"") seem to be nice opportunities to develop innovative
apps.  Unfortunately,  at the moment an external receiver is
required!

>From what I see,  this depends on the fact that the EGNOS SDK needs to
access ""pure"" GPS information, as it is sent by the satellites and
received by the GPS chip, and this information is not made available
to and by the OS. GPS data are elaborated and then sent out only in
the form of spatial coordinates.

It looks like that, in order to benefit from the EGNOS advantages,
Google should integrate this SDK into its OS...

Do you think we will see that? I hope so!

Best,

Matteo

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


[android-developers] Looking for Java/Android Mobile Developer for an IT Company based in Ortigas

2011-11-21 Thread Ronald
Hi All,

My name is Ronald Valencia, and I am a recruitment consultant.  I am
currently doing recruitment services to Code8 Technology Solutions,
(www.code8tech.com) a company based in Ortigas, Pasig City who
specializes in outsourced software development and design on various
platform which includes web and mobile, and we are currently looking
for a Java Mobile Developers.

Basically, we are looking for someone with:

•   Experience in mobile development using Java
•   Knowledge in XML
•   Android OS would be an advantage
•   Preferably with experience in network programming, audio/video
formats and encoding
•   Ability to understand Flash and PHP codes
•   Good English communications skills
•   Willing to travel abroad

Successful candidates would be part of a development team working on
mobile English learning application based on android and would
interact with a global team in defining requirements implementing
solutions and tracking progress.  Possible travel opportunity to Japan
awaits the successful candidates.

Let me know if you are interested by sending your updated CV, salary
information and expectations and availability to
racvalen...@gmail.com.

Thanks and looking forward to your response.



Regards,

Ronald Valencia
Recruitment Consultant
Mobile: +63 9228028251

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

2011-11-21 Thread gorge smith
The regular Android Training  certainly cover 
these topics as well, along with a wider breadth of the platform internals. 
They are generally lengthier and more comprehensive than their accelerated 
counterparts. These courses are also more expensive, require more time 
commitment, and, for an experienced programmer or tech wizard, are simply 
redundant. Students leave the accelerated training with a solid base in 
Android development that enables them to rapidly acquire and perfect their 
Android skills in real-world scenarios.

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

[android-developers] WebView lost JavaScript update contents after called goBack()

2011-11-21 Thread alex
I have a problem that when I click back button on a WebView, my
previous page losts all contents updated by JavaScript.

My steps in WebView was below:
- after Main page loaded, JavaScript starts update contents, like
refresh shoppings with links;
- user will see some shopping lists after updated;
- then user click each link will load new url in same WebView;
- user click back to Main page;

the problem is when user back to Main page, user cannot see any
shopping updated by JavaScript, they were gone!
I tried my page on IE and FF, both works fine, but had problem on
Android WebView. I'm not sure this issue caused by I'm not set some
settings correctly or other issues.

My sample code as below:

// set settings for webview
WebSettings webSettings = web.getSettings();
webSettings.setBuiltInZoomControls(true);
webSettings.setJavaScriptEnabled(true);
webSettings.setUseWideViewPort(true);
webSettings.setDomStorageEnabled(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);

// call JavaScript to update shoppings
webView.loadUrl("javascript:addShoppings(" + str + ");");

// add interface for callback
webView.addJavascriptInterface(new
BusinessJavaScriptInterface(), "business");

final class BusinessJavaScriptInterface
{
public void businessListReceived()
{
... ...
}
}

// handle back key event
public boolean onKeyDown(int keyCode, KeyEvent event)
{
WebView web = (WebView) this.findViewById(R.id.browser);
if (web != null)
{
if ((keyCode == KeyEvent.KEYCODE_BACK) && web.canGoBack())
{
web.goBack();
return true;
}
return super.onKeyDown(keyCode, event);
}
return false;
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 Android4.0 (ICS) support Multiple Display just as Windows/MacOSX ?

2011-11-21 Thread macrogram
Hi All:

   I try to develop display drivers for USB->Graphics device.
   It seems Android do NOT support multiple display (Mirror Mode,
Extend Mode ) officially although Qualcomm has developped "mirroring
display via HDMI".

   My questions:
  1. Does Android4.0 (ICS) support multiple display (Mirror Mode,
Extend Mode) just as Windows/MacOSX,

  2. If Android4.0 (ICS) does NOT support multiple display yet, then:
  Has this feature been listed in the development plan of Android?
When to support multiple display feature ?

  Please give me your kindly hands, thanks a lot ...

B.R.

Macrogram

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


[android-developers] Please Help, DalvikVM, Check Verify Failed at VFY: register1 v0 type 12, wanted, Rejected Opcode

2011-11-21 Thread Soma
Hi All,

If you find this recurring post, sorry my first post was not yet approved 
at time of Posting this and it is quite urgent for me to wait...

I'm currently working on a Wrapper for Android, Which wraps an android
apk with some DRM related stuff.. which are by the way Android
activities..


The activities i had created worked perfectly when I tested them in an
Emulator as well as on a Device.

I tried integrating it with an Application from our org's apps
store... Steps below

* Extracted the apk with apktool
* Extracted class files with dex2jar
* added the class files to an Eclipse android project as classes
folder
* Added the activity def from the original app manifest to my manifest
* Compiled and Launched the app from eclipse


Note : The activities I had created are working very fine.. They load
complete their work and try to launch the game application i was using
to Test Integration.

here's when I come across the VerifyError

11-20 22:44:07.670: W/System.err(281): at
java.lang.Thread.run(Thread.java:1096)
11-20 22:44:08.050: W/dalvikvm(281): VFY: register1 v0 type 12, wanted
10
11-20 22:44:08.050: W/dalvikvm(281): VFY: register1 v1 type 12, wanted
10
11-20 22:44:08.050: W/dalvikvm(281): VFY:  rejecting opcode 0x71 at
0x0016
11-20 22:44:08.050: W/dalvikvm(281): VFY:  rejected Lao;.a (Ldh;)I
11-20 22:44:08.050: W/dalvikvm(281): Verifier rejected class Lao;
11-20 22:44:08.060: D/AndroidRuntime(281): Shutting down VM
11-20 22:44:08.060: W/dalvikvm(281): threadid=1: thread exiting with
uncaught exception (group=0x4001d800)
11-20 22:44:08.170: E/AndroidRuntime(281): FATAL EXCEPTION: main
11-20 22:44:08.170: E/AndroidRuntime(281): java.lang.VerifyError: ao
11-20 22:44:08.170: E/AndroidRuntime(281): at
ca.jamdat.flight.trivialpursuit_hvga_eu.FlAndroidApp.onCreate(Unknown
Source)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.os.Handler.dispatchMessage(Handler.java:99)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.os.Looper.loop(Looper.java:123)
11-20 22:44:08.170: E/AndroidRuntime(281): at
android.app.ActivityThread.main(ActivityThread.java:4627)
11-20 22:44:08.170: E/AndroidRuntime(281): at
java.lang.reflect.Method.invokeNative(Native Method)
11-20 22:44:08.170: E/AndroidRuntime(281): at
java.lang.reflect.Method.invoke(Method.java:521)
11-20 22:44:08.170: E/AndroidRuntime(281): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-20 22:44:08.170: E/AndroidRuntime(281): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-20 22:44:08.170: E/AndroidRuntime(281): at
dalvik.system.NativeStart.main(Native Method)




Please Help

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

[android-developers] Dalvik VM Verify Error

2011-11-21 Thread Soma
Hi All,

I'm currently working on a Wrapper for Android, Which wraps an android
apk with some DRM related stuff.. which are by the way Android
activities..

The activities i had created worked perfectly when I tested them in an
Emulator as well as on a Device.

I tried integrating it with an Application from our org's apps
store... Steps below

* Extracted the apk with apktool
* Extracted class files with dex2jar
* added the class files to an Eclipse android project as classes
folder
* Added the activity def from the original app manifest to my manifest
* Compiled and Launched the app from eclipse


Note : The activities I had created are working very fine.. They load
complete their work and try to launch the game application i was using
to Test Integration.

here's when I come across the VerifyError

11-20 22:44:07.670: W/System.err(281):  at
java.lang.Thread.run(Thread.java:1096)
11-20 22:44:08.050: W/dalvikvm(281): VFY: register1 v0 type 12, wanted
10
11-20 22:44:08.050: W/dalvikvm(281): VFY: register1 v1 type 12, wanted
10
11-20 22:44:08.050: W/dalvikvm(281): VFY:  rejecting opcode 0x71 at
0x0016
11-20 22:44:08.050: W/dalvikvm(281): VFY:  rejected Lao;.a (Ldh;)I
11-20 22:44:08.050: W/dalvikvm(281): Verifier rejected class Lao;
11-20 22:44:08.060: D/AndroidRuntime(281): Shutting down VM
11-20 22:44:08.060: W/dalvikvm(281): threadid=1: thread exiting with
uncaught exception (group=0x4001d800)
11-20 22:44:08.170: E/AndroidRuntime(281): FATAL EXCEPTION: main
11-20 22:44:08.170: E/AndroidRuntime(281): java.lang.VerifyError: ao
11-20 22:44:08.170: E/AndroidRuntime(281):  at
ca.jamdat.flight.trivialpursuit_hvga_eu.FlAndroidApp.onCreate(Unknown
Source)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.os.Handler.dispatchMessage(Handler.java:99)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.os.Looper.loop(Looper.java:123)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
android.app.ActivityThread.main(ActivityThread.java:4627)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
java.lang.reflect.Method.invokeNative(Native Method)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
java.lang.reflect.Method.invoke(Method.java:521)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-20 22:44:08.170: E/AndroidRuntime(281):  at
dalvik.system.NativeStart.main(Native Method)




Please Help

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


[android-developers] connecting to mysql database

2011-11-21 Thread mark kelly
Hi
Im trying to connect to a mysql database which is on localhost. i get
the error:

 Error in http connection
org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.2.2
refused

The code is:

package com.test.poll;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public class Poll extends Activity {
InputStream is;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String result = "";
//the year data to send
ArrayList nameValuePairs = new
ArrayList();
nameValuePairs.add(new BasicNameValuePair("year","1990"));

//http post
try{
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://10.0.2.2/
android/getAllPeopleBornAfter.php");
httppost.setEntity(new
UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
is = entity.getContent();
Log.e("log_tag", "connection success ");
Toast.makeText(getApplicationContext(), "pass",
Toast.LENGTH_SHORT).show();
}catch(Exception e){
Log.e("log_tag", "Error in http connection
"+e.toString());
Toast.makeText(getApplicationContext(),
"failed"+e.toString(), Toast.LENGTH_SHORT).show();

}
//convert response to string
try{
BufferedReader reader = new BufferedReader(new
InputStreamReader(is,"iso-8859-1"),8);
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
sb.append(line + "\n");
Toast.makeText(getApplicationContext(),
"pass", Toast.LENGTH_SHORT).show();
}
is.close();

result=sb.toString();
}catch(Exception e){
   Log.e("log_tag", "Error converting result
"+e.toString());
Toast.makeText(getApplicationContext(),
"failed"+e.toString(), Toast.LENGTH_SHORT).show();

}

//parse json data
try{
JSONArray jArray = new JSONArray(result);
for(int i=0;ihttp://groups.google.com/group/android-developers?hl=en


[android-developers] Need urgent Help for Maps custom Tiles in android

2011-11-21 Thread nikhil
Hi,
I am very new to android.
I am given a task to create a application which includes usage of
MapView.
I have managed to show the zoomed required location, add Markers using
overlays... on map with no errors...
Now the most difficult part for me and my problem:
I am also told to overwrite/overlay the default map with the
customized image of the area(say garden).
After lot of search I found that Maps Tiles is one of the option.
But again I am really stuck on this, as I really don't know how to use
the tiles. I mean I have no idea how to create use...
I also found many Blogs, forums suggesting other about some osmdroid
stuff... and many other option
So I am really confused to what / how to do this.
Please help me to complete this... My Job hangs on this

Thank you
Nikhil

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

2011-11-21 Thread khanh_qhi™
no ones answer?

On Fri, Nov 18, 2011 at 1:25 AM, khanh_qhi™  wrote:

> Hi all,
> Could someone tell me the way how to cutomize listview as spinner. I don't
> want use default spinner, because it's not nice.
> So, I just want to make it by my way. To be specific, I want it can be
> displayed as this image below.
> [image: image.png]
>
> --
> Regards,
> Khanh.
>



-- 
Regards,
Khanh.

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

[android-developers] Addictive

2011-11-21 Thread MosToneDef
Dear Google;

I've been a Chrome user since its release. I've visited your app
store  many times. I  recently received my Android phone and have been
perusing your Android Market.

I've noticed one very disturbing theme in both the Chrome Store &
Android Market: The use of the word "Addictive".

I don't have to go into issues of how bad this word is and how it's
tagged into so many game descriptions.
Another argument that works too is: How does a game developer decide
their game is "good enough" to become addictive? Utilizing this word/
term/phrase/social label as a sales gimmick, is gratuitous at best.


I would like Google to ask themselves these questions:


1. Do we want to be recognized  as a corporation that intentionally
produces content that we hope users will become addicted too?


2. What kind of consumer are we trying to attract with the term
"addictive"?


3. Why is the developer of this app resorting to the word "addictive"
and why doesn't the developer resort to other responsible language to
sell their product?


4. What responsible language can the developer use instead of the term
'addictive"?


5. When has the word "addictive" ever been a good word?


6. How is using the term "addictive" acceptable, but people who are
labeled "addicts", pariahs?


7. Do we need to rely on the word "addictive" as an ongoing selling
point?


8. Should Google have content that people simply want to use out of
need, not to fulfill an "addiction"?


9. Does Google want to rely on the term "addictive" as a statement of
quality and playability?


10. What is the difference between wanting to play a game & needing to
play a game?


11. Is Google willing to accept that, when an addictive state of mind
is realized, ALL choice is removed from our consumer?


12. Are individuals who are performing any act out of obsession or
compulsion, having and enjoyable experience?


13. Is our product something we want our customers to get better from?

I ask that Google make some changes. I also ask anyone reading this to
abstain from purchasing or interacting with any application that
contains the base word "addict" and all it's forms.


Finally, a simple word search in the Android market proves my point.
You get multiple hits in games. And you get even more multiple hits in
self help appsnow that's strange. It's like a candy company
selling insulin.

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


[android-developers] Want to develop Android app for Garmin Connect

2011-11-21 Thread ALi
Hi, i want to develop Android app for Garmin connect but i have not
find api from Garmin for Android, and i want to capture data from
Garmin connect to Android, please help me by giving Suggestion that
how should i approach for this task. 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] Reconnect on ACTION_SCREEN_ON - wifi icon incorrect

2011-11-21 Thread Keith Hill
I have a service that is using a BroadcastReceiver to watch for
ACTION_SCREEN_ON.  When that happens, I am using a wifimanager to turn
wifi back on and reconnect.  For some reason, I connect to the network
just fine, but the icon in the notification bar shows that I am not
connected.  Instead of showing the blue icon (honeycomb), it changes
to a semi white status icon, even though I have a connection.  It
almost looks like the status when it is in the process of connecting,
but not as white.  Any ideas as to why this would be happening?

The only way to fix it is to reboot the device.  Even turning the wifi
off and back on manually won't fix the icon error.

Help is greatly appreciated.

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


[android-developers] Bing Maps with WMS capabilities

2011-11-21 Thread krish
Hi,
  I am planning to build an app with Bing maps as background, and use
WMS to display other layers(eg: soils, weather, etc retrieved from my
server) on top of big maps. Any ideas on how to approach? Please help.

Thanks,
Krish

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


[android-developers] eglCreatePixmapSurface

2011-11-21 Thread joniy wu
I want to get a image by eglCreatePixmapSurface;but it show the
following error in log when  GL10 be used.

 ERROR/libEGL(2154): call to OpenGL ES API with no current context
(logged once per thread)


my code is :

public void init() {
if (!isInit) {
// initialize egl
egl = (EGL10) EGLContext.getEGL();
display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
egl.eglInitialize(display, null);
int[] configWant = {
EGL10.EGL_SURFACE_TYPE, 
EGL10.EGL_PIXMAP_BIT,
EGL10.EGL_RED_SIZE, 5, 
EGL10.EGL_GREEN_SIZE, 6,
EGL10.EGL_BLUE_SIZE, 5, 
EGL10.EGL_DEPTH_SIZE, 16,
EGL10.EGL_NONE };
EGLConfig[] configs = new EGLConfig[1];
int[] num_config = new int[1];
egl.eglChooseConfig(display, configWant, configs, 1, 
num_config);
bmp = Bitmap.createBitmap(100, 100, Config.ARGB_);
g = new Canvas(bmp);
p = new Paint();
context = egl.eglCreateContext(display, configs[0],
EGL10.EGL_NO_CONTEXT, null);
surface = egl
.eglCreatePixmapSurface(display, 
configs[0], bmp, null);
egl.eglMakeCurrent(display, surface, surface, context);
gl = (GL10) context.getGL();
initData(gl);
delta = -1;
if (fps > 0) {
delta = 1000 / fps;
}
isInit = true;
}
}
@Override
public void run() {
init();
while (isInit) {
if (running) {
int w;
int h;
loopTime = System.currentTimeMillis();
synchronized (this) {
w = width;
h = height;
}
if (resize) {
resize(gl, w, h);
resize = false;
}

runX();
paint(gl);

// egl.eglSwapBuffers(display, surface);
g.drawBitmap(bmp, 0, 0, p);

if (egl.eglGetError() == 
EGL11.EGL_CONTEXT_LOST) {
Context c = getContext();
if (c != null && c instanceof Activity) 
{
((Activity) c).finish();
}
}
long time = System.currentTimeMillis() - 
loopTime;
try {
Thread.sleep(Math.max(1L, (long) delta 
- time));
} catch (InterruptedException e) {
e.printStackTrace();
}
} else {
try {
Thread.sleep(50);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}

protected void initData(GL10 gl) {
gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);

gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glLoadIdentity();
GLU.gluOrtho2D(gl, 0.0f, 1.3f, 0.0f, 1.0f);
gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
gl.glShadeModel(GL10.GL_SMOOTH);
}

... ...

How can I get a image from egl?
I want to add 3D effects in my program  using GL

kind regards,

joniy

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


[android-developers] cutomize lisview as spinner

2011-11-21 Thread khanh_qhi™
Hi all,
Could someone tell me the way how to cutomize listview as spinner. I don't
want use default spinner, because it's not nice.
So, I just want to make it by my way. To be specific, I want it can be
displayed as this image below.
[image: image.png]

-- 
Regards,
Khanh.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 bluetooth audio input (mic) works in frameworks.

2011-11-21 Thread lei wang
hi,
i am trying to figure out how bt mic works in frameworks. here is what
i found,
1. Phone.apk main the logic to connect headset and open sco socket.
2. looks like audio input data should come from
AudioHardwareInterface, which run in mediaserver.

the problem is there is no way to let the two processes, phone.apk &
mediaserver to share the sco socket.

what is the correct way to implement application that use bluetooth
microphone? how the frameworks make this happen?

this issue has blocked me several days.
Really appreciate if can get the correct answer.

thanks, --lw

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


[android-developers] flick listview on gallery

2011-11-21 Thread haru158
I use gallery in my application. SDK ver2.1
This gallery xml is like this.


 …
 …
 …
 …


This ImageView and TextView on xml is flickable.
But only ListView  is not flickable.
This ListView is not clickable, because I use areAllItemsEnabled in
ListView's adapter.

I want to flick ListView as ImageView, 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


[android-developers] A problem about GPS

2011-11-21 Thread Huiyu
Hi all
I just write a simple test about location listener.But when I start
the program, I get a log :

11-20 02:16:36.518: ERROR/Zygote(32): setreuid() failed. errno: 17
11-20 02:16:37.937: ERROR/BatteryService(67): usbOnlinePath not found
11-20 02:16:37.937: ERROR/BatteryService(67): batteryVoltagePath not
found
11-20 02:16:37.937: ERROR/BatteryService(67): batteryTemperaturePath
not found
11-20 02:16:37.957: ERROR/SurfaceFlinger(67): Couldn't open /sys/power/
wait_for_fb_sleep or /sys/power/wait_for_fb_wake
11-20 02:16:38.177: ERROR/SensorService(67): couldn't open device for
module sensors (Invalid argument)
11-20 02:16:44.217: ERROR/System(67): Failure starting core service
11-20 02:16:44.217: ERROR/System(67): java.lang.SecurityException
11-20 02:16:44.217: ERROR/System(67): at
android.os.BinderProxy.transact(Native Method)
11-20 02:16:44.217: ERROR/System(67): at
android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:
146)
11-20 02:16:44.217: ERROR/System(67): at
android.os.ServiceManager.addService(ServiceManager.java:72)
11-20 02:16:44.217: ERROR/System(67): at
com.android.server.ServerThread.run(SystemServer.java:206)
11-20 02:16:44.237: ERROR/EventHub(67): could not get driver version
for /dev/input/mouse0, Not a typewriter
11-20 02:16:44.237: ERROR/EventHub(67): could not get driver version
for /dev/input/mice, Not a typewriter
11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/
audio/ui/Effect_Tick.ogg
11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/
audio/ui/KeypressStandard.ogg
11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/
audio/ui/KeypressSpacebar.ogg
11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/
audio/ui/KeypressDelete.ogg
11-20 02:16:44.767: ERROR/SoundPool(67): error loading /system/media/
audio/ui/KeypressReturn.ogg
11-20 02:16:44.797: ERROR/UsbObserver(67):
java.lang.NullPointerException
11-20 02:16:44.797: ERROR/UsbObserver(67): at
com.android.server.UsbObserver.init(UsbObserver.java:131)
11-20 02:16:44.797: ERROR/UsbObserver(67): at
com.android.server.UsbObserver.(UsbObserver.java:65)
11-20 02:16:44.797: ERROR/UsbObserver(67): at
com.android.server.ServerThread.run(SystemServer.java:402)
11-20 02:16:45.597: ERROR/ThrottleService(67): Could not open GPS
configuration file /etc/gps.conf
11-20 02:16:46.287: ERROR/logwrapper(144): executing /system/bin/tc
failed: No such file or directory

then when I send a GPS in the DDMS, my program will die.My SDK version
is 9. I ever used the Version 7, then it is right.
Can anyone provide some information about it? Thank you.

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


[android-developers] Problem with google map on Android Emulator

2011-11-21 Thread Dhaval Varia
Dear,

I am working on Android emulator. 2.3.1 (Google API) API 9

The problem is i am working behind corporate proxy.

emulator doesnt allowed to open Google Maps.

*it gives error : **"this application requires active data connection"*


*Thanks & Best Regards.**
**

**
**Dhaval varia*
*Assistant Professor *
*Govt Engineering College,Modasa**
**(9924343883)**
*
*
*

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

[android-developers] Monkeyrunner

2011-11-21 Thread sangeesekar
Hi,

Apk and its Package name itself is enough to start the testing on the
app through monkey runner..

Regards,
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: urgent help for the project

2011-11-21 Thread John
Take a look at the documentation at http://developer.android.com/index.html.
Be prepared to spend a few hours looking it over.

Start with the Dev Guide.

If you've read the Dev Guide and still your questions are not
answered, look at the Resources tab where you can find sample code.

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


Re: [android-developers] Digest for android-developers@googlegroups.com - 23 Messages in 11 Topics

2011-11-21 Thread do die
Can anyone tel me the functionality of directions() method in
AndroiBidi class.I need complete logic how android fills directions
array.

On Mon, Nov 21, 2011 at 11:44 AM,   wrote:
>   Today's Topic Summary
>
> Group: http://groups.google.com/group/android-developers/topics
>
> No AVDs from Emulator since last update [1 Update]
> Is the ICS emulator calendar sync broken? [5 Updates]
> how to apply preference style in user-defined theme [2 Updates]
> How to set submenu header icon in XML? [1 Update]
> Lots of "the layout ID xyz is not valid" errors in ADT r15 [4 Updates]
> Action Bar [3 Updates]
> Is Spinner.setOnItemClickListener() supposed to work, or not? [2 Updates]
> Phone model penetration [2 Updates]
> Auto-rotate screen flag [1 Update]
> Multiple layouts [1 Update]
> How can I save image on sd card with onpreviewfame?? [1 Update]
>
>  No AVDs from Emulator since last update
>
> gus  Nov 20 09:39PM -0800
>
> I can no longer get any avds to launch.
> I can create them, but they will not start (from targets 2.2 up to
> 4.0)
> I am running Windows XP and have the latest updates for eclipse and
> android addons.
>
> Problems occurred after updates for both eclipse and android were
> installed 3 weeks ago (approx Oct 26th, 2011)
> Now I cannot get avds to load.
> I have installed and uninstalled the avds.
> I have run the emulator from the command line.
> I have re-installed sdk tools 15
> I have installed latest android and eclipse updates today (Nov21st,
> 2011)
> All to no avail.
>
> The error is ALWAYS the same and the debugger ALWAYS flags the SAME
> offset (see below).
>
> I have looked through, and tried, all the 'helps' that I can find
> including no snapshot, different resolutions, etc, etc, etc.
>
> I would have hoped the latest updates would fix it - - but I have now
> been without an avd for more than 3 weeks and it is seriously
> restricting my work.
>
> Please - Can Anyone Help?!?
>
> Details of problem:
>
> 1. Black Screen pops up, titled:
> SDL_app
>
> 2. then error message:
> emulator-arm.exe has encountered a problem and needs to close. We are
> sorry for the inconvenience.
>
> 3. and clicking 'further details' gives:
> AppName: emulator-arm.exe AppVer: 0.0.0.0 ModName: emulator-arm.exe
> ModVer: 0.0.0.0 Offset: 00078334
>
> 4. and clicking debug gives:
> C++ debugger
> unhandled exception in emulator-arm.exe: 0xC005: Access Violation
7C901230 int 3
> 7C901231 ret
> 7C901232 mov edi,edi
> 7C901234 nop
> 7C901235 nop
> .
> .
> 00478327 mov cl,byte ptr [ebp+8]
> 0047832A shl ebx,cl
> 0047832C jmp 0047837D
> 0047832E ???
> 0047832F nop
> 00478330 mov edx,dword ptr [esp+24h]
00478334 mov eax,dword ptr [edx]
> 00478336 mov ecx,dword ptr [ebp+10h]
> 00478339 mov ebx,dword ptr [ebp+14h]
> 0047833C and ecx,eax
> 0047833E mov edi,eax
> 00478340 mov dword ptr [esp+4Ch],ecx
> 00478344 xor ecx,ecx
>
>
>
>  Is the ICS emulator calendar sync broken?
>
> GJTorikian  Nov 20 07:01PM -0800
>
> I created a new emulator with the Level 14 Google APIs. I can add my
> Google account, but sync is off, with no discernable way to turn it
> back on.
>
>
>
> Zsolt Vasvari  Nov 20 07:13PM -0800
>
> Yes, this has been discussed extensively. You cannot use a Google
> account for syncing calendars on the emulator. You can use an
> Exchange account, though, with a gmail address and a blank domain.
>
>
>
>
> GJTorikian  Nov 20 08:14PM -0800
>
> And how would I go about adding contacts, to test viewing/manipulating
> contact data? There doesn't seem to be a way to do that.
>
>
>
>
> Zsolt Vasvari  Nov 20 08:32PM -0800
>
> I thought you asked about Calendars, not Contacts
>
>
>
>
> GJTorikian  Nov 20 09:02PM -0800
>
> I can ask two different questions in one thread
>
> The issue is synching. If I add my Gmail address as an Exchange
> account, I get a half-assed way to manipulate the calendar. Fine. But
> what if I want to test the way I manipulate contacts in my app? What
> if I want to test market licensing on an ICS app?
>
>
>
>
>  how to apply preference style in user-defined theme
>
> Bacon021  Nov 20 06:13PM -0800
>
> My god, Does Google can't give any advice?
>
>
>
>
> William Ferguson  Nov 20 07:16PM -0800
>
> I'm pretty certain there is no such style property as
> "android:layout". Layout is NOT style.
> What are you trying to do?
>
> William
>
>
>
>
>
>  How to set submenu header icon in XML?
>
> limtc  Nov 20 04:06PM -0800
>
> I used to use program menu using Java and I can add icon to submenu.
>
> http://developer.android.com/reference/android/view/SubMenu.html#setHeaderIcon(int)
>
> As I am switching to XML format for menu, I am wondering how do I add
> icon to submenu? It does not seem to have an icon attribute for
> .
>
>
>
>  Lots of "the layout ID xyz is not valid" errors in ADT r15
>
> olefevre  Nov 20 02:08PM -0800
>
>> FWIW, I have never seen that error. Moreover, if everyone were seeing
>> those errors, we'd've heard about them by now.
>
> Mark, with all dues respect, you write e

[android-developers] Re: how to apply preference style in user-defined theme

2011-11-21 Thread jason zhu
Ohh, I want to define a Preference style for Settings module. In this
style i only want to change the Preference title and summary's
textColor and textSize, different from Frameworks' default style. But
Now I have to used the method preference.setLayoutResource() or
android:layout for every Preference to realize.


On 11月21日, 上午11时16分, William Ferguson 
wrote:
> I'm pretty certain there is no such style property as
> "android:layout". Layout is NOT style.
> What are you trying to do?
>
> William
>
> On Nov 21, 12:13 pm, Bacon021  wrote:
>
>
>
> > My god, Does Google can't give any advice?
>
> > On 11月16日, 下午7时54分, Bacon021  wrote:
>
> > > I defined a theme with an item named "android:preferenceStyle", how
> > > ever when I apply this theme to some activity, the related preference
> > > items' style are still not what I defined.
> > > The following is my style I defined and the usage.
>
> > > frameworks\base\core\res\res\values\themes.xml:
>
> > > 
> > > @drawable/bg_color > > item>
> > > @android:style/MyPreference > > item>
> > > 54dip
> > > 
>
> > > frameworks\base\core\res\res\values\styles.xml:
>
> > > 
> > > @android:layout/my_preference_layout > > item>
> > > 
>
> > > in CustomActivityTheme, the windowBackground has effect I can change
> > > the color what I need, but MyPreference won't work, that means the
> > > layout does't work.- 隐藏被引用文字 -
>
> - 显示引用的文字 -

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


[android-developers] Android SSLException - Google servers

2011-11-21 Thread Mike Mike
I need to develop an application that bring data from google.com/
contacts. I have manage to do that in java  but in android I have
some problems with ssl comunication. Caused by:
javax.net.ssl.SSLException: Connection closed by peer) -  Android
untrust my connection.

I have used this exemple:  
http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/contacts/
- in java works fine but in android  it bring a SSLException.


Also I've tried this exemple: 
http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-app/
, but same problem with https request. What should I do?




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] How to record User Voice in an application. Is it possible?

2011-11-21 Thread dinesh
Hi

I want to record my voice in an application. Is it possible in
android.

If yes, How. And where i can Start?

Is there is any reference links or tutorials.




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: Remove Log Statements

2011-11-21 Thread Jacob Nordfalk


Den onsdag den 16. november 2011 07.42.02 UTC+1 skrev Android Developer:
>
>
> Before pushing application to market we need to remove Log statements. 
> if application contains more java files then its hard to remove one by 
> one. 
>
>
Its not particularly elegant, but for smaller projects I usually just 
declare somewhere a boolean

public static final boolean DEBUG = false;

and then prefix my log invocations:

if (DEBUG) Log.d(TAG,"blabla");

As the DEBUG variable is final the Java compiler should optimize out the 
log statements as they are never reachable (no need for proguard to do 
that). So, it works essentially like a hack to get #ifdef's in your code.

Jacob

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 solve the error: This attribute must be localized

2011-11-21 Thread Jan Petendi
I stumbled  upon your post as I had to quickly build a UI prototype and 
didn't want to externalize 80+ non localized strings.

Adding:

LOCAL_MODULE_TAGS := tests

to the Android.mk file omits the localization check.


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

Re: [android-developers] Is there Android RS232 sample code ?

2011-11-21 Thread Fathi Nashrullah
there's no native API at the moment. but you can try to utilize IOIO. start
by googling what IOIO is. believe me, it's very interesting.

Fathi

On Thu, Nov 17, 2011 at 6:54 PM, mark2011  wrote:

> Dear All :
>
>   I am a new learner of  Android. My cell phone is android 2.1. I
> want to communicate with other computer(windows xp) through rs232. Is
> there any sample code? Thanks.
>
> BR,
> Mark
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Posting messages to facebook

2011-11-21 Thread ivan goh
Hi, i am developing a calendar and i need to post the events on the
calendar to facebook. right now i already gotten the api keys. i am
using the official facebook SDK (com.facebook.android), what is the
code for me to actually post a message to facebook. thanks for the
help in advanced!!

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

2011-11-21 Thread DISHITA JAIN
hey

http://developer.android.com/guide/topics/graphics/opengl.html
go through this site...surely will helpful to u...



On Thu, Nov 17, 2011 at 3:18 AM, John Goche wrote:

>
> Hello,
>
> I am new to OpenGL and would like to write some
> code in it for Android. I wonder whether there are
> any significant differences in the android implementation
> compared to JOGL http://jogamp.org/jogl/doc/HowToBuild.html
> (which also has a quite involved setup process).
>
> I ask because I was thinking of developing in JOGL in order to
> speed up the process and then when the project is ready port
> the code to android (which has a slower emulator compile,
> load, and test development cycle).
>
> Also, would I find a .OBJ (Wavefront) parser anywhere on
> android or must I implement/import my own? I ask because
> I would require one to read my model into OpenGL/Java.
>
> Comments and suggestions on how to proceed welcome,
>
> Thanks,
>
> John Goche
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Fw: Friends, I need help

2011-11-21 Thread francisco.alexandre
Speak Lord, in peace?
Friends, I need help, what version we are using Eclipse with Android?

I'm new and I'm embarrassed about it: already installed the Android Eclipse 
several times but can not run any application!

When run command simply opens the Android emulator screen and displays a 
message in the center of the screen 'ANDROID' and stands ...

Already installed and uninstalled Eclipse several times, installed the Android 
plugin online and offline ... and nothing ever the same behavior.

I downloaded Eclipse Classic Indigo site:
www.eclipse.org

I downloaded the Android plugin sites:
https://dl-ssl.google.com/android/eclipse/
http://dl.google.com/android/ADT-15.0.1.zip

I downloaded the SDK addresses:
http://dl.google.com/android/android-sdk_r15-windows.zip
http://dl.google.com/android/installer_r15-windows.exe


I am using Windows XP, I thought to be the Android version, I downloaded all 
... and continue the mistake!

Is it the version of Eclipse?
Am I doing stupid things?



thank you

Francisco

PS: Sorry for the bad English, I'm using a translator

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

[android-developers] Zoom using Multi touch

2011-11-21 Thread Manivannan
hi
   need assistance.
i have 3 images in Relative layout.i want to zoom entire layout
including images.


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


[android-developers] createRfcommSocket

2011-11-21 Thread John
Our app uses a bluetooth connection and has been working fine for
about a year. On a new Samsung G S2 phone we are seeing a problem
connection the socket. The error is 'Service discovery failed'.

Now we've seen this on HTC phones, and the solution was to include a
call to createRfcommSocket, if the call to
createRfcommSocketToServiceRecord failed. But the same code isn't
working on this Samsung.

So I am thinking that maybe by forcing the call to createRfcommSocket
we can get this to work.

However I cannot find any information about what createRfcommSocket is
doing, differently than createRfcommSocketToServiceRecord. Is there
any information on what that call does?

Are there any other ideas on how to resolve this issue that doesn't
include using an undocumented call?

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] Robotium Functional Testing

2011-11-21 Thread sangeesekar
Hi,

I am new to robotium. Can any one please answer this.. Hope it would
be too silly and dont mind...

I have an purchase.apk. First thing i need to know whether do i need
to install the app or not on the emulator to test it through
robotium..

I am finding there are two manifest.xml. One under android folder and
one is in the library. where do i need to change the target package
name.

How to resize the emualtor?

I need to do testing on the installed purchase.apk. Is it same way can
i send a keystroke like monkey runner.

Regards,
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] onMeasure calls setMeasuredDimention but size doesn't change.

2011-11-21 Thread George
Hi,

I have a custom view in my application, which doesn't change it's size
the last time onMeasure is called on it. Can someone explain this to
me please?

My view is an extension of ImageView and it's parent is a
RelativeLayout.

This is part of my xml:

http://schemas.android.com/apk/res/android";
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/root">


...
...


this is my onMeasure Inplementation:
@Override
public void onMeasure(int w, int h){
int rw = (int) (MeasureSpec.getSize(h) * aspect);
int rh = MeasureSpec.getSize(h);
Log.d("ONMEASURE", ""+rw+" x "+rh);
setMeasuredDimension(rw, rh);
}

and this is my LogCat:

11-21 15:37:34.586: D/ONMEASURE(4751): 0 x 352
11-21 15:37:34.596: D/ONMEASURE(4751): 0 x 277
11-21 15:37:34.757: D/VIEW_HEIGHT(4751): 277
11-21 15:37:34.757: D/VIEW_WIDTH(4751): 0
11-21 15:37:34.997: D/ONMEASURE(4751): 625 x 352
11-21 15:37:35.007: D/VIEW_HEIGHT(4751): 277
11-21 15:37:35.007: D/VIEW_WIDTH(4751): 0
11-21 15:37:35.017: D/ONMEASURE(4751): 359 x 202
11-21 15:37:35.027: D/VIEW_HEIGHT(4751): 202
11-21 15:37:35.027: D/VIEW_WIDTH(4751): 625



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

2011-11-21 Thread Mike Mike
I need to develop an application that bring data from google.com/
contacts. I have manage to do that in java  but in android I have
some problems with ssl comunication. Caused by:
javax.net.ssl.SSLException: Connection closed by peer) -  Android
untrust my connection.

I have used this exemple:  
http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/contacts/
- in java works fine but in android  it bring a SSLException.


Also I've tried this exemple: 
http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-app/
, but same problem with https request. What should I do?




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] Testing App Battery Usage

2011-11-21 Thread Ika Balzam
Hey Guys,

We want to have a live debugger (mobile connected to the computer by
usb) but we don't want the PC to charge the mobile so we will be able
to see how our tests affect the battery.

Is this possible?
Running a debugger/logviewer on the device may cause a false report,
so we want to use the PC, which should be a very low cost on the
device.

Thanks in advance,
Ika

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 store large amount of records in String arays or Arraylist in android

2011-11-21 Thread PhotoSteve
If you say it works on some phones and freezes on other android
devices, it has to be the device its freezing up on not the program.So
on the devices that its freezing up on what are the spec's of the
device .


PhotoSteve

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


[android-developers] Plivo?

2011-11-21 Thread AnalogKid
Would like to hear success stories (or other) regarding developing on Plivo 
(see www.plivo.org).  Thanks!

--AnalogKid

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

[android-developers] Adding a view to Overlay in MapView Or Animation in overlay in mapview

2011-11-21 Thread cookie1986
hello folks,

I am trying to show a blinking red circle and blinking radial area
over a location in the google map
I am able to create alpha animation independently in android project
but I cannot put it over the map as an overlay.


please let me know of example anybody has.

thanks,
Sid

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

2011-11-21 Thread Brad Justice
I am encountering this error as well.

I am developing in a Parallels Ubuntu 11.04 VM on an iMac running
Lion. I have walked through the steps on the link referenced by
kapil .k below. I have also uninstalled Lunch and reinstalled it
directly from their home page. The file /home/parallels/.lunchrc is
not created; invoking Lunch from command line or attempting to use the
GUI generates this same error.

I created /home/parallels/.lunchrc via touch and re-ran envsetup.sh.
Lunch does load, but stops at "Using linch master module /usr/share/
lunch/lunch/master.pyc. I presume this is due to an empty .lunchrc
file.

I am thinking one possible solution would be to build a .lunchrc file
based on text someone could provide from a working installation.

On the positive side, my SDK and NDK tools seem to be working
properly.

Thanking all in advance,

Brad

On Nov 8, 11:16 pm, "kapil.k"  wrote:
> Hello
>
> I am trying to build the source with ref to link
>
> http://source.android.com/source/building.html
>
> after running
> ./envsetup.sh
>
> i run lunch command
> it gives me error
>
> Using lunch master without the GUI.
> No such file: /home/user/.lunchrc.
>
> Any one have any clue ..I have installed all reqyired lib-32.

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


[android-developers] Media player problem whit file audio stored in memory

2011-11-21 Thread Antonio
hi guys i have this strange problem:
i create a app, in this app i record voice in ogg file, i store file
in memory (i see the file using DDMS) , when i wont to play the file
audio i have a error

in this link you can see the source: http://pastebin.com/PWE9FsxT
in this link you can see the android manifest: http://pastebin.com/p39J1Y6i
in this link you can see the log cat http://pastebin.com/ktyFWPXq

i think the problem is in
mediaPlayer.setDataSource(RECORDING_FILE_NAME); but I do not know how
to fix it
please help me
best regads
Antonio

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