[android-developers] Re: Importing java apps into the Android

2010-06-25 Thread kypriakos
Or in certain cases just a launching portal - some of the apps we want to run offer lower layer functionalities (peer-to-peer) so a comprehensive UI is not necessary. Thanks Mark On Jun 24, 3:56 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jun 24, 2010 at 3:31 PM, kypriakos

Re: [android-developers] ListView - Row Background Animation

2010-06-25 Thread Mark Murphy
On Fri, Jun 25, 2010 at 11:58 AM, Daniel Lew danle...@gmail.com wrote: Does anyone have any ideas on how to make a temporary fading background on particular rows in a ListView? AnimationDrawable, maybe? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

Re: [android-developers] Re: ItemizedOverlay database items: When do I update the OverlayItem list?

2010-06-25 Thread Mark Murphy
On Fri, Jun 25, 2010 at 11:57 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: So what you're saying is that: from getLatitudeSpan() and getLongitudeSpan() I have the distance from top/bottom left/right of the part of the map being displayed in latitude/longitude values? So if I get a

[android-developers] Can't mark errors as old in the market developer console

2010-06-25 Thread Olivier Guilyardi
Hi, in the developer console, I have a couple of errors, which although fixed in the code and marked old in the console, still show up on the front page. And I highly suspect that this is affecting the rank of my apps. This is obviously a bug in the developer console: 1. at the developer

[android-developers] Application is not installed on your phone error on Nexus One

2010-06-25 Thread Dana Epp
Hey guys, I have an interesting problem I just can't seem to get through. I hung out yesterday in the IRC during office hours in hopes to find someone, but I guess the Google guys are swamped and couldn't make it. We have an app that we have tested successfully across 10 different devices on 4

Re: [android-developers] How to click multiple buttons through sliding motion

2010-06-25 Thread TreKing
On Sat, Jun 19, 2010 at 3:55 AM, yousefm yousef...@gmail.com wrote: I was wondering if there is a way to click multiple items (buttons,checkboxes,radiobuttons,etc) by doing a sliding over multiple items in one motion. No idea, but I would look into Gestures.

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Frank Weiss
Please tell what values you get from mymap.getProjection().fromPixels(0, 0) versus what values you get from mymap.getMapCenter(). -- 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] Reference Chooser

2010-06-25 Thread TreKing
On Sat, Jun 19, 2010 at 7:58 AM, bartek mobilbarth...@googlemail.comwrote: Hi, where can i find a Reference Chooser like this: In Eclipse? - TreKing - Chicago transit tracking app for

Re: [android-developers] how to test if app is installed on sd

2010-06-25 Thread arnold ligthart
Here is how you can force app to sd : http://forum.androidcentral.com/motorola-droid-roms-hacks/17931-how-force-apps-sd.html I already have a generic warning, but not sure if everybody reads them... Thnks anyway. On Jun 25, 2010 4:51 PM, TreKing treking...@gmail.com wrote: On Mon, Jun 21, 2010

[android-developers] Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-25 Thread pcm2a
I have owned my Droid since day 1 and I have been doing Android development, with ADB working, on my Windows 2003 Server laptop all this time. I'll try to be as detailed as possible. Things to note right off the bat: - Motorola Droid 2.1 - Windows Server 2003 laptop - ADB has worked perfectly

Re: [android-developers] android menu and selection

2010-06-25 Thread TreKing
On Sat, Jun 19, 2010 at 2:57 PM, Kroepoek frod...@gmail.com wrote: I'm trying to create a menu. What I've managed so far is create a imageview and some normal text under it with textview. Why are you making a menu out of Text and Image views when Android has a menu system that handles all

[android-developers] ServerSocket problem

2010-06-25 Thread Alex Xin
Hi, folks I'm now facing a very strange server socket problem, I have a server that will listen on a TCP port, I use the following code to do this work. public class RequestListenerThread extends Thread { private final ServerSocket serversocket; public RequestListenerThread(int port, final

Re: [android-developers] ServerSocket problem

2010-06-25 Thread Alex Xin
more on this problem... it works great in emulator, but always failed on real device On Sat, Jun 26, 2010 at 1:03 AM, Alex Xin xinxi...@gmail.com wrote: Hi, folks I'm now facing a very strange server socket problem, I have a server that will listen on a TCP port, I use the following code to

Re: [android-developers] Android paid apps in Ireland

2010-06-25 Thread TreKing
On Mon, Jun 21, 2010 at 3:37 AM, skooter500 skooter...@gmail.com wrote: 1. When will the Android paid app marketplace be available in Ireland There is no ETA - assume never. 2. If its not going to be for a while, how do I sell my app in Ireland withough using the Android Marketplace?

Re: [android-developers] Android to be published and sold on private website

2010-06-25 Thread TreKing
On Sun, Jun 20, 2010 at 1:01 PM, SaiSriOrl sridhar.rangasw...@gmail.comwrote: Regarding the publishing strategy in response to Linkedin. What publishing strategy? Response to what on LinkedIn? The Apps will be published and sold on private web sites Not Andorid market, or Not App Store.

[android-developers] Re: ListView - Row Background Animation

2010-06-25 Thread Daniel Lew
I think you still end up with the same issue with AnimationDrawable - I'd like something to inform me when the animation has completed. At least with that one I can tell when it's ended, though. -Daniel On Jun 25, 11:08 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 25, 2010 at

Re: [android-developers] ServerSocket problem

2010-06-25 Thread social hub
do you know what's the ip address you got on the real device. There are chances the real device is on NAT network. In such a case you wont be able to talk directly to the device. On Fri, Jun 25, 2010 at 12:04 PM, Alex Xin xinxi...@gmail.com wrote: more on this problem... it works great in

Re: [android-developers] how to test if app is installed on sd

2010-06-25 Thread Mark Murphy
On Fri, Jun 25, 2010 at 12:47 PM, arnold ligthart arn...@fortuin.nl wrote: Here is how you can force app to sd : http://forum.androidcentral.com/motorola-droid-roms-hacks/17931-how-force-apps-sd.html First, this is for an unreleased operating system. Second, this is for rooted devices running

Re: [android-developers] Re: Avoiding GPL

2010-06-25 Thread David Turner
On Tue, Jun 22, 2010 at 11:32 PM, Naveen Maheshwari naveen...@gmail.comwrote: Yeah David is right.If you link your application with open source libraries you have to open your code. This is not necessary if you're talking about open source libraries in general. They are plenty of open-source

[android-developers] Re: Accidentally made my paid app free

2010-06-25 Thread Nathan
On Jun 25, 7:35 am, g1bb corymgibb...@gmail.com wrote: I don't assume that would keep my downloads and ratings intact, would it? Huh? Why would there be any downloads and ratings if I immediately unpublished it, so I shouldn't have any free users out there. Nathan -- You received this

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Pedro Teixeira
GeoPoint X = mapView.getProjection().fromPixels(0, 0); GeoPoint y = mapView.getMapCenter(); I get 3200,-1600 on both values! Which is actually the value I set on DMMS simulator of my last position. My map starts on the user current position, which are those values that I generated in

[android-developers] MapView getLatitudeSpan

2010-06-25 Thread Brad Gies
Has anyone figured out how to duplicate the getLatitudeSpan results when it returns zero? My assumption is that I can figure out a formula to get the equivalent result to getLatitudeSpan (and longitude), by testing it for zero, and if it's zero, use a formula based on mapView.getMapCenter()

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Frank Weiss
I don't see a problem there, except that the pixel origin appears to be at the center of the map view! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] MapView getLatitudeSpan

2010-06-25 Thread Frank Weiss
If it returns zero, then either it's a bug or a race condition (you're calling getLatitudeSpan() before the map view is ready). I recommend to verify those possibilities before applying a work around. -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: Accidentally made my paid app free

2010-06-25 Thread TreKing
On Fri, Jun 25, 2010 at 12:49 PM, Nathan critter...@crittermap.com wrote: Why would there be any downloads and ratings if I immediately unpublished it, so I shouldn't have any free users out there. He means the download and ratings for the app attained while it was paid (however long that

Re: [android-developers] MapView getLatitudeSpan

2010-06-25 Thread TreKing
On Fri, Jun 25, 2010 at 1:15 PM, Brad Gies rbg...@gmail.com wrote: Has anyone figured out how to duplicate the getLatitudeSpan results when it returns zero? When does it return 0? - TreKing -

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Pedro Teixeira
the pixel origin should be at the top left right? How can I assume the screen size then? if (0,0) is the center, screenWidth and screenHeight would be where? I was assuming that: mymap.getProjection().fromPixels(0, 0) would give me the top left mymap.getProjection().fromPixels(screenwidth,

Re: [android-developers] MapView getLatitudeSpan

2010-06-25 Thread Pedro Teixeira
PS: Using this to get the display size Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); On Jun 25, 2010, at 7:27 PM, Frank Weiss wrote: If it returns zero, then either it's a bug or a race condition (you're calling

Re: [android-developers] MapView getLatitudeSpan

2010-06-25 Thread Brad Gies
That's true... I am trying to get them before the map is ready. I need them to call a webservice that downloads the info needed to display the points on the map when it is ready, and I want them as soon as possible to enhance the user experience. When the map is ready a function is called to

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Frank Weiss
Your results seem to indicate the documentation for Projection is incorrect. If you want the lat/lng bounds, why bother using Projection when you can use MapView.getMapCenter() and MapView.getLatitudeSpan(), etc.? Your original question seemed more general that just getting the lat/;lng bounds.

Re: [android-developers] Application is not installed on your phone error on Nexus One

2010-06-25 Thread Dianne Hackborn
That is saying that your main activity has declared that it requires callers have the internet permission to invoke it. Check to make sure you didn't put android:permission=... for that activity. On Fri, Jun 25, 2010 at 9:38 AM, Dana Epp d...@vulscan.com wrote: Hey guys, I have an

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Pedro Teixeira
I need the top/bottom/left/right bounds in latitude/longitude of the part of the map a certain screen is seeing at that moment. The screen can be from any device, I just want to certificate that the information I'm going to pass through an algorithm that I did on the server side of my

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Dianne Hackborn
On Fri, Jun 25, 2010 at 8:45 AM, Mark Murphy mmur...@commonsware.comwrote: -- that the performance overhead I thought we had with AIDL/Binder within a process isn't really there? Or... AIDL/Binder by design don't have a performance impact when making a call in the same process. This turns

Re: [android-developers] Re: Avoiding GPL

2010-06-25 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/25/10 04:55 , Andy Savage wrote: I forgot to say in my previous post. In response to the person talking about MySQL. I believe this is quite different as MySQL is a completely self contained database system that other applications

Re: [android-developers] Re: Avoiding GPL

2010-06-25 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/23/10 10:51 , Sean Hodges wrote: You really need to consult a specialist on this subject, developers (including me) have a tendency to give out I am not a lawyer type advice, which is inherently unreliable. In the strategy you describe, I

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Mark Murphy
On Fri, Jun 25, 2010 at 3:50 PM, Dianne Hackborn hack...@android.com wrote: AIDL/Binder by design don't have a performance impact when making a call in the same process.  This turns into a direct call on to the target's interface implementation. Ah! That's good to know. The big thing this

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Frank Weiss
Exactly. You need to pass the neLatitude, neLongitude, swLatitude, swLongitude as query parameters to your back end web service, which then returns only POIs whose latitude and longitude fall within those bounds, like this Javascript Google Map does:

[android-developers] Re: PopupWindow can't be dismissed when press back key

2010-06-25 Thread BeerBelly
I have the same problem and when I try to catch the back key in my list activity (my popup display when an item is clicked) it doesn't catch the back key On Jun 4, 4:35 pm, arnouf arnaud.far...@gmail.com wrote: - Use a Dialog component or - Catch the event on back button to finish your

[android-developers] unable to access user preferences

2010-06-25 Thread pranay
hi, i have a programme where the user checks a checkbox and i want to store this setting, but on restarting the app, i am unable to restore the settings. i have tried this: public void onCreate() { -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] unable to access user preferences

2010-06-25 Thread pranay
hi, i have an app in which i want to store the user preference that whether he checks a chekckbox or not, however when i restart the app, i am unable to restore the settings set by the user. I have tried the following : public void OnCreate() { .

[android-developers] unable to access the user preferences

2010-06-25 Thread pranay
i am trying to store the user preference whether he checks the checkbox or not ,but when i restart the activity, i am not able to restore the preference. here's what i have tried . public void onCreate() { checkbox=(CheckBox)findViewById(R.id.checkbox); // storing the user

Re: [android-developers] ListView - Row Background Animation

2010-06-25 Thread Mariano Kamp
IMHO the list view doesn't shuffle the rows around, but the views that form these rows are re-used in order to avoid the repeated inflation of the views. Instead you get a previously setup view and you only do the data binding, i.e. set the actual values from your model in the views's text fields,

Re: [android-developers] Re: Best httpclient re-use stategy

2010-06-25 Thread Mariano Kamp
Just a sidenote on an issue that you touch, but not the actual main issue: - Save the cookie (String serialized into SharedPreferences) and create every time a new httpclient instance (then set the cookie to the new instance) = overhead to get the http connection I tried that in my app and

Re: [android-developers] Re: Avoiding GPL

2010-06-25 Thread Anton Persson
Well, to connect to a MySQL database you need a connector, and the connector library shipped with MySQL is under GPL. Which is what I meant. And, hence, corporations buy licenses from MySQL to avoid having to release their applications under the GPL. (If you still don't believe me, try explaining

[android-developers] Anyone working on a way to re-use Android Layout XML in a Web App

2010-06-25 Thread Frank R
Subject says it all: Anyone working on a way to re-use Android Layout XML in a Web App? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] database exception when update applicarion

2010-06-25 Thread Engin Arslan
Hi everyone, In my applicattion, I have 3 databases. Even When I do some changes not related to database, application throws exception as follows 01-01 02:03:04.264: ERROR/CursorWindow(1463): Bad request for field slot 0,3. numRows = 1, numColumns = 3 When I uninstall and install application

[android-developers] why my ListView didn't show?

2010-06-25 Thread zpcat
the layout main.xml file ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=fill_vertical|fill_horizontal|fill android:id=@+id/brlayout

[android-developers] Input without suggestions

2010-06-25 Thread mostly_confused
I'm writing a simple app with an EditText that I *don't* want android to change or suggest changes for misspellings. I've tried setting the deprecated autoText=false, and tried setting the inputType=text| textNoSuggestions in the EditText attributes in the layout file to no avail. I still get the

[android-developers] Build-In Extensions

2010-06-25 Thread Hudar
Hi, Just wondering, is that possible to build an extensions to build-in apps like contacts, or addessbook, so we could adding additional menu ? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] How to create custom buttons ?

2010-06-25 Thread Ramya B
How to create custom buttons? I need to create buttons in Parallelogram http://en.wikipedia.org/wiki/Parallelogramshape. Plz check the attached image. I can also modify the framework code if needed. Please help me how to approach. Thanks, Ramya -- You received this message because you are

[android-developers] The server could not process your apk. Try again.

2010-06-25 Thread DBM
Hay guys, I have been struggling with uploading my application to android market. I keep getting the same old The server could not process your apk. Try again.. I tried for hours to change and modify my AndroidManifest.xml file but no luck. Here is my my AndroidManifest.xml : ?xml version=1.0

[android-developers] Editing List Items individually

2010-06-25 Thread Kritz
Hello This is a problem that I've been struggling with for a while and I would think it should be a simple process. I have a class that extends listactivity. I then load the list with text items and their corresponding id's using the setListAdapter(SimpleCursorAdapter). That all works fine. My

[android-developers] How to Properly Store Cryptographic Keys in Android

2010-06-25 Thread Randolph
Hi, I am working with on an Android opensource project, and we have functions that use twitter, gmail, etc in behalf of the user, so we are keeping their login credentials the database. To keep the passwords safe from prying eyes, we are thinking of encrypting the passwords (or OAuth access token)

[android-developers] Re: Connect two android phones over 3g/edge

2010-06-25 Thread DJL
Yes, it could be because the two phones are behind different NATs. I did this years ago on two Blackberries on Cingular. I opened a ServerSocketConnection on the initiating phone, got the IP address/ port and sent it in an SMS to the other phone (which was also listening on a ServerSocket

[android-developers] Google MapsAPI MyLocationOverlay causes ClassCastException

2010-06-25 Thread Ka
MyLocationOverlay myLocationOverlay = new MyLocationOverlay(this,mMapView); overlays.add(myLocationOverlay); myLocationOverlay.enableMyLocation(); This works on Android 1.6 device but throws a class cast exception on Android 2.1. 06-25

[android-developers] Sharing SQLite Database between activities

2010-06-25 Thread Ramsey Statz
Hey everybody: I'm in the middle of writing myself an app and have run into a problem concerning the use of the same SQLite database within multiple activities. I have one activity that is used to input and store data and multiple activities that need to then read that data. Within the first

[android-developers] how to specify which soft keyboard appears

2010-06-25 Thread john brown
if application has EditText widget and user clicks on it, a qwertysoft keyboard appears. how do you get a numeric, 12key, or phone soft keyboard to appear instead. (I have searched documentation but I cannot find solution.) thanks for your help, John Brown -- You received this message because

[android-developers] Software Design Description

2010-06-25 Thread Abdel_azeem Jebril
Dear all, My undergraduate project is to implement smart phone and i need to prepare report about Mobile Software Design Description . any one can help me? My regards , Abdelazeem Jibril -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] how to control which soft keyboard appears

2010-06-25 Thread john brown
Using this EditText definition in res/main.xml: EditText android:text= android:id=@+id/EditTextReading android:layout_width=10mm android:layout_height=wrap_content android:inputType=numberSigned /EditText When user clicks on EditText widget, a numeric

[android-developers] How to detect is Activity started from Service

2010-06-25 Thread Tina
Hi all, I have small simple Service and big MainActivity with UI. Service is called periodically from AlarmManager. My Service need to know if MainActivity is on the screen and inform MainActivity about state changing. How can I do it? Thanks for any infornation, Tina -- You received this

[android-developers] Re: UDP Broadcast Receiver, work on old Phone, but not on new

2010-06-25 Thread strawd
I am seeing this same issue. Have you found a solution? On May 6, 2:01 am, marcomoel...@googlemail.com marcomoel...@googlemail.com wrote: Hi, I have written an app what is receiving UDP broadcast messages (via WLAN). It is running on an HTC magic (1.6) without any problems. But on a HTC

[android-developers] Re: ListView - Row Background Animation

2010-06-25 Thread Alec B. Plumb
ListView recycles rows by calling getView(int position, View convertView, ViewGroup parent) in the ListAdapter. The convertView argument can be an existing view that will be moved to the new position. The ListAdapter will usually keep the convertView (instead of creating a new one) and modify it

[android-developers] Shuttle component in Anroid ???

2010-06-25 Thread shashidhar yamsani
Hi, In my android application I need a shuttle widget ( picture of shuttle widget http://technology.amis.nl/blog/wp-content/images/reorderColumns3.jpg ). Can someone provide the code if you already have done it before?? If not suggest me the easiest way to implement it. I have pasted the

Re: [android-developers] Re: Avoiding GPL

2010-06-25 Thread Shane Isbell
As far as I recall, GPL3 closed the loophole on the specific case that Naveen outlined, as this was considered not in the spirit of GPL2. People were using remote connections get around the concept of binary linking. I only read one of the early drafts, not sure if that was in the final. On Fri,

Re: [android-developers] Software Design Description

2010-06-25 Thread Miguel Morales
Yeah, read the manuals, research, use google, then do your assignment. Hope that helps. ;) On Jun 25, 2010 2:07 PM, Abdel_azeem Jebril knowsky2...@gmail.com wrote: Dear all, My undergraduate project is to implement smart phone and i need to prepare report about Mobile Software Design

Re: [android-developers] Software Design Description

2010-06-25 Thread TreKing
On Fri, Jun 25, 2010 at 3:46 AM, Abdel_azeem Jebril knowsky2...@gmail.comwrote: My undergraduate project is to implement smart phone You have to implement a smart phone? Like build one? Sounds like a lofty project. and i need to prepare report about Mobile Software Design Description .

Re: [android-developers] Google MapsAPI MyLocationOverlay causes ClassCastException

2010-06-25 Thread TreKing
On Fri, Jun 25, 2010 at 4:20 AM, Ka kasu...@googlemail.com wrote: This works on Android 1.6 device but throws a class cast exception on Android 2.1. See this thread: http://groups.google.com/group/android-developers/browse_thread/thread/43615742f462bbf1/f29ee0a153d98f93

Re: [android-developers] Build-In Extensions

2010-06-25 Thread Mark Murphy
On Fri, Jun 25, 2010 at 2:12 AM, Hudar hudars...@gmail.com wrote: Just wondering, is that possible to build an extensions to build-in apps like contacts, or addessbook, so we could adding additional menu ? Only by creating your own firmware, or by porting the applications to use only the SDK

[android-developers] Re: The server could not process your apk. Try again.

2010-06-25 Thread RichardC
Just a guess but your package name com.myapp is probably not unique. /Richard On Jun 24, 10:36 pm, DBM yrd...@gmail.com wrote: Hay guys, I have been struggling with uploading my application to android market. I keep getting the same old The server could not process your apk. Try again.. I

[android-developers] How to get the version of installed apps

2010-06-25 Thread Nando Android
Hello all, How can I get the version information of the current installed apps on my phone. If I do : PackageManager packageManager = getPackageManager(); ListPackageInfo packs = packageManager.getInstalledPackages(0); int size = packs.size(); apps += \nTotal apps = + size+\n; for (int i = 0; i

[android-developers] How to fetch phone's phone number or unique ID

2010-06-25 Thread Nando Android
Hello, I wonder how could I fetch the phone's phone number or an unique id to identify it? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] How to get the version of installed apps

2010-06-25 Thread Mark Murphy
On Fri, Jun 25, 2010 at 5:36 PM, Nando Android nando.andr...@gmail.com wrote: How can I get the version information of the current installed apps on my phone. If I do : PackageManager packageManager = getPackageManager(); ListPackageInfo packs = packageManager.getInstalledPackages(0); int

Re: [android-developers] Sharing SQLite Database between activities

2010-06-25 Thread J Handal
Hi I 'm working also with sharing database instances between activities, Post your code to help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: Picking up contacts: difference in behaviour between HTC and NexusOne - SDK 2.1-update1

2010-06-25 Thread Jens Finkhaeuser
Hi! Any news on this? I'm seeing the same - rather, one of my users is seeing the same on their Hero, and on my N1 everything works. Thanks, Jens -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Accessing APNs on the phone

2010-06-25 Thread Nando Android
Hello, How can I get the information on this phone regarding its number, carrier, etc? I have tried this: String names = ; Uri contentUri = Uri.parse(content://telephony/carriers/); Cursor cursor = null; try { cursor = getContentResolver().query(contentUri, new String[]{name}, null, null,

Re: [android-developers] How to get the version of installed apps

2010-06-25 Thread Nando Android
Perfect, thanks! I had the VersionName before. On Fri, Jun 25, 2010 at 3:41 PM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Jun 25, 2010 at 5:36 PM, Nando Android nando.andr...@gmail.com wrote: How can I get the version information of the current installed apps on my phone. If I do

Re: [android-developers] How to fetch phone's phone number or unique ID

2010-06-25 Thread Dana Epp
Hey Nando, You can get this through the TelephonyManager. You could so something like: TelephonyManager mTelephonyMgr = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); String sDeviceID = mTelephonyMgr.getDeviceId(); String sSimSerial =

Re: [android-developers] Application is not installed on your phone error on Nexus One

2010-06-25 Thread Dana Epp
Thanks Dianne! That seems to be the issue. For some reason that was set in the application/. According to the source control logs, that has been there since day one, generated somehow by Eclipse. I am surprised we never had this error before. Is Nexus One just more strict than other devices for

[android-developers] Re: Sharing SQLite Database between activities

2010-06-25 Thread Ramsey Statz
So here's the basic idea of my code. Each activity that needs access to the database has its own instance of the DataHelper class. I do that with this statement: final DataHelper dataHelper = new DataHelper(this); The DataHelper constructor looks like this: public

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Pedro Teixeira
Indeed, that example is exactly what I'm trying to achieve with my application. I'm just trying to get thoose coordinates now ;) Thank you very much for your help. On Jun 25, 2010, at 9:15 PM, Frank Weiss wrote: Exactly. You need to pass the neLatitude, neLongitude, swLatitude, swLongitude

[android-developers] Re: AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Zigurd
On page 267 of Android Application Development, the AIDL-generated code for APIDemos example is formatted for readbility and dissected, and shows how calls within a process get short-circuited and do not actually use IPC. Amazon doesn't allow posting links into Look Inside previews of books, but

Re: [android-developers] how to specify which soft keyboard appears

2010-06-25 Thread Brad Gies
setImeOptions(imeOptions) on your EditText On 24/06/2010 8:20 PM, john brown wrote: if application has EditText widget and user clicks on it, a qwertysoft keyboard appears. how do you get a numeric, 12key, or phone soft keyboard to appear instead. (I have searched documentation but I cannot

[android-developers] Re: Sensor listeners - threads and responsiveness

2010-06-25 Thread Lance Nanek
You get them on the main thread, in my experience, unless you use the SensorManager#registerListener method that takes a Handler argument with a Handler created for a different thread. On Jun 24, 5:50 pm, kamiseq kami...@gmail.com wrote: hi, I have two questions about sensor listeners 1. from

[android-developers] Re: Sharing SQLite Database between activities

2010-06-25 Thread chaitanya
Well try to create all your tables in the onCreate method of class that subclasses SQLiteOpenHelper. Then when you call db.getWriteableDatabase(), if the database is not created, the onCreate() method gets called for you and then well you do not need to worry about a null database. On Jun 25,

[android-developers] Mapping Multiple textures to a cube in Android OpenGL ES

2010-06-25 Thread chaitanya
Hi, I have just began opengl programming in android and i am fairly new to opengl as well. I've been using nehe's opengl tutorials as well as insanitydesign's android ports. I successfully managed to create a cube with a single texture mapped to all its 6 faces. I even mapped multiple

Re: [android-developers] Re: Android libraries

2010-06-25 Thread Xavier Ducrohet
that's really strange. If this happens again, can you check if you have the corresponding .class files in the bin folder of your project? Xav On Fri, Jun 25, 2010 at 2:10 AM, deg d...@degel.com wrote: I mean that it did not include the library classes at all. Somehow, even though all classes

[android-developers] Re: Sharing SQLite Database between activities

2010-06-25 Thread Ramsey Statz
Thanks. I did that though and I guess the real problem here is that my database is not getting transferred from one activity to the next. I can insert data into it in one activity (I know for sure that data is getting inserted). But then when I go to read the data from it in a different activity

[android-developers] Re: Sharing SQLite Database between activities

2010-06-25 Thread chaitanya
Well I just create a private instance of the helper class in every activity and then I get a database in a local variable using helper.getWriteableDatabase(); I think you can probably go to the sqlite prompt in adb using sqlite3 /data/data/package name/databases/database name try to query the

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Dianne Hackborn
On Fri, Jun 25, 2010 at 1:08 PM, Mark Murphy mmur...@commonsware.comwrote: Yeah, I haven't fully investigated the app, so I don't know precisely what your team's intentions were when they wrote it. Not my team's app... I've not looked at the code, either. :} -- Dianne Hackborn Android

Re: [android-developers] Application is not installed on your phone error on Nexus One

2010-06-25 Thread Dianne Hackborn
You just got lucky that other launchers requested the internet permission. Probably because people's custom launchers have all these widget things built into them that need to do networking, while for the platform we are pretty rigid about isolating things. On Fri, Jun 25, 2010 at 3:14 PM, Dana

[android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Pedro Teixeira
Can you please show me or direct me to a code snippet on how does this work? Mine is simply not working... I haved tried: (considering my center of the screen to be the user position that I get from Location): Display display = getWindowManager().getDefaultDisplay();

[android-developers] Re: How to detect is Activity started from Service

2010-06-25 Thread Alec B. Plumb
You can define an Application subclass in your AndroidManifest.xml. Your other components can access the application from Context.getApplication(). You could have your MainActivity register itself with your Application class when it is active and unregister when it is stopped/paused. On Jun 25,

[android-developers] Re: How to detect is Activity started from Service

2010-06-25 Thread Alec B. Plumb
Actually, the better way is probably the following (from http://developer.android.com/guide/topics/fundamentals.html#lcycles): The visible lifetime of an activity happens between a call to onStart() until a corresponding call to onStop(). During this time, the user can see the activity

[android-developers] Re: How to change ClassLoader of Activity

2010-06-25 Thread James Wang
So what Thread's ContextClassLoader for? -- You received this message because you are subscribed to the Google 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] ServerSocket problem

2010-06-25 Thread Alex Xin
thanks for reply. It's not an IP problem, my real device and client computer are all connected to local network through a WIFI router, they can connect to each other directly. My phone has IP address: 192.168.0.176 and computer's IP is 192.168.0.126, assigned by DHCP. I found that if I establish

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Pedro Teixeira
New approach that makes more sense: int latSpan = mapView.getLatitudeSpan(); int longSpan = mapView.getLongitudeSpan(); GeoPoint mapCenter = mapView.getMapCenter(); int topLatitude = mapCenter.getLatitudeE6() +

Re: [android-developers] Re: How to change ClassLoader of Activity

2010-06-25 Thread Mark Murphy
On Fri, Jun 25, 2010 at 8:47 PM, James Wang jameswangc...@gmail.com wrote: So what Thread's ContextClassLoader for? Beats me -- can't even find it in the source code. All I know is that this question of replacing the system ClassLoader has come up before, and the answer was you can't, sorry, so

[android-developers] Preferred mechanism for shared access to a Sqllite database.

2010-06-25 Thread Robert Macaulay
My initial version of my app used sqlite databases directly, opening and closing on create/destroy. However, I received occasional crashes with the message database is locked. I looked into it, and found that sqlite databases really only can handle one writer at a time. I had converted my service

[android-developers] Re: unable to access the user preferences

2010-06-25 Thread pranay
i am getting the correct result now, :) . Actually i was writing both the methods in the same onCreate() of the activity where i had to write the storing method in onPause() . Silly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-25 Thread Brad Gies
Pedro, I've been working on roughly the same thing today... see the thread MapView.getLatitudeSpan.. All you're running into is that the map isn't ready when you are asking for the getLatitudeSpan, so you need to wait until it is ready...OR... the formula I've come up with to calculate it

  1   2   >