[android-developers] Re: Task activity stack always reset when launched from Home

2010-03-02 Thread Neha
Thanks a lot for your reply! I'm seeing the same behavior when I launch my second Activity (say B) by providing the component name or by using an intent-filter (custom category). In both cases, Activity B is popped from the stack after returning from HOME. My AndroidManifest.xml looks like this:

[android-developers] Search Box in Activity?

2010-03-02 Thread javame_android
Hi, I want to display the Search Box in an activity. But I am not able to get it implemented it properly. Can anyone provide me with a simple demo of implementing it. I have tried using API Demos example but the Search box just dont appear. I don't know what is the problem. What I want is the

[android-developers] What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

2010-03-02 Thread Chen Ganir
Hi. I was investigating the issue of setting up a delayed activity/event, that will occur and trigger even if the phone is in sleep mode (wake up, do what you need to do, go back to sleep). I was thinking of the following methods: 1. sendMessageDelayed 2. Timer 3. AlarmManager The basic

[android-developers] MultiThreading between Activitys

2010-03-02 Thread Beena
Hi, I am facing some strange thing. I have a to display 15 images (from the server) and their detail in besides that. In Activity-A on button Click listener i am fetching the data and image urls from the sever. And in Activity-B I am displaying that images and the appropriate data. So how can i

[android-developers] Populating a menu from startup

2010-03-02 Thread BuckeyeDroid
Hi all, Is it possible to populate an activity menu at startup? For example, reading from say a feature database at startup and only display those features that are currently active in an activity menu? Thanks in advance! -- You received this message because you are subscribed to the Google

Re: [android-developers] What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

2010-03-02 Thread Mark Murphy
Chen Ganir wrote: I was investigating the issue of setting up a delayed activity/event, that will occur and trigger even if the phone is in sleep mode (wake up, do what you need to do, go back to sleep). I was thinking of the following methods: 1. sendMessageDelayed 2. Timer 3.

Re: [android-developers] Populating a menu from startup

2010-03-02 Thread Mark Murphy
BuckeyeDroid wrote: Is it possible to populate an activity menu at startup? For example, reading from say a feature database at startup and only display those features that are currently active in an activity menu? Your onCreateOptionMenu() or onPrepareOptionMenu() can tailor the menu as

[android-developers] 3G Wi-Fi at same time

2010-03-02 Thread Ricardo Silva
Hello, here is a solution (only for testing and research, not for product) to have the cellular data and wifi at the same time. Warning: need root 1. pull build.prop from system adb pull /system/build.prop . 2. Change ro.built.type property: from: ro.built.type=userdebug (on ADP1) to:

[android-developers] Re: New to Android...how does android handle application versions/updates...

2010-03-02 Thread MaTT
Okay, great! So, if I needed to make changes to the existing database, would I need to perform any kind of backup of the old database? Thanks for your help! On Mar 1, 11:40 pm, TreKing treking...@gmail.com wrote: On Mon, Mar 1, 2010 at 10:08 AM, MaTT macte...@gmail.com wrote: Specifically,

Re: [android-developers] Re: New to Android...how does android handle application versions/updates...

2010-03-02 Thread Mark Murphy
MaTT wrote: Okay, great! So, if I needed to make changes to the existing database, would I need to perform any kind of backup of the old database? If you use SQLiteOpenHelper to assist you, you will be notified when your database schema differs from the schema your upgraded app wants to use.

[android-developers]

2010-03-02 Thread Vilon Tao
-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit

[android-developers] Re: Search Box in Activity?

2010-03-02 Thread javame_android
Hi, I have been successful in implementing Search box. But this search box comes when Search button is pressed. Is it possible to make this Search visible on the screen whether button pressed or not. Currently, whenever I press the Search button on the device the Search pops-up and the back

[android-developers] how to get location name by providing lat and lon

2010-03-02 Thread aswani kumar tholeti
Hi all, In my application i want to get the weather report for that i am using http://www.google.com/ig/api?weather=; by providing city .for me only lat and longitude is available how to get place name by lat and longitudes . if you are having any code please send me Regards Aswan -- You

[android-developers] Re: What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

2010-03-02 Thread Chen Ganir
Hey Mark. thanks for the quick response. I see that the AlarmManager is part of the app package. Is it possible to use it in a system service? Thanks, Chen Ganir. On Mar 2, 3:34 pm, Mark Murphy mmur...@commonsware.com wrote: Chen Ganir wrote: I was investigating the issue of setting up a

Re: [android-developers] Re: What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

2010-03-02 Thread Mark Murphy
Chen Ganir wrote: thanks for the quick response. I see that the AlarmManager is part of the app package. Is it possible to use it in a system service? What do you consider a system service to be? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-03-02 Thread Posri
You could use a licensing solution like licmax (http://www.licmax.com) and check the license type at runtime (either dynamically via http or locally using hashed license key). All the decision for enabled features is contained within one code base, and there is only one build of your app

[android-developers] Image Editing

2010-03-02 Thread ReyLith
Hi! I'am starting with Android SDK. I want to develop a image editing software but I don't find any computer vision library to Android SDK. I see that I can use C/C++ code with Android NDK and I can use OpenCv library. Do you think that it is the better option?. Thank. A greeting. -- You

[android-developers] Tips to write an app that fetches data from website and displays it on screen

2010-03-02 Thread raqz
Hi, I am new to android programming and have a strong keen interest to learn it. I want to write a program that fetches the data from a website, segregates it and displays it on the screen of the phone. The data could be grocery list from a supermarket or sale items in a mall. Could you please

[android-developers] Can't send MMS after update eclair

2010-03-02 Thread max
Hi all, I can't send the MMS after I update to eclair, but I can send the MMS success in the donut. Does anyone have the same problem? success in donut D/GSM ( 944): [PdpConnection] DataConnection.handleMessage() D/GSM ( 944): [PdpConnection] Notify PDP disconnect D/GSM ( 944):

[android-developers] Re: How to handle a cloned service from paid and free app?

2010-03-02 Thread Posri
You could use a license solution like licmax (http://www.licmax.com). You just check the license type for your app on that device, and enable what features you want. One code base, one build. HTH On Feb 26, 9:39 am, Moto medicalsou...@gmail.com wrote: I would like to make my life easier by

[android-developers] Use of SQLiteOpenHelper class for using SQLite

2010-03-02 Thread Neo
Hello ppl, I am trying to create an application similar to login form where user can register themselves for username, password, email etc.The functionality is as follows. When the user comes to this app it will be ask to either register or login. In case of user registering himself he enters

[android-developers] Developing android apps that auto-update/install

2010-03-02 Thread horatio
Hi, I'm quite new to Android development. I need add auto-update functionality to an application i.e. the application will detect that there is a new version of itself available and then update itself over the web. Are there any resources explaining how to approach this? I've been searching for a

[android-developers] Building and compiling CTS

2010-03-02 Thread navin
Hi, I am working on the CTS and i am trying to figure out how to write new test cases and then include in the CTS package. I am specifically targetting test cases for Bluetooth. So far I could not find any success in building and compiling the source code of CTS. I found the buildcts.py file

Re: [android-developers] Re: how i can fix the orientation of application on the screen

2010-03-02 Thread osetaman
hi 2010/3/2 James Wang jameswangc...@gmail.com Please set activity's android:screenOrientation to portrait or landscape in AndroidMenifest.xml. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] When to use TestCase, InstrumentationTestCase or AndroidTestCase

2010-03-02 Thread navin
hi, I am trying to figure out while writing a test case for android most of the classes extend either of these.. 1. AndroidTestCase 2. InstrumentationTestCase 3. ActivityInstrumementationTestCase2 4. TestCase My doubt is which one we have to use while writing a new test ?? i mean on what

[android-developers] Re: Piracy sucks, or does it?

2010-03-02 Thread Posri
Hi Dadical, licmax offers a comprehensive dynamic licensing solution to this. Piracy won't be possible unless they can foil the IMEI of the device somehow, or somehow inject a jump in the bytecode of your app. In the first scenario, you are able to decommission individual licenses using the

Re: [android-developers] Developing android apps that auto-update/install

2010-03-02 Thread Mark Murphy
horatio wrote: I'm quite new to Android development. I need add auto-update functionality to an application i.e. the application will detect that there is a new version of itself available and then update itself over the web. Are there any resources explaining how to approach this? You can

[android-developers] Accessing sdcard on ADP2 failed

2010-03-02 Thread Swetha
Hi Guys, I am trying to access the sdcard on ADP2 from command prompt using adb tool and from window explorer, it says Access is denied. I have followed the below procedure: 1) Installed the USB driver from Android site. 2) Connected the phone 3) Opened the USB Connected option from the

Re: [android-developers] Accessing sdcard on ADP2 failed

2010-03-02 Thread Mark Murphy
Swetha wrote: I am trying to access the sdcard on ADP2 from command prompt using adb tool and from window explorer, it says Access is denied. I have followed the below procedure: 1) Installed the USB driver from Android site. 2) Connected the phone 3) Opened the USB Connected option from

Re: [android-developers] seekbar half clickable

2010-03-02 Thread social hub
you can try tapping in to onclicklistener and dispatchtouchevents.. based on coordinated event.getx and gety you can make some decisions. On Tue, Mar 2, 2010 at 2:55 AM, manigault manig...@gmail.com wrote: Hi all i have seekbar wich is for example 100dp height. How can i make only the top

[android-developers] Re: Piracy sucks, or does it?

2010-03-02 Thread Hekki
Hi Posri, You may want to check your website(licmax) for the title translation : Bienvenu agrave; LCM, le systegrave;me de gestion de pelouses span class=companyNameInHeader nbsp;License Maximizer /span nbsp;- nbsp;Automated License Management and Verification System Which besides being full of

[android-developers] Re: What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

2010-03-02 Thread Chen Ganir
Mark, I'm looking at the BluetoothService. The BluetoothService implements a mechanism to disable the discoverable mode after 120 seconds (in function setScanMode). However, if the system goes to sleep before that, what happens to the discoverable mode? It will stay on until the system wakes up

Re: [android-developers] Re: Scrollbar Thumb Color

2010-03-02 Thread social hub
there are some drawables i guess I am not sure whether it solves your issue android:scrollbarThumbHorizontal Since: API Level http://developer.android.com/guide/appendix/api-levels.html#level Defines the horizontal scrollbar thumb drawable. Must be a reference to another resource, in the form

Re: [android-developers] Tips to write an app that fetches data from website and displays it on screen

2010-03-02 Thread alfadel mohamed
hi there i am not sure about your project requirement , but first of all you need to know how to communicate with the website server that you want to retrieve data from using http classes and then parse the data to extract .. rgds On Tue, Mar 2, 2010 at 4:50 AM, raqz abdulraqee...@gmail.com

Re: [android-developers] Re: List fils on SD card

2010-03-02 Thread TreKing
On Tue, Mar 2, 2010 at 6:29 AM, Matias Alberto de la Vega delavega.mat...@gmail.com wrote: Keep in mind that by default some files are only visible and accesible to the applications that create them For local files, yes, but the OP said he's listing files on the SD card which is essentially

Re: [android-developers] Re: What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

2010-03-02 Thread Mark Murphy
Chen Ganir wrote: I'm looking at the BluetoothService. The BluetoothService implements a mechanism to disable the discoverable mode after 120 seconds (in function setScanMode). However, if the system goes to sleep before that, what happens to the discoverable mode? You assume they are not

[android-developers] Learn the latest phone from Nokia n86 pictures and Features

2010-03-02 Thread kokosos...@yahoo.com
Learn the latest phone from Nokia n86 pictures and Features http://i-mobile2.blogspot.com/2010/02/nokia-n86.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

[android-developers] Re: What is the best way to schedule an event that will wake up the phone if it goes into sleep mode?

2010-03-02 Thread Chen Ganir
Thanks Mark, I'll move my question to one of those groups. Chen Ganir. On Mar 2, 4:52 pm, Mark Murphy mmur...@commonsware.com wrote: Chen Ganir wrote: I'm looking at the BluetoothService. The BluetoothService implements a mechanism to disable the discoverable mode after 120 seconds (in

Re: [android-developers] Weather info on map view

2010-03-02 Thread TreKing
On Mon, Mar 1, 2010 at 10:49 PM, aswani kumar tholeti ensisinf...@gmail.com wrote: In my application i want to display weather reports on map view. What have you tried? for this any one have solution please send me NO. No one is going to do your work for you. Sorry.

[android-developers] Re: OpenGL - From 60 fps to 8 fps just rotating a textured square by 90 degrees

2010-03-02 Thread Michele Scorcia
Thank you for the reply and the suggestion. It seems to me that changing the mag/min filter to nearest was a test I've already done in the past together with other combination of options but I retested it anyway and there is a slight improvement that is the fps at 90° pass from 8 to 11 for the 1

[android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Mark Wyszomierski
Hi, I'm looking at List8 in the sdk api samples folder. In this example, the list adapter doesn't recycle 'convertView': public View getView(int position, View convertView, ViewGroup parent) { // Make an ImageView to show a photo ImageView i = new ImageView(mContext);

[android-developers] Re: email multi attachments

2010-03-02 Thread sleith
Hi, thanks for your response. I'll try it, and i'll tell you if i make any progress :D thanks man On Mar 2, 7:19 pm, Matias Alberto de la Vega delavega.mat...@gmail.com wrote: BTW if you want to do some research on your own, you can google ACTION_SEND_MULTIPLE which I yet couldn't manage to get

Re: [android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Mark Murphy
Mark Wyszomierski wrote: I thought though that in earlier versions of the SDK that listview would internally release views more quickly if you weren't using convertView, and were allocating all of them like in the above example? I don't think that was the case. I think the example is just

[android-developers] Re: Accessing google calendar through Android using the given protocol

2010-03-02 Thread faithfullghost
hi nikhil i was wondering if you have solve the issue with inserting , deleting and updating event , i am currently woking on a project which need to do the same , i getting the 200 status code when i post the entity to google server, any help will be appreciated -email

[android-developers] Error when sending sms

2010-03-02 Thread Reno Akbar
Hai guys I have develop some application using sending sms when I try sending sms show up The Application xxx(Process com. Bhn.xxx)has stoped unexpectedly Any body knows , about that error ? Please advice Sent from my xperia -- You received this message because you are subscribed to

Re: [android-developers] Error when sending sms

2010-03-02 Thread Mark Murphy
Reno Akbar wrote: Hai guys I have develop some application using sending sms when I try sending sms show up The Application xxx(Process com. Bhn.xxx)has stoped unexpectedly Any body knows , about that error ? Please advice Use adb logcat, DDMS, or the DDMS perspective in Eclipse

[android-developers] Re: bitmap size exceeds VM budget

2010-03-02 Thread Streets Of Boston
This error message is thrown when the process' memory limit has been reached. In other words, there is no hard limit to the size of bitmap that can be constructed by the system. Most phones have a 16MByte heap-limit. Phones with larger cameras (allowing to snap pics with 5 or 8MPix) may have a

[android-developers] Layout on emulator and phone

2010-03-02 Thread nikhil
I designed the user interface of my app on the emulator and then I installed it on the Nexus one. For some reason the textboxes, labels buttons etc. have shrinked in size. It looks as if the view has been zoomed out on the phone. If I arrange it correctly on the phone the objects don't fit on the

Re: [android-developers] Layout on emulator and phone

2010-03-02 Thread Mark Murphy
nikhil wrote: I designed the user interface of my app on the emulator and then I installed it on the Nexus one. For some reason the textboxes, labels buttons etc. have shrinked in size. It looks as if the view has been zoomed out on the phone. If I arrange it correctly on the phone the

[android-developers] Re: Piracy, almost 50% of my new users - Seriously Google?

2010-03-02 Thread MobDev
I was just curious, for those 29 who asked a refund will hou just refund the app-price or will you refund 4 GBP per single app ? Thanks in advance On 28 feb, 10:26, Al Sutton a...@funkyandroid.com wrote: We put Purchase Checking in at AndAppStore for exactly this kind of reason

Re: [android-developers] Re: Can I get sued for using Android Caller ID?? -Please answer

2010-03-02 Thread chris harper
I agree it all depends on if your app makes money. If they see something that makes money they will come after you if you violate a Patent. In my case I did my homework and found out now before my app goes out that someone holds a patent on any case when someone takes any graphic of any image that

[android-developers] Re: Layout on emulator and phone

2010-03-02 Thread nikhil
Awesome Mark! It works I was using HVGA before Thank you once again On Mar 2, 10:38 am, Mark Murphy mmur...@commonsware.com wrote: nikhil wrote: I designed the user interface of my app on the emulator and then I installed it on the Nexus one. For some reason the textboxes, labels

[android-developers] Re: Layout on emulator and phone

2010-03-02 Thread nikhil
Okay my next question how can I have my main.xml file at that size ? On Mar 2, 10:53 am, nikhil nik...@gmail.com wrote: Awesome Mark! It works I was using HVGA before Thank you once again On Mar 2, 10:38 am, Mark Murphy mmur...@commonsware.com wrote: nikhil wrote: I designed the

[android-developers] Hey Android Team: Can someone please update the platform versions web page?

2010-03-02 Thread Neil
In the Resources section of developer.android.com, the Platform Versions has not been updated since the Nexus One was released. I would really like to know the distribution of 2.1 phones. Bonus points if you can automate this process so the page is updated every 2 weeks. -- You received this

Re: [android-developers] Re: Layout on emulator and phone

2010-03-02 Thread Mark Murphy
nikhil wrote: Okay my next question how can I have my main.xml file at that size ? Well, if you can suffer through the sluggish site, I encourage you to read the five-post blog series I just wrapped up on supporting multiple screen sizes:

[android-developers] Re: Problem in sqlite

2010-03-02 Thread Raymond
Hi, Maybe you should try to call 'c.moveToFirst(); before to query to the double value. The ; at the end of of your raw query is not mandatory and will throw a warning log. best regards, - raymond- On 2 mar, 06:11, rajesh chandrasekaran crajeshdanger...@gmail.com wrote: Hi  ALL,    I am

[android-developers] Re: Tips to write an app that fetches data from website and displays it on screen

2010-03-02 Thread raqz
Hi, Hmm...So I need to start reading about the HTTP classes android provides to find out how it parses data. Is that what you want to convey Mohamed? Regards, Raqeeb On Mar 2, 9:50 am, alfadel mohamed faithfullgh...@gmail.com wrote: hi there i am not sure about your project requirement , but

[android-developers] Re: OpenGL - From 60 fps to 8 fps just rotating a textured square by 90 degrees

2010-03-02 Thread Robert Green
For a perpendicular surface optimization, it's not about how much rotation but if there is _any_ rotation. It's like this - perfectly aligned = optimized. Anything other than perfectly aligned = additional processing. So that would make sense as to why you're seeing a high framerate with an

[android-developers] Re: New to Android...how does android handle application versions/updates...

2010-03-02 Thread MaTT
Thanks Mark. You guys have both been very helpful. On Mar 2, 8:47 am, Mark Murphy mmur...@commonsware.com wrote: MaTT wrote: Okay, great! So, if I needed to make changes to the existing database, would I need to perform any kind of backup of the old database? If you use

Re: [android-developers] Re: Tips to write an app that fetches data from website and displays it on screen

2010-03-02 Thread Mike Mackintosh
Read up on Sockets and HTTP On Tue, Mar 2, 2010 at 12:49 PM, raqz abdulraqee...@gmail.com wrote: Hi, Hmm...So I need to start reading about the HTTP classes android provides to find out how it parses data. Is that what you want to convey Mohamed? Regards, Raqeeb On Mar 2, 9:50 am,

[android-developers] ACTION_USER_PRESENT ... what of reverse condition?

2010-03-02 Thread DulcetTone
The broadcast action Intent.USER_PRESENT tells me when the keyguard is released, but what of the opposite transition? How can I find when the keyguard is activated? tone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: Tips to write an app that fetches data from website and displays it on screen

2010-03-02 Thread alfadel mohamed
hi there no what i said was you need to no which server you are going to get your data from and once you figure about how you can communicate with the server then you can use the HTTP carry out the communication , and once you have the data on your device . for example if you want to retrieve

[android-developers] Ensuring that the IME show/hide results in a call to View.onSizeChanged()?

2010-03-02 Thread jamesc
How do I ensure that I get the 'resize' behaviour when the IME is shown/hidden? I've included the following in my manifest: android:windowSoftInputMode=adjustResize What else am I supposed to add? I've read that the container that the View is placed in should 'support resize' but what layouts

[android-developers] Fullscreen and SurfaceView

2010-03-02 Thread Bolha
Hello. I'm trying to develop a video player capable of showing both fullscreen and windowed mode. The user originally starts watching the video in the windowed mode and, when he wants to switch to fullscreen I follow the steps below: 1) Remove the SurfaceView from the current activity 2)

[android-developers] Re: When to use TestCase, InstrumentationTestCase or AndroidTestCase

2010-03-02 Thread Mihai Fonoage
Hi navin, From what I know, for functional testing your entire activity, one would use ActivityInstrumentationTestCase2; for testing some part of your activity in isolation you would use an InstrumentationTestCase; for unit testing, if you use JUnit 4.x version, you just need to annotate your

Re: [android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-03-02 Thread TreKing
Thought I'd bring this back up one more time (maybe getting a Google Engineer to comment on this) before I submit this as a bug. This also holds true for AdapterView.AdapterContextMenuInfo. Thanks. -

Re: [android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Romain Guy
*Always* reuse convertView. On Tue, Mar 2, 2010 at 7:09 AM, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: I thought though that in earlier versions of the SDK that listview would internally release views more quickly if you weren't using convertView, and were allocating

[android-developers] Display Dialog from notification

2010-03-02 Thread julius
Hi, I have a situation where I have a broadcast receiver which creates a notification and the notification, when selected, sends the application to a new Activity with a yes/no AlertDialog. I have two questions: 1. Is it possible to show an AlertDialog (from the notification) without sending the

[android-developers] Re: Layout on emulator and phone

2010-03-02 Thread nikhil
Hey Mark, I read those articles and found out that I just had to change my px to dpi and everything was okay as I was using relative layout already. Thank you so much, once again! On Mar 2, 11:19 am, Mark Murphy mmur...@commonsware.com wrote: nikhil wrote: Okay my next question how can I

Re: [android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Mark Murphy
Romain Guy wrote: *Always* reuse convertView. Should we file a bug report, then, for the List8.java SDK sample? That *was* the context of this discussion. http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List8.html -- Mark Murphy (a Commons Guy)

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-02 Thread sdphil
hm... how about a compound control with two listviews side by side in it? http://developer.android.com/intl/zh-CN/guide/topics/ui/custom-components.html I did try to look at the GridView.java class in the Android source, but it is accessing com.android.internal stuff and it has references to

Re: [android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Romain Guy
Even better, submit a patch :) On Tue, Mar 2, 2010 at 10:43 AM, Mark Murphy mmur...@commonsware.com wrote: Romain Guy wrote: *Always* reuse convertView. Should we file a bug report, then, for the List8.java SDK sample? That *was* the context of this discussion.

[android-developers] HTC Hero handset it not show any decimal point in my application

2010-03-02 Thread developer
Hi all, I face a problem when I run my application on HTC Hero 1.5 handset . I use formatted text in EditText (ie 0.00) but in HTC Hero handset it not show any decimal point, while in emulator as well as G1, Nexus handset it works fine. Why this happen?? Anybody can help me ASAP. -- You received

Re: [android-developers] Display Dialog from notification

2010-03-02 Thread Mark Murphy
julius wrote: 1. Is it possible to show an AlertDialog (from the notification) without sending the user to a new Activity? (This way the user can click No and resume working in any other application) I don't think so. You can always create a dialog-themed activity, so it looks like a dialog,

Re: [android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Mark Murphy
Romain Guy wrote: Even better, submit a patch :) Only if I decide to write a book on how to work with the firmware and contribute to the AOSP. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You

[android-developers] Re: Unable to browse /sdcard, permissions d---------

2010-03-02 Thread Dan S
OK no answer but luckily someone else answered a similar question http://groups.google.com/group/android-developers/browse_thread/ thread/45ee1e08b545f059 - for future reference, yes, it's simply that the sd card is not browsable while it's mounted on usb. Unmount the card, tell Android (via the

Re: [android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Romain Guy
That's sad :( On Tue, Mar 2, 2010 at 10:49 AM, Mark Murphy mmur...@commonsware.com wrote: Romain Guy wrote: Even better, submit a patch :) Only if I decide to write a book on how to work with the firmware and contribute to the AOSP. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] List adapter: failing to recycle views = lots of memory allocated?

2010-03-02 Thread Mark Murphy
Romain Guy wrote: That's sad :( :: shrug :: It's going to take a metric buttload of work for me to navigate the whole process, in particular figuring out everything the site instructions don't tell me. If I'm going to do that work, I'm going to do it seriously, which means not just to fix an

[android-developers] Getting getViewTypeCount() to fire?

2010-03-02 Thread Mark Wyszomierski
Hi, I have a list adapter extended from BaseAdapter. Is there any way to get getViewTypeCount() to be called besides the following: mMyListView.setAdapter(mMyAdapter): // gets fired as a result of setAdapter(). Is there any other way to trigger this? The docs for

Re: [android-developers] Re: Tips to write an app that fetches data from website and displays it on screen

2010-03-02 Thread alfadel mohamed
hi there chapter 22 of the attached book will be a good starting point. all the best On Tue, Mar 2, 2010 at 6:09 PM, alfadel mohamed faithfullgh...@gmail.comwrote: hi there no what i said was you need to no which server you are going to get your data from and once you figure about how you

Re: [android-developers] Getting getViewTypeCount() to fire?

2010-03-02 Thread Mark Murphy
Mark Wyszomierski wrote: Hi, I have a list adapter extended from BaseAdapter. Is there any way to get getViewTypeCount() to be called besides the following: mMyListView.setAdapter(mMyAdapter): // gets fired as a result of setAdapter(). Is there any other way to trigger this? The docs

[android-developers] Re: Getting getViewTypeCount() to fire?

2010-03-02 Thread Mark Wyszomierski
Right so let's say my adapter looks like this, and by default I always have 5 cows to render, and 0 horses to render. Cows and Horses each require a different view type: public class MyAdapter extends BaseAdapter { ArrayListHorse mHorses; ArrayListCow mCows; public MyAdapter() {

Re: [android-developers] Re: Getting getViewTypeCount() to fire?

2010-03-02 Thread Mark Murphy
Mark Wyszomierski wrote: @Override public int getViewTypeCount() { int count = 0; if (mHorses.size() 0 { count++; } if (mCows.size() 0) { count+; } return count; } Just return 2 from getViewTypeCount(). What do you think you're gaining from

[android-developers] Re: Getting getViewTypeCount() to fire?

2010-03-02 Thread Mark Wyszomierski
In that example, nothing, but if I have an adapter which can accept an unknown amount of types, I would need something like that, right? Thanks On Mar 2, 11:42 am, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote:   @Override   public int getViewTypeCount() {     int

[android-developers] Problem with mediaplayer

2010-03-02 Thread Nejc Kikelj
Hello, I have a problem with mediaplayer. I have a simple video that should be played from internet. Sound works, but I can't get the video... Code: public void onCreate(Bundle icicle) { Log.v(TAG,onCreate); super.onCreate(icicle);

[android-developers] Using AJAX on Android

2010-03-02 Thread Matt Gill
Hello, I want to write a program that is somewhat simple. The user will be given a list of broad categories to select from. after this step i am not sure how i want/can get info back to the user. my thoughts were to use the AJAX search api to show local business, but i do not know if you can

[android-developers] Google Gears on Android Simulator

2010-03-02 Thread AlonRaskin
I am testing a WebApp which uses Google Gears on Android Emulator. When I access the page it fires a message that tells me that Google Gears needs to be installed. Q1: I thought Google Gears comes pre-installed on Android. Correct? I click OK and I am redirected to the Google Gears site where I

[android-developers] Creating a local repository.xml

2010-03-02 Thread Joao Galli
Hi everyone, I would like to know how could I create a repository.xml to be read by the AVD Manager with only the 1.5 version? What is the repository.xml format? The reason of doing this it's because I will be teaching some classes about Android in a Post Graduation, but the internet link is too

[android-developers] Security question: can Android source be decompiled and read?

2010-03-02 Thread Anna PS
Hi there So I would like to store a username and password for HTTP login in the Android source (it's an account that is app-wide, rather than per- user, so I would like to supply it with the app). Is this a really bad idea? In other words, should I just assume that any text in Android source can

[android-developers] Re: How to get notification of Pre-Installed application on Android Market place

2010-03-02 Thread mtc
Yes, I am also running into a similar problem. Anyone have any insights? On Feb 11, 6:40 pm, S Kumar skumarandr...@gmail.com wrote: I have developed a small android application and then installed the app using ADB and uploaded the same app with a higher version number (not the string value,

[android-developers] How to send and receive http request

2010-03-02 Thread Matt Gill
Hello, I am wanting to send a http request to Google.com from my mobile application but am unsure how to get about asembling the request. Anothing problem that i might in counter is how to handle the information that is returned. For example, i want to send a request for local resturnats to

Re: [android-developers] Re: Getting getViewTypeCount() to fire?

2010-03-02 Thread Mark Murphy
Mark Wyszomierski wrote: In that example, nothing, but if I have an adapter which can accept an unknown amount of types, I would need something like that, right? You can't have an unknown amount of types. You can't even have a variable-at-runtime amount of types. -- Mark Murphy (a Commons

[android-developers] Problem with image scrolling

2010-03-02 Thread Satish
Hi i am adding scaling image (size 800 x 800) to Scroll layout but this image does not scroll vertical or horizontal.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

Re: [android-developers] Security question: can Android source be decompiled and read?

2010-03-02 Thread Greg Donald
On Tue, Mar 2, 2010 at 12:23 PM, Anna PS annapowellsm...@googlemail.com wrote: So I would like to store a username and password for HTTP login in the Android source (it's an account that is app-wide, rather than per- user, so I would like to supply it with the app). Is this a really bad idea?

[android-developers] Re: How to get notification of Pre-Installed application on Android Market place

2010-03-02 Thread A R
My guess from a developers perspective :) Android Market is an app so it will have its own DB where it 'inserts' and 'deletes' when you install/remove apps via its interface. It will only check for updates for those applications installed via market. So if you are installing the app directly (via

[android-developers] Re: How to send and receive http request

2010-03-02 Thread A R
Check out URL and HttpURLConnection class for your server communication need. You can create a Class which handles all your server request. Implement for eg doSomeWork() which will make server request in a separate thread. This class should also be passed a listener which will be notified when

[android-developers] Re: How to send and receive http request

2010-03-02 Thread A R
Also always check http://developer.android.com/guide/index.html and the 'resources' section. Lot of good stuff there On Mar 3, 1:47 am, A R amit.r...@gmail.com wrote: Check out URL and HttpURLConnection class for your server communication need. You can create a Class which handles all your

[android-developers] Stopping thread when last activity finishes

2010-03-02 Thread michael
Hi all, I am struggling to find a good way of achieving a very simple objective, namely to maintain a thread that lives from the first activity of my app is started until the last activity is stopped. I can create a thread whenever I like, but even if I mark the thread as daemon, it continues to

[android-developers] How can I build a sdk so that I can use it with android eclipse

2010-03-02 Thread n179911
Hi, I am able to download and compile android source on my MacOSX environment. Can you please tell me how can I configure my android adp eclipse plugins so that it uses the android emulator that I built (out/host/darwin-x86/bin/emulator)? Thank you. -- You received this message because you are

Re: [android-developers] Stopping thread when last activity finishes

2010-03-02 Thread Mark Murphy
michael wrote: Hi all, I am struggling to find a good way of achieving a very simple objective, namely to maintain a thread that lives from the first activity of my app is started until the last activity is stopped. I can create a thread whenever I like, but even if I mark the thread as

  1   2   3   >