[android-developers] how to transfer file from android device to another android device using WIFI

2011-10-20 Thread Perumss Naren
HI all,

  how to transfer file from android device to another android device
using wifi please provide some link.
  Thanks in Advance!

-- 
Regards,

Perumal.N

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

[android-developers] DRM implementation

2011-10-20 Thread Manish Garg
Hi All,

My requirement is to publish my application from client site instead
of Android market. So I need to implement DRM. Please suggest some
solution for it.

Regards,
Manish Garg

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When can we expect source code release for icecream sandwich version?

2011-10-20 Thread swapnil kamble
Thanks for your info. But I didn't asked whether I will get it or not, I
know that. I asked when. If you don't know because its not clear, no need
to reply.


On Wed, Oct 19, 2011 at 6:34 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Oct 19, 2011 at 8:50 AM, swapnil kamble swap.kam...@gmail.com
 wrote:
  When can we source code release
 for
  icecream sandwich ?

 Someday. Maybe.

 In other words, you will find out when it will be released only after
 it has been released.

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

 Android 3.1 Programming Books: http://commonsware.com/books

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




-- 
Swapnil

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

2011-10-20 Thread B.Arunkumar
Hi,

ffmpeg http://ffmpeg.org/ has posted that it is possible to do H/W
Accelerated H.264 Decoding on Android. We downloaded the latest ffmpeg
version. There is a way to compile the stagefright library with
ffmpeg. We compiled it and tried to write the wrapper class for it.
The decoder got initialized but we are facing with this command:

int res = avcodec_decode_video2(codecCtx, srcFrame, frameFinished,
packet);

I just would like to check if somebody has tried this approach for
hardware decoding and has had success doing so.

Thank you,
B.Arunkumar

On Sep 16, 7:52 pm, Jona medicalsou...@gmail.com wrote:
 They probably use FFmpeg to take care of getting the encoded media
 data than pushing that untouched data using some type of proxy server
 to the MediaPlayer to do the hardware decoding. That's probably
 all... :-)

 On Sep 16, 2:22 am, Doug beafd...@gmail.com wrote:

  If authentication over rtsp is a documented standard, then you could
  file a bug with details and hope that it gets resolved in a future
  version.

  Doug

  On Sep 15, 12:17 am, B.Arunkumar awsnetworkrecor...@gmail.com
  wrote:

   Hi,

        Regarding your question, MediaPlayer supports RTSP streaming but
   does not take all RTSP URLs, (with authentication, for instance).
   Atleast that is the experience we have had.
   The built in C++ RTSP Stack that comes with mediaplayer seems to have
   limited capabilities.

   Arunkumar

   On Sep 11, 4:19 am, Doug beafd...@gmail.com wrote:

On Sep 9, 1:30 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote:

     Would somebody have some idea what exactly hasRockPlayerdone in
 the Hardware Decoding mode on a high level basis? I mean have they
 used the mediaplayer as it is or they have changed something at the
 source code level of MediaPlayer to get more improvements than the
 MediaPlayer (support more RTSP Url formats) and things like that?

Why do you say that MediaPlayer does not support rtsp?  I ask this
because it does support rtsp.  It's documented.  The audio/video
format of the stream still has to be supported by the device, though.

Doug



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

2011-10-20 Thread Manish Garg
Hi All,

I have one more query on the implementation of DRM:

1. If a user has purchased one item and it get downloaded on their
device, now if user changes his device? Can they again download it
free of cost?
2. If after purchasing, user can do multiple download then how does it
check for illegal download. One person can download app on different
devices.

On Oct 20, 11:22 am, Manish Garg mannishga...@gmail.com wrote:
 Hi All,

 My requirement is to publish my application from client site instead
 of Android market. So I need to implement DRM. Please suggest some
 solution for it.

 Regards,
 Manish Garg

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

2011-10-20 Thread Anil Jagtap
If you want to do it one time, then copy in some computer and copy
again to other device.
If you need frequent data transfer then AFAIK, you need some service
stand in between iPhone and Android , like a web server.
Then you can write web services to send and receive data. No easy way
than this I can think of.

Cheers

On Oct 19, 9:13 am, Perumss Naren peru2...@gmail.com wrote:
 Hi all,

          How to transfer data between Android and Iphone ? what are the ways
 ? i know web-service rest i need please help me

          Thanks in advance!

 --
 Regards,

 Perumal.N

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


Re: [android-developers] Re: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-20 Thread Jonas Petersson

Hi all,

On 2011-10-19 19:43, sblantipodi wrote:

is there someone else who have this problem and is not using a
snapshot?
personally I was be able to start in WXGA resolution only the first
time.


I have not had time to properly experiment with this, but I've created a 
few ICS images with and without snapshots and neither of them will boot 
successfully. The GUI shows up, but quickly disappears again and if I 
run the same manually from the prompt with the -verbose flag the trace 
ends with:


-8
goldfish_fb_get_pixel_format:167: display surface,pixel format:
  bits/pixel:  16
  bytes/pixel: 2
  depth:   16
  red: bits=5 mask=0xf800 shift=11 max=0x1f
  green:   bits=6 mask=0x7e0 shift=5 max=0x3f
  blue:bits=5 mask=0x1f shift=0 max=0x1f
  alpha:   bits=0 mask=0x0 shift=0 max=0x0
Segmentation fault
-8

I'm running this on Ubuntu 11.04, BTW. I intend to look more into this 
during the weekend when I have more spare time.


Hope this helps someone.

Best / Jonas


On Oct 19, 6:57 pm, sblantipodiperini.dav...@dpsoftware.org  wrote:

I didn't created a snapshot even, so no I'm not using a snapshot.

On Oct 19, 6:44 pm, Xavier Ducrohetx...@android.com  wrote:








Are you running snapshots?



There is an issue reloading snapshots created by older versions of the
emulator. Unfortunately, the symptoms look like the emulator doesn't
boot.



Delete the snapshots and recreate them for now. We are going to fix
the emulator to make incompatible snapshot format problem more obvious
to the user.



On Wed, Oct 19, 2011 at 8:52 AM, sblantipodi



perini.dav...@dpsoftware.org  wrote:

Am I the only one experiencing this problem?
The only way to launch a simulator is using another resolution or a
manual 720x1280, why?



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



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.http://developer.android.com|http://tools.android.com



Please do not send me questions directly. Thanks!




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


[android-developers] Detect Phone Vendor at installation

2011-10-20 Thread Hrishi
I am developing device specific application, Can anybody knows how to
detect android phone vendor i.e samsung or htc etc in android ... Is
this possible. That according to phone vendor i can decide to install
application on that phone or not  Thanks in advance !!!

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


[android-developers] Android Binder Example - link_image[1962]: 431 could not load needed library

2011-10-20 Thread Ganesh Kumar R.
Hi All.,

Am in timely need. pls help me out.. 

Am trying to execute a binder sample. [
http://github.com/mcr/Android-HelloWorldService ] . I solved all the 
compilation error. and loaded the need files to my emulator.

But still my binder service [ 'helloworldservice' ] is not getting started. 
While executing the file am getting following error. 

#cd data
# ./helloworldservice
*link_image[1962]:   424 could not load needed library 
'libhelloworldservice.so' for './helloworldservice' (reloc_library[1311]:   
424 cannot locate '_ZN7android10IInterfaceD2Ev'...
)CANNOT LINK EXECUTABLE*
# ./helloworldclient
*link_image[1962]:   425 could not load needed library 
'libhelloworldservice.so' for './helloworldclient' (reloc_library[1311]:   
425 cannot locate '_ZN7android10IInterfaceD2Ev'...
)CANNOT LINK EXECUTABLE*


Please guide me how to fix this issue ! ! !.,., If u have any idea or 
suggestion pls drop here

Thanks.,
Ganesh Kumar Ramamorthy.

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

[android-developers] Broadcast receiver Activity is in foreground or stop.

2011-10-20 Thread Anieeh
Hi All

  I am developing  an alarm based application in which a broadcast
receiver is set, i want to show a notification in the notification bar
for alarm and i have done that but my problem is i want to show a
notification on notification bar only if no other Activity is on
foreground, if any Activity is in foreground i will create an activity
and show above it about alarm and i have many activity in my
application.

 So Plz help me find out how to know my application is in
foreground or it is stopped/closed.


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] CTS test cases failing

2011-10-20 Thread MMS
Hi,

I am running CTS test cases on Android bases STB.

i am using GB 2.3.4 and CTS 2.3_r9 and the SDK version is r12.

I have followed all the instructions as mentioned in CTS manual. None
of my CTS test cases are passing.

The log messages when VM test cases are run are as follows.  Please
help me in finding the root cause for this.

null[1]   Segmentation fault  ANDROID_DATA=/da...
return code: 0 

Thanks,
Shankar


cts_host 
There are 1 existing session(s) for plan VM.
Create a new session or choose an existing one?
  Create a new session [0]
  Choose a session [1]


CTS_DEBUG  1319019709332 installing TestDeviceSetup apk

CTS_DEBUG  1319019709334 install get info ...

CTS_DEBUG  1319019709334 adb -s 192.168.20.52: install -r /home/
sasken/cts-setup/android-cts/tools/../repository/testcases/
TestDeviceSetup.apk

CTS_DEBUG  1319019709334 start(),
action=install,mTimer=null,timeout=12

CTS_DEBUG  1319019709371 ObjectSync.waitOn() is called,
mNotifySent=false

CTS_DEBUG  1319019709852 device 192.168.20.52: changed with
changeMask=2

CTS_DEBUG  1319019709852 Device state:ONLINE

CTS_DEBUG  1319019710473 device 192.168.20.52: changed with
changeMask=2

CTS_DEBUG  1319019710474 Device state:ONLINE

CTS_DEBUG  1319019829359 PackageActionTimeoutTask.run():
mAction=install

CTS_DEBUG  1319019829359 ObjectSync.sendNotify() is called,
mNotifySent=false

CTS_DEBUG  1319019829359 ObjectSync.sendNotify() is called,
mNotifySent=true

CTS_DEBUG  1319019829360 run device information collector

CTS_DEBUG  1319019829360 am instrument -w -e bundle true
android.tests.devicesetup/android.tests.getinfo.DeviceInfoInstrument

CTS_DEBUG  1319019829360 start(),
action=getDeviceInfo,mTimer=java.util.Timer@3ad3c6a3,timeout=12

CTS_DEBUG  1319019829362 ObjectSync.waitOn() is called,
mNotifySent=false

CTS_DEBUG  1319019829648 device 192.168.20.52: changed with
changeMask=2

CTS_DEBUG  1319019829648 Device state:ONLINE

CTS_DEBUG  1319019848577 device 192.168.20.52: changed with
changeMask=2

CTS_DEBUG  1319019848577 Device state:ONLINE

CTS_DEBUG  1319019848634 ObjectSync.sendNotify() is called,
mNotifySent=false

CTS_DEBUG  1319019848634 am broadcast -a
android.tests.util.disablekeyguard
start test plan VM

CTS_DEBUG  1319019848672 Start a test session.
==
Test package: android.core.vm-tests

CTS_DEBUG  1319019848676 run in individual mode...
dot.junit.opcodes.add_double_2addr.JUnit_Test_add_double_2addr#testB1...

CTS_DEBUG  1319019848679 HostTimer.waitOn(): mIsNotified=false,
this=com.android.cts.HostTimer@406754d6

CTS_DEBUG  1319019848729 jarPath=/home/sasken/cts-setup/android-cts/
tools/../repository/testcases/android.core.vm-
tests.jar,testPkgName=dot.junit.opcodes.add_double_2addr,testClassName=JUnit_Test_add_double_2addr

CTS_DEBUG  1319019848819 succeed in load jarred class: /home/sasken/
cts-setup/android-cts/tools/../repository/testcases/android.core.vm-
tests.jar.dot.junit.opcodes.add_double_2addr.JUnit_Test_add_double_2addr

CTS_DEBUG  1319019848944 device 192.168.20.52: changed with
changeMask=2

CTS_DEBUG  1319019848944 Device state:ONLINE

CTS_DEBUG  1319019849183 device 192.168.20.52: changed with
changeMask=2

CTS_DEBUG  1319019849183 Device state:ONLINE
.
.
.
.
.

CTS_DEBUG  1319019860062 HostSideTestRunnerThread() detects that it
needs to cancel mTimeOutTimer

CTS_DEBUG  1319019860062 HostTimer.sendNotify(): mIsNotified=false,
this=com.android.cts.HostTimer@406754d6
(fail)
null[1]   Segmentation fault  ANDROID_DATA=/da...
return code: 0
nulljava.lang.RuntimeException: [1]   Segmentation fault
ANDROID_DATA=/da...
return code: 0
at dot.junit.DeviceUtil.digestCommand(DeviceUtil.java:49)
at dot.junit.DeviceUtil.adbExec(DeviceUtil.java:103)
at
dot.junit.opcodes.add_double_2addr.JUnit_Test_add_double_2addr.testB1(JUnit_Test_add_double_2addr.java:
9)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at com.android.cts.HostUnitTestRunner.runTest(HostUnitTestRunner.java:
68)
at com.android.cts.HostSideOnlyTest
$HostSideTestRunner.run(HostSideOnlyTest.java:53)

dot.junit.opcodes.add_double_2addr.JUnit_Test_add_double_2addr#testB2...

CTS_DEBUG  1319019860064 HostTimer.waitOn(): mIsNotified=false,

[android-developers] How to integrate like and dislike button Facebook

2011-10-20 Thread ANKUR GOEL
Hi all,

suggest some ways or code to implement facebook like and dislike button

Thanks and Regards:-
Ankur

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

[android-developers] Date issue

2011-10-20 Thread sourabh sahu
I have a editText view on a click of it there is a date picker.When I
extract the date in a string format and then convert it into date datatype.I
am getting it in milliseconds.I want the exact date.

I have used SimpleDateFormat with -MM-DD and Locale.US and parse
function.Please suggest some solution to it.

Thanks,
sourabh

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

[android-developers] Drop of active installs, surge of 1-star ratings

2011-10-20 Thread b0b
This morning, looking at the developer console I had the surpise
to see that the active install count had dropped significantly and that one 
of my app 
got 35 new 1-star ratings (without comments) during the night which is 
impossible (it had previously 34 1-star ratings and it took 5 months to get 
there), making 
the average rating drop.

It seems that the active install drop affects several developers but what 
about this 1-star rating madness ?
Anyone noticed something similar ?


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

2011-10-20 Thread Manikandan M
Hi all,

how to open inbox of (gmail,yahoo,rediff,etc .., ) on button click
from some other application. if the mail address i have is gmail then
i want to launch the gmail inbox of the account that is registered in
the device.


Example : t...@gmail.com is the mail address i have.

Email Address registered in android : t...@gmail.com ,
hellot...@gmail.com , t...@yahoo.com , t...@rediff.com.

now onclick of some event i want to launch the gmail inbox of
t...@gmail.com account.

Is there any inbuilt intent is available?

Please help me.

Thanks in Advance
Manikandan.

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

2011-10-20 Thread Balkrishna Talele
No it do not support, You will need to put font file into asset directory of
you app and load the font,

cheers
Balkrishna Talele

On Thu, Oct 20, 2011 at 9:57 AM, shweta sonalaggrawal2...@gmail.com wrote:

 see this link


 http://www.androidengineer.com/2010/08/easy-method-for-formatting-android.html

 On Oct 20, 6:02 am, warriorinjapan chandanpratih...@gmail.com wrote:
  Hi
 
  Does anyone of you know whether Android supports Hindi Devnagri fonts?
 
  Thanks
  Chandan

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




-- 
regards
Balkrishna Talele

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

[android-developers] Create img/pdf from Layout

2011-10-20 Thread iñaki
Hello, I´m trying to capture content of layout(TableLayout). I know with
viewToBeCaptured I can take a screenshot of a view, but when I have more
rows than screen(scroll) and create the img, returns error...
I imagine that viewToBeCaptured isn´t the best way...
Do you have any tip  for this?

Regards


Iñaki

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

2011-10-20 Thread Nico Balestra
Same here.. still haven't managed to run the emulator :'(

2011/10/20 Emanuel Moecklin 1gravity...@gmail.com

 Hi there

 I updated to the lastest SDK (including SDK Tools r14) and tried to
 start an Android 4.0 emulator.
 The emulator doesn't start and the Windows event log shows the
 following error:

 Faulting application name: emulator-arm.exe, version: 0.0.0.0, time
 stamp: 0x4e9c7fa8
 Faulting module name: emulator-arm.exe, version: 0.0.0.0, time stamp:
 0x4e9c7fa8
 Exception code: 0x4015
 Fault offset: 0x0010f10e
 Faulting process id: 0xf90
 Faulting application start time: 0x01cc8ed70a55c24b
 Faulting application path: C:\Development\android-sdk-windows\tools
 \emulator-arm.exe
 Faulting module path: C:\Development\android-sdk-windows\tools
 \emulator-arm.exe
 Report Id: 49d59d0b-faca-11e0-9aa4-7071bcc13e13

 I tried to google the exception code but the results didn't explain
 the crash.

 Any ideas?

 Emanuel Moecklin

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

2011-10-20 Thread Hiko
Hi,

I implemented a widget to display a CPU occupancy.
CPU occupancy is taken from cpu information in the /proc/stat.

I faced a problem.
CPU occupancy is raised rapidly at the moment when this cpu occupancy
widget is on the home screen.

I have one question.
Is CPU occupancy raised when a widget is on the screen?

I want an answer asap.

Thank you very much and sorry for my bad English.

Hiko

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

2011-10-20 Thread Hiko
Hello Mark,

Thanks for your reply.

cleared.

Best Regards,

On 10月5日, 午前12:25, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Oct 4, 2011 at 11:22 AM, Hiko hikosais...@gmail.com wrote:
  Can the Intent.ACTION_BATTERY_OKAY be received while the device is the
  sleep status ?

 AFAIK, the broadcast will not occur until the device wakes up. I am
 not aware that Android specifically wakes up the device for this
 broadcast.

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

 Android App Developer Books:http://commonsware.com/books

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

2011-10-20 Thread Kostya Vasilyev

Doesn't your widget, and the process of its rendering, use the CPU?

I think using a moving average should help.

-- Kostya

20.10.2011 12:55, Hiko пишет:

Hi,

I implemented a widget to display a CPU occupancy.
CPU occupancy is taken from cpu information in the /proc/stat.

I faced a problem.
CPU occupancy is raised rapidly at the moment when this cpu occupancy
widget is on the home screen.

I have one question.
Is CPU occupancy raised when a widget is on the screen?

I want an answer asap.

Thank you very much and sorry for my bad English.

Hiko



--
Kostya Vasilyev

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


[android-developers] ICS emulator crash/restart

2011-10-20 Thread String
In testing one of my existing apps on ICS, it's causing the emulator to 
restart. Not every time the app runs, but most times. I've uploaded a logcat 
dump here: http://polyclock.com/emulator_restart.txt. I'm still trying to 
narrow down exactly where it happens in my code, but it's difficult because 
it's intermittent. Haven't been able to make it happen when stepping through 
my code in the debugger yet.

Obviously, this makes testing quite difficult, but it's also concerning that 
it might have the same effect on real ICS devices. 

String

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

[android-developers] Selected data in webview

2011-10-20 Thread shweta
I have load html on webview and i select the data on webview .i wanna
get selected data from webview.
How can i get Selected data from Webview

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-cd1b29a19b-iI7kPy-z0LHtyLUhGa8jozOdHUk
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-cd1b29a19b-iI7kPy-z0LHtyLUhGa8jozOdHUk

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-d665491ef7-ex35jZP9dutBewu__csDLA6Ne1k
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-d665491ef7-ex35jZP9dutBewu__csDLA6Ne1k

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-76b3ba2269-PbLWXHnhg-Y3i_mtKTFjnakrn2I
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-76b3ba2269-PbLWXHnhg-Y3i_mtKTFjnakrn2I

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-7b0b5b18a3-2OY7z_wnprYpMJOeT4qHGNHmnsI
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-7b0b5b18a3-2OY7z_wnprYpMJOeT4qHGNHmnsI

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-f9bfc5efcd-RciGe_At5K0MHLCaUbL8gv_3Ij8
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-f9bfc5efcd-RciGe_At5K0MHLCaUbL8gv_3Ij8

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-4b8a7ea3f4-M2eJ4sR2UNktNcif7eEBSEnN9Dk
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-4b8a7ea3f4-M2eJ4sR2UNktNcif7eEBSEnN9Dk

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-110fee4203-UmjfrERSU9v4rxNHbce8PjGz6LI
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-110fee4203-UmjfrERSU9v4rxNHbce8PjGz6LI

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-84c819eaac-XbNiC_te5COY-y0UPjnOwUx6z3k
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-84c819eaac-XbNiC_te5COY-y0UPjnOwUx6z3k

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-d4bd4dc7c7-tzWg9U2VE1UC7l7Te5C0-iAYY2U
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-d4bd4dc7c7-tzWg9U2VE1UC7l7Te5C0-iAYY2U

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-f194cd29bc-YTzOaLOH4wf8NHCMBAp0avuov1U
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-f194cd29bc-YTzOaLOH4wf8NHCMBAp0avuov1U

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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


[android-developers] Hasan Keklik wants to chat

2011-10-20 Thread Hasan Keklik
---

Hasan Keklik wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-5b24343ff2-f6a99319a3-UBQBRuivAt8eEBSfwyEASPT6QeY
You'll need to click this link to be able to chat with Hasan Keklik.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Hasan Keklik, visit:
http://mail.google.com/mail/a-5b24343ff2-f6a99319a3-UBQBRuivAt8eEBSfwyEASPT6QeY

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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

2011-10-20 Thread Rita Ng
It probably because you have another app on your phone that has the
same package name.  Try uninstall that app and install your app on it.

On Oct 19, 7:23 pm, TreKing treking...@gmail.com wrote:
 On Wed, Oct 19, 2011 at 2:45 AM, sam avantwav...@gmail.com wrote:
  The application XXX(Apps name) (process com.X..xXX) has
  stopped unexpectedly. Please try again.

  Thus, I think I make some mistake during rename my packageany solution
  for me?

 Debug your app. At very least post a LogCat message with the exception
 crashing you.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Renderscript problems in SDK 14

2011-10-20 Thread Paul
Hi,

I updated to SDK 14 and now renderscript no longer works. My project
is targeting SDK 11 and it seems like the new llvm-rs-cc doesn't work
with this version.

I'm using Eclipse ADT on Snow Leopard if it matters.

Is the new renderscript compiler meant to work with the old SDKs
(11,12,13)?

paul

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


[android-developers] SDK Manager keeps stopping when downloading

2011-10-20 Thread richard.broadhurst
I have been trying to download the Android SDK for a week now, but the
SDK Manager keeps stopping while downloading.

I have searched many threads and changed the https option but still it
keeps stopping.

Just getting the list of packages can take between a few seconds to a
minute (in bursts), but does always complete.

After about 10 attempts I did get the platform tools. but anything
bigger is proving impossible - even leaving it overnight.

the v13 tool kept flagging everything as installed that i had
requested and so had to uninstall and re-install the whole SDK to get
it to try again, but at least the v14 tool realizes that it didn't
complete and I only have to restart it.

I am using 64bit win7 and the problem is the same with or without
firewall/anti-virus.

Richard

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

2011-10-20 Thread Rita Ng
What could have happened is you already have an app with that package
name installed on your phone, and you tried to install another app
that use the same package name.

Try uninstalling the apps that might have similar package, and re-
install your app.

On Oct 19, 7:23 pm, TreKing treking...@gmail.com wrote:
 On Wed, Oct 19, 2011 at 2:45 AM, sam avantwav...@gmail.com wrote:
  The application XXX(Apps name) (process com.X..xXX) has
  stopped unexpectedly. Please try again.

  Thus, I think I make some mistake during rename my packageany solution
  for me?

 Debug your app. At very least post a LogCat message with the exception
 crashing you.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Adding custom key button in recent app dialog - Android Native coding.

2011-10-20 Thread Venkat Narayanan
Hi All,
I am customizing Recent app Dialog. It has for recent app and
other 4 buttons to simulate Menu, Back, Volume + and Volume -.
 My requirement is to send keys (Menu, Back, volume)to active
app from the recent app dialog.

 I had tried following piece of code. But I couldn't find the
solution.
 public boolean onTouchEvent() {
final Activity parent = (Activity) this.getContext();
new Thread(new Runnable() {

public void run() {
 //   simulateKeyStroke(KeyEvent.KEYCODE_HOME, parent);
 KeyEvent backEvtDown = new 
KeyEvent(KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_BACK);
KeyEvent backEvtUp =
new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK);
 
parent.dispatchKeyEvent(backEvtDown);
 
parent.dispatchKeyEvent(backEvtUp);
}
}).start();
return true;
}

I am getting following error

request_suspend_state: wakeup (0-0) at 83966461184 (2000-01-01
00:01:21.6171875
00 UTC)
init: untracked pid 1399 exited
binder: 916: binder_alloc_buf, no vma
binder: 1427:1427 transaction failed 29201, size 76-4
binder: 916: binder_alloc_buf, no vma
binder: 1427:1427 transaction failed 29201, size 84-0
request_suspend_state: wakeup (0-0) at 89261505130 (2000-01-01
00:01:26.9122619
64 UTC)

Can any one help me.

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


[android-developers] Stock browser tests

2011-10-20 Thread srikanth
Hi All,
I'm developing some browser based application and i am looking for a
app/test that tests android stock browser. Something like auto browse
list of url's(200) on single/multiple tabs or browser benchmark test.


Please share your valuable info... 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] if you preapar any demo Project about

2011-10-20 Thread Mehul Akoliya
hi karteek

if you preapar any demo Project about

can we play  audio during call so that other person on the call could
hear this audio.

So pleas Send me

Thank you
Mehul Akoliya

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


[android-developers] Buttons position for AlertDialogs in Android 4.0/SDK 14

2011-10-20 Thread Christine Daunique
Hello,

I was wondering why the position of ok and cancel buttons  on
AlertDialogs are switched in the new Theme of Android Ice Cream
Sandwich ?
If I look in the API demos, if Traditional theme is used for Dialogs
and not Holo Theme, Dialogs display ok and cancel from left to
right, as usual (and as it did in Honeycomb)

What is the reason for that new behavior ? Would it not be weird for
users ?

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


[android-developers] BlueZ version in IceCreamSandwitch

2011-10-20 Thread Amit Kinhikar
Hi, I'm looking for the bluez and linux kernel versions used in ice
cream sandwitch release, where can I find this information?

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


[android-developers] I have a spinner as the header of listview, the dialog cannot popup when touching spinner after touchmodechanged.

2011-10-20 Thread luni
the spinner works well in touchmode.
when I using the arrow key to scroll down until I cannot see the
header spinner, then scoll up to the spinner.
touch spinner, the dialog cannot popup. and press menu key , the
dialog pop up now.

Another related issue, after the dialog popup , If I use the key to
selected one item, then the onItemSelected is not called, but the
spinner.onclick is called.

So all the issues happens after using the arrow key(isNotTouchMode) to
scroll down until the spinner is invisible and scroll up to see the
spinner again.

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


[android-developers] same here

2011-10-20 Thread solid
I too have this same problem.  I see this exception any time I try to
invoke the GPS either from my app or the pre-installed google maps app
in the emulator.

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


[android-developers] CacheManager deprecated

2011-10-20 Thread Ludocwi
Hi,
Reading the docs, CacheManager is deprecated :
http://developer.android.com/reference/android/webkit/CacheManager.html

Is there another class replacing CacheManager? I have searched but
found nothing...

Thx !

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Drop of active installs, surge of 1-star ratings

2011-10-20 Thread binarytoys
Have same issue, but without 1-star ratings. But overall ratings
number was slightly decreased. From other side active installs drops
almost twice.

On Oct 20, 10:19 am, b0b pujos.mich...@gmail.com wrote:
 This morning, looking at the developer console I had the surpise
 to see that the active install count had dropped significantly and that one
 of my app
 got 35 new 1-star ratings (without comments) during the night which is
 impossible (it had previously 34 1-star ratings and it took 5 months to get
 there), making
 the average rating drop.

 It seems that the active install drop affects several developers but what
 about this 1-star rating madness ?
 Anyone noticed something similar ?

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


[android-developers] adb shell input keyevent command does not work for KEYCODE_POWER

2011-10-20 Thread Sang Hyuk Han
hi,

I tried to trigger a physical power key event using below adb shell
command.

adb shell input keyevent 26

But device does not response..

If i try it with other keycodes such like '3' for home, '9' for 2...

They all work nicely.

I can't guess what is the problem with POWER keycode.

Please help me.

Thanks for reading.

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

2011-10-20 Thread venky6

Hi every one,

I am very much interested to work on Android.
 and try to get the source.

When i started to Download the  Android x86 : source code 
its giving error like...

Fetching projects:   1% (2/171)  android.git.kernel.org[0:
149.20.4.77]: errno=Connectionatal: unable to connect a socket
(Connection refused)

So please any one give me idea to get it..

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] add data to dynamic table

2011-10-20 Thread jujare chandra sekhar
hi everybody does anybody know about this



i have one question please give me reply for this i am new for
android

payment = (principal * interest) / (1 - Math.pow((1 + interest), -
tennure)) ;

balance = principal ;

for (int period = 1 ; period = tennure ; period++) {



curInterest = balance * interest ;

if (period == tennure) {
payment = balance + curInterest ;
}

curPrincipal = payment - curInterest ;
balance -= curPrincipal ;

}








///

i want to show these values in table format i tried by creating a
table layout dynamically but it is not working


please help me


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


[android-developers] Re: When can we expect source code release for icecream sandwich version?

2011-10-20 Thread Mike
from http://groups.google.com/group/android-building/msg/c73c14f9b0dcd15a

We plan to release the source for the recently-announced Ice
Cream Sandwich soon, once it’s available on devices. 

So, I guess Mark is correct - or to be more precise - you will know
soon



On Oct 20, 1:25 am, swapnil kamble swap.kam...@gmail.com wrote:
 Thanks for your info. But I didn't asked whether I will get it or not, I
 know that. I asked when. If you don't know because its not clear, no need
 to reply.

 On Wed, Oct 19, 2011 at 6:34 PM, Mark Murphy mmur...@commonsware.comwrote:









  On Wed, Oct 19, 2011 at 8:50 AM, swapnil kamble swap.kam...@gmail.com
  wrote:
                                           When can we source code release
  for
   icecream sandwich ?

  Someday. Maybe.

  In other words, you will find out when it will be released only after
  it has been released.

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

  Android 3.1 Programming Books:http://commonsware.com/books

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

 --
 Swapnil

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


[android-developers] Gridview whose cell have differing size

2011-10-20 Thread dara kok
Hello,

Can you tell if it's possible to build gridview widget to have a number of 
cells with some cells span multiple columns forward and a few rows downward?

Thanks,

darakok

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

2011-10-20 Thread RLScott
If you are distributing your app independently of the Google
Marketplace, then the type of DRM you use is up to you.  If you use a
license number that is tied to the Android ID, then you will have to
set up some means for the customer to send you their Android ID.  Then
you will have to be involved with giving them a new license number
when they change phones.  Or you could use a license number based on
the Customer's name, which you also display on the screen.  That way
the customer can change phones without involving you, but you have no
way to prevent that customer from sharing his name and license number
with someone else.  Or if your app involves periodic communication
with your server, then you could use the Android ID to check for
proper licensing at that time, but you would still have to get
involved when the user changes phones.

On Oct 20, 2:38 am, Manish Garg mannishga...@gmail.com wrote:
 Hi All,

 I have one more query on the implementation of DRM:

 1. If a user has purchased one item and it get downloaded on their
 device, now if user changes his device? Can they again download it
 free of cost?
 2. If after purchasing, user can do multiple download then how does it
 check for illegal download. One person can download app on different
 devices.

 On Oct 20, 11:22 am, Manish Garg mannishga...@gmail.com wrote:



  Hi All,

  My requirement is to publish my application from client site instead
  of Android market. So I need to implement DRM. Please suggest some
  solution for it.

  Regards,
  Manish Garg

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] When can we expect source code release for icecream sandwich version?

2011-10-20 Thread Oli Wright
Any particular reason you felt the need to be rude when someone tries to 
assist you with a question you were more than capable of researching the 
answer for yourself?

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

Re: [android-developers] how to transfer file from android device to another android device using WIFI

2011-10-20 Thread Kristopher Micinski
You can't do this, if you're thinking of a BT push using adhoc mode
(Android has no ad-hoc APIs.)

What you can do is run a server on one phone, then push to the server
on the other phone from a client...  But still, you probably shouldn't
do this, as it's likely going to eat up battery..  So the last idea is
to use some web service to transfer your files.

Kris

On Thu, Oct 20, 2011 at 2:06 AM, Perumss Naren peru2...@gmail.com wrote:
 HI all,

   how to transfer file from android device to another android device
 using wifi please provide some link.
   Thanks in Advance!

 --
 Regards,

 Perumal.N

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

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

2011-10-20 Thread avantwave avantwave
by the way, i check the logs
it result as below, anyone know what is the problem

thanks in advanced!
//-
 java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.avantwave.brc100.BluetoothChat.test/com.avantwave.brc100.BluetoothChat.test.BluetoothChat}:
java.lang.SecurityException: Neither user 10153 nor current process has
android.permission.READ_PHONE_STATE.
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1816)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1837)
at android.app.ActivityThread.access$1500(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Neither user 10153 nor current
process has android.permission.READ_PHONE_STATE.
at android.os.Parcel.readException(Parcel.java:1322)
at android.os.Parcel.readException(Parcel.java:1276)
at
com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.listen(ITelephonyRegistry.java:257)
at android.telephony.TelephonyManager.listen(TelephonyManager.java:974)
at
com.avantwave.brc100.BluetoothChat.test.BluetoothChat$GraphView.init(BluetoothChat.java:758)
at
com.avantwave.brc100.BluetoothChat.test.BluetoothChat.onCreate(BluetoothChat.java:1762)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1780)
... 11 more

 //-

--


On 20 October 2011 08:14, Rita Ng rita...@gmail.com wrote:

 What could have happened is you already have an app with that package
 name installed on your phone, and you tried to install another app
 that use the same package name.

 Try uninstalling the apps that might have similar package, and re-
 install your app.

 On Oct 19, 7:23 pm, TreKing treking...@gmail.com wrote:
  On Wed, Oct 19, 2011 at 2:45 AM, sam avantwav...@gmail.com wrote:
   The application XXX(Apps name) (process com.X..xXX) has
   stopped unexpectedly. Please try again.
 
   Thus, I think I make some mistake during rename my packageany
 solution
   for me?
 
  Debug your app. At very least post a LogCat message with the exception
  crashing you.
 
 
 ---
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices

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


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

2011-10-20 Thread Appaholics
It indicates quite clearly that you are missing the READ_PHONE_STATE
permission, which is required for some task you are trying to accomplish.

Thanks

On Thu, Oct 20, 2011 at 4:35 PM, avantwave avantwave
avantwav...@gmail.comwrote:

 by the way, i check the logs
 it result as below, anyone know what is the problem

 thanks in advanced!
 //-
  java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.avantwave.brc100.BluetoothChat.test/com.avantwave.brc100.BluetoothChat.test.BluetoothChat}:
 java.lang.SecurityException: Neither user 10153 nor current process has
 android.permission.READ_PHONE_STATE.
 at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1816)
 at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1837)
 at android.app.ActivityThread.access$1500(ActivityThread.java:132)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1033)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:143)
 at android.app.ActivityThread.main(ActivityThread.java:4196)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.SecurityException: Neither user 10153 nor current
 process has android.permission.READ_PHONE_STATE.
 at android.os.Parcel.readException(Parcel.java:1322)
 at android.os.Parcel.readException(Parcel.java:1276)
 at
 com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.listen(ITelephonyRegistry.java:257)
 at android.telephony.TelephonyManager.listen(TelephonyManager.java:974)
 at
 com.avantwave.brc100.BluetoothChat.test.BluetoothChat$GraphView.init(BluetoothChat.java:758)
 at
 com.avantwave.brc100.BluetoothChat.test.BluetoothChat.onCreate(BluetoothChat.java:1762)
 at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
 at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1780)
 ... 11 more

  //-

 --


 On 20 October 2011 08:14, Rita Ng rita...@gmail.com wrote:

 What could have happened is you already have an app with that package
 name installed on your phone, and you tried to install another app
 that use the same package name.

 Try uninstalling the apps that might have similar package, and re-
 install your app.

 On Oct 19, 7:23 pm, TreKing treking...@gmail.com wrote:
  On Wed, Oct 19, 2011 at 2:45 AM, sam avantwav...@gmail.com wrote:
   The application XXX(Apps name) (process com.X..xXX) has
   stopped unexpectedly. Please try again.
 
   Thus, I think I make some mistake during rename my packageany
 solution
   for me?
 
  Debug your app. At very least post a LogCat message with the exception
  crashing you.
 
 
 ---
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices

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


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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

2011-10-20 Thread Kostya Vasilyev
You have android.permission.READ_PHONE_STATE in the wrong place in the 
manifest.


Remove permission=xxx from application and activity tags, add at 
the end of the manifest as uses-permission's.


Post the manifest here if you like.

-- Kostya

20.10.2011 15:05, avantwave avantwave ?:

by the way, i check the logs
it result as below, anyone know what is the problem
thanks in advanced!
//-
java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.avantwave.brc100.BluetoothChat.test/com.avantwave.brc100.BluetoothChat.test.BluetoothChat}: 
java.lang.SecurityException: Neither user 10153 nor current process 
has android.permission.READ_PHONE_STATE.
at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1816)
at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1837)

at android.app.ActivityThread.access$1500(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Neither user 10153 nor current 
process has android.permission.READ_PHONE_STATE.

at android.os.Parcel.readException(Parcel.java:1322)
at android.os.Parcel.readException(Parcel.java:1276)
at 
com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.listen(ITelephonyRegistry.java:257)

at android.telephony.TelephonyManager.listen(TelephonyManager.java:974)
at 
com.avantwave.brc100.BluetoothChat.test.BluetoothChat$GraphView.init(BluetoothChat.java:758)
at 
com.avantwave.brc100.BluetoothChat.test.BluetoothChat.onCreate(BluetoothChat.java:1762)
at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1780)

... 11 more
//-




On 20 October 2011 08:14, Rita Ng rita...@gmail.com 
mailto:rita...@gmail.com wrote:


What could have happened is you already have an app with that package
name installed on your phone, and you tried to install another app
that use the same package name.

Try uninstalling the apps that might have similar package, and re-
install your app.

On Oct 19, 7:23 pm, TreKing treking...@gmail.com
mailto:treking...@gmail.com wrote:
 On Wed, Oct 19, 2011 at 2:45 AM, sam avantwav...@gmail.com
mailto:avantwav...@gmail.com wrote:
  The application XXX(Apps name) (process com.X..xXX) has
  stopped unexpectedly. Please try again.

  Thus, I think I make some mistake during rename my
packageany solution
  for me?

 Debug your app. At very least post a LogCat message with the
exception
 crashing you.


---
--
 TreKing http://sites.google.com/site/rezmobileapps/treking -
Chicago
 transit tracking app for Android-powered devices

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


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


--
Kostya Vasilyev

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

2011-10-20 Thread avantwave avantwave
thanks for your quick reply , let me try to study how to solve it.

On 20 October 2011 19:10, Appaholics raghavs...@appaholics.in wrote:

 It indicates quite clearly that you are missing the READ_PHONE_STATE
 permission, which is required for some task you are trying to accomplish.

 Thanks


 On Thu, Oct 20, 2011 at 4:35 PM, avantwave avantwave 
 avantwav...@gmail.com wrote:

 by the way, i check the logs
 it result as below, anyone know what is the problem

 thanks in advanced!
 //-
  java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.avantwave.brc100.BluetoothChat.test/com.avantwave.brc100.BluetoothChat.test.BluetoothChat}:
 java.lang.SecurityException: Neither user 10153 nor current process has
 android.permission.READ_PHONE_STATE.
 at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1816)
 at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1837)
 at android.app.ActivityThread.access$1500(ActivityThread.java:132)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1033)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:143)
 at android.app.ActivityThread.main(ActivityThread.java:4196)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.SecurityException: Neither user 10153 nor current
 process has android.permission.READ_PHONE_STATE.
 at android.os.Parcel.readException(Parcel.java:1322)
 at android.os.Parcel.readException(Parcel.java:1276)
 at
 com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.listen(ITelephonyRegistry.java:257)
 at android.telephony.TelephonyManager.listen(TelephonyManager.java:974)
 at
 com.avantwave.brc100.BluetoothChat.test.BluetoothChat$GraphView.init(BluetoothChat.java:758)
 at
 com.avantwave.brc100.BluetoothChat.test.BluetoothChat.onCreate(BluetoothChat.java:1762)
 at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
 at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1780)
 ... 11 more

  //-

 --


   On 20 October 2011 08:14, Rita Ng rita...@gmail.com wrote:

 What could have happened is you already have an app with that package
 name installed on your phone, and you tried to install another app
 that use the same package name.

 Try uninstalling the apps that might have similar package, and re-
 install your app.

 On Oct 19, 7:23 pm, TreKing treking...@gmail.com wrote:
  On Wed, Oct 19, 2011 at 2:45 AM, sam avantwav...@gmail.com wrote:
   The application XXX(Apps name) (process com.X..xXX) has
   stopped unexpectedly. Please try again.
 
   Thus, I think I make some mistake during rename my packageany
 solution
   for me?
 
  Debug your app. At very least post a LogCat message with the exception
  crashing you.
 
 
 ---
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices

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


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




 --
 --
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/

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

Re: [android-developers] Re: android.git.kernel.org down?

2011-10-20 Thread Mark Murphy
http://groups.google.com/group/android-building/msg/c73c14f9b0dcd15a

On Thu, Oct 20, 2011 at 2:38 AM, venky6 venky.bab...@gmail.com wrote:

 Hi every one,

 I am very much interested to work on Android.
  and try to get the source.

 When i started to Download the  Android x86 : source code 
 its giving error like...

 Fetching projects:   1% (2/171)  android.git.kernel.org[0:
 149.20.4.77]: errno=Connectionatal: unable to connect a socket
 (Connection refused)

 So please any one give me idea to get it..

 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




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

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

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


Re: [android-developers] Gridview whose cell have differing size

2011-10-20 Thread Mark Murphy
On Thu, Oct 20, 2011 at 6:40 AM, dara kok mrpc.cambo...@gmail.com wrote:
 Can you tell if it's possible to build gridview widget to have a number of
 cells with some cells span multiple columns forward and a few rows downward?

No, sorry.

Now, the new GridLayout may be able to do that -- I have not gotten
into all the details yet. However, at the moment, it is only available
for API Level 14 (a.k.a., Ice Cream Sandwich). Once the source code is
released, we can look into making a version of it available for use on
older devices, or perhaps it will be added to the Android
Compatibility Library.

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

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

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


Re: [android-developers] Re: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-20 Thread Jonas Petersson

For the record: Adding this to my ICS.avd/config.ini solved my problem:

hw.webcam.count = 0

Best / Jonas

On 2011-10-20 08:57, Jonas Petersson wrote:

Hi all,

On 2011-10-19 19:43, sblantipodi wrote:

is there someone else who have this problem and is not using a
snapshot?
personally I was be able to start in WXGA resolution only the first
time.


I have not had time to properly experiment with this, but I've created a
few ICS images with and without snapshots and neither of them will boot
successfully. The GUI shows up, but quickly disappears again and if I
run the same manually from the prompt with the -verbose flag the trace
ends with:

-8
goldfish_fb_get_pixel_format:167: display surface,pixel format:
bits/pixel: 16
bytes/pixel: 2
depth: 16
red: bits=5 mask=0xf800 shift=11 max=0x1f
green: bits=6 mask=0x7e0 shift=5 max=0x3f
blue: bits=5 mask=0x1f shift=0 max=0x1f
alpha: bits=0 mask=0x0 shift=0 max=0x0
Segmentation fault
-8

I'm running this on Ubuntu 11.04, BTW. I intend to look more into this
during the weekend when I have more spare time.

Hope this helps someone.

Best / Jonas


On Oct 19, 6:57 pm, sblantipodiperini.dav...@dpsoftware.org wrote:

I didn't created a snapshot even, so no I'm not using a snapshot.

On Oct 19, 6:44 pm, Xavier Ducrohetx...@android.com wrote:








Are you running snapshots?



There is an issue reloading snapshots created by older versions of the
emulator. Unfortunately, the symptoms look like the emulator doesn't
boot.



Delete the snapshots and recreate them for now. We are going to fix
the emulator to make incompatible snapshot format problem more obvious
to the user.



On Wed, Oct 19, 2011 at 8:52 AM, sblantipodi



perini.dav...@dpsoftware.org wrote:

Am I the only one experiencing this problem?
The only way to launch a simulator is using another resolution or a
manual 720x1280, why?



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



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.http://developer.android.com|http://tools.android.com



Please do not send me questions directly. Thanks!






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


Re: [android-developers] When can we expect source code release for icecream sandwich version?

2011-10-20 Thread swapnil kamble
Thanks

On Thu, Oct 20, 2011 at 4:19 PM, Oli Wright oli.wri...@gmail.com wrote:

 Any particular reason you felt the need to be rude when someone tries to
 assist you with a question you were more than capable of researching the
 answer for yourself?

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




-- 
Swapnil

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

2011-10-20 Thread Daniel Drozdzewski
On 20 October 2011 09:55, Hiko hikosais...@gmail.com wrote:
 Hi,

 I implemented a widget to display a CPU occupancy.
 CPU occupancy is taken from cpu information in the /proc/stat.

 I faced a problem.
 CPU occupancy is raised rapidly at the moment when this cpu occupancy
 widget is on the home screen.

 I have one question.
 Is CPU occupancy raised when a widget is on the screen?


You should only read the /proc/stat file and render the results then
wait for prolonged period of time (refresh rate say 5 seconds, or
possibly even longer) doing nothing.
Do you have an active loop, that checks for changes in this file?

Daniel





-- 
Daniel Drozdzewski

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

2011-10-20 Thread luciofm
Hi novemberox

Any progress on this??? I'm having the same issue in a project

If I don't find any solution I'll have to redirect it to the videoplayer via
Intent unitl the ICS source code is released.


Thanks
Lúcio Maciel
luci...@gmail.com


On Wed, Aug 31, 2011 at 07:45, novemberox novembe...@gmail.com wrote:

 I also found, that enabling hardware acceleration fix issue with
 playing embedded video. Full screen still doesn't work.

 On 29 Sie, 21:34, novemberox novembe...@gmail.com wrote:
  A tip would be useful :)
 
  I tried to find Google browser sources in Android 3.1, but I'm not
  quite sure if sources here:
 http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...
  are the sources used in 3.1.
 
  On 27 Sie, 22:28, novemberox novembe...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi,
 
   I'm trying to play video in html on fullscreen. When I click on
   fullscreen button in video method onShowCustomView is fired. Here is
   my implementation:
 
   public void onShowCustomView(View view, CustomViewCallback
 callback)
   {
   super.onShowCustomView(view, callback);
   if (view instanceof FrameLayout) {
   customComponenet.addView(view, new
 FrameLayout.LayoutParams(
  
 ViewGroup.LayoutParams.FILL_PARENT,
   ViewGroup.LayoutParams.FILL_PARENT,
   Gravity.CENTER));
   customComponenet.setVisibility(View.VISIBLE);
   }
   }
   Where customComponenet is FrameLayout placed on top of my current
   layout. Wideo is playing good, it's visibile and everything seams to
   be ok but it throws:
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL EXCEPTION: main
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235):
   java.lang.NullPointerException
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
  
 android.webkit.HTML5VideoFullScreen.switchProgressView(HTML5VideoFullScreen
 .java:
   320)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoView.setPlayerBuffering(HTML5VideoView.java:
   319)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoView.start(HTML5VideoView.java:85)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoViewProxy
   $VideoPlayer.onPrepared(HTML5VideoViewProxy.java:257)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoViewProxy.onPrepared(HTML5VideoViewProxy.java:
   278)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoView.onPrepared(HTML5VideoView.java:265)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
  
 android.webkit.HTML5VideoFullScreen.onPrepared(HTML5VideoFullScreen.java:
   164)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:
   1456)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.os.Handler.dispatchMessage(Handler.java:99)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.os.Looper.loop(Looper.java:132)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.app.ActivityThread.main(ActivityThread.java:4028)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   java.lang.reflect.Method.invokeNative(Native Method)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   java.lang.reflect.Method.invoke(Method.java:491)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   com.android.internal.os.ZygoteInit
   $MethodAndArgsCaller.run(ZygoteInit.java:844)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   dalvik.system.NativeStart.main(Native Method)
 
   What am I doing wrong?
 
   My WebView settings:
   webView.getSettings().setJavaScriptEnabled(true);
   webView.getSettings().setPluginState(PluginState.ON);
   webView.getSettings().setDomStorageEnabled(true);
   webView.getSettings().setDatabasePath(/data/data/ +
   App.class.getPackage().getName() + /databases);
   webView.getSettings().setSupportZoom(false);
 
   I'm testing on Galaxy Tab 10.1, on default browser this is working
   just fine. I can switch to fullscreen. Moreover in my app when I play
   video embeded I can hear only sound and see status bar below area
   where video should be, while on browser I can see video both embeded
   in WebView and on fullscreen.

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

Re: [android-developers] Re: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-20 Thread MN Mojo
I am also seeing the same problem. Its not at all loading for any of the
resolutions. It just keep loading but does not start.
Any solution.

Also If I try onq hello word app with 4.0 but eclipse also gets crashed
while accessing any file after creation. i am totally stuck :(

On Thu, Oct 20, 2011 at 5:07 PM, Jonas Petersson jonas.peters...@xms.sewrote:

 For the record: Adding this to my ICS.avd/config.ini solved my problem:

 hw.webcam.count = 0

Best / Jonas


 On 2011-10-20 08:57, Jonas Petersson wrote:

 Hi all,

 On 2011-10-19 19:43, sblantipodi wrote:

 is there someone else who have this problem and is not using a
 snapshot?
 personally I was be able to start in WXGA resolution only the first
 time.


 I have not had time to properly experiment with this, but I've created a
 few ICS images with and without snapshots and neither of them will boot
 successfully. The GUI shows up, but quickly disappears again and if I
 run the same manually from the prompt with the -verbose flag the trace
 ends with:

 -8
 goldfish_fb_get_pixel_format:**167: display surface,pixel format:
 bits/pixel: 16
 bytes/pixel: 2
 depth: 16
 red: bits=5 mask=0xf800 shift=11 max=0x1f
 green: bits=6 mask=0x7e0 shift=5 max=0x3f
 blue: bits=5 mask=0x1f shift=0 max=0x1f
 alpha: bits=0 mask=0x0 shift=0 max=0x0
 Segmentation fault
 -8

 I'm running this on Ubuntu 11.04, BTW. I intend to look more into this
 during the weekend when I have more spare time.

 Hope this helps someone.

 Best / Jonas

  On Oct 19, 6:57 pm, 
 sblantipodiperini.dav...@**dpsoftware.orgperini.dav...@dpsoftware.org
 wrote:

 I didn't created a snapshot even, so no I'm not using a snapshot.

 On Oct 19, 6:44 pm, Xavier Ducrohetx...@android.com wrote:







  Are you running snapshots?


  There is an issue reloading snapshots created by older versions of the
 emulator. Unfortunately, the symptoms look like the emulator doesn't
 boot.


  Delete the snapshots and recreate them for now. We are going to fix
 the emulator to make incompatible snapshot format problem more obvious
 to the user.


  On Wed, Oct 19, 2011 at 8:52 AM, sblantipodi


  perini.dav...@dpsoftware.org wrote:

 Am I the only one experiencing this problem?
 The only way to launch a simulator is using another resolution or a
 manual 720x1280, why?


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


  --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.**comhttp://developer.android.com
 |http://tools.android.com


  Please do not send me questions directly. Thanks!




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


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

Re: [android-developers] how to transfer file from android device to another android device using WIFI

2011-10-20 Thread Perumss Naren
HI Kris,

You have any sample code for client server communication for file
sharing , or send link it will useful for me

 thanks for your reply!

On Thu, Oct 20, 2011 at 4:24 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 You can't do this, if you're thinking of a BT push using adhoc mode
 (Android has no ad-hoc APIs.)

 What you can do is run a server on one phone, then push to the server
 on the other phone from a client...  But still, you probably shouldn't
 do this, as it's likely going to eat up battery..  So the last idea is
 to use some web service to transfer your files.

 Kris

 On Thu, Oct 20, 2011 at 2:06 AM, Perumss Naren peru2...@gmail.com wrote:
  HI all,
 
how to transfer file from android device to another android
 device
  using wifi please provide some link.
Thanks in Advance!
 
  --
  Regards,
 
  Perumal.N
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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




-- 
Regards,

Perumal.N

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

Re: [android-developers] Re: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-20 Thread Mark Murphy
On Thu, Oct 20, 2011 at 8:12 AM, MN Mojo avayam...@gmail.com wrote:
 I am also seeing the same problem. Its not at all loading for any of the
 resolutions. It just keep loading but does not start.

From https://plus.google.com/113331808607528811927/posts/7ouwdJcyq9x :

3) Increase the default RAM for your AVDs to 1024MB (yup, 1GB)

7) If your first boot appears to lock up it could be your contacts
database. Try exiting the emulator and re-starting it (from +Reuben
Scratton )

11) You should recreate any new snapshots in the new emulator. The
emulator snapshot format has changed and the emulator doesn't fail
gracefully if it encounters a format it can't use (from +Xavier
Ducrohet )


-- 
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] java.lang.ClassNotFoundException: com.myapplauncher.App in loader dalvik.system.PathClassLoader@43735cf8

2011-10-20 Thread saex
I have problems launching my app, i get that exception when i try to
launch it on emulator:

 java.lang.ClassNotFoundException: com.myapplauncher.App in loader
 dalvik.system.PathClassLoader@43735cf8

also i get this line in top of the exeption: `10-20 11:35:24.840: WARN/
dalvikvm(789): Link of class 'Lcom/myapplauncher/App;' failed`


I have some packages on my app, one of them (`com.myapplauncher`),
haves the class App.java, that is the main class on my app.

This is my manifest:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/
android
  package=com.myapplauncher
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon
android:label=@string/app_name
activity android:name=.App android:label=@string/
app_name android:screenOrientation=portrait
intent-filter
action android:name=android.intent.action.MAIN /

category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-sdk android:minSdkVersion=3 /
/manifest

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Compatibility Library v4 and Added support to control how many pages are kept to either side of the current page

2011-10-20 Thread Arnaud VALLAT
After a look at the source of ViewPager.java.

/**
 * Set the number of pages that should be retained to either side of the
 * current page in the view hierarchy in an idle state. Pages beyond 
this
 * limit will be recreated from the adapter when needed.
 *
 * pThis is offered as an optimization. If you know in advance the 
number
 * of pages you will need to support or have lazy-loading mechanisms in 
place
 * on your pages, tweaking this setting can have benefits in perceived 
smoothness
 * of paging animations and interaction. If you have a small number of 
pages (3-4)
 * that you can keep active all at once, less time will be spent in 
layout for
 * newly created view subtrees as the user pages back and forth./p
 *
 * pYou should keep this limit low, especially if your pages have 
complex layouts.
 * This setting defaults to 1./p
 *
 * @param limit How many pages will be kept offscreen in an idle state.
 */
public void setOffscreenPageLimit(int limit);

Hope it helps.

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

[android-developers] Re: Problem with ADT14

2011-10-20 Thread Arnaud VALLAT
I'm also facing issues. I've updated to the lastest ADT, and to the lastest 
Compatibility Library. I'm having trouble with resources, sometimes instead 
of display images from resources it displays nothing but black color...

Any help on this would be 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

Re: [android-developers] Re: Implementing onShowCustomView on Android 3.1 throws in HTML5VideoFullScreen

2011-10-20 Thread M L
Hi,

nothing new on this I have also topic here:
http://stackoverflow.com/questions/7217159/implementing-onshowcustomview-on-android-3-1-throws-exception-in-html5videofulls



2011/10/20 luciofm luci...@gmail.com

 Hi novemberox

 Any progress on this??? I'm having the same issue in a project

 If I don't find any solution I'll have to redirect it to the videoplayer
 via Intent unitl the ICS source code is released.


 Thanks
 Lúcio Maciel
 luci...@gmail.com


 On Wed, Aug 31, 2011 at 07:45, novemberox novembe...@gmail.com wrote:

 I also found, that enabling hardware acceleration fix issue with
 playing embedded video. Full screen still doesn't work.

 On 29 Sie, 21:34, novemberox novembe...@gmail.com wrote:
  A tip would be useful :)
 
  I tried to find Google browser sources in Android 3.1, but I'm not
  quite sure if sources here:
 http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...
  are the sources used in 3.1.

 
  On 27 Sie, 22:28, novemberox novembe...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi,
 
   I'm trying to play video in html on fullscreen. When I click on
   fullscreen button in video method onShowCustomView is fired. Here is
   my implementation:
 
   public void onShowCustomView(View view, CustomViewCallback
 callback)
   {
   super.onShowCustomView(view, callback);
   if (view instanceof FrameLayout) {
   customComponenet.addView(view, new
 FrameLayout.LayoutParams(
  
 ViewGroup.LayoutParams.FILL_PARENT,
   ViewGroup.LayoutParams.FILL_PARENT,
   Gravity.CENTER));
   customComponenet.setVisibility(View.VISIBLE);
   }
   }
   Where customComponenet is FrameLayout placed on top of my current
   layout. Wideo is playing good, it's visibile and everything seams to
   be ok but it throws:
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL EXCEPTION: main
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235):
   java.lang.NullPointerException
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
  
 android.webkit.HTML5VideoFullScreen.switchProgressView(HTML5VideoFullScreen
 .java:
   320)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoView.setPlayerBuffering(HTML5VideoView.java:
   319)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoView.start(HTML5VideoView.java:85)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoViewProxy
   $VideoPlayer.onPrepared(HTML5VideoViewProxy.java:257)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
  
 android.webkit.HTML5VideoViewProxy.onPrepared(HTML5VideoViewProxy.java:
   278)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.webkit.HTML5VideoView.onPrepared(HTML5VideoView.java:265)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
  
 android.webkit.HTML5VideoFullScreen.onPrepared(HTML5VideoFullScreen.java:
   164)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:
   1456)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.os.Handler.dispatchMessage(Handler.java:99)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.os.Looper.loop(Looper.java:132)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   android.app.ActivityThread.main(ActivityThread.java:4028)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   java.lang.reflect.Method.invokeNative(Native Method)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   java.lang.reflect.Method.invoke(Method.java:491)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   com.android.internal.os.ZygoteInit
   $MethodAndArgsCaller.run(ZygoteInit.java:844)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
   08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at
   dalvik.system.NativeStart.main(Native Method)
 
   What am I doing wrong?
 
   My WebView settings:
   webView.getSettings().setJavaScriptEnabled(true);
   webView.getSettings().setPluginState(PluginState.ON);
   webView.getSettings().setDomStorageEnabled(true);
   webView.getSettings().setDatabasePath(/data/data/ +
   App.class.getPackage().getName() + /databases);
   webView.getSettings().setSupportZoom(false);
 
   I'm testing on Galaxy Tab 10.1, on default browser this is working
   just fine. I can switch to fullscreen. Moreover in my app when I play
   video embeded I can hear only sound and see status bar below area
   where video should be, while on browser I can see video both embeded
   in WebView and on fullscreen.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 

[android-developers] Re: Protect AppWidget(RemoteViews) from other applications

2011-10-20 Thread Efi Merdler-Kravitz
Did you try it? does it actually work ?

On Oct 19, 7:02 am, teracc websec02@gmail.com wrote:
 Hi list,

 I have one question about security of appwidget.

 I found that any app on the device can get RemoteViews
 of my appwidget on the Home app, and can change my
 RemoteViews object, like below.

 
 // get RemoteViews of AppWidget
 RemoteViews rv = new RemoteViews(somePackageName, someLayoutId);

 // change text
 rv.setTextViewContent(someTextViewId, foobar);

 // change onclick behavior
 rv.setOnclickPendingIntent(someButtonViewId, somePendingIntent);
 

 My question is, how can I protect from rogue apps to
 change my appwidget?

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


Re: [android-developers] New SDK Manager (14) do not recognise JDK JAVA path on windows 7

2011-10-20 Thread Marcin Orlowski
No. It works here. Ensure you got java related env vars set correctly.

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
*Twitterhttp://webnetmobile.com/twitter/
*



On 19 October 2011 19:49, Alanbluefox alanblue...@gmail.com wrote:

 I have windows 7 computer and I try to upgrade to the new SDK (from 13
 to 14). But the SDK manager told me he can't find the JAVA path.
 However All the other program could find it! I could run javac on
 command line, and my eclipse could RUN my test java program. So it's
 only the SDK who does not work anymore!  I am stucked; Could anyone
 check it? Do you have the same problem?

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

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

Re: [android-developers] how to transfer file from android device to another android device using WIFI

2011-10-20 Thread Kristopher Micinski
Well, the problem with this approach is that you don't know the
address of the other phone (and usually it's behind a router, etc...).
 I've only played this trick in toy apps, but if you want to see a
reference google file transfer socket java code.  (I got a bunch of
good examples from this...)

If you want to go the web service transfer route, you'll have to have
access to a web service.  and then investigate that route.

(It seems like people ask about this a lot, maybe somebody could make
money off of creating a web service and then charging a modest
licensing fee?)

Kris

On Thu, Oct 20, 2011 at 8:15 AM, Perumss Naren peru2...@gmail.com wrote:
 HI Kris,

     You have any sample code for client server communication for file
 sharing , or send link it will useful for me

  thanks for your reply!

 On Thu, Oct 20, 2011 at 4:24 PM, Kristopher Micinski
 krismicin...@gmail.com wrote:

 You can't do this, if you're thinking of a BT push using adhoc mode
 (Android has no ad-hoc APIs.)

 What you can do is run a server on one phone, then push to the server
 on the other phone from a client...  But still, you probably shouldn't
 do this, as it's likely going to eat up battery..  So the last idea is
 to use some web service to transfer your files.

 Kris

 On Thu, Oct 20, 2011 at 2:06 AM, Perumss Naren peru2...@gmail.com wrote:
  HI all,
 
    how to transfer file from android device to another android
  device
  using wifi please provide some link.
    Thanks in Advance!
 
  --
  Regards,
 
  Perumal.N
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


 --
 Regards,

 Perumal.N

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

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

2011-10-20 Thread Ashish Tiwari


https://lh5.googleusercontent.com/-gKWMCY-YrOQ/TqASpqk2NKI/Al0/yMglyHAFkac/android_listview.jpeg

hi friends,
I'm new to android development , I'm designing an UI something like the 
above,
There is a friend list and their two tweets(List),

What will be the best solution to design this UI ?

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

2011-10-20 Thread Ratheesh Valamchuzhy
use relative layout

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

2011-10-20 Thread Daniel Drozdzewski
Friend List as ListView, with each list element as a relative layout of left
flushed ImageView and two TextViews for 2 latest twits to the right of the
image.




On 20 October 2011 13:50, Ashish Tiwari ashish...@gmail.com wrote:


 https://lh5.googleusercontent.com/-gKWMCY-YrOQ/TqASpqk2NKI/Al0/yMglyHAFkac/android_listview.jpeg

 hi friends,
 I'm new to android development , I'm designing an UI something like the
 above,
 There is a friend list and their two tweets(List),

 What will be the best solution to design this UI ?

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




-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 query (price) information for multiple in-app products at once?

2011-10-20 Thread revanth
Hi,

In Android in app billing is it possible to somehow query (price)
information for all products using one query? Optimally you could pass
in the product IDs and it would return information for those.

What I'm looking for is the SKProductsRequest equivalent for Android
Market.
http://developer.apple.com/library/ios/#documentation/StoreKit/Reference/SKProductsRequest/Reference/Reference.html#//apple_ref/occ/cl/SKProductsRequest




Thanks,
Revanth

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

2011-10-20 Thread Ratheesh Valamchuzhy
the row of the listview is a relative layout
?xml version=1.0 encoding=utf-8?


  RelativeLayout xmlns:android=
http://schemas.android.com/apk/res/android;
android:layout_width=wrap_content  android:orientation=vertical
android:layout_height=wrap_content android:paddingBottom=5px
android:paddingTop=5px android:paddingLeft=5px  


ImageView
 android:id=@+id/icon  android:layout_marginRight=3px
android:paddingTop=2px  android:src=@drawable/women
 android:layout_width=50dip  android:layout_height=50dip/


TextView android:id=@+id/MemberName android:text=22 oct: iam
going to pune android:layout_width=wrap_content
 android:layout_alignParentTop=true
android:layout_marginTop=2dip
android:layout_height=wrap_content android:textSize=16dip
android:layout_toRightOf=@+id/icon/TextView


TextView android:id=@+id/ChatContent android:text=12:32 good
morning mumbai android:layout_width=wrap_content
android:layout_height=wrap_content android:layout_marginTop=2dip
android:layout_toRightOf=@+id/icon
android:layout_below=@+id/MemberName/TextView


/RelativeLayout
:)

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

2011-10-20 Thread Nicolás Mariano Obregón
Any thoughts?




Saludos.-
__
Nicolás Mariano Obregón
nmobre...@gmail.com
 http://ar.linkedin.com/in/nmobregon  http://www.facebook.com/nmobregon
 http://www.facebook.com/nmobregon




El 19 de octubre de 2011 18:24, Nicolás Mariano Obregón nmobre...@gmail.com
 escribió:

 Hi all! I'm having a bit of a headache trying to pass an enum object to my
 webservice using KSOAP.
 Here's the code

 *This class is the WS main parameter thats owns the enum*

 public class MyObject implements KvmSerializable{

 ...
 private MyEnum myEnum;
 ...

 @Override
  public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
  switch (arg0){
  case 0:
   arg2.type = MyEnum.class;
   arg2.name = myEnum;
   break;

case1:

 ...

   }
 }


 *This is the enum Class*

 public enum MyEnum implements KvmSerializable {

 VALUE1,
 VALUE2,
 VALUE3,
 VALUE4;

 public String value() {
 return name();
 }

  public static MyEnum fromValue(String v) {
 return valueOf(v);
 }

 @Override
 public Object getProperty(int arg0) {
  // TODO Auto-generated method stub
 return value();
 }

 @Override
 public int getPropertyCount() {
 // TODO Auto-generated method stub
  return 1;
 }

 @Override
  public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2)
 {
 arg2.type = PropertyInfo.STRING_CLASS;
 arg2.name = value;
 }

  @Override
 public void setProperty(int arg0, Object arg1) {
  }
 }

 I'm not very comfortable with this code because I don't really like the
 getPropertyInfo on the enum.
 Any help? Is there anyway to pass an enum as a parameter or I shouldn't be
 using enums here?

 Thanks in advance!

 __
 Saludos.-
 Nicolás Mariano Obregón
 nmobre...@gmail.com
 http://ar.linkedin.com/in/nmobregon  http://www.facebook.com/nmobregon
  http://www.facebook.com/nmobregon




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

2011-10-20 Thread Weikang Wan
Anyone has ideas? Thanks.

On Oct 19, 11:20 pm, Weikang Wan weikang@gmail.com wrote:
 I have implemented Http Server on top of android service on android. I
 can successfully handle a simple http request: open a simple home page
 by browser (http://10.0.2.15:8080) on localemulator.

 Then I launched anotheremulatorand try to open the home page via the
 browser on thisemulator. But it failed.

 I think it is because the secondemulatorcannot find the really IP
 address of the first one.

 Does anyone have idea about how to send Http request from oneemulator
 to anotheremulatorvia IP address?

 In practice, an android phone will send http request to another
 android phone as a http server.

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


[android-developers] listview problem

2011-10-20 Thread vani reddy
Hi friends,

I have 2 edittexts ,ontouch of the first edittext it should  a particular
listview  and ontouch  of second edittext it should show a different
listview in android.
I have used the below code


   View currentView = linflater.inflate(R.layout.listview, null);
 list1 =(ListView)currentView.findViewById(R.id.list);

  ViewpreviousView = linflater.inflate(R.layout.listview1, null);

 list2 =(ListView)previousView.findViewById(R.id.list);





 edit1.setOnTouchListener(new View.OnTouchListener() {

@Override
public boolean onTouch(View v, MotionEvent event) {
 list1.setVisibility(View.VISIBLE);
list2.setVisibility(View.INVISIBLE);

listView.removeView(currentView);
  linearlayout.removeView(previousView);
linearlayout.removeView(previousView);

String[] names = new String[] { Linux, Windows7,
Eclipse, Suse,
Ubuntu, Solaris, Android, iPhone};
// Create an ArrayAdapter, that will actually make the
Strings above
// appear in the ListView
list1.setAdapter(new ArrayAdapterString(SearchClass.this,
android.R.layout.simple_list_item_1, names));
   linearlayout.addView(currentView);

return false;
}
});




 edit1.setOnTouchListener(new View.OnTouchListener() {

@Override
public boolean onTouch(View v, MotionEvent event) {


list1.setVisibility(View.INVISIBLE);
linearlayout.removeView(previousView);
  linearlayout.removeView(currentView);

 list2.setVisibility(View.VISIBLE);
String[] names1 = new String[] { LOCATION , ,
Eclipse, Suse,
cc, , ,
iPhone};
list2.setAdapter(new
ArrayAdapterString(SearchClass.this, android.R.layout.simple_list_item_1,
namesLOCATIOn));
 linearlayout.addView(previousView);

return false;
}
});

But after executing it is showing list with names1 content on touch of both
edittexts.

How to resolve this problem..Please reply
-- 
Regards,
Vani Reddy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Compatibility Library v4 and Added support to control how many pages are kept to either side of the current page

2011-10-20 Thread MS
Thanks Arnaud. Two problems...

1) I do not see that available to me when working with my viewpager. I am 
using v4 of the compatibility library.
2) Can you give me a link to that source file?

Thanks
Mike

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

[android-developers] Change orientation while viewing video

2011-10-20 Thread dillipk
Hello,
  I am creating my own media player to integrate with my app. I am
struggling with the below issues:

-  How to change the screen orientation to landscape automatically
while watching a video?
- How do I integrate Media Controls like in Youtube player? Please
note that in Youtube media player, the controls show/hide
automatically.


Thanks so much in advance.

-DK

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


Re: [android-developers] enum paramenter in WebService Client

2011-10-20 Thread Mark Murphy
Try asking the people involved with kSOAP. This is not a kSOAP list.

2011/10/20 Nicolás Mariano Obregón nmobre...@gmail.com

 Any thoughts?




 Saludos.-
 __
 Nicolás Mariano Obregón
 nmobre...@gmail.com
  http://ar.linkedin.com/in/nmobregon http://www.facebook.com/nmobregon
  http://www.facebook.com/nmobregon




 El 19 de octubre de 2011 18:24, Nicolás Mariano Obregón 
 nmobre...@gmail.com escribió:

 Hi all! I'm having a bit of a headache trying to pass an enum object to my
 webservice using KSOAP.
 Here's the code

 *This class is the WS main parameter thats owns the enum*

 public class MyObject implements KvmSerializable{

 ...
 private MyEnum myEnum;
 ...

 @Override
  public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2)
 {
  switch (arg0){
  case 0:
   arg2.type = MyEnum.class;
   arg2.name = myEnum;
   break;

case1:

 ...

   }
 }


 *This is the enum Class*

 public enum MyEnum implements KvmSerializable {

 VALUE1,
 VALUE2,
 VALUE3,
 VALUE4;

 public String value() {
 return name();
 }

  public static MyEnum fromValue(String v) {
 return valueOf(v);
 }

 @Override
 public Object getProperty(int arg0) {
  // TODO Auto-generated method stub
 return value();
 }

 @Override
 public int getPropertyCount() {
 // TODO Auto-generated method stub
  return 1;
 }

 @Override
  public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2)
 {
 arg2.type = PropertyInfo.STRING_CLASS;
 arg2.name = value;
 }

  @Override
 public void setProperty(int arg0, Object arg1) {
  }
 }

 I'm not very comfortable with this code because I don't really like the
 getPropertyInfo on the enum.
 Any help? Is there anyway to pass an enum as a parameter or I shouldn't be
 using enums here?

 Thanks in advance!

 __
 Saludos.-
 Nicolás Mariano Obregón
 nmobre...@gmail.com
 http://ar.linkedin.com/in/nmobregon http://www.facebook.com/nmobregon
  http://www.facebook.com/nmobregon



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




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

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

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

[android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread dara kok
Hello,

I try to create list view that get its data from CursorAdapter. My cursor 
will contain all the row. And within the adapter implementation, base on a 
criteria, I want to skip a certain row from being displaying in the 
listview. 

Is that possible?  Example from a newView or bindView method, i return null. 
will that work?

Thanks,
darakok

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] java.lang.ClassNotFoundException: com.myapplauncher.App in loader dalvik.system.PathClassLoader@43735cf8

2011-10-20 Thread Justin Anderson
I don't really see anything wrong with your XML... How are you launching it?
Through ADB or Eclipse? Does your app show up in the list of all apps?

* Link of class 'Lcom/myapplauncher/App;' failed`*
This is a little weird... What is Lcom? Or was that just a typo?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Oct 20, 2011 at 6:20 AM, saex elpablos...@gmail.com wrote:

 I have problems launching my app, i get that exception when i try to
 launch it on emulator:

  java.lang.ClassNotFoundException: com.myapplauncher.App in loader
  dalvik.system.PathClassLoader@43735cf8

 also i get this line in top of the exeption: `10-20 11:35:24.840: WARN/
 dalvikvm(789): Link of class 'Lcom/myapplauncher/App;' failed`


 I have some packages on my app, one of them (`com.myapplauncher`),
 haves the class App.java, that is the main class on my app.

 This is my manifest:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/
 android
  package=com.myapplauncher
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon
 android:label=@string/app_name
activity android:name=.App android:label=@string/
 app_name android:screenOrientation=portrait
intent-filter
action android:name=android.intent.action.MAIN /
 
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-sdk android:minSdkVersion=3 /
/manifest

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

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

Re: [android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread Justin Anderson
Not sure if that is possible... but there are some possible workarounds if
not

The first, and probably more ideal solution, is to filter it out in your
query that returns a cursor.

The other option, though less ideal, would be to create a different kind of
adapter, perhaps an ArrayAdapter, and make it take a cursor.  Then you can
loop through the cursor and copy the items to some sort of data structure
(ArrayList maybe?) and perform the filtering at that point.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Oct 20, 2011 at 8:47 AM, dara kok mrpc.cambo...@gmail.com wrote:

 Hello,

 I try to create list view that get its data from CursorAdapter. My cursor
 will contain all the row. And within the adapter implementation, base on a
 criteria, I want to skip a certain row from being displaying in the
 listview.

 Is that possible?  Example from a newView or bindView method, i return
 null. will that work?

 Thanks,
 darakok

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

2011-10-20 Thread Jeremy Dagorn
You could restart the adb server, and try to make it recognize the
device again.

In command line, go to:
cd sdk-folder/platform-tools/
sudo ./adb kill-server
disable and enable debugging usb on your phone
sudo ./adb start-server
./adb devices

It should appear as detected.
Close Eclipse to be sure.

Hope it will work!

Jeremy


On Oct 18, 9:36 pm, Eric jude...@gmail.com wrote:
 I meet the same issue, it is work properly at emulator, however, mobile
 phone always offline at Mac OS 10.6

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

2011-10-20 Thread Justin Anderson
Well... show us the code for your table layout and someone will better be
able to help.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Oct 20, 2011 at 3:13 AM, jujare chandra sekhar 
androids...@gmail.com wrote:

 hi everybody does anybody know about this



 i have one question please give me reply for this i am new for
 android

 payment = (principal * interest) / (1 - Math.pow((1 + interest), -
 tennure)) ;

balance = principal ;

for (int period = 1 ; period = tennure ; period++) {



curInterest = balance * interest ;

if (period == tennure) {
payment = balance + curInterest ;
}

curPrincipal = payment - curInterest ;
balance -= curPrincipal ;

 }




 

 

 ///

 i want to show these values in table format i tried by creating a
 table layout dynamically but it is not working


 please help me


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

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

Re: [android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread dara kok
Thanks for ur comment. I need to have everything in the cursor, can't filter 
it out. Because even though I will skip a certain row, but i still need data 
form that row for backend processing within the adapter. 

That's why I need a solution to skip a row within the adapter.


Thanks,

darakok

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Compatibility Library v4 and Added support to control how many pages are kept to either side of the current page

2011-10-20 Thread MS
Forgive me. It appears my compatibly library was not up to date.

Thanks very much!


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

[android-developers] Re: Android 4.0 Emulator crashing (emulator-arm.exe)

2011-10-20 Thread Diego Torres Milano
Disabling snapshots in your AVD definition usually helps.

On Oct 20, 4:37 am, Nico Balestra nicobales...@gmail.com wrote:
 Same here.. still haven't managed to run the emulator :'(

 2011/10/20 Emanuel Moecklin 1gravity...@gmail.com







  Hi there

  I updated to the lastest SDK (including SDK Tools r14) and tried to
  start an Android 4.0 emulator.
  The emulator doesn't start and the Windows event log shows the
  following error:

  Faulting application name: emulator-arm.exe, version: 0.0.0.0, time
  stamp: 0x4e9c7fa8
  Faulting module name: emulator-arm.exe, version: 0.0.0.0, time stamp:
  0x4e9c7fa8
  Exception code: 0x4015
  Fault offset: 0x0010f10e
  Faulting process id: 0xf90
  Faulting application start time: 0x01cc8ed70a55c24b
  Faulting application path: C:\Development\android-sdk-windows\tools
  \emulator-arm.exe
  Faulting module path: C:\Development\android-sdk-windows\tools
  \emulator-arm.exe
  Report Id: 49d59d0b-faca-11e0-9aa4-7071bcc13e13

  I tried to google the exception code but the results didn't explain
  the crash.

  Any ideas?

  Emanuel Moecklin

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

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


Re: [android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread Justin Anderson
That's a bummer...

What kind of backend processing are you doing?  What exactly are you trying
to accomplish? Perhaps there is a better way to tackle the problem...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Oct 20, 2011 at 9:16 AM, dara kok mrpc.cambo...@gmail.com wrote:

 Thanks for ur comment. I need to have everything in the cursor, can't
 filter it out. Because even though I will skip a certain row, but i still
 need data form that row for backend processing within the adapter.

 That's why I need a solution to skip a row within the adapter.


 Thanks,

 darakok

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-20 Thread sblantipodi
No way to start simulators with default WXGA resolution here.

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


[android-developers] Re: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-20 Thread sblantipodi
PS: I have an ultra-high end configuration so no problem in system
specs as explained from the google AI Sutton post.

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

2011-10-20 Thread Nicolás Mariano Obregón
No, it's an android developers list, therefore, there is a chance that
someone has had to deal with this before. KSoap lists have already been
consulted with no luck.
Thanks anyway.


Saludos.-
__
Nicolás Mariano Obregón
nmobre...@gmail.com
http://ar.linkedin.com/in/nmobregon  http://www.facebook.com/nmobregon
 http://www.facebook.com/nmobregon




2011/10/20 Mark Murphy mmur...@commonsware.com

 Try asking the people involved with kSOAP. This is not a kSOAP list.

 2011/10/20 Nicolás Mariano Obregón nmobre...@gmail.com

 Any thoughts?




 Saludos.-
 __
 Nicolás Mariano Obregón
 nmobre...@gmail.com
  http://ar.linkedin.com/in/nmobregon http://www.facebook.com/nmobregon
  http://www.facebook.com/nmobregon




 El 19 de octubre de 2011 18:24, Nicolás Mariano Obregón 
 nmobre...@gmail.com escribió:

 Hi all! I'm having a bit of a headache trying to pass an enum object to
 my webservice using KSOAP.
 Here's the code

 *This class is the WS main parameter thats owns the enum*

 public class MyObject implements KvmSerializable{

 ...
 private MyEnum myEnum;
 ...

 @Override
  public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2)
 {
  switch (arg0){
  case 0:
   arg2.type = MyEnum.class;
   arg2.name = myEnum;
   break;

case1:

 ...

   }
 }


 *This is the enum Class*

 public enum MyEnum implements KvmSerializable {

 VALUE1,
 VALUE2,
 VALUE3,
 VALUE4;

 public String value() {
 return name();
 }

  public static MyEnum fromValue(String v) {
 return valueOf(v);
 }

 @Override
 public Object getProperty(int arg0) {
  // TODO Auto-generated method stub
 return value();
 }

 @Override
 public int getPropertyCount() {
 // TODO Auto-generated method stub
  return 1;
 }

 @Override
  public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo
 arg2) {
 arg2.type = PropertyInfo.STRING_CLASS;
 arg2.name = value;
 }

  @Override
 public void setProperty(int arg0, Object arg1) {
  }
 }

 I'm not very comfortable with this code because I don't really like the
 getPropertyInfo on the enum.
 Any help? Is there anyway to pass an enum as a parameter or I shouldn't
 be using enums here?

 Thanks in advance!

 __
 Saludos.-
 Nicolás Mariano Obregón
 nmobre...@gmail.com
 http://ar.linkedin.com/in/nmobregon http://www.facebook.com/nmobregon
  http://www.facebook.com/nmobregon



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




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

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

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

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

Re: [android-developers] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread dara kok
Within one list item, I want to display 2 or 3 rows of data from the cursor, 
it's displayed as multiple column in a single list view row.

So with that requirement, I can use a gridView. But my trouble is for a 
certain row from the cursor, it may fill the space of 2 columns. In overall, 
the drawing space of a row from the cursor will vary. So I have to use a 
list view, and will need to skip a row if it's already displayed along other 
row in a list view item.

darakok

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Listview based on CursorAdapter, how to skip displaying a row?

2011-10-20 Thread Kostya Vasilyev

The mapping between the cursor and the UI is defined by the adapter.

CursorAdapter assumes a one to one mapping: one UI row for each cursor row.

If you need to skip or split data rows, implement your own adapter, 
possibly by delegating to a CursorAdapter. Make sure to return correct 
(adjusted) value from getCount, and account for row position adjustments 
in getView.


-- Kostya

20.10.2011 19:41, dara kok пишет:
Within one list item, I want to display 2 or 3 rows of data from the 
cursor, it's displayed as multiple column in a single list view row.


So with that requirement, I can use a gridView. But my trouble is for 
a certain row from the cursor, it may fill the space of 2 columns. In 
overall, the drawing space of a row from the cursor will vary. So I 
have to use a list view, and will need to skip a row if it's already 
displayed along other row in a list view item.


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


--
Kostya Vasilyev

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