[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

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 you

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

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 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, alfadel mohamed w

[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 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 SQLiteOpenHelper to assist

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

[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 wrote: > hi there > > i am not sure about your project requirement , but first of all you need

[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 wrote: > Hi  ALL, > >    I am getting few problem in s

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: http://www.androidguys.com/2010/02/16/handling-multiple-

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

[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 wrote: > Awesome Mark! It works I was using HVGA before > > Thank you once again > > On Mar 2, 10:38 am, Mark Murphy wrote: > > > nikhil wrote: > > > I designed the user interface of my app on the

[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 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 > > buttons etc. have shr

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: 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 wrote: > We put Purchase Checking in at AndAppStore for exactly this kind of > reason (http://andappstore.com/AndroidAppli

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

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

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

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 E

[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

[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 faithfullgh...@gma

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: 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 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 it to > work...anyway y

[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); i.setImageRes

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

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 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: 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 wrote: > Chen Ganir wrote: > > I'm looking at the BluetoothService. The BluetoothService implements a > > mechanism to disable the discoverable mode after 120 seconds (in > > function setScanMo

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

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

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 essentia

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 wrote: > Hi, > > I am new

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 Defines the horizontal scrollbar thumb drawable. Must be a reference to another resource, in the form

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

[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 à LCM, le système de gestion de pelouses  License Maximizer  -  Automated License Management and Verification System" Which besides being full of html gibberish talks about a Lawn management system :D A

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 wrote: > Hi all i have seekbar wich is for example 100dp height. How can i make > only the top 50dp to be clickable

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

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

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

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

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

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

[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] 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 firs

[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 wrote: > I would like to make my life easier by having one common code bas

[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): [Pd

[android-developers] BLuetooth security

2010-03-02 Thread Mr. Kakakuva Bird
HI I want to connect my nexus one to LMX9830 (RFCOMM) bluetooth device. LMX9830 supports security levels and sends me encrypted packets. I'm dealing with PPP on RFCOMM. My question is, Does nexus one's bluetooth supports such security or encryption/decryption issues?? Thanks & Regards. -- You r

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

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

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

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 _Beginn

[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 wrote: > Chen Ganir wrote: > > I was investigating the issue of setting up a delayed activity/event,

[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: 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 activi

[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

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

[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 wrote: > On Mon, Mar 1, 2010 at 10:08 AM, MaTT wrote: > > Specifically, does an update blow away my databas

[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: ro.bui

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 nee

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

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

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

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

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

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

<    1   2   3