[android-developers] AsyncTask vs Thread?

2012-03-26 Thread martypantsROK
I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread

[android-developers] Re: AsyncTask vs Thread?

2012-03-26 Thread martypantsROK
implementation of doInBackground(), which you haven't shown.  And whatever your problem is, you will have it with a Thread as well.  AsyncTask is just doing work from threads, after all. On Tue, Mar 27, 2012 at 1:18 AM, martypantsROK martyg...@gmail.com wrote: I have an operation

[android-developers] Re: AsyncTask vs Thread?

2012-03-26 Thread martypantsROK
. On Tue, Mar 27, 2012 at 1:54 AM, martypantsROK martyg...@gmail.com wrote: I would have thought the same, too - AsyncTask or Thread - there's something else going. Here's what is called by doInBackground() - it's a loop through possible moves until the first fit is found. My Log.d(WTF

[android-developers] Re: AsyncTask vs Thread?

2012-03-26 Thread martypantsROK
That was itmy UI thread was updating the TileExtents from another play and caused the loop to exit. Done in again by my own doing :) Problem solved On Mar 27, 11:37 am, martypantsROK martyg...@gmail.com wrote: No dice. Tried catching a Throwable both when I start the thread

[android-developers] onDraw canvas within a ScrollView?

2012-01-07 Thread martypantsROK
How can I construct this scenario? I want to build a game where the game board is a canvas controlled by a custom View but within a ScrollView. The game board is potentially much bigger than the screen and I want to scale, scroll around the game. However, I want all the advantages of the UI

[android-developers] Re: Error while Creating the Two tables in Single DataBAse Android Application?

2011-12-22 Thread martypantsROK
you should post what errors you are getting. And wouldn't it be easier later to have the Amount field be a number rather than text? On Dec 22, 11:21 pm, niva k elakkiya...@gmail.com wrote: i have Created a database in Sqllite Android Application.and i try to add two tables in my Database But i

[android-developers] Re: find word in faster speed

2011-12-20 Thread martypantsROK
Don't forget there are more than data structures involved here. The method searching could be improved. As Jim suggested, breaking things down with an index (search for zulu beginning in the z section) could be sped up even more. Search for the last letter in the string first. By searching for

[android-developers] Re: how to make minor changes but not push out an update

2011-12-18 Thread martypantsROK
can't do the version code/name as Market uses that to handle your available apps. I would recommend using XML. Put whatever data you want to push without update into XML on a server somewhere and have your app read/parse that. Always fresh, always updated. On Dec 17, 6:32 am, TW

[android-developers] xlargeScreens ?

2011-12-12 Thread martypantsROK
I'm getting an error on compile: error: No resource identifier found for attribute 'xlargeScreens' in package 'android' I'm trying to use API 11, and xlargeScreens was to have been setup in 9+. So what have I done wrong to cause this not to be recognized? -- You received this message

[android-developers] Re: xlargeScreens ?

2011-12-12 Thread martypantsROK
seems to be an Eclipse problem. Build target is set to 11 but it doesn't recognize it. Got all the latest updates...any other wise info? On Dec 12, 8:59 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 12, 2011 at 6:07 AM, martypantsROK martyg...@gmail.com wrote: I'm getting

[android-developers] Re: How can I test SQLite

2011-12-12 Thread martypantsROK
use an external tool such as SQLite Data Browser or SQLiteSpy. You can pull your db off the emulator and do whatever you want with it. You'll need a rooted phone to pull it off a real device On Dec 13, 9:13 am, SH sung...@identityhive.com wrote: Hi all. I am working with an Android app using

[android-developers] Re: SQLite Query

2011-10-12 Thread martypantsROK
ContentValues initialValues = new ContentValues(); initialValues.put(name, namedata); initialValues.put(country, countrydata); return mDb.insert(table1, null, initialValues); On Oct 12, 12:27 am, dipti desai diptidesa...@gmail.com wrote: How to insert more than

[android-developers] Re: How to install APK programmatically without user prompt

2011-09-27 Thread martypantsROK
I truly hope you nor anyone else ever figures out how to do it. Windows is plagued with such junk. On Sep 17, 2:32 am, Pratik Prajapati pratik.prajap...@gmail.com wrote: I need to install some non market place APK programmatically *without *user prompt. I found some links on stackoverflow, but

[android-developers] Re: Android is worst os mobile is this true

2011-09-21 Thread martypantsROK
what's wrong with your android phone? My can and does have Arabic. Mine can redial. Mine can do voice mail - although that's more a function of the carrier and not the phone. go wank on another message list. Oh and learn English On Sep 21, 4:02 am, wanyce ashoura wanyce...@gmail.com wrote: Yes

[android-developers] Re: Newbie to Android!1

2011-09-16 Thread martypantsROK
cut my teeth on this: http://developer.android.com/resources/browser.html?tag=tutorial On Sep 16, 6:33 pm, HarryKrish sriharish.kris...@gmail.com wrote: Hi, I'm Harry from India. Im a newbie to Android. Could you pls refer me the best Android Tutorial!! It would be too good if its a video

[android-developers] Re: Newbie to Android!1

2011-09-16 Thread martypantsROK
I cut my teeth on this: http://developer.android.com/resources/browser.html?tag=tutorial On Sep 16, 6:33 pm, HarryKrish sriharish.kris...@gmail.com wrote: Hi, I'm Harry from India. Im a newbie to Android. Could you pls refer me the best Android Tutorial!! It would be too good if its a video

[android-developers] Re: Need a gud UI designer for my project

2011-09-13 Thread martypantsROK
sure. I'll do it - how much will you pay me? On Sep 12, 4:00 pm, pa1ani reverselibr...@gmail.com wrote: Hi I need a gud UI designer for my project.. Interested people can ping me.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] hiding keyboard after button press

2011-09-09 Thread martypantsROK
OK, so I have an activity that expects from 2 to 6 numeric inputs. When the user has finished, a button is pressed to initiate processing and then intermediate results are displayed. The problem is that I can't get the keyboard to disappear and it covers up the Scrollable area where the results

[android-developers] Re: kokao Talk

2011-09-08 Thread martypantsROK
First. Get some friends. Then add their phone number. On Sep 8, 1:08 pm, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi,         I installed kokao Talk in my mobile, please tell me how to add friends. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Git and source code

2011-09-08 Thread martypantsROK
not without some code we can't. Try posting code when you have a question and you are likely to get some help. On Sep 8, 4:52 am, Tushar Sahni tusharsahni...@gmail.com wrote: Hi I am getting cursor out of bound exception while i am trying to get list particular item positiion,Below is the

[android-developers] Re: Listview with image data from database

2011-09-08 Thread martypantsROK
A SimpleCursorAdapter does have the smarts to handle images. You will need to write a custom adapter that expect images (bitmaps) and will display them. At a minimum your adapter will have to redefine getView and return a view upon completion. On Sep 7, 8:53 pm, Atluri ajith

[android-developers] Re: How can i run javascript alerts in android code?

2011-09-08 Thread martypantsROK
you might check out http://droidscript.se/ for running javascript on your device On Sep 7, 6:31 pm, venugopal reddy venugopal.re...@tspl.com wrote: How can i run javascript alerts in android code? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Developing first Android app from iOS

2011-09-08 Thread martypantsROK
you'll need to make a listview with each item selectable. Once selected, you will initiate an activity that will display the details of that selection. Checkout out the Notepad tutorial on http://developer.android.com/index.html On Sep 7, 6:58 am, Dan Uff danny@gmail.com wrote: Hi all: I

[android-developers] Re: Calendar: functional request

2011-09-08 Thread martypantsROK
works fine on my android phone. That's a pretty simple thing that nearly ALL calendars have had for years On Sep 6, 11:01 pm, Ivo Michiel ivo.mich...@gmail.com wrote: Simple feature request: Entering repeated calendar apointments is not possible on android phones. Is this feature planned?

[android-developers] Re: How to create Excel/Spread Sheet Programmatically in Android

2011-09-07 Thread martypantsROK
I have been using jexelapi for my app. Works great and is easy to program. http://jexcelapi.sourceforge.net/ On Sep 6, 8:47 pm, pranay pranay.urk...@gmail.com wrote: Hi Friends, we have to create the excel sheet in android. We have no idea how to achieve it. Can u please share your views

[android-developers] Re: Learning Android Programming

2011-08-24 Thread martypantsROK
go here: http://developer.android.com/index.html read and do the tutorials. That's all the book you need. When you run into trouble, then go here for specific answers: http://stackoverflow.com/questions/tagged/android On Aug 22, 11:05 pm, Rik rakesh4...@gmail.com wrote: Dear All, I m new

[android-developers] Re: Android development is very bad

2011-08-22 Thread martypantsROK
Apparently we suck at answering questions. Sorry. Maybe if the question you asked was understandable (i.e. You suck at asking questions) you might get some help. On Aug 22, 3:22 pm, Naveen kumarnaveen.si...@gmail.com wrote: i think android development is very bad for android developer

[android-developers] Re: I need a simple android application that can view and create excel spreadsheets

2011-08-20 Thread martypantsROK
I use jxlapi - very easy to use. On Aug 20, 1:56 pm, vineeshkc kcvine...@gmail.com wrote: hai I need a simple android application that can view and create excel spreadsheets any  idea or suggestion helpful to me pls -- You received this message because you are subscribed to the Google

[android-developers] Re: display data in database

2011-08-17 Thread martypantsROK
how is it you've even got a keyboard in front of you? On Aug 16, 12:18 am, abhijit chakra kanh...@gmail.com wrote: how to display data's that are stored in database..please tell me the procedure. thanks in advance. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Help! How to query a database?

2011-08-16 Thread martypantsROK
I like the raw query: String sql = SELECT * FROM tableName; Cursor c = mDb.rawQuery(sql, null); I can see my sql statements better than the helper function query Also if you use eclipse and run the debugger, you can see the sql built from the query function inside your cursor variable On

[android-developers] Re: xml layout error.

2011-08-12 Thread martypantsROK
You have to supply a layout_width On Aug 13, 5:10 am, Goutom goutom.sust@gmail.com wrote: Hi I have a layout xml file.When I call setContentView(R.layout.xmlname), it crashes.Logcat shows nothing.

[android-developers] Re: xml layout error.

2011-08-12 Thread martypantsROK
patently ridiculous - why not give the poor guy some real advice instead of just making crap up? On Aug 13, 5:13 am, TreKing treking...@gmail.com wrote: On Fri, Aug 12, 2011 at 3:10 PM, Goutom goutom.sust@gmail.com wrote: what to do? Reinstall Eclipse and the SDK - because if LogCat

[android-developers] Re: XML Parsing Methods

2011-08-10 Thread martypantsROK
http://developer.android.com/reference/javax/xml/parsers/package-summary.html http://developer.android.com/reference/org/xml/sax/package-summary.html http://developer.android.com/reference/org/xmlpull/v1/package-summary.html On Aug 9, 12:29 pm, Shahs sahitya...@gmail.com wrote: SAX PARSING DOM

[android-developers] Re: I need a CamScanner like example

2011-08-08 Thread martypantsROK
why so hostile? What's wrong with asking for a tutorial? On Aug 6, 10:38 pm, rich friedel rich.frie...@gmail.com wrote: You have a lot of needs but what you really need is to do a damn search on google and find the information yourself and then come on back and ask specific questions ;)

[android-developers] Re: Install .apk without User action

2011-08-04 Thread martypantsROK
so happy not be the only one who read the OP and sucked in air with a oh you better not! On Aug 3, 7:17 am, Dianne Hackborn hack...@android.com wrote: That isn't the same thing.  It still can't do anything more than the permissions you allowed it. NDK or Java is irrelevant -- you could just

[android-developers] signature key retrieval

2011-08-04 Thread martypantsROK
Is there anything that can be done to get a key signature from an app I already uploaded? Somehow, I'm not sure how, my key that Eclipse generated no longer works and the app I sign is not getting the same signature. So, I can't upload an upgrade and anyone who bought the app can't get that

[android-developers] multilanguage support on Developer Console

2011-08-04 Thread martypantsROK
I thought I was smart and put all the strings I needed for my application into strings.xml and so I could make it available in multiple languages. Gee what a smart boy I am. And then I try to upload it to Market and Developer Console isn't smart enough to figure things out. It says Set a title

[android-developers] can't find The Device Availability dialog

2011-07-29 Thread martypantsROK
This is my first app and on uploading it tells me my app is available to 0 devices. Apparently, it is devices with these features, as defined in your application manifest Well, no where in the developer resources does it tell me how to put devices into my manifest and there is not a link on the

[android-developers] Developer Console is weird

2011-07-29 Thread martypantsROK
I am trying hard to upload an app but the developer console is complaining that I need at least 2 screenshots. I already have four uploaded that it accepted. Anyone know the magic formula to make the DC behave? All four are 400x800 PNG with 24 bit depth, so what's the deal? -- You received this