Re: [android-beginners] Re: Creating a populated sqlite database

2010-07-20 Thread Mikey
I have used Justin's approach with my app, and have found it to be a very good 
approach as this can then handle database versioning.

Mikey

On 20 Jul 2010, at 16:26, Rodney Lendore wrote:

 
 Hi Kostya,
 
 Given the diffculties I have had porting a database I created in SQLite 
 Browser. I am going to try the approach you suggested.
 
 Many Thanks
 On Fri, Jul 16, 2010 at 8:41 PM, Kostya Vasilyev kmans...@gmail.com wrote:
 Rodney,
 
 Just one more option - write a small Android app to create the database, then 
 pull it from the device using adb pull and place into the real 
 project as an asset.
 
 -- Kostya
 
 16.07.2010 23:31, Justin Anderson пишет:
 If I were doing it I would just create it in code...  It is quite a small 
 database.
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Thu, Jul 15, 2010 at 8:42 AM, Rodney Lendore rodney.lend...@gmail.com 
 wrote:
 The database will in the end contain about 100 rows and 3 columns. But this 
 database will not be written to by the user simply read from to gain some 
 generic information, depending on which buttons a user clicks.
 
 Thanks
 
 On Mon, Jul 12, 2010 at 9:23 PM, Justin Anderson janderson@gmail.com 
 wrote:
 Unless the database is going to be quite large, I would just create it in 
 code the first time you start up the app... How large are you anticipating 
 this database is going to be?
 
 
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Mon, Jul 12, 2010 at 1:56 PM, DanH danhi...@ieee.org wrote:
 Certainly in Java code you can create it, or in C++, or with a stand-
 alone PC tool such as SQLite Expert.  SMOP.
 
 Dunno about /res.
 
 On Jul 8, 4:30 pm, Rodney Lendore rodney.lend...@gmail.com wrote:
  Hi,
 
  I am trying to create a pre-populated sqlite database to be shipped with my
  application. The database is to contain three columns.
 
  | ID | Name | URL |
 
  and possibly several hundred rows. Is there a way I can create this in /res
  or java code smartly ? Forgive me I am fairly new to Java and have little
  experience with SQL.
 
  Thanks very much in advance for you help
 
  Rodney
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 Kostya Vasilev -- WiFi Manager + pretty widget -- 
 http://kmansoft.wordpress.com
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr

Re: [android-beginners] SQL and SQLite

2010-07-16 Thread Mikey
SQL is Structured Query Language, a language for writing queries to an RDBMS

SQLite is a lightweight implementation of an RDBMS that runs on Android (among 
other places) and uses SQL to return data.

HTH,

Mikey

On 16 Jul 2010, at 07:54, Raul Martinez wrote:

 Are SQL and SQLite the same thing? If not what's the difference
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Mikey
Cubase (the world renowned music creation software, that retails for $$$), and 
one of it's *Windows only* DLLs are tools that form part of the Android SDK?

Wow! I sure did miss the point of writing phone apps, and I think from the help 
Justin has given me in the past has shown that he has made exactly same basic 
errors of comprehension that I have.

Please, enlighten us all on even just the basic tips for using Cubase as part 
of the SDK - I think we could all gain from that...

On 2 Jul 2010, at 18:57, Mark wrote:

 Very helpful response Justin. Its a tool that is part of the SDK.
 RTFM.
 
 On Jul 1, 11:21 pm, Justin Anderson janderson@gmail.com wrote:
 Does this question have anything at all to do with Android?
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 On Thu, Jul 1, 2010 at 6:22 PM, Mark m...@sublimeslime.com wrote:
 The EASDLL.dll is not recognized by Cubase SX 3.0.2, nor according to
 a poster on the developer's group, Sonar. Seriously broken or
 seriously misunderstood? If we're going to author Jet audio, we need
 this synth right?
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-02 Thread Mikey
Mind you, much better when you read the F as FINE :o)

On 2 Jul 2010, at 19:38, Justin Anderson wrote:

 Wow... good luck getting help now.  Not sure how often you frequent this 
 google group but RTFM is something that is not used very often here.
 
 In fact, the only time I recall seeing this was when I used it once myself... 
 and got privately reprimanded by another user who didn't appreciate me using 
 it.
 
 I have been providing help on this group for quite a while, as many others 
 will vouch for me
 
 Also, for your information, when I saw your question I went to the following 
 page immediately, thinking it could possibly be a a tool to be used with the 
 SDK, only it wasn't listed:
 http://developer.android.com/guide/developing/tools/index.html
 
 I then searched within the Dev Guide for EASDLL.dll and came up with no 
 results.
 
 If you could point me to where, exactly, in TFM this is talked about I am 
 very curious.  Though, after your response, I will not be making any effort 
 to help you out.
 
 Good luck and happy coding... Hope someone else can help you because I sure 
 won't.
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Fri, Jul 2, 2010 at 11:57 AM, Mark m...@sublimeslime.com wrote:
 Very helpful response Justin. Its a tool that is part of the SDK.
 RTFM.
 
 On Jul 1, 11:21 pm, Justin Anderson janderson@gmail.com wrote:
  Does this question have anything at all to do with Android?
 
  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --
 
  On Thu, Jul 1, 2010 at 6:22 PM, Mark m...@sublimeslime.com wrote:
   The EASDLL.dll is not recognized by Cubase SX 3.0.2, nor according to
   a poster on the developer's group, Sonar. Seriously broken or
   seriously misunderstood? If we're going to author Jet audio, we need
   this synth right?
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
 
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Using the SDcard image

2010-06-26 Thread Mikey
This should help:

adb push local remote


On 26 Jun 2010, at 16:26, Doug Gordon wrote:

 In the emulator AVD that I created, I can see that it created a file 
 sdcard.img to simulate an inserted SD card. What I need to do now is to 
 copy a file on my PC into the SD image so that my Android app can open and 
 read it. Is there a tool to do this?
 
 Thanks in advance for any info!
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] problem with httpclient and self signed certificates

2010-06-24 Thread Mikey
Just an off the top of my head, but do you have a self-signed certificate?

BTW, I got your first email - double posting really isn't necessary

On 24 Jun 2010, at 22:38, jackace wrote:

 Hi,
 
 I am sure this has been discussed in this group, but I couldn't find
 that thread, so bear with it, or if possible merge it with the
 original.
 
 I am using httpclient for my android app and I have a local site which
 has a few https pages. Since default httpclient doesnot allow self-
 signed certificates I am using  EasySSLFactory and
 EasyX509TrustManager, which are mentioned in httpclient
 documentation.
 
 code
 client = new DefaultHttpClient();
 client.getConnectionManager().getSchemeRegistry().register(new
 Scheme(https, new EasySSLSocketFactory(), 443));
 /code
 
 The problem is if I use this SSLFactory in my android app, I am
 getting correct response from my site's https pages, but I get SSL
 handshake failure: I/O error during system call, Unknown error: 0 for
 sites such as gmail.com, ymail.com. If I don't use
 EasySSLSocketFactory I get response from these sites but get
 exception for my site.
 
 The funny thing is that this page fetch code works fine as a
 standalone java application.
 
 What could be the problem. Please help me with this.
 
 Thanks and Regards
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] apps

2010-06-23 Thread Mikey
This is a developers list, try again.

On 24 Jun 2010, at 00:31, ravendev wrote:

 hi my name is josh i am new to the droid world. i have just rooted my
 motorola droid.
 
 any suggestions on apps good for rooted droids.
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: LogCat

2010-06-23 Thread Mikey
Spoken like a petulant child - fix it yourself if you think you can do better...

On 24 Jun 2010, at 01:06, DonFrench wrote:

 Thanks but I really prefer to view LogCat in Eclipse because it is so
 much easier to find what you want.  In Eclipse, for example, user-
 generated log output is split into individual tabs based on the tags
 you set.   Also, in the main log tab everything is color coded. To
 find the stack trace associated with a Force Close, for example, you
 just scroll up until you see a block of red output.  Google did a
 great job in designing the Eclipse LogCat viewer except for the
 unfortunate bug that they have ignored for so long.
 
 
 On Jun 22, 11:11 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Don,
 
 I can recommend running adblogcat from the OS's command line window.
 
 This way, it's always around, you can make it as large as you want, and
 can do filtering by piping through grep or find, if necessary.
 
 -- Kostya
 
 22.06.2010 22:02, DonFrench пишет:
 
 I useLogCata lot when debugging but it is an ir ritation that it
 frequently has to be reset to get the latest log output. I am only
 aware of two ways to get the log output when this happens: 1) Go to
 the DDMS perspective and then pull down the menu in the Devices view
 and select reset adb, and 2) Exit Eclipse and restart it.  Some of the
 time Reset adb works but often it does not and I have to exit and
 restart Eclipse.  So, first, am I doing something wrong that causes
 LogCatto stop functioning?  And second, is there another way to
 refresh the log other than the two methods I mentioned?  And third, is
 this a bug in the Android Eclipse plug-in?  If it is, why doesn't
 Google fix it?
 
 --
 Kostya Vasilev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] LogCat

2010-06-22 Thread Mikey
Thanks a lot for that tip, even though I was not the person asking the 
question...

On 22 Jun 2010, at 19:11, Kostya Vasilyev wrote:

 Don,
 
 I can recommend running adb logcat from the OS's command line window.
 
 This way, it's always around, you can make it as large as you want, and can 
 do filtering by piping through grep or find, if necessary.
 
 -- Kostya
 
 22.06.2010 22:02, DonFrench пишет:
 I use LogCat a lot when debugging but it is an irritation that it
 frequently has to be reset to get the latest log output. I am only
 aware of two ways to get the log output when this happens: 1) Go to
 the DDMS perspective and then pull down the menu in the Devices view
 and select reset adb, and 2) Exit Eclipse and restart it.  Some of the
 time Reset adb works but often it does not and I have to exit and
 restart Eclipse.  So, first, am I doing something wrong that causes
 LogCat to stop functioning?  And second, is there another way to
 refresh the log other than the two methods I mentioned?  And third, is
 this a bug in the Android Eclipse plug-in?  If it is, why doesn't
 Google fix it?
 
   
 
 
 -- 
 Kostya Vasilev -- WiFi Manager + pretty widget -- 
 http://kmansoft.wordpress.com
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] The No.1 Magic Community Talk - Share and Learn Magic Tricks.

2010-06-20 Thread Mikey
Wow, this list is full of spam... and this one even faked who it was from

On 20 Jun 2010, at 18:28, Rebeca wrote:

 # The No.1 Magic Community Talk - Share and Learn Magic Tricks.
 Click here and See the Proof
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Programming model for embedded programmers?

2010-06-20 Thread Mikey
Was this just a general bitch about how multi-threaded operating systems 
function or did you have a real question?


On 20 Jun 2010, at 23:06, BobG wrote:

 I finally realized why I cant find a good overview of android
 programming tecnique that doesnt assume that the student is a
 proficient windows/event driven programmer. Android is a stack on top
 of java, which is a stack on top of an operating system, and I betcha
 most experienced java programmers have never really wondered what goes
 on below the java interpreter. It isnt necessary. Just call the
 function, and assume that there are lots of spare mips and megabytes
 left on the pc. Us old embedded programmers are painfully aware of the
 number of cycles to read a file and/or draw rectangles because weve
 probably written every subroutine in a file system and a graphics
 package at one time or another. My model is that after oncreate
 returns to the operating system, every event that gets delivered to
 the activity is sent by the operating system, and the activity gets a
 quantum to run, however long that is (100ms?) and one really has no
 idea how many ms will elapse until the activity gets to run again.
 Horrible for real time stuff like embedded guys are used to. The huge
 complex overhead of splitting a simple program that does input,
 process, output and runs in a loop into two tasks makes no sense
 because both of these tasks are being run by the operating system.
 Just more overhead. There doesnt seem to be a way to generate a 50ms
 timer event and run a program at a hi priority. Do any android gurus
 have an embedded backfround also? I know my lack of 'windows' model
 programming hinders my understanding, and I'd be grateful for a link
 to some examples that might help. I have no prob generating a timer
 interrupt that hits every 100usec on a 20mhz 8 bit microcontroller.
 Hard to believe I cant run a program faster than every 100ms on a
 500mhz 32 bit arm.
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] StringToFloat code

2010-06-19 Thread Mikey
What was wrong with this:

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Float.html


On 19 Jun 2010, at 17:02, kille6525 wrote:

 Ok since the EditText.getText. will only allow you to get a string i
 made a small program to get the string and convert it to a float. It
 was a pain to do. You could change the return to an int or double but
 i made this for floats...
 Here is the horrible code...
 
 
public float StringToFloat(String text)
{
   //Used for the for loops
int i = 0;
   //The number your go to return
float number = 0;
   //Used to specify if your before the decimal or after
int numtodec = 1;
   //Size of the int. 123.6 sizeofint = 3
int sizeofint = -1;
   //Gets the length of the String
int size = text.length();
   //Sets an array of characters equ to the string
char string[] = text.toCharArray();
   //Gets the size of the sizeofint and sizeofdec
for(i = 0; i  size; ++i)
{
if(string[i] == '.')
{
numtodec = 0;
continue;
}
   if(numtodec == 1)
   ++sizeofint;
}
 //resets the num to dec
numtodec = 1;
 //Stores the number
for(i = 0; i  size; ++i)
{
if(string[i] == '.')
{
numtodec = 0;
continue;
}
   int hold = string[i] - 48;
   double hold2;
   if(numtodec == 1)
   hold2 = 
 java.lang.Math.pow(10.0,(double)(sizeofint - i));
   else
   hold2 = 
 java.lang.Math.pow(10.0,(double)(sizeofint+1 - i));
   number += hold*hold2;
}
return number;
}
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: StringToFloat code

2010-06-19 Thread Mikey
That or the constructor that takes a string - but anything over making your own 
parser...

On 19 Jun 2010, at 22:12, Raymond Rodgers wrote:

 I think he was specifically referring to the parseFloat() function... This is 
 a direct link to a slightly different version of the api he referenced...
 http://java.sun.com/javase/7/docs/api/java/lang/Float.html#parseFloat(java.lang.String)
 
 Raymond
 On 06/19/2010 01:38 PM, kille6525 wrote:
 Oh yah i just tried the valueOf(String string) and it made my program
 hate the two buttons one button caculates my two inputs and the other
 finishes but when i added that in it didnt like any of them. Weird
 
 On Jun 19, 9:05 am, Mikeyfrak@gmail.com  wrote:
   
 What was wrong with this:
 
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Float.html
 
 On 19 Jun 2010, at 17:02, kille6525 wrote:
 
 
 Ok since the EditText.getText. will only allow you to get a string i
 made a small program to get the string and convert it to a float. It
 was a pain to do. You could change the return to an int or double but
 i made this for floats...
 Here is the horrible code...
   
 
 public float StringToFloat(String text)
 {
//Used for the for loops
 int i = 0;
//The number your go to return
 float number = 0;
//Used to specify if your before the decimal or after
 int numtodec = 1;
//Size of the int. 123.6 sizeofint = 3
 int sizeofint = -1;
//Gets the length of the String
 int size = text.length();
//Sets an array of characters equ to the string
 char string[] = text.toCharArray();
//Gets the size of the sizeofint and sizeofdec
 for(i = 0; i  size; ++i)
 {
 if(string[i] == '.')
 {
 numtodec = 0;
 continue;
 }
if(numtodec == 1)
++sizeofint;
 }
  //resets the num to dec
 numtodec = 1;
  //Stores the number
 for(i = 0; i  size; ++i)
 {
 if(string[i] == '.')
 {
 numtodec = 0;
 continue;
 }
int hold = string[i] - 48;
double hold2;
if(numtodec == 1)
hold2 = 
 java.lang.Math.pow(10.0,(double)(sizeofint - i));
else
hold2 = 
 java.lang.Math.pow(10.0,(double)(sizeofint+1 - i));
number += hold*hold2;
 }
 return number;
 }
   
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
   
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
   
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
   
   
 
 
 -- 
 Raymond Rodgers
 http://www.badlucksoft.com/
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem with cursors

2010-06-18 Thread Mikey
Well, thanks - that seems to have done the trick, but now I am getting another 
error with another method - maybe you can tell me if you do things differently 
here as well?

public boolean isPermanent(String screen_name) {
boolean output = false;
try {
Cursor c = mDb.query(USERS, new String[] {CONSTANT}, 
SCREEN_NAME + =' + screen_name + ', null, null, null, null);
if (c != null  c.getCount()  0) {
c.moveToFirst();
output = c.getString(0).contentEquals(C);
c.close();
}
}
catch (Exception e) {
Log.e(DBERR, e.getMessage());
}
return output;
}

What is really annoying is that the exception is not caught in my handler, but 
in the System Daemon thread :o/

regards,

Mikey

On 16 Jun 2010, at 21:38, Justin Anderson wrote:

 Also, I use different methods in my while loop:
 
 Cursor dbCursor;
 ...
 dbCursor.moveToFirst();
 while (!dbCursor.isAfterLast())
 {
   //do stuff
   dbCursor.moveToNext();
 }
 
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 2:07 PM, Mikey frak@gmail.com wrote:
 Mostly desperation - I will give your idea a try though - thanks!
 
 Mikey 
 
 On 16 Jun 2010, at 21:04, Justin Anderson wrote:
 
 I'm not entirely sure, but I noticed my code is a little different than 
 yours...  
 
 Before I loop over the rows in the cursor I call moveToFirst().  So, with 
 your code that would be c.moveToFirst() right before the while loop. I seem 
 to remember having some weird issues with the Cursor class but haven't had 
 any since I've made this change.
 
 Also, why are you setting c to null?  There really is no point in doing that 
 as the garbage collector will get called on you move out of c's scope... 
 which happens as soon as you leave the try block.
 
 Thanks,
 Justin
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 12:13 PM, Mikey frak@gmail.com wrote:
 Hi,
 
 I am using a a Sqlite database in my application, but I am having a problem 
 with it crashing (seemingly) randomly with the exception in Cursor.  (I have 
 been unable to recreate the error to give you the exact exception but it is 
 something like the cursor being in an invalid state.
 
 I am using the cursor as follows:
 
  public ArrayListString fetchPermanent() {
  ArrayListString rows = new ArrayListString();
  try {
  Cursor c = mDb.query(USERS, new String[] {SCREEN_NAME}, 
 CONSTANT + ='C', null, null, null, null);
  if (c != null  c.getCount()  0) {
  while (!c.isLast()) {
  c.moveToNext();
  rows.add(c.getString(0));
  }
  c.close();
  c = null;
  }
  }
  catch (Exception e) {
  Log.e(DBERR, e.getMessage());
  }
  return rows;
  }
 
 Does anyone here have any idea what it is I am doing wrong?
 
 Mikey
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You

Re: [android-beginners] Problem with cursors

2010-06-18 Thread Mikey
The error is an IllegalStateException and as it is happening in this daemon 
thread I have no idea where it is occurring.  It is very weird as my 
application has gone well past the point where it is using this query, and I 
have a breakpoint on the catch block that is not reached.

Very confusing.


On 18 Jun 2010, at 14:11, Justin Anderson wrote:

 So what is the error and where is it occurring?
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Fri, Jun 18, 2010 at 5:02 AM, Mikey frak@gmail.com wrote:
 Well, thanks - that seems to have done the trick, but now I am getting 
 another error with another method - maybe you can tell me if you do things 
 differently here as well?
 
   public boolean isPermanent(String screen_name) {
   boolean output = false;
   try {
   Cursor c = mDb.query(USERS, new String[] {CONSTANT}, 
 SCREEN_NAME + =' + screen_name + ', null, null, null, null);
   if (c != null  c.getCount()  0) {
   c.moveToFirst();
   output = c.getString(0).contentEquals(C);
   c.close();
   }
   }
   catch (Exception e) {
   Log.e(DBERR, e.getMessage());
   }
   return output;
   }
 
 What is really annoying is that the exception is not caught in my handler, 
 but in the System Daemon thread :o/
 
 regards,
 
 Mikey
 
 On 16 Jun 2010, at 21:38, Justin Anderson wrote:
 
 Also, I use different methods in my while loop:
 
 Cursor dbCursor;
 ...
 dbCursor.moveToFirst();
 while (!dbCursor.isAfterLast())
 {
   //do stuff
   dbCursor.moveToNext();
 }
 
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 2:07 PM, Mikey frak@gmail.com wrote:
 Mostly desperation - I will give your idea a try though - thanks!
 
 Mikey 
 
 On 16 Jun 2010, at 21:04, Justin Anderson wrote:
 
 I'm not entirely sure, but I noticed my code is a little different than 
 yours...  
 
 Before I loop over the rows in the cursor I call moveToFirst().  So, with 
 your code that would be c.moveToFirst() right before the while loop. I seem 
 to remember having some weird issues with the Cursor class but haven't had 
 any since I've made this change.
 
 Also, why are you setting c to null?  There really is no point in doing 
 that as the garbage collector will get called on you move out of c's 
 scope... which happens as soon as you leave the try block.
 
 Thanks,
 Justin
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 12:13 PM, Mikey frak@gmail.com wrote:
 Hi,
 
 I am using a a Sqlite database in my application, but I am having a problem 
 with it crashing (seemingly) randomly with the exception in Cursor.  (I 
 have been unable to recreate the error to give you the exact exception but 
 it is something like the cursor being in an invalid state.
 
 I am using the cursor as follows:
 
 public ArrayListString fetchPermanent() {
 ArrayListString rows = new ArrayListString();
 try {
 Cursor c = mDb.query(USERS, new String[] {SCREEN_NAME}, 
 CONSTANT + ='C', null, null, null, null);
 if (c != null  c.getCount()  0) {
 while (!c.isLast()) {
 c.moveToNext();
 rows.add(c.getString(0));
 }
 c.close();
 c = null;
 }
 }
 catch (Exception e) {
 Log.e(DBERR, e.getMessage());
 }
 return rows;
 }
 
 Does anyone here have any idea what it is I am doing wrong?
 
 Mikey
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack

Re: [android-beginners] Problem with cursors

2010-06-18 Thread Mikey
Thanks, I had already seen this article, but I am not really sure how I can 
call Activity methods in my DbAdapter, and I don't really want to return a 
cursor to my Activity - I just thought you may have some more magic code that 
would fix my problems ;o)

I will let you know how I get on...

On 18 Jun 2010, at 14:43, Justin Anderson wrote:

 Perhaps this will help:
 http://stackoverflow.com/questions/2398209/how-to-handle-in-code-illegalstateexception-on-cursor
 
 BTW, I fond this by googling Android IllegalStateException daemon
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Fri, Jun 18, 2010 at 7:15 AM, Mikey frak@gmail.com wrote:
 The error is an IllegalStateException and as it is happening in this daemon 
 thread I have no idea where it is occurring.  It is very weird as my 
 application has gone well past the point where it is using this query, and I 
 have a breakpoint on the catch block that is not reached.
 
 Very confusing.
 
 
 On 18 Jun 2010, at 14:11, Justin Anderson wrote:
 
 So what is the error and where is it occurring?
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Fri, Jun 18, 2010 at 5:02 AM, Mikey frak@gmail.com wrote:
 Well, thanks - that seems to have done the trick, but now I am getting 
 another error with another method - maybe you can tell me if you do things 
 differently here as well?
 
  public boolean isPermanent(String screen_name) {
  boolean output = false;
  try {
  Cursor c = mDb.query(USERS, new String[] {CONSTANT}, 
 SCREEN_NAME + =' + screen_name + ', null, null, null, null);
  if (c != null  c.getCount()  0) {
  c.moveToFirst();
  output = c.getString(0).contentEquals(C);
  c.close();
  }
  }
  catch (Exception e) {
  Log.e(DBERR, e.getMessage());
  }
  return output;
  }
 
 What is really annoying is that the exception is not caught in my handler, 
 but in the System Daemon thread :o/
 
 regards,
 
 Mikey
 
 On 16 Jun 2010, at 21:38, Justin Anderson wrote:
 
 Also, I use different methods in my while loop:
 
 Cursor dbCursor;
 ...
 dbCursor.moveToFirst();
 while (!dbCursor.isAfterLast())
 {
   //do stuff
   dbCursor.moveToNext();
 }
 
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 2:07 PM, Mikey frak@gmail.com wrote:
 Mostly desperation - I will give your idea a try though - thanks!
 
 Mikey 
 
 On 16 Jun 2010, at 21:04, Justin Anderson wrote:
 
 I'm not entirely sure, but I noticed my code is a little different than 
 yours...  
 
 Before I loop over the rows in the cursor I call moveToFirst().  So, with 
 your code that would be c.moveToFirst() right before the while loop. I 
 seem to remember having some weird issues with the Cursor class but 
 haven't had any since I've made this change.
 
 Also, why are you setting c to null?  There really is no point in doing 
 that as the garbage collector will get called on you move out of c's 
 scope... which happens as soon as you leave the try block.
 
 Thanks,
 Justin
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 12:13 PM, Mikey frak@gmail.com wrote:
 Hi,
 
 I am using a a Sqlite database in my application, but I am having a 
 problem with it crashing (seemingly) randomly with the exception in 
 Cursor.  (I have been unable to recreate the error to give you the exact 
 exception but it is something like the cursor being in an invalid state.
 
 I am using the cursor as follows:
 
public ArrayListString fetchPermanent() {
ArrayListString rows = new ArrayListString();
try {
Cursor c = mDb.query(USERS, new String[] {SCREEN_NAME}, 
 CONSTANT + ='C', null, null, null, null);
if (c != null  c.getCount()  0) {
while (!c.isLast()) {
c.moveToNext();
rows.add(c.getString(0));
}
c.close();
c

Re: [android-beginners] Getting text of dynamically created radio buttons

2010-06-18 Thread Mikey
I have taken a look at the API reference, and getText() looks like it might be 
what you need...

On 18 Jun 2010, at 15:11, Maxood wrote:

 How can i retrieve the text of a dynamically created radio button
 selected by the user? Here's my code:
 
 RadioGroup radiogroup = (RadioGroup) findViewById(R.id.rdbGp1);
// layout params to use when adding each radio button
LinearLayout.LayoutParams layoutParams = new
 RadioGroup.LayoutParams(
RadioGroup.LayoutParams.WRAP_CONTENT,
RadioGroup.LayoutParams.WRAP_CONTENT);
 
 for (int i = 0; i  4; i++){
final RadioButton newRadioButton = new RadioButton(this);
c3 = db.getAns(3);
 
for (int j=0;ji;j++)
c3.moveToNext();
   label = c3.getString(0);
 
newRadioButton.setText(label);
newRadioButton.setId(6);
radiogroup.addView(newRadioButton, layoutParams);
 
 
 Waiting for the reply,
 Maqsood
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Amusing comic comparison of web browsers

2010-06-16 Thread Mikey
Do you think you could stop spamming this list with your web site?  We have 
google to search if we want to find crap like this...

On 16 Jun 2010, at 08:04, Rocky wrote:

 Here's an amusing comic breaking down web browsers.
 
 See it here : http://www.onechap.com/news/comp-browsers.html
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Top 10 iPhone apps

2010-06-16 Thread Mikey
OK, so you just made it to the spam folder - are you really this desperate for 
attention?

On 16 Jun 2010, at 18:23, Rocky wrote:

 There are literally hundreds of thousands of iPhone apps, many of
 which are free to download. So what are the best ones? It depends on
 what you like to do with your iPhone, but these are 10 of the most
 popular (and useful!).
 
 Read more : 
 http://www.onechap.com/news/top-iphone-apps/top-iphone-apps-10_9.html
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Top 10 iPhone apps

2010-06-16 Thread Mikey
Anyone here know how you report a spammer on this list?

On 16 Jun 2010, at 18:38, Justin Anderson wrote:

 Seriously...  does the retard not even realize that this group is for 
 ANDROID?
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 11:33 AM, Mikey frak@gmail.com wrote:
 OK, so you just made it to the spam folder - are you really this desperate 
 for attention?
 
 On 16 Jun 2010, at 18:23, Rocky wrote:
 
  There are literally hundreds of thousands of iPhone apps, many of
  which are free to download. So what are the best ones? It depends on
  what you like to do with your iPhone, but these are 10 of the most
  popular (and useful!).
 
  Read more : 
  http://www.onechap.com/news/top-iphone-apps/top-iphone-apps-10_9.html
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
 
  NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Problem with cursors

2010-06-16 Thread Mikey
Hi,

I am using a a Sqlite database in my application, but I am having a problem 
with it crashing (seemingly) randomly with the exception in Cursor.  (I have 
been unable to recreate the error to give you the exact exception but it is 
something like the cursor being in an invalid state.

I am using the cursor as follows:

public ArrayListString fetchPermanent() {
ArrayListString rows = new ArrayListString();
try {
Cursor c = mDb.query(USERS, new String[] {SCREEN_NAME}, 
CONSTANT + ='C', null, null, null, null);
if (c != null  c.getCount()  0) {
while (!c.isLast()) {
c.moveToNext();
rows.add(c.getString(0));
}
c.close();
c = null;
}
}
catch (Exception e) {
Log.e(DBERR, e.getMessage());
}
return rows;
}

Does anyone here have any idea what it is I am doing wrong?

Mikey

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Issue?

2010-06-16 Thread Mikey
It is someone with a full mailbox, not much you can do about it I am afraid

On 16 Jun 2010, at 19:43, kypriakos wrote:

 
 is this a forum issue? Why are we getting these messages each time we
 post?
 
 Hi. This is the qmail-send program at innophilia.com.
 I'm afraid I wasn't able to deliver your message to the following
 addresses.
 This is a temporary error; I've given up. Sorry it didn't work out.
 
 r...@innophilia.com:
 Sorry, This mailbox is overquota. (#4.4.5)
 
 
 --- Enclosed are the original headers of the message.
 
 
 
 Subject:
 [android-beginners] Emulator and cellular access
 From:
 kypriakos demet...@ece.neu.edu
 Date:
 Wed, 16 Jun 2010 09:46:12 -0700 (PDT)
 To:
 Android Beginners android-beginners@googlegroups.com
 
 (Body supressed)
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem with cursors

2010-06-16 Thread Mikey
Mostly desperation - I will give your idea a try though - thanks!

Mikey 

On 16 Jun 2010, at 21:04, Justin Anderson wrote:

 I'm not entirely sure, but I noticed my code is a little different than 
 yours...  
 
 Before I loop over the rows in the cursor I call moveToFirst().  So, with 
 your code that would be c.moveToFirst() right before the while loop. I seem 
 to remember having some weird issues with the Cursor class but haven't had 
 any since I've made this change.
 
 Also, why are you setting c to null?  There really is no point in doing that 
 as the garbage collector will get called on you move out of c's scope... 
 which happens as soon as you leave the try block.
 
 Thanks,
 Justin
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 12:13 PM, Mikey frak@gmail.com wrote:
 Hi,
 
 I am using a a Sqlite database in my application, but I am having a problem 
 with it crashing (seemingly) randomly with the exception in Cursor.  (I have 
 been unable to recreate the error to give you the exact exception but it is 
 something like the cursor being in an invalid state.
 
 I am using the cursor as follows:
 
   public ArrayListString fetchPermanent() {
   ArrayListString rows = new ArrayListString();
   try {
   Cursor c = mDb.query(USERS, new String[] {SCREEN_NAME}, 
 CONSTANT + ='C', null, null, null, null);
   if (c != null  c.getCount()  0) {
   while (!c.isLast()) {
   c.moveToNext();
   rows.add(c.getString(0));
   }
   c.close();
   c = null;
   }
   }
   catch (Exception e) {
   Log.e(DBERR, e.getMessage());
   }
   return rows;
   }
 
 Does anyone here have any idea what it is I am doing wrong?
 
 Mikey
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
  
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
  
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Top 10 iPhone apps

2010-06-16 Thread Mikey
Thanks for that :o)

On 16 Jun 2010, at 22:28, Daniel Drummond wrote:

 I emailed the group-owner, and the user has been banned, and all posts 
 deleted.
 
 On 16 June 2010 19:04, Mikey frak@gmail.com wrote:
 Anyone here know how you report a spammer on this list?
 On 16 Jun 2010, at 18:38, Justin Anderson wrote:
 
 Seriously...  does the retard not even realize that this group is for
 ANDROID?
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Wed, Jun 16, 2010 at 11:33 AM, Mikey frak@gmail.com wrote:
 
 OK, so you just made it to the spam folder - are you really this desperate
 for attention?
 
 On 16 Jun 2010, at 18:23, Rocky wrote:
 
 There are literally hundreds of thousands of iPhone apps, many of
 which are free to download. So what are the best ones? It depends on
 what you like to do with your iPhone, but these are 10 of the most
 popular (and useful!).
 
 Read more :
 http://www.onechap.com/news/top-iphone-apps/top-iphone-apps-10_9.html
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 
 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android
 
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] gen [HelloAndroid] does not exists

2009-11-15 Thread Mikey
Hey Guys,

just setting up and trying out this stuff. get this, problem in
eclipse, which is kind of weird because I can see the gen folder in my
project and if I try and create the gen folder manually, it says it
already exists!

any help.. cheers
Michael

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en