[android-developers] ListView Examples

2011-07-16 Thread saurabh kulkarni
Can anybody give me custom listview(having 2 or more textviews) examples with its listener also 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

[android-developers] Android and Google Maps

2011-07-16 Thread kypriakos
HI all, I am adding the Google Maps library through the AndroidManifest.xml in my app using: uses-library android:name=com.google.android.maps”/ But it does not seem to pick it up ... Is there anything else that needs to be done other than this? Is there a particular path that needs to

Re: [android-developers] ListView Examples

2011-07-16 Thread vijayakumar M
Check this url http://iamvijayakumar.blogspot.com/2011/06/xmlresource-parser-with-custem-listiew.html On Sat, Jul 16, 2011 at 11:30 AM, saurabh kulkarni funwit.saur...@gmail.com wrote: Can anybody give me custom listview(having 2 or more textviews) examples with its listener also working???

Re: [android-developers] Android and Google Maps

2011-07-16 Thread nageswara rao rajana
try this link http://marakana.com/forums/android/examples/311.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

Re: [android-developers] 127.0.0.1 Connection refused when not connected to WiFi

2011-07-16 Thread Navindian
Use 10.0.0.2 instead of localhost or i.p.address. This will work. Thanks Naveen Gayar On Fri, Jul 15, 2011 at 1:46 AM, Uffe swedish...@gmail.com wrote: Hi! I am writing a service app which needs to be accessed from a browser (on the same device, never remotely) and whose URL needs to be

[android-developers] Fwd: image view listener

2011-07-16 Thread arun kumar
-- Forwarded message -- From: arun kumar arun.kata...@gmail.com Date: Fri, Jul 15, 2011 at 2:52 AM Subject: image view listener To: android-developers@googlegroups.com Hi am having two image one is placed rightside and other is placed leftside to the layout when i click on

[android-developers] Re: 2x/stretched resources in honeycomb

2011-07-16 Thread keyboardr
/res/drawable-xlarge On Jul 15, 8:27 pm, Alec B. Plumb abp...@gmail.com wrote: With 3.2, honeycomb devices now have the option to have an application Stretch to fill screen. In my opinion, my apps look better in this mode than in the regular zoom mode. I know all about Fragments and how I

[android-developers] Re: 2x/stretched resources in honeycomb

2011-07-16 Thread Alec B. Plumb
Do you know for a fact that placing resources in /res/drawable-xlarge will display the higher resolution images in the Honeycomb 3.2 Stretch to fill screen mode? If so, how do you know? (I will experiment with this, but I'd like to know where this knowledge comes from.) On Jul 15, 11:59 pm,

[android-developers] Facebook Integration issue

2011-07-16 Thread gaurav gupta
HI Guys, M trying to integrate facebook in my application. I have to simple publish my status using facebook application. but its not working and giving me this in logcat. (in a particular device), but in my nexus same code working fine. Please suggest me . My facebook doesnot work and gives

Re: [android-developers] Facebook Integration issue

2011-07-16 Thread Nasif Noorudeen
are using fbconnect On Sat, Jul 16, 2011 at 12:53 PM, gaurav gupta gaurav.gupta...@gmail.comwrote: HI Guys, M trying to integrate facebook in my application. I have to simple publish my status using facebook application. but its not working and giving me this in logcat. (in a particular

[android-developers] latitude and longitude Problem

2011-07-16 Thread Ankit Kasliwal
Hello Everyone, Can any one help me for getting current Location (latitude and longitude) with Address i try the below code but it always return me same old Address like right now me in city A but it always return me old City B address here is the code which i use: package

[android-developers] Re: Image Issue Please help me

2011-07-16 Thread Ankit Kasliwal
is there is no one which help me in camera issue. On Fri, Jul 15, 2011 at 4:40 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hello Everyone, Is there anyway to reduce the resolution of picture taken using camera? It takes long time to upload the image to server Coz i m converting

Re: [android-developers] Facebook Integration issue

2011-07-16 Thread gaurav gupta
Hi Nasif, M using fbconnect.jar. package abc.face.activity; import java.io.IOException; import java.net.MalformedURLException; import com.facebook.android.AsyncFacebookRunner; import com.facebook.android.DialogError; import com.facebook.android.Facebook; import

[android-developers] List View and Simple Cursor Adapter

2011-07-16 Thread juliagrig
Hi all, I have a listview in my app and a SimpleCursor Adapter in a different class. In getView method I tried to set properties fom the text view of each list item. It works fine, but I have a log.i(,) message in the end of the getView() method and I see that this method run 3 times. So , I

[android-developers] List View and Simple Cursor Adapter

2011-07-16 Thread juliagrig
Hi all, I have a listview in my app and a SimpleCursor Adapter in a different class. In getView method I tried to set properties fom the text view of each list item. It works fine, but I have a log.i(,) message in the end of the getView() method and I see that this method run 3 times. So , I

[android-developers] Re: Eclipse - Android - can't connect my device to Eclipse

2011-07-16 Thread m.andrew
See the chapter: Setting up a Device for Development at http://developer.android.com/guide/developing/device.html If you use Linux make sure you have a device rule in /etc/udev/rules.d to give the user access to your phone. On Jul 14, 5:31 pm, Zwiebel hunzwie...@gmail.com wrote: Sorry If it

[android-developers] Re: Does Google support Google Check Out Merchant Account in India?

2011-07-16 Thread Atul Prakash
Currently Indian Developers can not sell their apps on Android Market. Rgds/Atul Prakash Singh On Jul 16, 1:51 am, Joy joythegreat1...@gmail.com wrote: Hello Everyone, I am a developer from India. And, I wanna make some cool apps for Android users and make money from it. I need to know, does

[android-developers] Re: random text selection

2011-07-16 Thread gjs
Hi, I notice this sometimes when using a magic mouse and brushing over its surface, but I regard it as a user error hit undo which works ok for me. Regards On Jul 16, 9:19 am, bob b...@coolgroups.com wrote: Am I the only one who noticed that sometimes Eclipse randomly selects chunks of text?

Re: [android-developers] Fwd: image view listener

2011-07-16 Thread gaurav gupta
Hi Arun, Add this line in ur program if (((ImageView) v).isClickable()) { img4.setVisibility(View.VISIBLE); *img3.setVisibility(View.GONE);* } else {

Re: [android-developers] List View and Simple Cursor Adapter

2011-07-16 Thread Mark Murphy
getView() will be called many times, not necessarily only the number of times you might expect or in the order you expect. Please just make your getView() implementation be efficient and let Android call getView() as it sees fit. On Sat, Jul 16, 2011 at 3:56 AM, juliagrig iouliag...@gmail.com

[android-developers] Re: Role of the Compatibility Library?

2011-07-16 Thread b0b
I would really like to see ActionBar support added in the compat library. Since on Android pre-Honeycomb, the action bar pattern is more and more used (in place of the options menu), adding ActionBar support in the compat library (maybe with some restrictions like no navigation views) would be a

Re: [android-developers] Re: Role of the Compatibility Library?

2011-07-16 Thread Mark Murphy
Check out ActionBarSherlock, which wraps the HC action bar on HC and supplies an alternative implementation for older devices. Works much like the ACL (even to the point where the author used an android.* package name, which is really not a good idea). On Sat, Jul 16, 2011 at 6:34 AM, b0b

[android-developers] Re: Killing rogue plug-in threads within an Android application

2011-07-16 Thread DCA
On the dev page describing Processes and threads (link below), it states that By default, all components of the same application run in the same process and most applications should not change this. However, if you find that you need to control which process a certain component belongs to, you can

[android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Jim Graham
Ok, no answers to how to get smoothScrollToPosition to land on top of the display, not the bottom, so I'm guessing I'm stuck there. So, is there any way that I can use, say, a bright yellow background to highlight the target range? In other words, make it more visible so it's at least obvious

[android-developers] Re: Facebook Integration issue

2011-07-16 Thread shanmugam nathan
Hey gaurav, Why don't u try with EasyFacebookConnectSDK its quite simpler for beginners. But u can find some errors in LogCat but just ignore those coz ur final target ll be achieved. Thanks, Shanmugam -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Killing rogue plug-in threads within an Android application

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 7:15 AM, DCA onl...@dcarlson.info wrote: however, do applications with multiple processes share the same memory space, or is AIDL required to communicate between components running in a separate process, even though they are both part of the same application? They do

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 7:23 AM, Jim Graham spooky1...@gmail.com wrote: Ok, no answers to how to get smoothScrollToPosition to land on top of the display, not the bottom, so I'm guessing I'm stuck there.  So, is there any way that I can use, say, a bright yellow background to highlight the

[android-developers] Re: Integrating Facebook in Android application

2011-07-16 Thread shanmugam nathan
I could not find easyfacebookandroidsdk in any tutorials as of now. But that is self explanatory ... U can work on it easily. Check http://www.easyfacebookandroidsdk.com/example.asp for examples. This is good Regards, Shanmugam. -- You received this message because you are subscribed to the

[android-developers] Context menu problem

2011-07-16 Thread saurabh kulkarni
1)Context Menu is not getting item required OR 2)onclick should work public class HomeActivity extends Activity { private static final int Id_Details = 0; private static final int Id_Email = 1; /** * @see android.app.Activity#onCreate(Bundle) */

[android-developers] Re: sendDtmf on Xoom WiFI / Android 3.0

2011-07-16 Thread Robert Auger
One more information : if I call : (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE).getPhoneType() in the onCallEstablished callback of the SipAudioCall.Listener included in the makeAudioCall (at this time I can perfectly listen to my audio messages), the answer is :

[android-developers] Ginger bread booting probelm - CPU1 Shutdown

2011-07-16 Thread dani maoz
Hi I was able to run pre compiled image on pandaboard with this bootargs setenv console console=ttyO2,115200n8 androidboot.console=ttyO2 setenv memory mem=456M@0x8000 mem=512M@0xA000 setenv rootfs root=/dev/mmcblk0p2 rw rootdelay=2 init=/init setenv vmem vram=32M omapfb.vram=0:16M,1:16M

Re: [android-developers] Ginger bread booting probelm - CPU1 Shutdown

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 7:49 AM, dani maoz maoz.d...@gmail.com wrote: Any ideas Step #1: Visit http://source.android.com Step #2: Click on the Community tab Step #3: Find the proper Google Group for your question Step #4: Ask there -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: IllegalArgumentException after calling removeAllViews on ViewGroup

2011-07-16 Thread Jacques
Is there any android dev that knows what is happening here? This problem is creating a negative impression of our app. As far as I know I am allowed to call removeAllViews in my onDetachedFromWindow handler. It's also only users with the above mentioned device that experience this problem so

[android-developers] Re: Role of the Compatibility Library?

2011-07-16 Thread b0b
Thanks for the tip, this look excellent. On Jul 16, 1:05 pm, Mark Murphy mmur...@commonsware.com wrote: Check out ActionBarSherlock, which wraps the HC action bar on HC and supplies an alternative implementation for older devices. -- You received this message because you are subscribed to the

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 07:30:25AM -0400, Mark Murphy wrote: Put another way: ?I have a ListView with entries from 0---297 (+/- 1). A search for a particular brand's malt leads to position 42, and that company's products range from positions 42---55. ?Can I change the background (or

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 8:09 AM, Jim Graham spooky1...@gmail.com wrote: Ok, I forgot to mention changing the foreground (I meant to include that, too...oh well), as an alternative, but how about that?  Maybe change the foreground of the rows for the vendor the user chose (from the index

[android-developers] Recent developments regarding Android (HTC) patent infringement lawsuits

2011-07-16 Thread rich friedel
I know this is not exactly programming (code) related. However, this one decision seriously affects every single one of us here... Here is an article... http://www.zdnet.com/blog/hardware/apple-deals-massive-patent-blow-to-htc-android-in-serious-trouble/13714 Here is a good breakdown of what is

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 08:14:48AM -0400, Mark Murphy wrote: Bear in mind that beyond pointing devices and selection, row color plays an important role in tablets running Honeycomb (activated rows to show context for an adjacent fragment). I really cannot stress enough that you should leave

[android-developers] Re: List View and Simple Cursor Adapter

2011-07-16 Thread NikolaMKD
The getView() is called everytime the listview is populating data, what is meant by this, getView() is called everytime when there is need views to be recycled. Let's say if you have 20 elements in your listview, the maximum items visible is 8, the first time you view the listview, getView() is

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 8:39 AM, Jim Graham spooky1...@gmail.com wrote:   A) change (only for the current viewing of the main list) the      FONT, perhaps to italic, for the selected vendor's rows? OK. Might be a bit subtle depending on your font size.   B) OR, Toast, positioned over whatever

[android-developers] Re: Killing rogue plug-in threads within an Android application

2011-07-16 Thread Chris Stratton
On Wednesday, July 13, 2011 9:16:56 AM UTC-4, DCA wrote: I've developed a framework that loads potentially untrusted plug-in code from a remote repository into my framework's process at runtime (using OSGi). Each plug-in is started on a thread that my framework holds a reference to.

Re: [android-developers] Recent developments regarding Android (HTC) patent infringement lawsuits

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 05:25:55AM -0700, rich friedel wrote: I know this is not exactly programming (code) related. However, this one decision seriously affects every single one of us here... * U.S. Patent No. 5,946,647 on a system and method for performing an action on a structure

Re: [android-developers] 127.0.0.1 Connection refused when not connected to WiFi

2011-07-16 Thread Chris Stratton
On Saturday, July 16, 2011 2:41:12 AM UTC-4, Naveen Gayar wrote: Use 10.0.0.2 instead of localhost or i.p.address. This will work. That ?might? work on an emulator, but will not on a properly configured hardware android device. At any rate, the problem is not a networking one, but a web

Re: [android-developers] Recent developments regarding Android (HTC) patent infringement lawsuits

2011-07-16 Thread rich friedel
@Spooky Read the FOSS one. He really breaks down what is being argued. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: random text selection

2011-07-16 Thread rich friedel
Mario with libgdx has an epic moment where this happens live in the middle of one of his video tutorials... F**K YOU ECLIPSE...it is hilarious! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Jim Graham
Ok...seems like this is getting WAY too over-complicated for what should be (and probably is) a very simple task. So let me re-state the question in a different way, using an added bit that I just realized must be possible, if there IS a way to position Toast over a row that is on the display,

Re: [android-developers] Recent developments regarding Android (HTC) patent infringement lawsuits

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 06:13:31AM -0700, rich friedel wrote: @Spooky Read the FOSS one. He really breaks down what is being argued. I'm sure he does...he'd HAVE TO! I was just pointing out that the specific bits that whoever did the article chose to highlight are completely and utterly

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 9:19 AM, Jim Graham spooky1...@gmail.com wrote: So, here goes.  How, from the code, can I determine the exact location (top of display, bottom of display, specific point in between on the display, ec.) where row 42 (or whatever) is at? I've never done this, so this is

Re: [android-developers] Recent developments regarding Android (HTC) patent infringement lawsuits

2011-07-16 Thread rich friedel
Sorry, didn't mean to come across as brash... just meant if you only read the first, which is more of a pop-media take, that you need to read the second article as it gives a deeper look into what is going on. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Killing rogue plug-in threads within an Android application

2011-07-16 Thread DCA
Thanks for the insights, Mark. Am I right in assuming that there is no way to forceably stop a misbehaving thread within an Android application short of killing the process that owns the thread? My problem is that I'm loading java- based plug-ins (not ARM binaries) into my framework dynamically

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread rich friedel
I've not messed with ListView at all so I may be way off here... I was thinking, could you put a smaller non-interactive row with the manufacturer name denoting where that particular manufacturer starts for each set of manufacturers. Similar to how the settings preferences are displayed. --

Re: [android-developers] Re: Killing rogue plug-in threads within an Android application

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 9:35 AM, DCA onl...@dcarlson.info wrote: Am I right in assuming that there is no way to forceably stop a misbehaving thread within an Android application short of killing the process that owns the thread? My problem is that I'm loading java- based plug-ins (not ARM

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 09:28:06AM -0400, Mark Murphy wrote: On Sat, Jul 16, 2011 at 9:19 AM, Jim Graham spooky1...@gmail.com wrote: I've never done this, so this is very rough. YMMV. Also, I am assuming that 42 is a position and that you have no headers or footers on the list. Yes, when I

[android-developers] Spinner usage

2011-07-16 Thread Simon Platten
I've used a spinner with a Base Adapter. The spinner works fine and I can make selections, my question is: When I'm not making a selection the spinner shows as an empty box with a down arrow, once I've made a selection the list is removed but the spinner still shows empty, shouldn't it show the

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 9:48 AM, Jim Graham spooky1...@gmail.com wrote: Step #1: Confirm that 42 is in the range from getFirstVisiblePosition() to getLastVisiblePosition(). Do something if it's not. Interesting.  A search on that in the dev guide leads me to ListView, where, unless I missed

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 06:36:31AM -0700, rich friedel wrote: I was thinking, could you put a smaller non-interactive row with the manufacturer name denoting where that particular manufacturer starts for each set of manufacturers. Similar to how the settings preferences are displayed. It's

Re: [android-developers] how do I highlight (color) a range of entries in a ListView?

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 10:02:25AM -0400, Mark Murphy wrote: On Sat, Jul 16, 2011 at 9:48 AM, Jim Graham spooky1...@gmail.com wrote: Step #1: Confirm that 42 is in the range from getFirstVisiblePosition() to getLastVisiblePosition(). Do something if it's not. Ok, I just added that, and it

Re: [android-developers] 127.0.0.1 Connection refused when not connected to WiFi

2011-07-16 Thread Kristopher Micinski
On Sat, Jul 16, 2011 at 8:10 AM, Chris Stratton cs07...@gmail.com wrote: On Saturday, July 16, 2011 2:41:12 AM UTC-4, Naveen Gayar wrote: Use 10.0.0.2 instead of localhost or i.p.address. This will work. That ?might? work on an emulator, but will not on a properly configured hardware

[android-developers] emulator problem

2011-07-16 Thread Perry168
Hi all, Today, I upgraded the emulator. After that, a error show are following: invalid command-line parameter: Files\Android\android-sdk-windows \tools/emulator-arm.exe. Hint: use '@foo' to launch a virtual device named 'foo'. please use -help for more information What can I do? Thanks a lot!

[android-developers] Re: Android and Google Maps

2011-07-16 Thread kypriakos
Good link - thanks. Have you tried building such Android projects using maven? On Jul 16, 2:19 am, nageswara rao rajana nagu.raj...@gmail.com wrote: try this link  http://marakana.com/forums/android/examples/311.html -- You received this message because you are subscribed to the Google

[android-developers] Re: emulator problem

2011-07-16 Thread Chrystian Vieyra
There is a problem with R12 where the SDK location cannot contain any spaces. You need to change the sdk location path in Eclipse. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Install % not updating?

2011-07-16 Thread Adam Ratana
This seems to be happening again. I also noticed the following: 1. App descriptions sometimes display in a random language on the honeycomb market app (mine and others) 2. Google checkout seems to be crashing when particular orders are in the inbox or archive (for me it's some cancelled ones

Re: [android-developers] Re: Install % not updating?

2011-07-16 Thread Greg Donald
On Sat, Jul 16, 2011 at 10:06 AM, Adam Ratana adam.rat...@gmail.com wrote: 2. Google checkout seems to be crashing when particular orders are in the inbox or archive (for me it's some cancelled ones from Japan) Glad to hear it's not just me. My Google Checkout is fubar right now. -- Greg

Re: [android-developers] Re: Install % not updating?

2011-07-16 Thread Nikolay Elenkov
On Sun, Jul 17, 2011 at 12:06 AM, Adam Ratana adam.rat...@gmail.com wrote: This seems to be happening again.  I also noticed the following: 1. App descriptions sometimes display in a random language on the honeycomb market app (mine and others) This is also happening on the new phone version

Re: [android-developers] Recent developments regarding Android (HTC) patent infringement lawsuits

2011-07-16 Thread Jim Graham
On Sat, Jul 16, 2011 at 06:28:32AM -0700, rich friedel wrote: Sorry, didn't mean to come across as brash... just meant if you only read the first, which is more of a pop-media take, that you need to read the second article as it gives a deeper look into what is going on. I just did. Is

[android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread cathal coffey
Mark, I think you miss understood what I mean by a reference to my Widget. Unless I am thinking about this incorrectly. The function onReceive in the OnAlarmReceiver class needs to have a reference to the widget instance, see the below code. How else can the OnReceive function know how many

[android-developers] Xoom external storage

2011-07-16 Thread b_t
Hi, Can somebody explain something about Xoom? I would like to get external sd path but it returns the internal storage as /mnt/sdcard The real sd path is /mnt/external1 but I can't get it from the Api. Is it a bug in Xoom firmware? I have Android 3.2. Thanks, Tamás -- You received this

Re: [android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 12:04 PM, cathal coffey coffey.cat...@gmail.com wrote: Unless I am thinking about this incorrectly. The function  onReceive in the  OnAlarmReceiver class needs to have a reference to the widget instance, see the below code. There is no widget instance. How else can

Re: [android-developers] Xoom external storage

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 12:15 PM, b_t bartata...@gmail.com wrote: Can somebody explain something about Xoom? I would like to get external sd path There is no such concept in Android as external sd path. but it returns the internal storage as /mnt/sdcard No, that is external storage.

[android-developers] current location in google map

2011-07-16 Thread arun kumar
Dear all, I am developing one application using Google map. In that application i want to show current location. and Also in that map google text is display in left bottom cornor. i want to hide this text also.Please help me how cab\n we solve this issue? -- You received this message because you

Re: [android-developers] current location in google map

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 12:27 PM, arun kumar hariarun2...@gmail.com wrote: I am developing one application using Google map. In that application i want to show current location. Use MyLocationOverlay. and Also in that map google text is display in left bottom cornor. i want to hide this text

[android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread cathal coffey
Mark, thank you for your answer, especially on a Saturday. Let me explain exactly what I am trying to do. Perhaps it is against the SDKs ethos and that's why my simple task seems so difficult to implement using the Android SDK. I have an AppWidget with one button. When this button is pressed

Re: [android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 12:47 PM, cathal coffey coffey.cat...@gmail.com wrote: I have an AppWidget with one button. When this button is pressed the AppWidget makes a call to a web service and displays the returned result on a label. This I have done and it works great. Hopefully, you are using

[android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread rich friedel
The only way you are going to have that data available is just like Mr. Murphy said... you need to store it. Because using a file and using DB would be extreme overkill IMO I would look into using SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html

[android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread cathal coffey
Update your app widget's RemoteViews when the alarm goes off. Okay no problem. When the alarm period changes, have your alarm-handling logic cancel the existing alarm and schedule a new one. Okay but this is my question, how do I do this? My AppWidget's Button fires the below logic when it is

Re: [android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread Kostya Vasilyev
How about: Last updated: HH:MM:SS Done. -- Kostya 16.07.2011 20:47, cathal coffey пишет: What I am currently trying to do is add a second label which displays the freshness of this data -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 1:14 PM, cathal coffey coffey.cat...@gmail.com wrote: When the alarm period changes, have your alarm-handling logic cancel the existing alarm and schedule a new one. Okay but this is my question, how do I do this? Call cancel() on AlarmManager. Then call setRepeating()

Re: [android-developers] Re: Weird java.util.Timer behavior in App Widget

2011-07-16 Thread Mark Murphy
On Sat, Jul 16, 2011 at 1:20 PM, Kostya Vasilyev kmans...@gmail.com wrote: How about: Last updated: HH:MM:SS This, of course, is the best answer. Constantly updating an app widget is cute and all, but not especially efficient. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Getting contact name by phone number

2011-07-16 Thread Sanchiski
Hello everyone, I am trying to retrieve the contact name given a contact phone number. I made a function that should work in all API versions, by I can't make it work in 1.6 and I can't see the problem, maybe someone can sport it? Notice I replace it the API constants for strings so I don't have

[android-developers] Getting a contact name given its phone number

2011-07-16 Thread Sanchiski
Hello everyone, I am trying to retrieve contact names given the contact phone number. I made a function that should work in all API versions, by I can't make it work in 1.6 and I can't see the problem, maybe someone can spot it? Notice that I've replaced it the API constants for strings so I don't

Re: [android-developers] Re: List View and Simple Cursor Adapter

2011-07-16 Thread ΙΟΥΛΙΑ ΓΡΗΓΟΡΙΑΔΟΥ
Ok Thanks for the explanation, but when I start the app , for example I have 1 list item,(with 2 textviews, a button and an imageview in the list_item.xml) I see that the getView() is called 3 times. ...? Thank you! -- You received this message because you are subscribed to the Google Groups

[android-developers] How to set focusable a view ?

2011-07-16 Thread Goutom
Hi I hav two xml file. 1. main.xml --start ?xml version=1.0 encoding=utf-8? LinearLayout

Re: [android-developers] Re: List View and Simple Cursor Adapter

2011-07-16 Thread Kostya Vasilyev
It's called as many times as ListView sees fit. FWIW, I've also seen getView called more times than the number of visible list items (about 2X the number). Don't worry about it - just make sure your getView does the right thing, based on the item's position. Also don't assume a one to one

Re: [android-developers] Re: Install % not updating?

2011-07-16 Thread Adam Ratana
Looks like the checkout thing seems to be crashing on orders that have been cancelled in a certain way, or something, not just the Docomo, it happens with some older cancelled orders now too. They are clickable, so it's possible to move to archive (or back to inbox) on each crashed one to then

[android-developers] ActionBar/Mode Style Regressions with SDK 12r2 and 13r1

2011-07-16 Thread Jake Wharton
I develop a library http://actionbarsherlock.com which attempts to allow for the use of the action bar design pattern on pre-3.0 versions of Android using the 3.0+ API via a support method (much like the compat library on which it is based). In order to provide the ability to use a single theme

[android-developers] Re: How to set focusable a view ?

2011-07-16 Thread Goutom
Edited version of question On Sat, Jul 16, 2011 at 11:40 AM, Goutom goutom.sust@gmail.com wrote: Hi I hav two xml file. 1. main.xml

[android-developers] Point2D.distance?

2011-07-16 Thread bob
I want to use the Point2D.distance function on Android. Anyone know why this doesn't work? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

Re: [android-developers] Point2D.distance?

2011-07-16 Thread Kostya Vasilyev
A search for Point2D in the SDK docs didn't turn up any classes that are supported by Android... which is not surprising, because Point2D is an AWT class, and Android has no support for AWT. FWIW, distance is sqrt (dx^2 + dy^2), I assume that's common knowledge. If you have lotsa code

[android-developers] Re: ActionBar/Mode Style Regressions with SDK 12r2 and 13r1

2011-07-16 Thread Jake Wharton
I managed to fix these up fairly easily. I can only assume the removed styles were not meant to be public yet and that the styling of action modes is being limited to provide a more consistent experience. The missing attributes definitely need to be on the API differences report at the very

[android-developers] Re: Send dtmf tone on uplink

2011-07-16 Thread Brian @ SPG
I just put out a inquiry on this just a few days ago and was also told it can't be done. I made some mp3 files of the various DTMF sequences I wanted - which play nicely when I press the buttons on my app - but it doesn't go out to the other end. You'd think this would be possible. Several years

[android-developers] error: device not found suddenly...

2011-07-16 Thread wan
Hi Android experts.. I desperately need your help. I was able to upload my apk file to my Samsung GT-I5801, firmware version 2.1-update. I did not do anything to make it work (it is MAC book) other than at phone -- Setting * Application * Development -- check USB debugging. Thereafter I run adb

[android-developers] Android findViewById() problem

2011-07-16 Thread Árón
Hey guys the main layout xml file for my activity is R.layout.date_list_layout as it is used as follows public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.date_list_layout); However I wish to set the text in a TextView from this

[android-developers] Re: How to grab data from a website in android?

2011-07-16 Thread Donovan
Hi Anilkumar, I would think something like HttpGethttp://developer.android.com/reference/org/apache/http/client/methods/HttpGet.html would be what you're looking for (even if its feed based). -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] More fixes for NFCDemo sample in 2.3.3...

2011-07-16 Thread Chuck
Hi, I have looked at previous post and I fixed two major issues in the NFCDemo (The library issue and the Manifest problem). The automatically generated files still do not generate inside of eclipse. Is there a guide somewhere on all of the fixes needed to get this fixed. Also does anyone know

[android-developers] Setting the text in Android Textview in external xml file

2011-07-16 Thread Árón
I'm trying to set the text in a TextView that is found in a layout xml file that is not the layout file used as the setContentView for my activity. The layout file that the TextView is located in is a sub layout file used to populate a list item with database information for a ListView in the main

[android-developers] Opengl ES Texture working on Emulator but not on Device

2011-07-16 Thread odrya12
I tried everything.. Source: Texture class: public class XAndroidTexture { private int[] textures = new int[1]; public int width, height; Bitmap bmp; public XAndroidTexture(GL10 gl, Bitmap bitmap) { gl.glEnable(GL10.GL_TEXTURE_2D);

[android-developers] Expandable List with Progress Bar or Dialog

2011-07-16 Thread Frito Lay
I have an expandable list where the children are not loaded until a group is clicked. The children are loaded using an HTTP request to a PHP service. I want to show either a progress bar inside the group view, or show a please wait, loading... dialog box while the children are being fetched.

[android-developers] setting a textView in a ListView from a DialogBox. Frustrating....

2011-07-16 Thread Chris Johnson
I don't know if anyone knows how to do this... but if so, please help. I'm trying to set a TextView I have in an xml. to a certain text with an editText in a dialogBox. Currently my code will save the text and put it in a random View in the ListView. I do NOT want that... I want the text I save to

[android-developers] Opengl ES Texture working on Emulator but not on Device

2011-07-16 Thread odrya12
I tried everything.. Source: Texture class: public class XAndroidTexture { private int[] textures = new int[1]; public int width, height; Bitmap bmp; public XAndroidTexture(GL10 gl, Bitmap bitmap) { gl.glEnable(GL10.GL_TEXTURE_2D);

[android-developers] Android SDK Courses

2011-07-16 Thread Saad Alghaidani
Hello Guys, i just joined the group today , and i am very interesting in android development, so Could you please help me how can i take Course in Andriod SDK for junior? and where it will be?and inform me for any new course. thank you for this Wonderful group. -- You received this message

  1   2   >