[android-developers] Post APK on the website

2010-06-08 Thread yves...@gmail.com
I want to post my free version of the APK on my website so people can test it out without going through android market. I am using a third party web host site (windows based server). I tried , it doesn't work. I did some search and all I found was using Apache server to do that. Is there a way to h

[android-developers] Regarding email and phone number from contact

2010-06-08 Thread ameya dandekar
Hi, I am currently working on SDK 1.5 , and in my app i want to read the phone number and email address of the person from contacts. I got the solution to read phone no using following : phoneid = phoneBookCursor.getInt(phoneBookCursor.getColumnIndex(People.PRIMARY_PHONE_ID)); and

[android-developers] how to read calendar

2010-06-08 Thread pramod.deore
Can we read calendar in Vcard format? -- 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...@goog

Re: [android-developers] Re: Parsing heavy data

2010-06-08 Thread Kevin Duffey
Like Frank said... why 10,000? To me, that's a bad design to try to deal with that much data on a mobile device. Make your data in pieces, make subsequent requests, or move it to a web platform and allow the user to use the browser (or embed the webkit in your app) and all the processing to occur t

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-08 Thread mort
I think you should work with getItemViewType(int position) and getViewTypeCount(), so Android knows there are different views for the items. Example (untested ugly style): public int getItemViewType(int position) { if ( position == 5 ) return 1; else return 0; } public int getItemViewTypeCoun

Re: [android-developers] Re: Developing Android REST client applications

2010-06-08 Thread Kevin Duffey
I am going to have to watch these videos. Working on some REST calls for my services to provide an Android SDK for developers to use. Speaking of making REST calls, I am curious, for those of you doing RESTful calls, are you making use of the HATEOAS concept, where by you call a single public URL,

[android-developers] Re: Developing Android REST client applications

2010-06-08 Thread schwiz
wow great video, although I really wish he had some example code to look at I get the general idea but now I feel like I have a schematic for a wheel... Anyone know of any open source projects (twitter app when are you coming?!?!) that use any of these techniques? On Jun 8, 10:35 am, Andrew Bramp

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-08 Thread Eric F
Wow this completely explains what happened to me after updating to the 2.2 SDK. The documentation goes into detail about how the current environment picks hdpi or ldpi or what have you, but doesn't explain how previous versions operate at all. From a beginner's mindset, it seems to follow that sinc

Re: [android-developers] Google Maps API: Catching zoom and panning events

2010-06-08 Thread Kevin Duffey
I think you have to write code to handle gestures... not sure tho, haven't actually tried that. I recall some chatter about this issue when Moto Droid first came out... and Android 2.0+, that multi-touch was available, but apps weren't using it. Only apps that specifically handled the gestures work

Re: [android-developers] Google Maps API: Catching zoom and panning events

2010-06-08 Thread Raymond Rodgers
On Tue, Jun 8, 2010 at 7:14 PM, Steve Howard wrote: > A simple solution is to add an Overlay, override the draw() method, and not > actually do any drawing, but simply use the method as a hook to know anytime > the map has potentially moved or zoomed. The problem is, this will get > called more

[android-developers] Moving from one Activity to another with a pause/delay

2010-06-08 Thread pawan nimje
Hi All, I have* two activities*, *1st one* has a ques and 4 options. *2nd one* is like a result page (... displaying if your ans is correct or not ...and showing the right ans ..) Now what i want is when a user clicks : on a right option [or wrong option] ..i want to turn that Image button int

[android-developers] Need some Generics Experts inputs

2010-06-08 Thread Raja Nagendra Kumar
Hi, I see in android some special syntax (may be I am unaware of usage of generics this way) such as public static abstract class ActivityInstrumentationTestCase2 extends android.test.ActivityTestCase I am unable to know the exact meaning of ActivityInstrumentationTestCase2 i.e the need and it

[android-developers] Re: How to lanuch test application from phone

2010-06-08 Thread Raja Nagendra Kumar
Nope.. Sachin, sorry for being less clear on my need. I was referring to a Test case application which has the test cases to test the main application. This TestCase Class inherits from ActivityInstrumentationTestCase2 which is not a activity and hence can't have be shown on Main Application Menu.

Re: [android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-08 Thread Dianne Hackborn
On Mon, May 24, 2010 at 12:52 PM, Mark Murphy wrote: > Xavier Ducrohet wrote: > > The short of it: 1.5 does not know about -mdpi -hpdi, so it'll take > > the first one it finds which could be the wrong one (which means it'll > > get scaled). > FWIW, the solution given in that presentation was to h

[android-developers] Re: prob in attaching txt file while email from internal package file storage

2010-06-08 Thread adag
Hello Bob, Thanks for your suggestion. I have two questions to you.. How do I attach with EXTRA_STREAM in that case while I put the file with Uri.fromFile(). File dirFile = getFilesDir(); File zibraFile = new File(dirFile,"zibra.csv"); Uri zibraUri = Uri.fromFile(zibraFile

[android-developers] LinearLayout/TextView sizing

2010-06-08 Thread Matt (preinvent)
I'm trying to accomplish something fairly simple but struggling to get the right combination of layoutWidth/weight to make this work. I have a horizontally oriented LinearLayout with width fill_parent containing two TextViews. The TextView on the right has variable width text, and I want the Text

[android-developers] Re: Emulator 2.1 & 2.2 reverse geocoding not available

2010-06-08 Thread Richard
public void run() { while (updateLocality) { try { Location l = currentLocation; // lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); Log.v(TAG, "gecoding current location " + "Lat: " + Location.convert(l.

[android-developers] Re: Couple questions regarding gestures and system uis

2010-06-08 Thread Josh
Ok, round three if you've got a second 'cause I can't find the answer to this either. Is it possible to (maybe start a worker thread) that will play audio in when a phone call is coming in (over the normal ring) or is all that off limits too? It looks like you can show a Toast, but I haven't been

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-08 Thread blab
By the way, you do not have to duplicate the image resource if you want to use the same one in 2 or more different folders. You can use aliases: Creating alias resources When you have a resource that you'd like to use for more than one device configuration (but not for all configurations), you do

[android-developers] Re: ListView

2010-06-08 Thread schwiz
There has got to be an example of this somewhere in the source code to Launcher2 or somewhere in the 2.x framework, this is exactly what they do for contacts in 2.x On Jun 8, 7:06 pm, Sandy wrote: > Any tips on how to do this ? > > On Jun 8, 2:24 pm, Sandy wrote: > > > > > Is it possible to hav

[android-developers] Re: statelistdrawable in xml

2010-06-08 Thread schwiz
Thanks for the reply Kumar, but what I am asking is how do you get eclipse to generate this xml file for you. It initially complains and doesn't recognize the tag when you just make a regular xml file and stick it in the drawable folder. On Jun 8, 1:21 pm, Kumar Bibek wrote: > Well, it's possib

[android-developers] Re: EditTextPreference Properties

2010-06-08 Thread schwiz
I love you Mark <3 On Jun 8, 7:00 pm, Mark Murphy wrote: > schwiz wrote: > > Is there a way to change the properties of the EditText Widget nested > > inside the dialog box of an editTextPreference.  For example, I want > > the user to only be able to enter a number for one of the > > preferences

[android-developers] How to install GoogleAPI to non include GoogleAPI Android System ?

2010-06-08 Thread Ryu
Hi friends! I already make Android System but It didn't include GoogleAPI. but now I wanna use a app, it needs GoogleAPI How to install GoogleAPI to non include GoogleAPI Android System? Plz Help me!! Do I have to make new Android System Image T,.T??? -- You received this message becaus

[android-developers] How to install GoogleAPI to non include GoogleAPI Android System ?

2010-06-08 Thread Ryu
Hi friends! I already make Android System but It didn't include GoogleAPI. but now I wanna use a app, it needs GoogleAPI How to install GoogleAPI to non include GoogleAPI Android System? Plz Help me!! Do I have to make new Android System Image T,.T??? -- You received this message becaus

[android-developers] Re: Developing Android REST client applications

2010-06-08 Thread Streets Of Boston
I report the result by using onPostExecute. Android guarantees that during a configuration change, no message will be posted to 'the' activity inbetween an onDestroy and an onCreate (i remember a post by Dianna about this). This means that the result from the onPostExecute either arrives before t

[android-developers] Re: Flash and Webview

2010-06-08 Thread Raju Bitter
Based on the research I've done there's no way to open a SWF file without user interaction (file selector) on HTC phones with Flash Lite. The Flash Lite component is a HTC component and not the same as the installation of Flash Player 10.1 on Android 2.2. That should work with the release of Androi

[android-developers] Re: ListView

2010-06-08 Thread Sandy
Any tips on how to do this ? On Jun 8, 2:24 pm, Sandy wrote: > Is it possible to have a horizontal list view with an vertical list > view? I would like to horizontal list scroll within a vertical list > scroll. Any suggestions please? > > |-| > |       ListItem    

Re: [android-developers] EditTextPreference Properties

2010-06-08 Thread Mark Murphy
schwiz wrote: > Is there a way to change the properties of the EditText Widget nested > inside the dialog box of an editTextPreference. For example, I want > the user to only be able to enter a number for one of the > preferences. I suppose I could make my own dialog box from scratch > and extend

[android-developers] EditTextPreference Properties

2010-06-08 Thread schwiz
Is there a way to change the properties of the EditText Widget nested inside the dialog box of an editTextPreference. For example, I want the user to only be able to enter a number for one of the preferences. I suppose I could make my own dialog box from scratch and extend everything, but it seem

Re: [android-developers] Re: Developing Android REST client applications

2010-06-08 Thread Andrew Brampton
On 9 June 2010 00:02, Streets Of Boston wrote: > "However, that approach can still lose responses or duplicate network > usage if the Activity is destroyed/created while the AsyncTask is > doing its job" > > Is that an issue with the Droid-fu or with AsyncTask? > I don't have that issue. When conf

[android-developers] Re: Failing JUnit tests, not breaking my Ant script like I expect?

2010-06-08 Thread Bob Kerns
If the output is XML, the task should suffice. I haven't checked if the Ant folks did the right thing, but hitting an xsl:message element with terminate=yes should abort the build. If the output is text, there are various ways to search through that data, set some property, and as a result call t

Re: [android-developers] Writing to the /assets directory

2010-06-08 Thread Mark Murphy
hansamann wrote: > is there a way to write to the /assets direcory and save arbitrary > files to it? At runtime? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At You

[android-developers] Writing to the /assets directory

2010-06-08 Thread hansamann
Hi, is there a way to write to the /assets direcory and save arbitrary files to it? I am intending to download a HTML page which should be updated from time to time. If no network connection is available it should be taken out of the assets directory. I know I can reference fils in here using the

Re: [android-developers] MapActivity

2010-06-08 Thread Steve Howard
You can use Context.startActivity() with an Intent, just as you would for any other Activity. The Android developer docs cover this well. Steve On Thu, Jun 3, 2010 at 10:51 AM, Costantinos Costa < costa.costanti...@gmail.com> wrote: > How can i start a Mapactivity from a normal Activtiy? > > Th

Re: [android-developers] Auto zoom to fit markers on an overlay

2010-06-08 Thread Steve Howard
Are you using ItemizedOverlay to display your markers? If so, ItemizedOverlay.getLatSpanE6() and ItemizedOverlay.getLonSpanE6() will give you the span of your markers. You can then use MapController.zoomToSpan() to find an appropriate zoom level. As for panning, depending on your application, yo

Re: [android-developers] Re: Certain apps not being shown in Android Market?

2010-06-08 Thread TreKing
On Tue, Jun 8, 2010 at 4:17 PM, powder wrote: > Google did a fix: > > > http://android-developers.blogspot.com/2010/06/application-visibility-issues.html > I like this part: Regrettably, we fell short of our own standard for customer support by not > communicating the issue to our developers an

Re: [android-developers] Google Maps API: Catching zoom and panning events

2010-06-08 Thread Steve Howard
A simple solution is to add an Overlay, override the draw() method, and not actually do any drawing, but simply use the method as a hook to know anytime the map has potentially moved or zoomed. The problem is, this will get called more often than necessary, so you'll need some custom logic to deci

[android-developers] Re: StackOverflowError in UI redraw

2010-06-08 Thread Zsolt Vasvari
You are using a CharSequence, I see that from your stack trace. I have a similar modularity issue as you do. Unfortunately, one of my in-tab activity is also used standalone, so it's not most practical to make it a View. It's possible, but would involve some code duplication. Luckily, for me, r

[android-developers] Re: Can't grok Activity life cycle.

2010-06-08 Thread Bob Kerns
The scarce resource here is memory, NOT time to save and load. If it is taking you too long to save, then you probably have too much memory in use for a good mobile application. If you are careful about how much memory you're using, treating memory as a cache, and writing out changed things as yo

[android-developers] Re: Couple questions regarding gestures and system uis

2010-06-08 Thread Josh
Thanks a ton Mark. I'm a bit overwhelmed by the amount of new info to learn and really appreciate the help clearing up some of this stuff. On Jun 8, 5:58 pm, Mark Murphy wrote: > Josh wrote: > > I can have a program start up on boot > > Yes, you can have a program start up on boot. That's OK i

[android-developers] Re: Intent to notify??

2010-06-08 Thread Jeremy
Perfect! Not sure why I didn't think of that initially. Thanks Mark! On Jun 8, 3:53 pm, Mark Murphy wrote: > Jeremy wrote: > > I was wondering if it was possible to have an intent that would fire > > off a notification. I need this because I'm running a service that has > > proximityAlerts regist

[android-developers] Re: Developing Android REST client applications

2010-06-08 Thread Streets Of Boston
"However, that approach can still lose responses or duplicate network usage if the Activity is destroyed/created while the AsyncTask is doing its job" Is that an issue with the Droid-fu or with AsyncTask? I don't have that issue. When configuration changes take place, no new requests are duplicate

[android-developers] Bluetooth issue on HTC Incredible

2010-06-08 Thread qwesthead
Our application reads data from the headset through SPP channel. It works fine with Nexus One and Droid. However, on Incredible, it does not read from the bluetooth fast enough. The logcat keep posting the following message. Are there any changes between Nexus One and Incredible as far as BT is con

Re: [android-developers] Re: Couple questions regarding gestures and system uis

2010-06-08 Thread Mark Murphy
Josh wrote: > I can have a program start up on boot Yes, you can have a program start up on boot. That's OK if you are using it to schedule tasks via AlarmManager or something. Trying to have something run forever is not a good design move: http://www.androidguys.com/2009/09/09/diamonds-are-fore

Re: [android-developers] Intent to notify??

2010-06-08 Thread Mark Murphy
Jeremy wrote: > I was wondering if it was possible to have an intent that would fire > off a notification. I need this because I'm running a service that has > proximityAlerts registered on a LocationManager and I would like to > have it so that when one of these alerts is triggered, a notification

[android-developers] Re: Couple questions regarding gestures and system uis

2010-06-08 Thread Josh
Thanks for the response Mark... So, I'm reading about AsyncTask and trying to get my head wrapped around how this will all fit together. And just to make sure I'm not trying to do something that is not possible with api access. I can have a program start up on boot then begin a background thre

[android-developers] Intent to notify??

2010-06-08 Thread Jeremy
I was wondering if it was possible to have an intent that would fire off a notification. I need this because I'm running a service that has proximityAlerts registered on a LocationManager and I would like to have it so that when one of these alerts is triggered, a notification shows up in the statu

[android-developers] Re: Urgent response needed.

2010-06-08 Thread niko20
Haven't you seen any of the Google I/O presentations about Froyo (android 2.2)? FC's and such will now be automatically reported to you in your developer console. Just look at the stack trace and it will point right to where the problem was. After that it takes a little work, yes. -niko On Jun 8,

Re: [android-developers] Re: How to tell if headphones are plugged in

2010-06-08 Thread Mark Murphy
info.sktechnol...@gmail.com wrote: > Ok, this worked. > > It would be useful to be able to get this information directly. ACTION_HEADSET_PLUG is a sticky broadcast. Call registerReceiver(null, new IntentFilter(ACTION_HEADSET_PLUG)) to get the last-broadcast Intent for that action, which will tell

[android-developers] Re: prob in attaching txt file while email from internal package file storage

2010-06-08 Thread Bob Kerns
Please do not construct filenames and Uri's by pasting together strings. The correct way to write this is: Uri.fromFile(new File(Environment.getExternalStorageDirectory(), "zibra.txt")) or to make it a bit more clear: File dirFile = Environment.getExternalStorageDirectory();

Re: [android-developers] Possible to customize a submenu?

2010-06-08 Thread Mark Murphy
Stacy wrote: > Hi folks, > > Is it possible to customize submenu items? The strings I need to > display are two long for a single line and would like to stack a > couple of text views. No, sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commons

[android-developers] Re: How to tell if headphones are plugged in

2010-06-08 Thread info.sktechnol...@gmail.com
Ok, this worked. It would be useful to be able to get this information directly. On Jun 8, 12:38 pm, sachin ravi wrote: > Try to register the broadcast event for ACTION_HEADSET_PLUG. > > in  intent.getIntExtra("state", 0)); you will get whether headset is > connected or not. > > On Tue, Jun 8, 2

Re: [android-developers] stack trace not helping

2010-06-08 Thread TreKing
On Tue, Jun 8, 2010 at 1:02 PM, Greg Donald wrote: > How do I fix a bug that doesn't point to any of my code? I would start by looking at the source for RelativeLayout.onMeasure and seeing what's it's doing at line 487. That will at least give you an idea of what is null and if it's something y

[android-developers] Re: Display multiple images from a remote source in a gallery (zoomable+pannable)

2010-06-08 Thread legr3c
If anyone has the same problem: I found a way to do it now. I had to build my own gallery but it wasn't as hard as I feared it would be since I found this excellent tutorial: http://blogs.sonyericsson.com/developerworld/2010/05/26/android-one-finger-zoom-tutorial-part-2/ The best thing about it is

Re: [android-developers] Re: convert html url into western encoding

2010-06-08 Thread Frank Weiss
Where/how are you seeing the mangled esszet? Is it onscreen, in logcat, a terminal, etc? On Tue, Jun 8, 2010 at 10:20 AM, guruk wrote: > ok.. i tried right now: > > url = Uri.decode(url); > > from: Billrothstra%DFe%2029/4,%20Austria,%201190,%20Wien > > I GOT: > Billrothstra�e 29/4, Austria, 11

Re: [android-developers] Bug/Issue tracker a joke!

2010-06-08 Thread Andrew Brampton
I would agree that the bug tracker needs more developers looking at it, and this was mentioned at Google IO during one of the discussions. However, I have to say the bugs I have reported have been assigned and fixed promptly, but my bugs have mostly been minor, and weren't feature changes. But I

[android-developers] Possible to customize a submenu?

2010-06-08 Thread Stacy
Hi folks, Is it possible to customize submenu items? The strings I need to display are two long for a single line and would like to stack a couple of text views. Appreciate any pointers, Stace -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Re: Bug/Issue tracker a joke!

2010-06-08 Thread Mads
You seem so angry, Onomp.. Did somebody rip off your application? On Jun 8, 11:56 pm, Onomp wrote: > It's called, starting competition to damage another companies stock > price, hyping your product, selling your stock and then buying into > the competitor all the while ripping off any applicatio

[android-developers] Re: Bug/Issue tracker a joke!

2010-06-08 Thread Onomp
It's called, starting competition to damage another companies stock price, hyping your product, selling your stock and then buying into the competitor all the while ripping off any application idea you produce. Cheers. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Bug/Issue tracker a joke!

2010-06-08 Thread Mads
> http://b.android.com/7589 Pretty funny... If you complain, then it's a duplicate of #7589 .. Problem solved.. ;) -- 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: Bug/Issue tracker a joke!

2010-06-08 Thread fadden
On Jun 6, 10:58 pm, Colin wrote: > I find astounding, rude and arrogant the complete disregard with which > Google treats people attempting to access help on the tracker. http://b.android.com/7589 -- You received this message because you are subscribed to the Google Groups "Android Developers"

Re: [android-developers] Re: Couple questions regarding gestures and system uis

2010-06-08 Thread Mark Murphy
Josh wrote: > Thanks for the reply. I have one more somewhat similar question. Is > it possible to create an app that spawns a background / worker thread > that listens for incoming text messages / emails / and then shows some > alert? I'm understanding how to create a worker thread called from

Re: [android-developers] Re: Contributing a menu item to the Contact List context menu

2010-06-08 Thread Mark Murphy
Paul wrote: > Any ideas regarding this question? > > On May 23, 10:36 pm, Paul wrote: >> Hi, >> >> Can this be done? >> >> I want a user to be able to long press acontactand be offered a menu >> item of my own that can run an activity of my own. You can write your own contacts application, and i

[android-developers] Re: Couple questions regarding gestures and system uis

2010-06-08 Thread Josh
Thanks for the reply. I have one more somewhat similar question. Is it possible to create an app that spawns a background / worker thread that listens for incoming text messages / emails / and then shows some alert? I'm understanding how to create a worker thread called from a service with a han

[android-developers] Re: Certain apps not being shown in Android Market?

2010-06-08 Thread niko001
Great, thanks for letting us know! At the moment, I still can't see copy-protected apps, but hopefully it will take effect soon (provided that this is the same non-visibility- issue they're talking about here...:-)) On Jun 8, 11:17 pm, powder wrote: > Google did a fix: > > http://android-devel

[android-developers] Re: Android Application memory usage monitor

2010-06-08 Thread Mihai Dumitrache
Not cool, I found: http://stackoverflow.com/questions/2298208/how-to-discovery-memory-usage-on-my-application-in-android/2299813#2299813 -- 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] Re: AppWidget animation getting glitched by GC

2010-06-08 Thread fadden
On Jun 8, 3:35 am, James W wrote: > I am being very careful not to allocate any new objects on my > animating timer loops, and I am also calling System.gc() before I > start my animation, so I suspect that it is the multiple calls to the > appWidgetManager's updateAppWidget() and what is happening

[android-developers] Re: Contributing a menu item to the Contact List context menu

2010-06-08 Thread Paul
Any ideas regarding this question? On May 23, 10:36 pm, Paul wrote: > Hi, > > Can this be done? > > I want a user to be able to long press acontactand be offered a menu > item of my own that can run an activity of my own. > > Thanks, > > Paul. -- You received this message because you are subscr

[android-developers] Re: Certain apps not being shown in Android Market?

2010-06-08 Thread powder
Google did a fix: http://android-developers.blogspot.com/2010/06/application-visibility-issues.html On 29 Mai, 12:00, powder wrote: > Here I got it here: > > http://android.clients.google.com/packages/passion/signed-passion-FRF... > > But they removed the link now:-) > > I still have the zip, i

[android-developers] Re: Avoiding float operations in game design

2010-06-08 Thread fadden
On Jun 8, 7:18 am, Mario Zechner wrote: > If you work in Java it does not pay of using fixed point math compared > to using floating point math. For some reasons integer divisions are > extremely costly and at the end of the day you will need to get the > non-fractional part of the fixed point num

[android-developers] Android Application memory usage monitor

2010-06-08 Thread Mihai Dumitrache
Hello, I am trying to get the memory usage for every application at different periods of time. I have checked the docs / threads / forums, and i only found that you can get the total available memory value, but i could not find in the sdk an api call for getting the memory used by a single applica

Re: [android-developers] error compiling source under Ubuntu

2010-06-08 Thread Abdul Mateen
development/emulator/qtools/ trace_reader.cpp:1012: error: invalid conversion from ‘const char*’ to ‘char*’ thats what occured when I compiled the code on fedora, I think I did removed the const from the actual source file, and after that it compiled correctly.. On Sun, Jun 6, 2010 at 1:51 AM,

Re: [android-developers] Help with Getting Data from web server

2010-06-08 Thread Abdul Mateen
Well, it is pretty starightforward, Android comes with apache http apis that are good way for communication with server. I don't know if you don't know the parameters how would you set it, but for server communication sample code : HttpClient client = new DefaultHttpClient(); HttpGet get = new H

[android-developers] Re: Android: ListAdapter populating image (icon) source

2010-06-08 Thread electronbender
I dont understand, what do you need, the layout xml file, the complete java file? On Jun 8, 8:30 pm, Kumar Bibek wrote: > I would be interested in looking at your image links. > > Thanks and Regards, > Kumar Bibek > > On Jun 8, 12:48 am,electronbender wrote: > > > > > I'm populating a list from t

Re: [android-developers] Android to Windows ICS (Internet Connection Sharing) via WiFi

2010-06-08 Thread Kostya Vasilyev
If the problem is indeed ad-hoc networking, you could try downloading WiFi drives for your adapter from the chip manufacturer's site. Sometimes their drivers can can switch the adapter into proper access point mode (Ralink for sure). It also depends on the actual chip. 09.06.2010 0:14 пользовател

[android-developers] Success in Google Calendar but not > 1.5

2010-06-08 Thread AusR
Hi, Ok so I have put together code which gets authtoken from the handset credentials and can retrieve online google calendar lists and create events. To test this I obviously need to have a google login on the emulator. I have tested on a 1.5 emulator (with a custom system.img) and all works. Now

Re: [android-developers] Android to Windows ICS (Internet Connection Sharing) via WiFi

2010-06-08 Thread Carlos Silva
Android can't connect to Ad-Hoc networks... Don't know if there's any app on the Market that allows you to do that... On Sun, Jun 6, 2010 at 21:40, Tim wrote: > Is it possible for Android to connect to Windows ICS (Internet > Connection Sharing) via WiFi? > > I have set up Windows ICS (Internet

Re: [android-developers] Re: Developing Android REST client applications

2010-06-08 Thread Andrew Brampton
On 8 June 2010 20:25, Streets Of Boston wrote: > I still need to watch this talk... when i get some time :-) > > Right now i'm working on a project for my job that involves a REST-ful > client on Android and a REST server. > > I have not implemented the REST-communication on the client using a > C

[android-developers] Adsense for mobile vs Admob

2010-06-08 Thread Ken
Hi, I got accepted into Adsense for Mobile yesterday. Right now my app is running with Admob and generating about $6+ a day with 70k impressions (CTR ranges from 0.2% to 0.3%) . Just wondering if someone has experience with both Admob and Adsense, if so would you suggest changing to Adsense? Than

[android-developers] Re: Urgent response needed.

2010-06-08 Thread Onomp
It shouldn't be hard to believe me... I've been to the bottom of the barrel and I fit right in. Look at how messed up my grammar is. This stuff isn't going to fly this way with them. On Jun 8, 3:24 pm, Onomp wrote: > Very true, but none the less I can only see an upside long term if the > market

[android-developers] Re: Developing Android REST client applications

2010-06-08 Thread Streets Of Boston
I still need to watch this talk... when i get some time :-) Right now i'm working on a project for my job that involves a REST-ful client on Android and a REST server. I have not implemented the REST-communication on the client using a ContentProvider and Service. I did do that a good year ago wi

[android-developers] Re: Urgent response needed.

2010-06-08 Thread Onomp
Very true, but none the less I can only see an upside long term if the market place for app took into consideration not just written reviews but how often the application forced closed and on which phone, so that they could be more readily organized and presented to the consumers, resulting in them

[android-developers] ListView

2010-06-08 Thread Sandy
Is it possible to have a horizontal list view with an vertical list view? I would like to horizontal list scroll within a vertical list scroll. Any suggestions please? |-| | ListItem | |--| | ListItem

[android-developers] Re: Couple questions regarding gestures and system uis

2010-06-08 Thread Kumar Bibek
The answers to both of your questions is "NO". Thanks and Regards, Kumar Bibek On Jun 8, 2:20 am, Josh wrote: > Hello, > > I'm a super noob to Android and have a couple questions... If there > are any links to examples that people know of I would love it if they > were posted.  I've been doing s

Re: [android-developers] Re: Urgent response needed.

2010-06-08 Thread Wayne Wenthin
Ok done with this thread. Next! On Tue, Jun 8, 2010 at 12:11 PM, Onomp wrote: > Stephen, you are more intelligent to not realize that you are better > off agreeing with me versus getting wrapped up in the view point and > directions of a pack. > I refuse to accept the insult as it's meant. > >

Re: [android-developers] Re: Urgent response needed.

2010-06-08 Thread Wayne Wenthin
Again this is just the norm for creating apps within a framework where you are not forced to use prescribed look and feel widgets. You either get creative and work out your bugs or you sink. Is it frustrating? Yes. Is it impossible? No. On Tue, Jun 8, 2010 at 12:07 PM, Stephen Eilert wrot

[android-developers] Re: Java OpenGL ES 2.0 bindings

2010-06-08 Thread Mario Zechner
Awesome, thanks for the quick reply! On 8 Jun., 20:40, Romain Guy wrote: > Our OpenGL guy is looking into it :) > > > > On Tue, Jun 8, 2010 at 10:15 AM, Mario Zechner > wrote: > > Hi, > > > i just found out (thanks James) that the new Java GLES 2 bindings are > > missing a vital method: > > > g

[android-developers] Re: java.lang.OutOfMemoryError

2010-06-08 Thread Streets Of Boston
The code above does not make sure your bitmap will load. If there is just no memory available, then the second loading of the bitmap will fail as well and you'll still get the OOM exception. Your code makes a best effort to load a bitmap. This is because the raw binary data does count to the max l

[android-developers] Re: Urgent response needed.

2010-06-08 Thread Onomp
Stephen, you are more intelligent to not realize that you are better off agreeing with me versus getting wrapped up in the view point and directions of a pack. I refuse to accept the insult as it's meant. On Jun 8, 3:07 pm, Stephen Eilert wrote: > On Tue, Jun 8, 2010 at 4:04 PM, Onomp wrote: > >

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-08 Thread Mads
I've had this problem and building against 2.1 seems to fix it.. On Android 1.5 the app crashes if I build against all other targets than 2.1... Best regards, Mads On May 25, 3:18 pm, Sebastian wrote: > Not quite, I was and I am still building against API 4, and min API is > 3. After updating

Re: [android-developers] Re: Urgent response needed.

2010-06-08 Thread Stephen Eilert
On Tue, Jun 8, 2010 at 4:04 PM, Onomp wrote: > I am having trouble with my application while it's in the development > process. > > It's like i work in a restruant and i'm trying to cook my awesome > delicious dish but the menu is scattered with some of the most > terrible tasting food and a few o

[android-developers] Re: Urgent response needed.

2010-06-08 Thread Onomp
I am having trouble with my application while it's in the development process. It's like i work in a restruant and i'm trying to cook my awesome delicious dish but the menu is scattered with some of the most terrible tasting food and a few of my fellow cooks prepare the worst tasting dishes ever.

Re: [android-developers] java.lang.OutOfMemoryError

2010-06-08 Thread Stephen Eilert
On Tue, Jun 8, 2010 at 3:39 PM, Greg Donald wrote: > I used this sort of code to make sure my bitmaps load: > >    try >    { >      foo = BitmapFactory.decodeResource( resources, R.drawable.foo ); >    } >    catch( Exception e ) >    { >      System.gc(); >      foo = BitmapFactory.decodeResourc

[android-developers] Re: java.lang.OutOfMemoryError

2010-06-08 Thread Kumar Bibek
Well, each process is assigned a max heap size which varies from device to device. And since it is an error, your catch blocks would not be able to catch this. And also, calling gc might be able to help you if the bitmap size exceed the allocated heap size anyway. One workaround would be to scale

Re: [android-developers] java.lang.OutOfMemoryError

2010-06-08 Thread Stephen Eilert
On Tue, Jun 8, 2010 at 3:39 PM, Greg Donald wrote: > I used this sort of code to make sure my bitmaps load: > >    try >    { >      foo = BitmapFactory.decodeResource( resources, R.drawable.foo ); >    } >    catch( Exception e ) >    { >      System.gc(); >      foo = BitmapFactory.decodeResourc

Re: [android-developers] Java OpenGL ES 2.0 bindings

2010-06-08 Thread Romain Guy
Our OpenGL guy is looking into it :) On Tue, Jun 8, 2010 at 10:15 AM, Mario Zechner wrote: > Hi, > > i just found out (thanks James) that the new Java GLES 2 bindings are > missing a vital method: > > glVertexAttribPointer(int indx, int size, int type, boolean > normalized, int stride, Buffer  pt

[android-developers] java.lang.OutOfMemoryError

2010-06-08 Thread Greg Donald
I used this sort of code to make sure my bitmaps load: try { foo = BitmapFactory.decodeResource( resources, R.drawable.foo ); } catch( Exception e ) { System.gc(); foo = BitmapFactory.decodeResource( resources, R.drawable.foo ); } In 2.2, it's now failing

[android-developers] google gears in webview! (works only in browser)

2010-06-08 Thread guruk
Hi, i made a test http://www.checkdent.com/mobile/gps2.html based on the demo: http://code.google.com/apis/gears/api_geolocation.html#getpermission when i open it from android browser i get my location. but opened from within a webview, nothing happens?? i already gave several permissions bu

[android-developers] Re: Intent runtime error: Source not found

2010-06-08 Thread Kumar Bibek
Try this instead. Intent intent = new Intent(Login.this, Browse.class); That normally works. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 6, 12:31 am, Ray wrote: > I create 2 simple activities, first activity is to login, after that > proceed to the second activity. How

[android-developers] video player using hardware to encode/decode

2010-06-08 Thread Android dev
I know that the mediaplayer api uses hardware acceleration to encode/ decode video. Now I want to develop my own video player application without using the mediaplayer api, but still using the hardware to encode/decode video. Any tips on how can I do this? -- You received this message because you

  1   2   3   >