[android-developers] Re: NFC Secure Element

2012-01-04 Thread softy
Hi All, 
Thanks Fernando Miguélez Palomo for posting the patches.I have applied it 
to 2.3.4-r1 Android gingerbread and compiled /flashed it on Samsung Nexus S 
and was able to see the NFC Settings changed(though i cant select them, 
they are disabled)
I have blogged the whole steps 
herehttp://techshek4u.blogspot.com/2012/01/applying-card-emulation-patch-to_03.html.Plz
 let me know if I miss something.

@ Fernando Miguélez Palomo
What next after that.How can i test this.Any source code or tool /card 
reader description will be enlightening.
Rgds,
softy

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

Re: [android-developers] need help on text rotation

2012-01-04 Thread chowdary nani
hi jim,
Thanks for replay
my problem is to change the angle of text on key code event the text should
be changed either counter clock wise or anti clock wise.
i need help on changing the angle of text dynamically
in android will please help me any one

On Wed, Jan 4, 2012 at 11:35 AM, Jim Graham spooky1...@gmail.com wrote:

 On Wed, Jan 04, 2012 at 11:02:31AM +0530, chowdary nani wrote:

  I need help on rotating the text to certain angle on key code events in
  android will please help me anyone.

 We can't right now, because you haven't told us what the problem is.
 What have you done so far?  What errors are you getting?  Post the
 relevant portions of your code and the Logcat errors associated with
 the error.  Were you expecting everyone to just guess?

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| DMR: So fsck was originally called
 spooky1...@gmail.com|  something else.
  Running FreeBSD 7.0  | Q:   What was it called?
 ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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

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

2012-01-04 Thread Ali Chousein
Come on guys, take it easy. Some questions might not make sense to
you, because not all members in this forum (including myself) are
native English speakers.

Adam, to come to your question, my understanding of
MapActivity.isRouteDisplayed() is that, you should return true if your
map activity is going to show navigation. If your app will request map
info from the Google servers frequently for supporting navigation,
Google wants to know that. From what I understand, your case is a bit
grey area. If you are going to display the route information once and
that's it, I would return false. Otherwise I would return true.

Personally I find it very interesting to learn the opinion of other
developers also.

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

On Jan 4, 7:39 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 WTF does needs to return mean in your book?


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

2012-01-04 Thread Ali Chousein
Normally developers work their a...s off to make their apps more
popular and get more downloads+installs. You are trying to do
otherwise. Maybe you should be questioning your business model to
start with. I wouldn't stick with installation management techniques
for Windows based PCs of the last century.

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

On Jan 3, 9:50 am, Suganya suganyalakshmana...@gmail.com wrote:
 User is downloading applications from Android Market. My task is after
 downloading the application if the user tries to install the
 application (i.e if user clicks the install button) means a popup
 should open.  It should ask for password. If the password is
 correctthe user is allowed to install otherwise not. And then Some
 applications in the mobile are downloading other applications without
 user permission. I have to block these application installation which
 are downloading without user permission. I think i have to customize
 package manager. I dont have idea about this .Where the package
 manager files are located.

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


[android-developers] Sample nfc

2012-01-04 Thread ANKUR GOEL
Hi all ,

please send me some sample project of NFC which reads the tag and open a
activity .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: can use ATM cum debit card of State Bank of India (SBI) for registration.

2012-01-04 Thread Abu Bakar Sadeeq
thnx..

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

[android-developers] Using an auth token to authenticate to appengine app.

2012-01-04 Thread Arun C G
Hi,

android.accounts.AccountManager can be used to get an auth token.

How does one use it to authenticate to an appengine app, which is secured
behind a filter, i.e., user needs to be logged-in in order to use the app?
 Specifically, what are the parameters/headers to be sent in the https
request from android-app to appengine?  Does one get back a cookie?  If so,
how does one use that?

Thank you in advance,
Arun.

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

2012-01-04 Thread niksbin

Hi Everyone,

I am getting started with the new SDK 4.0.  I have everything set up
for development, but I cannot connect a device to the PC via USB.  I
am trying to get it to work with HTC Rezound (v2.3.5), XYBoard 10.1
tablet (v3.2), and Galaxy Nexus 16GB (v4.0.2) devices.  But I think I
am missing something.

Can someone please help me?

Your support is greatly appreciated.

Thanks.

Sincerely,
Nikhil

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


[android-developers] AVD problem

2012-01-04 Thread ravi ranjan
i am unable to connect internet(proxy server) in my Android virtual
device. i have tried with proxy, username and password. But it is not
working.

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


[android-developers] Setting textColor in strings.xml file

2012-01-04 Thread Glenn
Probably a stupid question from a newbie but here goes...

Can I set a color for text in the strings.xml file to be used in the
layout xml file?

ie... set color in strings.xml
  string name=goldText#ffdf38/string
then reference in the layout file main.xml
  TextView android:id=@+id/textViewGold
   android:layout_width=wrap_content
   android:textColor=@string/goldText/

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


[android-developers] New User

2012-01-04 Thread sangeeth kumar
I am a Beginner suggest me how to learn android programming concepts

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

2012-01-04 Thread Tomáš
setting android:listSelector to @android:color/transparent should do
the job.

Hope this helps,
Tomas

On Dec 29 2011, 6:48 pm, authorwjf wfran...@softlayer.com wrote:
 One solution I've come across is not to use: 
 itemandroid:drawable=@android:color/transparent / for the default state
 but rather a solid color such as white.  This effectively fixes the
 demo code, however it still causes issues in my production environment
 because the background of the listview itself is a custom graphic and
 thus I wanted it to show through.

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


[android-developers] HI

2012-01-04 Thread Yuri Andrade Rodrigues
Hello,

I'm Yuri and I'm brasilian, I study Eletric Engeenir.
I'm starting with OS Android and I was worked with little Linux,
I would like to learn of create app for mobile OS.


Thanks for all


Best Regards

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


[android-developers] android browser

2012-01-04 Thread karthik
Hi

Is there any way to get the information on the browser windows which
are opened currently ?

Thanks,
Karhtik

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


[android-developers] Problems installing the Android ADT Plug in on Eclipse

2012-01-04 Thread Fritzb
Installed Eclipse JDK 3.7.1 after the Android SDK.  Started up Eclipse
and tried to install the ADT Plug in.  It saw the developer tools on
the google web site attempted to install DDMS, Dev Tools, Hierarchy
Viewer, and Traceview, but gives an error: Cannot complete the
install because on or more required items could not be found.
Software being installed: Android Development tools
16.0.1.v201112150204-238534.  I have no idea what is missing.

Any ideas on this?
 Fritz

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


[android-developers] NEWBIE Question - Activity/Service Views

2012-01-04 Thread Mode-X
I have my application coded all ok and works perfect and various
Android o/s versions.
Now all I want to do is remove the View from my activity completly.
so nothing pops up when the application is run, and It can then just
sit happily in the background running and using the notification bar
to tell the user whats happening if an event occours?

Is there any way of doing this? The application must start on boot, I
dont mind creating it as a service as long as all the api's etc still
work the same. Any help hints or tips greatly appreciated Thank you :)

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


[android-developers] typo

2012-01-04 Thread John dipilla
didnt know where to put this, but the word friend is spelled wrong at
http://developer.android.com/sdk/android-4.0-highlights.html...here is
the text as written on the site 

Rich and versatile camera capabilities

The Camera app includes many new features that let users capture
special moments with great photos and videos. After capturing images,
they can edit and share them easily with FRIEMDS.

...hope this gets to the right place

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

2012-01-04 Thread aru padam
Hi All,

   I want a help on creating an apps which support the cloud
print
facility.
Please help me.

--
Thanks  Regards

Deepesh

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


[android-developers] Pdf Creation

2012-01-04 Thread aru padam
Hi all,


 Hi, i'm developing a apps and I want to create a pdf with
images.Anyone know something please help me.


Thanks

Deepesh

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


[android-developers] OpenGL textures not working.

2012-01-04 Thread purpleHack
I am having some trouble getting textures to work in OpenGL. I
explained my problem in detail here:
http://stackoverflow.com/questions/8704258/how-to-render-textured-primitives-in-android-opengl-es-2-0
. For the sake of neatness I won't write it again 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] browser windows displaying in android

2012-01-04 Thread karthik
Hi

i want to display all opened(minimized) browser windows in my gallery.
And when i click that particular gallery item corresponding window
should be opened.

Please suggest me how to do that .

Thanks
Karthik

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


[android-developers] Get correct orientation and screen size for View?

2012-01-04 Thread Elmi
Hi,

within my App I use a View where the drawing function is overwritten
so that I can paint my own things. To get a correct result I evaluate
the screen size and then draw within the returned available range.

Now it might happen that the user rotates its tablet and switches from
landscape to portrait orientation. To detect that I'm using a
SensorManager that notifies me about orientation changes.
Unfortunately I never get a portrait-orientation returned but only
Configuration.ORIENTATION_SQUARE when the tabled is rotated from
landscape view to portrait. Beside of that current width and height
(returned by WindowManager) are equal after rotation, so I really get
a square-sized view and parts of my display are left unused.

Amazingly Configuration.ORIENTATION_LANDSCAPE works correct, including
return of the correct screen dimensions.

What could be the reason for this behaviour?

Thx

Elmi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MY FIRST APP IS NOT WORKING ON PHONE / EMULATOR

2012-01-04 Thread sreeram shyam
*Hi Vinu,

Try clean the project and then try.

*Go to
-project menu
   - clean

From hear clean your project and then run.

On Mon, Jan 2, 2012 at 7:14 AM, Vinu vinu.d...@gmail.com wrote:

 HI,

 I DEVELOPED MY FIRST APP ON ANDROID IT COMPILES PROPERLY WITHOUT ANY
 ERROR, BUT WHEN I RUN IT IN EMULATOR OR PHONE IT CRASHES.

 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




-- 
*Regards
Shyam*

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

[android-developers] IllegalArgumentException: column_id doesn't exist

2012-01-04 Thread sree
Hi,

I have created the table with single field name called NAME, when i
trying to fetch the data from the cursor object am getting illegal
argument exception:column_id error am getting.

Please let me know how this can be done. Is it possible to fetch the
single field value without ID field??

Thanks in advance.

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


Re: [android-developers] Re: block application installation by password

2012-01-04 Thread Kristopher Micinski
On Wed, Jan 4, 2012 at 3:43 AM, Ali Chousein ali.chous...@gmail.com wrote:
 Normally developers work their a...s off to make their apps more
 popular and get more downloads+installs. You are trying to do
 otherwise. Maybe you should be questioning your business model to
 start with. I wouldn't stick with installation management techniques
 for Windows based PCs of the last century.


Ali,

Hmm.  I'm not quite sure what you meant here, it's not that I think
you meant something incorrect, I think I just lost the context.  Are
you saying: you shouldn't do something like this, look at all the
other windows based apps that did this?

I am under the assumption that the OP wants to know because he is
writing an ever popular these days Android security app...

kris

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


[android-developers] ZXing Autofocus issue

2012-01-04 Thread luki
Hi

I write an application for Motorola Xoom tablet with Android 3.1 that
can scan multiple QR Codes in real time with it's camera and that
displays additional information in the display over recognised QR
Codes.

The recognition is done with the ZXing android app (http://
code.google.com/p/zxing/), I basically just changed the code of the
ZXing app so that it can recognise multiple QR Codes at the same time
and can do this scan continually, without freezing after a successful
scan like the original app does. So my app is basically the ZXing app
with continous scanning of multiple QR Codes.

But I'm facing a problem:


 1. The ZXing app makes some sort of continous autofocus. It starts
the
autofocus and when it is finished it automatically starts the
autofocus again. But this method somehow makes the camera
brightness
settings too bright, so that the camera cannot recognize the QR
Codes because the image is almost totally white. Disabling the
autofocus solves the problem, but I need autofocus because otherwise
the recognition of the QR Codes is only possible at a certain
distance.

 - How can I change the brightness settings of the camera?
 - Does somebody know another possibility for autofocus?


Any help is highly appreciated!

Thanks.

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


[android-developers] How to get mobile number

2012-01-04 Thread Upendra Reddy Vuyyuru
Hi All,

I need to find the mobile number.
Any ideas?

Thank you in advance...


Regards
Upendra

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

[android-developers] MapView, Overlay's, TextView too many onDraw

2012-01-04 Thread Wubbester
I have a mapview in RelativeLayout defined in main.xml, that also
includes another layout as a viewstub to display status message to the
users. I set the visibility of the status bar to 'gone' when I inflate
the stub. Thereafter any new message (put on the status bar by a
thread/async task) will set the visibility to 'visible' to display the
message. After the task is done, it remove the message from status bar
and set its visibility to gone. BTW GPS is on to get new lat/lng and
to move the map accordingly and display overlays

Everything is working...but

Question:
There are way to many onDraw into mapview even when the device is not
moving. I traced it to status bar, anytime new a message is put on
status bar, the postInvalidate from there trickles down into mapview,
even though the device has not moved a millimeter, lat/lng have not
changed, no new map tiles are needed etc.  If I remove the status bar,
I see normal invalidates to mapview i.e. 2-3 depending on my logic in
overlay class which I'm OK with. However when I say large
postInvalidates while device is sitting on its behind, they number
around 70-80

Any ideas as to whats going on in/with the view hierarchy, how to
prevent it ? Is this bug?

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


[android-developers] Gettign GPS on a moving train

2012-01-04 Thread ramkumar pinninti
Hi,

I want to develop application that will read GPS location and Signal
Stregth in dBm at each GPS Location for every second.Recording is done
along the railway tracks on a moving train (approximately 100 KMPH
speed).Using this data i will report user (Railway user) about signal
stregth of a carrier.In my observation GPS Locations getting my
application are some times not accurate(with accuracy  100 meters)
even though i put mobile at windows.Please tell me what are the  guide
lines to get accurate locations on a fast moving trains.

Thanks and regards
P.Ramkumar.

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

2012-01-04 Thread GerarCR
Hello:

Im starting in Android, and i have this problem:

I need to ask for a route using google maps API, but i need the (lat,long) 
points of the polyline to plot them by myself, instead of the encoded 
polyline.
Anyone knows if its possible to obtain NOT ENCODED polylines using the 
com.google.android.maps package? (when asking for a route)
If it's not possible, any suggestions to decode the polylines in my Android 
APP?

Thanks!

Sorry if im missing something very obvious, i'm an android begginer (i've 
searched for documentation about this, but can't find anything).
Also sorry for my english :)

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

2012-01-04 Thread hey sns
I am a university student.I am intereting in the  development of
Android ,so I want to join you to learn more.

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


[android-developers] Third Party API to get mobile number which is associated with SIM serial number.

2012-01-04 Thread Upendra Reddy Vuyyuru
Hi All,

I am planning to get the mobile number. I tried by using the following code
snippet

TelephonyManager info =
(TelephonyManager)getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
String phoneNumber = info.getLine1Number();

the above snippet always returns null value.

By using android method we can get the SIM serial number. So is there any
third party API to get the mobile number.

Thank you in Advance.


Regards
Upendra

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

[android-developers] Better quality in camera preview frame

2012-01-04 Thread luki
Hi

I write an application for Motorola Xoom tablet with Android 3.1 that
can scan multiple QR Codes in real time with it's camera and that
displays additional information in the display over recognised QR
Codes.

The recognition is done with the ZXing android app (http://
code.google.com/p/zxing/), I basically just changed the code of the
ZXing app so that it can recognise multiple QR Codes at the same time
and can do this scan continually, without freezing after a successful
scan like the original app does. So my app is basically the ZXing app
with continous scanning of multiple QR Codes.

But I'm facing a problem:

 1. The recognition rate of QR Codes with the built in camera is not
very good. The ZXing app uses the pictures that it gets from the
camera preview. But these pictures do not have a very good
quality.
Is there any possibility to make the camera preview making better
quality pictures?

P.S. I also tried to make real snapshots with camera.takePicture()
to get a better quality, but it takes too long to take the picture
so the real time experience for the user is lost.



Any help is highly appreciated!

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] why doesn't the stock android emulator have a file explorer?

2012-01-04 Thread greenlion89
I wish the emulator would have a file explorer so I could test my intent, 
am I missing something here?

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

[android-developers] nexus s ICS Action bar overflow button problem

2012-01-04 Thread Lbiddau68
i configure a menu with 6 buttons with options 'ifRoom and never i
can see all the menu item if i press the option button  but in ever
see the overflow button.
did i miss something?
thank you.

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


[android-developers] How to retrieve Icon drawable for different density?

2012-01-04 Thread Joon
Hi, I need to retrieve other application icon resource/bitmaps at
different density. (/drawable-mdpi, /drawable-hdpi...etc)

resources.getDrawable(iconId) basically returns the default one.

Thanks for any help!

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


[android-developers] any help in getting the android kernel source, just what is needed...

2012-01-04 Thread fredatlarge
ok, I have seen http://source.android.com/source/downloading.html 
but cloning the repository of https://android.googlesource.com/kernel/common.git
downloaded 2.5G of whatever and i'm still not sure what I got.
so how do you navigate around these repositories
all I want is what the current kernel source is for at least  ver3.0 for  VIA 
8650
clear as mud atm... 

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

2012-01-04 Thread RyanE
context.startActivity( new Intent( Intent.ACTION_VIEW,
Uri.parse( http://www.google.com; ) ) );


I usually launch the web like this in my app.

However, it doesn't work on AppWidget.

could you please tell me why and how to handle it?

I'm in trouble with it. T_T

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

2012-01-04 Thread GerarCR
Hello:

I need to obtain the (lat.long) points of a polyline when asking for a 
route to the google maps API.
Anyone knows how to obtain NOT ENCODED polylines using the 
com.google.android.maps package?
If it's not possible, any suggestions for decoding polylines in an android 
APP?

Thanks!

Sorry if i'm missing something obvious, im an android begginer (i've 
searched for documentation, but can't find anything useful).
Also sorry for my english :)

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

[android-developers] Get current screen size?

2012-01-04 Thread Satz Klauer
Hi all,

what is the recommended way to evaluate the current screens width and
height? Currently I'm using the WindowManager class but it returns the
correct size only when display is in landscape mode. In case it is
rotated to portrait mode returned screen width and height are equal
(which is not correct on an 4:3 display).

Elmi

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


[android-developers] Setting button color in Java but the button color does not reliably change?

2012-01-04 Thread Carl

Setting button color ...

I just finished 200 video tutorials on Android programming and started
experimenting with what I learned.
I am trying to set Button color in java and found that I can reliably
set them in the onCreate() constructor but not later in the program.

I created a fun little class of 5 buttons where each button click sets
the colors separately.
Setting the button color like this:

Code
  b1.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
  b2.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
  b3.getBackground().setColorFilter(Color.RED, Mode.MULTIPLY);
  b4.getBackground().setColorFilter(Color.CYAN,
Mode.MULTIPLY);
  b5.getBackground().setColorFilter(Color.WHITE,
Mode.MULTIPLY);
/Code



The buttons colors do not reliably change simply by clicking the color
change button.
But I can force it to appear by manipulating the phone like this:
After clicking on a button to change the color, I can click on a
TextView widget to get the keyboard to appear on the screen and then
press the menu back button and the colors for the buttons I set are
properly refreshed.
It appears I need a display refresh or something like VB.NET's
Application.DoEvents()

Got any ideas?

Here is the complete ButtonColor class I wrote:

Code
package com.example.helloandroid;

import android.app.Activity;
import android.graphics.Color;
import android.graphics.PorterDuff.Mode;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ButtonColor extends Activity implements
OnClickListener{

   Button b1, b2, b3, b4, b5;

   Bundle saveB;


   @Override
   protected void onCreate(Bundle savedInstanceState) {
  // TODO Auto-generated method stub
  super.onCreate(savedInstanceState);
  setContentView(R.layout.buttoncolor);

  b1 = (Button) findViewById(R.id.b1);
  b2 = (Button) findViewById(R.id.b2);
  b3 = (Button) findViewById(R.id.b3);
  b4 = (Button) findViewById(R.id.b4);
  b5 = (Button) findViewById(R.id.b5);

  b1.setOnClickListener(this);
  b2.setOnClickListener(this);
  b3.setOnClickListener(this);
  b4.setOnClickListener(this);
  b5.setOnClickListener(this);

  b1.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
  b2.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
  b3.getBackground().setColorFilter(Color.RED, Mode.MULTIPLY);
  b4.getBackground().setColorFilter(Color.CYAN,
Mode.MULTIPLY);
  b5.getBackground().setColorFilter(Color.WHITE,
Mode.MULTIPLY);

  saveB = savedInstanceState;


   }

   public void onClick(View v) {
  // TODO Auto-generated method stub

  switch (v.getId()){

  case R.id.b1:
 b1.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
 b2.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
 b3.getBackground().setColorFilter(Color.RED,
Mode.MULTIPLY);
 b4.getBackground().setColorFilter(Color.CYAN,
Mode.MULTIPLY);
 b5.getBackground().setColorFilter(Color.WHITE,
Mode.MULTIPLY);
 break;
  case R.id.b2:
 b1.getBackground().setColorFilter(Color.WHITE,
Mode.MULTIPLY);
 b2.getBackground().setColorFilter(Color.CYAN,
Mode.MULTIPLY);
 b3.getBackground().setColorFilter(Color.RED,
Mode.MULTIPLY);
 b4.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
 b5.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
 break;
  case R.id.b3:
 b1.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
 b2.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
 b3.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
 b4.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
 b5.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
 break;
  case R.id.b4:
 b1.getBackground().setColorFilter(Color.RED,
Mode.MULTIPLY);
 b2.getBackground().setColorFilter(Color.WHITE,
Mode.MULTIPLY);
 b3.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
 b4.getBackground().setColorFilter(Color.RED,
Mode.MULTIPLY);
 b5.getBackground().setColorFilter(Color.WHITE,
Mode.MULTIPLY);
 break;
  case R.id.b5:
 b1.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
 b2.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
 b3.getBackground().setColorFilter(Color.GREEN,
Mode.MULTIPLY);
 b4.getBackground().setColorFilter(Color.BLUE,
Mode.MULTIPLY);
 b5.getBackground().setColorFilter(Color.RED,
Mode.MULTIPLY);
   

[android-developers] Re: TelephonyManager.getLine1Number() returns null always

2012-01-04 Thread Upendra
I had given read phone state permission for this. still i am getting
null not empty string.

In android we can get sim serial number. So, is there any third API to
get the mobile number which is associated with SIM serial number.

On Jan 3, 6:47 am, Vadim vadimk11...@gmail.com wrote:
 Seems line a (lack of) permission problem. For GSM, the phone number
 is on the SIM card, and some carriers just don't put it on the card,
 and then the phone does not know what it is, but in this case you
 should get an empry string rather than a null.

 On Jan 2, 3:18 am, Kristopher Micinski krismicin...@gmail.com wrote:







  Some devices just do this,

  what device are you using?

  Also, you should have the read phone state permission for this, though
  if you didn't have it the result should be a security exception rather
  than this null behavior (unless I'm forgetting that the api silently
  checks for the permission, however, I think this is not the case...)

  kris

  On Mon, Jan 2, 2012 at 6:13 AM, Upendra Reddy 
  Vuyyuruupendraredd...@gmail.com wrote:
   Hi All,

   I am trying to fetch the telephone number of the device. I am calling

   TelephonyManager.getLine1Number()  it always returns null.

   Thank you in advance

   Regards
   Upendra Reddy.V

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, 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] Third Party API to get mobile number which is associated with SIM serial number.

2012-01-04 Thread Upendra Reddy Vuyyuru
Hi All,

I need to get the mobile number which is associates with SIM Serial number.
Is there any Third party API to get mobile number.


Thank you in advance

Regards
Upendra

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

[android-developers]

2012-01-04 Thread i...@mode-x.co.uk
Unsubscribe 

Sent from Samsung Mobile

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Third Party API to get mobile number which is associated with SIM serial number.

2012-01-04 Thread Arun C G
Hi,

In general, there is no open api available for this.  The user has to enter
the phone number, and a typical method of verifying the phone number is to
send an authentication code via SMS, and verify the code in some manner.

Arun.

On Wed, Jan 4, 2012 at 2:33 PM, Upendra Reddy Vuyyuru 
upendraredd...@gmail.com wrote:

 Hi All,

 I need to get the mobile number which is associates with SIM Serial
 number. Is there any Third party API to get mobile number.


 Thank you in advance

 Regards
 Upendra

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

2012-01-04 Thread Raghav Sood
Why do you need this? Are you trying to uniquely identify individual
installs? If so, what will you do if your user doesn't have a SIM in his
phone, or is  on a tablet? Search the list. Identifying installs uniquely
has been discussed before.

FYI, to see if the carrier stores the number on your SIM, go to Settings -
About Phone - Status - My phone Number (In ICS. Other versions may vary
slightly.) If it displays unknown there, then your number is not stored on
the SIM.

Thanks

On Tue, Jan 3, 2012 at 4:46 PM, Upendra upendraredd...@gmail.com wrote:

 I had given read phone state permission for this. still i am getting
 null not empty string.

 In android we can get sim serial number. So, is there any third API to
 get the mobile number which is associated with SIM serial number.

 On Jan 3, 6:47 am, Vadim vadimk11...@gmail.com wrote:
  Seems line a (lack of) permission problem. For GSM, the phone number
  is on the SIM card, and some carriers just don't put it on the card,
  and then the phone does not know what it is, but in this case you
  should get an empry string rather than a null.
 
  On Jan 2, 3:18 am, Kristopher Micinski krismicin...@gmail.com wrote:
 
 
 
 
 
 
 
   Some devices just do this,
 
   what device are you using?
 
   Also, you should have the read phone state permission for this, though
   if you didn't have it the result should be a security exception rather
   than this null behavior (unless I'm forgetting that the api silently
   checks for the permission, however, I think this is not the case...)
 
   kris
 
   On Mon, Jan 2, 2012 at 6:13 AM, Upendra Reddy Vuyyuru
 upendraredd...@gmail.com wrote:
Hi All,
 
I am trying to fetch the telephone number of the device. I am calling
 
TelephonyManager.getLine1Number()  it always returns null.
 
Thank you in advance
 
Regards
Upendra Reddy.V
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, 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
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

2012-01-04 Thread faraz ali
Hi All
i am new to android development. how i can make an app which can sniff
the packets on the network and how i can provide root permission to
this app to run on android tablet.

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


[android-developers] Opening file when download completes

2012-01-04 Thread mattcoz
I'm downloading a file using the DownloadManager.  I'm receiving the
ACTION_DOWNLOAD_COMPLETE broadcast but I'm having trouble opening the
file.  I'm creating a ACTION_VIEW intent with the data set to the Uri
I get from the getUriFromDownloadedFile method and the type set to the
String I get from the getMimeTypeFromDownloadedFile method.  I'm able
to start the activity to open the file, but the app is not able to
open it.  I know the file is being downloaded correctly because I can
go to my list of downloads and open it from there.  Any idea of what
I'm doing wrong?  Here is the code in my BroadcastListener:

long id =
intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID);
DownloadManager dm =
(DownloadManager)getSystemService(DOWNLOAD_SERVICE);

intent = new Intent(Intent.ACTION_VIEW);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.setDataAndType(dm.getUriForDownloadedFile(id),
dm.getMimeTypeForDownloadedFile(id));
startActivity(intent);

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

2012-01-04 Thread nitegate
Hi!

Last week I published a demo java applet that can read Android Beam
messages. All you need is a ACR122 NFC desktop reader. It is quite
useful if you are working on Android Beam functionality because the
applet shows you what kind of data is transfered.
Also very useful for interoperability tests.

Please give it a try:
http://www.grundid.de/nfc/

Here is how it works:
http://youtu.be/I6-YObZNtDg

Regards,
Adrian.

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


[android-developers] my google api emulator shows messy.

2012-01-04 Thread 涛 涂
  I use google map api,but the emulator shows messy,my main.xml
   ?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical 
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal
Button
  android:id=@+id/zoomin
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=+
  android:onClick=myClickHandler
  /
Button
  android:id=@+id/zoomout
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=-
  android:onClick=myClickHandler
  /
Button
  android:id=@+id/sat
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=sat
  android:onClick=myClickHandler
 /
Button
  android:id=@+id/street
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=str
  android:onClick=myClickHandler
 /
Button
  android:id=@+id/tra
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=traffic
  android:onClick=myClickHandler
  /
Button
  android:id=@+id/normal
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=normal
  android:onClick=myClickHandler
 /
   /LinearLayout
   view class=com.google.android.maps.MapView
 android:id=@+id/mapView1
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:clickable=true
 android:apiKey=0-BDqlighxtUmcnH3hN9G6FwGvtHxosvHEz0tHw/

/LinearLayout

I choose run as android application,but in the emulator,the home shows
messy,and my application shows messy,I resize the emulator's size,it
doesnot work.

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


[android-developers] [Q]Development Java Service and Emulating in Android 4.0.3

2012-01-04 Thread yongin kwon
After compiling a source code for android 4.0.3, I can see the file of
system.img
 I shoud copy the file to android-sdks/platforms/android-xx/images/
 But I couldn't find the directory in android 4.0.3 sdk platform.
 What shoud I do?

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

2012-01-04 Thread AndroCraze
Hi all,
I am new to android.Need Help in plotting a graph in linear
pattern, it should show two lines in the graph.

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


[android-developers] login password

2012-01-04 Thread Indraneel Kulkarni
hello all,

i've just started my project on android.. i dont know much about it.
well the first module is reading a url which has login id and
password.. now i know java so i know that InputStreamReader will come
into play. the thing is i want to be connected to internet when i hit
enter.. the url is a private ip address with login and password.. is
there any Connection class available in android?? how do i connect
with the url??

Help needed!!

Thanks,

Indraneel Kulkarni

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


[android-developers] Reading data from external databases

2012-01-04 Thread diljith k j
How can we read from Excel?

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

[android-developers] changing ImageButton image

2012-01-04 Thread m l
I am trying to make this simple app. Any help would be appreciated,
thank you.
What I want it to do.
1: Show a clickable image ( imageButton)
2:When clicked  change imageButton to second image.
3:Then play a sound.
4:Wait a few seconds ( I have been using thread sleep() )
5:Change image back to the original picture.

Sounds simple right?
Well what I am getting is this.
1: Show a clickable image ( imageButton)
2:When clicked it plays the sound.
3:Waits a few seconds.
4:Then sets the imageButton to original. ( I know this part happens
because I tried 3 pictures. A starting image, photo2 and last photo1
as a test to see if it was even trying to change the imageButton)

The first Image change ( step 2)  never happens , even though when I
step through the app with a debugger it shows it going to that point.



Code---

package my.picture.changer;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class PictureChangerActivity extends Activity {

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

  setButtonClickListener();
 }

 public void setButtonClickListener() {
  final MediaPlayer mp = MediaPlayer.create(this, R.raw.mysound);
  final ImageButton imageButton1 = (ImageButton)
findViewById(R.id.imageButton1);
  imageButton1.setOnClickListener(new View.OnClickListener() {
   @Override
   public void onClick(View v) {
// set button image to photo2
imageButton1.setImageDrawable(getResources().getDrawable(
  R.drawable.photo2));

mp.start();// play sound
sleeper();// wait 5 seconds
// tried moving sleep out of method to
see if that made a difference (no)
// change button image back to photo1
imageButton1.setImageDrawable(getResources().getDrawable(
  R.drawable.photo1));
   }
  });
 }

 private void sleeper() {
  // wait 5 seconds

  try {
   Thread.sleep(5000);
  } catch (InterruptedException e) {
   e.printStackTrace();
  }
  return;

 }

}

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


[android-developers] Request for folder structure and way of call the Servlet methods through app

2012-01-04 Thread Upendra Reddy Vuyyuru
Hi All,

I would like to call a method from servlet class through my app. To call
that method i used the following code snippet.

CustomHttpClient.executeHttpPost(target page url, postParameters);

Can anybody please help me out how to give the URL of that Servlet class.
If it is PHP we can give like this *http://xxx.xxx.xxx.xxx/android/test.php.
*I had followed the same for servlet method too but not working.

Thank you in advance.

Regards
Upendra

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

2012-01-04 Thread King Sun
Add   intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); and try again.
On Jan 4, 2012 5:18 PM, mattcoz matt...@gmail.com wrote:

 I'm downloading a file using the DownloadManager.  I'm receiving the
 ACTION_DOWNLOAD_COMPLETE broadcast but I'm having trouble opening the
 file.  I'm creating a ACTION_VIEW intent with the data set to the Uri
 I get from the getUriFromDownloadedFile method and the type set to the
 String I get from the getMimeTypeFromDownloadedFile method.  I'm able
 to start the activity to open the file, but the app is not able to
 open it.  I know the file is being downloaded correctly because I can
 go to my list of downloads and open it from there.  Any idea of what
 I'm doing wrong?  Here is the code in my BroadcastListener:

 long id =
 intent.getExtras().getLong(DownloadManager.EXTRA_DOWNLOAD_ID);
 DownloadManager dm =
 (DownloadManager)getSystemService(DOWNLOAD_SERVICE);

 intent = new Intent(Intent.ACTION_VIEW);
 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
 intent.setDataAndType(dm.getUriForDownloadedFile(id),
 dm.getMimeTypeForDownloadedFile(id));
 startActivity(intent);

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

2012-01-04 Thread Yogeshkumar Tiwari
Hi Indraneel,
   You want to read the Username and password from the
web services or from locale database.please elaborate your question i  can
help you i have developed the same application.

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

Re: [android-developers] How can i display exactly on the top....?

2012-01-04 Thread Abhilash baddam
Hi poncho,

Thanks for the reply. I did get your suggestion, can you please
explain it clearly.

On 1/4/12, poncho poncho...@gmail.com wrote:
 Hi,

 I'm not sure that I understand, what's wrong with:
  popup.layout( left, top, left + width, top + height);

 /Poncho
 On 01/04/2012 08:21 AM, Abhilash baddam wrote:
 Hi,

 My problem is when i tap on the marker i want to show the popup
 exactly on the top of the marker like displayed in
 requires.png(attatchment) but the popup i am getting is always on the
 top of the screen like displayed in capture.png(attatchment) How
 can i achieve that...?

 On 1/4/12, TreKingtreking...@gmail.com  wrote:
 On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com  wrote:

 any help regading this issue...

 Maybe if you clarified what you're asking, like I asked the first time
 around.

 -
 TreKinghttp://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

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


[android-developers] ( ListItem ) : onButton click , post particular objects objectID to the server

2012-01-04 Thread Ashish Tiwari
Hi guys ,

I'm building a demo app , where Logged-in user can voteup the Post and 
see that post in a VotedUp List( list of votedup Posts)

For making List of user's and their post , I used ListView and 
CustomListAdapter .

When logged-in user click on the voteup button , I want to make a Post 
request with logged-in user's userID and Post's postID to the API 
server .

sample Post URL  http://www.api.x.com/users/
userID/post/postID/voteup

My Question is how can i  get the postID onClick of VoteUp button  and 
Post it to the server . 

Below is the list of users with UserName , Post and VoteUp button .

From User point of view , list of friends with their latest post :

 ___
|  | 
|  | Amitesh : Amitesh's latest painting [voteup]
|___ |

 ___
|  | 
|  | Arjun   : Reset fluxbox setting [voteup]
|___ |

 ___
|  |  
|  | Sid : Ubuntut 12.04 latest update.. [voteup]
|___ |

-

Suggestions are most welcome 

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

[android-developers] Can we read data from any other database files in our android application

2012-01-04 Thread diljith k j
Can we read data from any other database files in our android application
or can we convert other data base extension files and make it usefull

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

Re: [android-developers] How can i display exactly on the top....?

2012-01-04 Thread poncho

Hi,

What happen if you try to move the popup before displaying it using the 
following line?
popup.layout( left, top, left + popup.getWidth(), top + 
popup.getHeight());


/Poncho

On 01/04/2012 11:35 AM, Abhilash baddam wrote:

Hi poncho,

Thanks for the reply. I did get your suggestion, can you please
explain it clearly.

On 1/4/12, ponchoponcho...@gmail.com  wrote:

Hi,

I'm not sure that I understand, what's wrong with:
  popup.layout( left, top, left + width, top + height);

/Poncho
On 01/04/2012 08:21 AM, Abhilash baddam wrote:

Hi,

 My problem is when i tap on the marker i want to show the popup
exactly on the top of the marker like displayed in
requires.png(attatchment) but the popup i am getting is always on the
top of the screen like displayed in capture.png(attatchment) How
can i achieve that...?

On 1/4/12, TreKingtreking...@gmail.com   wrote:

On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
abhilash.androiddevelo...@gmail.com   wrote:


any help regading this issue...

Maybe if you clarified what you're asking, like I asked the first time
around.

-
TreKinghttp://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


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


[android-developers] Injecting SMS into Message Store

2012-01-04 Thread VA
One of the applications that I building requires generating a local
SMS on the phone and injecting it into the message store so that the
user perceives that he has received a new SMS.

One of the usecases that need this is the capability to transfer a SMS
message over bluetooth from one phone to another and then show as if
it was a newly received SMS message.

Any hints on how can I insert a message into message store and trigger
rest of the mechanism so that the perceives it as a newly received
message,

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


[android-developers] nexus phone force close while croping image second time

2012-01-04 Thread venugopal peparthi
hi friends, iam new to android , after took photo second time from
camera force closing and showing bitmap exceeds vm budget.


iam getting this error on nexus phone only,please help me iam
strugling a lot from past one week.

Thank u Regards
venugopal.p.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] nexus phone force close while croping image second time

2012-01-04 Thread Mukesh Srivastav
you must be using onActivityResult to read the intent data, correct me if i
am wrong ?



On Wed, Jan 4, 2012 at 3:35 PM, venugopal peparthi 
venugopal.myfri...@gmail.com wrote:

 hi friends, iam new to android , after took photo second time from
 camera force closing and showing bitmap exceeds vm budget.


 iam getting this error on nexus phone only,please help me iam
 strugling a lot from past one week.

 Thank u Regards
 venugopal.p.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2012-01-04 Thread Ali Chousein
Kris,

 you shouldn't do something like this,
Yes, I meant you shouldn't do something like this in Android, because
installation management in Android is not done this way

 look at all the other windows based apps
 that did this?
Nope, I didn't go that far :-)  Interesting subject though :-)

 he is writing an ever popular these days
 Android security app
I don't know, it's probable he is doing that. But installation
management in the way stated in the question is not a common approach
in the mobile world. Unless there is a very, very, very good reason
for doing it, I wouldn't do this, but I would try to meet my business
needs (whatever those needs are) by using an approach which is easily
integrated in an Android app.

But once again, we are discussing here without knowing what exactly
the need is.

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


On Jan 4, 9:54 am, Kristopher Micinski krismicin...@gmail.com wrote:
 On Wed, Jan 4, 2012 at 3:43 AM, Ali Chousein ali.chous...@gmail.com wrote:
  Normally developers work their a...s off to make their apps more
  popular and get more downloads+installs. You are trying to do
  otherwise. Maybe you should be questioning your business model to
  start with. I wouldn't stick with installation management techniques
  for Windows based PCs of the last century.

 Ali,

 Hmm.  I'm not quite sure what you meant here, it's not that I think
 you meant something incorrect, I think I just lost the context.  Are
 you saying: you shouldn't do something like this, look at all the
 other windows based apps that did this?

 I am under the assumption that the OP wants to know because he is
 writing an ever popular these days Android security app...

 kris

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

2012-01-04 Thread Narendra Bagade
Use Http connection class.

On Wed, Jan 4, 2012 at 3:02 PM, Yogeshkumar Tiwari 
yogeshtiwari2...@gmail.com wrote:

 Hi Indraneel,
You want to read the Username and password from the
 web services or from locale database.please elaborate your question i  can
 help you i have developed the same application.




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

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

2012-01-04 Thread Narendra Bagade
please refer
http://developer.android.com/index.html


On Tue, Jan 3, 2012 at 8:35 AM, Yuri Andrade Rodrigues yuri.fl...@gmail.com
 wrote:

 Hello,

 I'm Yuri and I'm brasilian, I study Eletric Engeenir.
 I'm starting with OS Android and I was worked with little Linux,
 I would like to learn of create app for mobile OS.


 Thanks for all


 Best Regards

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




-- 
Regards,
Narendra
.

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

2012-01-04 Thread am.fraga.led
Welcome!

There are a lot of sources where you can get basic tutorials about
Android (books, blogs, ...)  but all of them are based on the best one
you can study:
http://developer.android.com/

as Nerendra indicated above. This is the official site and the
information is always updated.

So, take a view of the different sections of that site and enjoy!




On 4 ene, 11:46, Narendra Bagade bagadenaren...@gmail.com wrote:
 please referhttp://developer.android.com/index.html

 On Tue, Jan 3, 2012 at 8:35 AM, Yuri Andrade Rodrigues yuri.fl...@gmail.com





  wrote:
  Hello,

  I'm Yuri and I'm brasilian, I study Eletric Engeenir.
  I'm starting with OS Android and I was worked with little Linux,
  I would like to learn of create app for mobile OS.

  Thanks for all

  Best Regards

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

 --
 Regards,
 Narendra
 .- Ocultar texto de la cita -

 - Mostrar texto de la cita -

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

2012-01-04 Thread Ricardo Santos
In the strings.xml, I don't think so. You Could use a style to make your
job easier.

http://developer.android.com/guide/topics/ui/themes.html

Ricardo

On Mon, Jan 2, 2012 at 10:57 PM, Glenn glennark...@gmail.com wrote:

 Probably a stupid question from a newbie but here goes...

 Can I set a color for text in the strings.xml file to be used in the
 layout xml file?

 ie... set color in strings.xml
  string name=goldText#ffdf38/string
 then reference in the layout file main.xml
  TextView android:id=@+id/textViewGold
   android:layout_width=wrap_content
   android:textColor=@string/goldText/

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

2012-01-04 Thread Abhilash baddam
Hi narendra,

I tried as per your suggestion thanks. But i was strucked  to find out
whether the outgoing call has been answered.


On 1/4/12, Narendra Bagade bagadenaren...@gmail.com wrote:
 refer related content provider like call log.

 On Wed, Jan 4, 2012 at 12:26 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi,

 I want to know the call duration, when I called to other number and
 when that call-ends. How can i get the call duration...?

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

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

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


[android-developers] Re: How to create Widgets in android?

2012-01-04 Thread Jose_GD
Are you talking about homescreen widgets? If you are, have you seen 
http://developer.android.com/guide/topics/appwidgets/index.html?

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

Re: [android-developers] Duplicate contacts are read.

2012-01-04 Thread nikhilesh singh tak
Hi,

Any comment on this. I am still facing this issue. On debugging I found
that the duplication is becuse of the linked contacts. My contact book is
linked with multiple accounts(gmail, facebook etc). When I read the contact
I get multiple contacts with same display name but different _id.

Please suggest.

Thanks

On Thu, Dec 29, 2011 at 1:06 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 you need to find with the cursor and get the id and then use the delete
 operation. this is what i did.

 some thing like cursor.delete.


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

 On Thu, Dec 29, 2011 at 12:58 PM, nikhilesh singh tak 
 nikhileshsingh...@gmail.com wrote:

 @ mukesh thanks for the replay...

 But what will be the criteria to remove the duplicate entires from the
 cursor.


 On Thu, Dec 29, 2011 at 10:42 AM, Mukesh Srivastav 
 mukicha...@gmail.comwrote:

 Dear Nikilesh,

 let the cursor retursn the duplicate value. you need to sort out to
 remove the duplicate.


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

 On Thu, Dec 29, 2011 at 12:38 AM, nikki nikhileshsingh...@gmail.comwrote:

 Hi Group,

 Please help me, I am trying to read the native phonebook. I have used
  Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI,null,
 null, null, ContactsContract.Contacts.DISPLAY_NAME +  COLLATE
 LOCALIZED ASC); to get all the contact ID.

 Based on the ID I am fetching other details like phone number, email
 photo etc.

 The issue is on the devices whose phone books are synced with other
 accounts as well( like gmail) I am getting duplicate entry for the
 same contact in my application. The same contact name is repeated 4 5
 times.

 I have searched a lot but not able to find anything on 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




 --


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




 --
 Nikhilesh Singh Tak

 +91-9754070871
 +91-9929098279

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




-- 
Nikhilesh Singh Tak

+91-9754070871
+91-9929098279

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

[android-developers] scaling thumb on ScrollView

2012-01-04 Thread satahippy
hi!
how can i disable scaling of thumb on ScrollView?
that's it make thumb no independ of number content

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

[android-developers] Stretched image

2012-01-04 Thread aru padam
Hi all,


I am developing an app, in this there is an image view.An image is
set to the image view from the album or camera, my problem is the
image become stretched. How i can avoid the stretching of the image?
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


Re: [android-developers] Stretched image

2012-01-04 Thread Mukesh Srivastav
Try the below image parameter and u will surely get the correct view.



 ImageView android:id=@+id/iv_photo android:layout_below=@+id/llyt_home
   android:layout_marginLeft=2dp
   android:layout_marginRight=2dp
android:layout_gravity=center_horizontal
   android:layout_width=fill_parent
android:layout_height=wrap_content
   android:scaleType=centerInside
   android:adjustViewBounds=true
   android:layout_above=@+id/llyt_edit
android:layout_marginBottom=5dp/

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.



On Wed, Jan 4, 2012 at 5:48 PM, aru padam deepesh...@gmail.com wrote:

 Hi all,


I am developing an app, in this there is an image view.An image is
 set to the image view from the album or camera, my problem is the
 image become stretched. How i can avoid the stretching of the image?
 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] How can i display exactly on the top....?

2012-01-04 Thread saran vonteddu
HEY ABHILASH..!!!



On Wed, Jan 4, 2012 at 3:30 PM, poncho poncho...@gmail.com wrote:

 Hi,

 What happen if you try to move the popup before displaying it using the
 following line?
popup.layout( left, top, left + popup.getWidth(), top +
 popup.getHeight());

 /Poncho


 On 01/04/2012 11:35 AM, Abhilash baddam wrote:

 Hi poncho,

 Thanks for the reply. I did get your suggestion, can you please
 explain it clearly.

 On 1/4/12, ponchoponcho...@gmail.com  wrote:

 Hi,

 I'm not sure that I understand, what's wrong with:
  popup.layout( left, top, left + width, top + height);

 /Poncho
 On 01/04/2012 08:21 AM, Abhilash baddam wrote:

 Hi,

 My problem is when i tap on the marker i want to show the popup
 exactly on the top of the marker like displayed in
 requires.png(attatchment) but the popup i am getting is always on the
 top of the screen like displayed in capture.png(attatchment) How
 can i achieve that...?

 On 1/4/12, TreKingtreking...@gmail.com   wrote:

 On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
 abhilash.androiddeveloper@**gmail.comabhilash.androiddevelo...@gmail.com
   wrote:

  any help regading this issue...

 Maybe if you clarified what you're asking, like I asked the first time
 around.

 --**--**
 --**---
 TreKinghttp://sites.google.**com/site/rezmobileapps/trekinghttp://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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=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.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 can i display exactly on the top....?

2012-01-04 Thread Abhilash baddam
Hi poncho,

I tried but its not working as per your suggestion.

On 1/4/12, poncho poncho...@gmail.com wrote:
 Hi,

 What happen if you try to move the popup before displaying it using the
 following line?
  popup.layout( left, top, left + popup.getWidth(), top +
 popup.getHeight());

 /Poncho

 On 01/04/2012 11:35 AM, Abhilash baddam wrote:
 Hi poncho,

 Thanks for the reply. I did get your suggestion, can you please
 explain it clearly.

 On 1/4/12, ponchoponcho...@gmail.com  wrote:
 Hi,

 I'm not sure that I understand, what's wrong with:
   popup.layout( left, top, left + width, top + height);

 /Poncho
 On 01/04/2012 08:21 AM, Abhilash baddam wrote:
 Hi,

  My problem is when i tap on the marker i want to show the popup
 exactly on the top of the marker like displayed in
 requires.png(attatchment) but the popup i am getting is always on the
 top of the screen like displayed in capture.png(attatchment) How
 can i achieve that...?

 On 1/4/12, TreKingtreking...@gmail.com   wrote:
 On Tue, Jan 3, 2012 at 1:31 PM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com   wrote:

 any help regading this issue...
 Maybe if you clarified what you're asking, like I asked the first time
 around.

 -
 TreKinghttp://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

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

2012-01-04 Thread Mark Murphy
Each SMS application can store its SMS messages wherever it wants. I
am not aware of any of them having a documented and supported API for
doing so.

On Wed, Jan 4, 2012 at 5:05 AM, VA vinay.avas...@gmail.com wrote:
 One of the applications that I building requires generating a local
 SMS on the phone and injecting it into the message store so that the
 user perceives that he has received a new SMS.

 One of the usecases that need this is the capability to transfer a SMS
 message over bluetooth from one phone to another and then show as if
 it was a newly received SMS message.

 Any hints on how can I insert a message into message store and trigger
 rest of the mechanism so that the perceives it as a newly received
 message,

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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] checkbox checked in listview

2012-01-04 Thread saran vonteddu
Hi vani,

   Uncheck the other checkboxes, its as simple as it is..


regards,
Saran

On Tue, Nov 8, 2011 at 4:56 PM, NaveenShrivastva 
kumarnaveen.si...@gmail.com wrote:


 http://android-codes-examples.blogspot.com/2011/03/listactivity-with-checkbox-using.html

 On Tue, Nov 8, 2011 at 4:47 PM, vani reddy vani.reddy.bl...@gmail.com
 wrote:
  Hi,
 
  I have created a custom listview of text and checkbox.
  When i click on a particular checkbox the other checkboxes in the rows
 also
  gets  checked. How to avoid this??
 
  --
  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

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

2012-01-04 Thread Mark Murphy
You find some Java code that reads from Excel and try using it.

On Wed, Jan 4, 2012 at 12:29 AM, diljith k j diljit...@gmail.com wrote:
 How can we read from Excel?

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



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

Android Training...At Your Office: http://commonsware.com/training

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


[android-developers] NetworkManagementSocketTagger(393): untagSocket(51) failed with errno -2

2012-01-04 Thread Rashmi
Hi,
I am trying to download the application from Browser on ICS emulator
and getting the following error with download unsuccessful.

01-04 05:27:54.446: I/DownloadManager(393): Initiating request for
download 41
01-04 05:27:54.476: D/dalvikvm(155): GC_CONCURRENT freed 386K, 34%
free 10750K/16263K, paused 4ms+7ms
01-04 05:27:54.646: I/qtaguid(393): Tagging socket 51 with tag
7f01(-255) for uid 10019 failed errno=-2
01-04 05:27:54.646: I/NetworkManagementSocketTagger(393):
tagSocketFd(51, -255, 10019) failed with errno-2
01-04 05:27:55.666: D/dalvikvm(393): GC_CONCURRENT freed 412K, 7% free
10329K/11015K, paused 4ms+8ms
01-04 05:27:57.106: I/qtaguid(393): Untagging socket 51 failed
errno=-2
01-04 05:27:57.106: W/NetworkManagementSocketTagger(393):
untagSocket(51) failed with errno -2
01-04 05:27:57.446: I/DownloadManager(393): Initiating request for
download 41
01-04 05:27:57.476: W/DownloadManager(393): Aborting request for
download 41: Trying to resume a download that can't be resumed
01-04 05:27:57.736: D/dalvikvm(155): GC_CONCURRENT freed 316K, 34%
free 10880K/16263K, paused 5ms+6m

Please let me know how to resolve this error and complete the
download.

Note: I have given the proper proxy and port in APN settings.

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] [Q]Development Java Service and Emulating in Android 4.0.3

2012-01-04 Thread Mark Murphy
You should find a relevant Google Group, as this one has nothing to do
with compiling Android platform source code. Visit
http://source.android.com for support with the Android source code.

On Wed, Jan 4, 2012 at 2:53 AM, yongin kwon crojj...@gmail.com wrote:
 After compiling a source code for android 4.0.3, I can see the file of
 system.img
  I shoud copy the file to android-sdks/platforms/android-xx/images/
  But I couldn't find the directory in android 4.0.3 sdk platform.
  What shoud I do?

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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] checkbox checked in listview

2012-01-04 Thread Daniel Drozdzewski
Vani,

Each checkbox has to be a separate object, while it seems like you are
adding the same checkbox to every list item.

Daniel

On 4 January 2012 12:41, saran vonteddu saran.myw...@gmail.com wrote:
 Hi vani,

        Uncheck the other checkboxes, its as simple as it is..


 regards,
 Saran

 On Tue, Nov 8, 2011 at 4:56 PM, NaveenShrivastva
 kumarnaveen.si...@gmail.com wrote:


 http://android-codes-examples.blogspot.com/2011/03/listactivity-with-checkbox-using.html

 On Tue, Nov 8, 2011 at 4:47 PM, vani reddy vani.reddy.bl...@gmail.com
 wrote:
  Hi,
 
  I have created a custom listview of text and checkbox.
  When i click on a particular checkbox the other checkboxes in the rows
  also
  gets  checked. How to avoid this??
 
  --
  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

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



-- 
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] How to launch the web on AppWidget?

2012-01-04 Thread Mark Murphy
On Tue, Jan 3, 2012 at 2:34 AM, RyanE viros1...@gmail.com wrote:
 context.startActivity( new Intent( Intent.ACTION_VIEW,
 Uri.parse( http://www.google.com; ) ) );


 I usually launch the web like this in my app.

 However, it doesn't work on AppWidget.

Yes, it does. You might have to add FLAG_ACTIVITY_NEW_TASK to the
Intent, but you can definitely launch a Web browser from an app widget
via a PendingIntent.

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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] any help in getting the android kernel source, just what is needed...

2012-01-04 Thread Mark Murphy
Visit http://source.android.com for information regarding the Android
platform source code. This list has nothing to do with the Android
platform source code.

On Tue, Jan 3, 2012 at 9:53 AM, fredatlarge scbw.webmas...@gmail.com wrote:
 ok, I have seen http://source.android.com/source/downloading.html
 but cloning the repository of
 https://android.googlesource.com/kernel/common.git
 downloaded 2.5G of whatever and i'm still not sure what I got.
 so how do you navigate around these repositories
 all I want is what the current kernel source is for at least  ver3.0
 for  VIA 8650
 clear as mud atm...

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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] why doesn't the stock android emulator have a file explorer?

2012-01-04 Thread Mark Murphy
There is no file explorer in Android in general. Most Android
devices do not ship with a file explorer. You are welcome to find an
open source file explorer and install that in your emulator.

On Tue, Jan 3, 2012 at 9:07 PM, greenlion89 przemek...@gmail.com wrote:
 I wish the emulator would have a file explorer so I could test my intent, am
 I missing something here?

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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] nexus s ICS Action bar overflow button problem

2012-01-04 Thread Mark Murphy
The overflow button will only appear on devices that lack the
dedicated off-screen MENU button. So, you will not see it on the Nexus
S, but you will see it on a Galaxy Nexus.

On Tue, Jan 3, 2012 at 2:44 AM, Lbiddau68 lbidda...@gmail.com wrote:
 i configure a menu with 6 buttons with options 'ifRoom and never i
 can see all the menu item if i press the option button  but in ever
 see the overflow button.
 did i miss something?
 thank you.

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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] android browser

2012-01-04 Thread Mark Murphy
I hope not.

On Tue, Jan 3, 2012 at 1:13 AM, karthik karthikckarth...@gmail.com wrote:
 Hi

 Is there any way to get the information on the browser windows which
 are opened currently ?

 Thanks,
 Karhtik

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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] NEWBIE Question - Activity/Service Views

2012-01-04 Thread Mark Murphy
On Mon, Jan 2, 2012 at 8:19 AM, Mode-X i...@mode-x.co.uk wrote:
 I have my application coded all ok and works perfect and various
 Android o/s versions.
 Now all I want to do is remove the View from my activity completly.
 so nothing pops up when the application is run, and It can then just
 sit happily in the background running and using the notification bar
 to tell the user whats happening if an event occours?

 Is there any way of doing this?

Not if you actually want your application to be usable. All
applications running on Android 3.1+ devices need at least one
activity, in the launcher, as they will never run until the user
manually launches that activity.

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

Android Training...At Your Office: http://commonsware.com/training

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


[android-developers] Dialog Box Position

2012-01-04 Thread aru padam
Hi all,

 How can set a dialog box at the bottom of the screen?. Please
help me..

Deepesh C

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

2012-01-04 Thread Mukesh Srivastav
Hello Vani,

You need to do the check and ucheck operation in onListItemClick. Check the
below code which helps.

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
// File newFile = (File) l.getItemAtPosition(position);
CheckedTextView check = (CheckedTextView)v;
check.setChecked(!check.isChecked());
super.onListItemClick(l, v, position, id);
}

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Wed, Jan 4, 2012 at 6:13 PM, Daniel Drozdzewski 
daniel.drozdzew...@gmail.com wrote:

 Vani,

 Each checkbox has to be a separate object, while it seems like you are
 adding the same checkbox to every list item.

 Daniel

 On 4 January 2012 12:41, saran vonteddu saran.myw...@gmail.com wrote:
  Hi vani,
 
 Uncheck the other checkboxes, its as simple as it is..
 
 
  regards,
  Saran
 
  On Tue, Nov 8, 2011 at 4:56 PM, NaveenShrivastva
  kumarnaveen.si...@gmail.com wrote:
 
 
 
 http://android-codes-examples.blogspot.com/2011/03/listactivity-with-checkbox-using.html
 
  On Tue, Nov 8, 2011 at 4:47 PM, vani reddy vani.reddy.bl...@gmail.com
  wrote:
   Hi,
  
   I have created a custom listview of text and checkbox.
   When i click on a particular checkbox the other checkboxes in the rows
   also
   gets  checked. How to avoid this??
  
   --
   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
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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



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




--

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

2012-01-04 Thread Mark Murphy
https://github.com/commonsguy/cw-advandroid/tree/master/NFC/URLTagger

On Wed, Jan 4, 2012 at 3:47 AM, ANKUR GOEL ankur1...@gmail.com wrote:
 Hi all ,

 please send me some sample project of NFC which reads the tag and open a
 activity .


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



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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] android browser

2012-01-04 Thread sreeram shyam
Hi,

I have created the table with single field name called NAME, when i
trying to fetch the data from the cursor object am getting illegal
argument exception:column_id error am getting.

Please let me know how this can be done. Is it possible to fetch the
single field value without ID field??

Thanks in advance.

On Wed, Jan 4, 2012 at 6:16 PM, Mark Murphy mmur...@commonsware.com wrote:

 I hope not.

 On Tue, Jan 3, 2012 at 1:13 AM, karthik karthikckarth...@gmail.com
 wrote:
  Hi
 
  Is there any way to get the information on the browser windows which
  are opened currently ?
 
  Thanks,
  Karhtik
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



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

 Android Training...At Your Office: http://commonsware.com/training

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




-- 
*Regards
Shyam*

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

[android-developers] hdpi drawable sizes

2012-01-04 Thread Neilz
Hi all.

I have a set of assets in my drawable-hdpi folder, which have
generally been designed using an 800 * 480 template.

My new device, plus many others, are now using a 960 * 540 layout,
which still takes the assets from the same hdpi folder. This is
generally ok, but the image sizes are reduced somewhat, with a lot
more spacing between them.

For android versions less then 3.x, can I specify a different set of
assets for these two (and other) sizes, within the hdpi range?

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] It is possible to avoid the SO to close a non visible activity?

2012-01-04 Thread saex
Hi

I have an activity non visible, with some variables that must be
accesed by static way. This activity can't be a service, because it is
a MapView activity.

I need to access some static varibales of the activity anytime. I know
that the SO can close suspended activities (non visible activities)
so how can i avoid it? i need that my suspended non visible
activitity never get's deleted by the SO.

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] It is possible to avoid the SO to close a non visible activity?

2012-01-04 Thread Mark Murphy
On Wed, Jan 4, 2012 at 7:58 AM, saex elpablos...@gmail.com wrote:
 I have an activity non visible, with some variables that must be
 accesed by static way. This activity can't be a service, because it is
 a MapView activity.

 I need to access some static varibales of the activity anytime. I know
 that the SO can close suspended activities (non visible activities)
 so how can i avoid it? i need that my suspended non visible
 activitity never get's deleted by the SO.

Fortunately, what you want is impossible. Nothing lives forever.
Android -- at the specific request of a user or on its own accord --
can terminate any process it so desires.

You are welcome to use static data members as a cache, but you must
persist data to files if you want to ensure it survives Android
terminating your process.

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

Android Training...At Your Office: http://commonsware.com/training

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


Re: [android-developers] Re: TYPE_SYSTEM_ALERT for Activities

2012-01-04 Thread TreKing
On Wed, Jan 4, 2012 at 12:17 AM, galapogos gois...@gmail.com wrote:

 I guess I mean any other app that's not part of my activity.


Yeah, I would expect that it is not possible to halt execution for any
other app that's not part or your activity.

Just to be clear, what's the difference between a regular window and one
 that has the TYPE_SYSTEM_ALERT flag set?


I've no idea - if you don't get an answer, the source is readily available
for perusal.

-
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] Re: checkbox checked in listview

2012-01-04 Thread Ali Chousein
Do you have this problem when you scroll in the list? If yes, then
it's probable that the checkboxes on different rows are the same
object (e.g. row 1 and row 7 for example). Inside your adapter you
have to ensure that different rows doen't use the same checkbox
object.

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



On Nov 8 2011, 12:17 pm, vani reddy vani.reddy.bl...@gmail.com
wrote:
 Hi,

 I have created a custom listview of text and checkbox.
 When i click on a particular checkbox the other checkboxes in the rows also
 gets  checked. How to avoid this??

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


Re: [android-developers] Re: NFC Secure Element

2012-01-04 Thread Fernando Miguélez
Great work.

Obviously there is something wrong with the compilation. Have you tried to
connect in debug mode the phone to a computer with Android Development
Tools and see what the traces look like. They may offer a clue. My
suspicion is that NfcService is crashing. I will review my notes tomorrow
if I find something different to the steps you followed to build the image.

On Wed, Jan 4, 2012 at 9:17 AM, softy imsaurabhra...@gmail.com wrote:

 Hi All,
 Thanks Fernando Miguélez Palomo for posting the patches.I have applied it
 to 2.3.4-r1 Android gingerbread and compiled /flashed it on Samsung Nexus S
 and was able to see the NFC Settings changed(though i cant select them,
 they are disabled)
 I have blogged the whole steps 
 herehttp://techshek4u.blogspot.com/2012/01/applying-card-emulation-patch-to_03.html.Plz
  let me know if I miss something.

 @ Fernando Miguélez Palomo
 What next after that.How can i test this.Any source code or tool /card
 reader description will be enlightening.
 Rgds,
 softy

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

  1   2   >