Re: [android-developers] Compilation error on my if else statement

2011-10-07 Thread Nick Risaro
First learn java, then remove the ; at the end of the lines inside the if
condition

On Thu, Oct 6, 2011 at 12:28 AM, Isaac Ng isaac.n...@gmail.com wrote:

 if (item.equalsIgnoreCase(I. The Global Business Environment));


Should be
if (item.equalsIgnoreCase(I. The Global Business Environment))

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

Re: [android-developers] Re: filewriter

2011-10-05 Thread Nick Risaro
First learn java, then read about streams, readers and writers, if still you
can work it out come back with some code.

On Wed, Oct 5, 2011 at 9:06 AM, leigh8347 leigh8...@aol.com wrote:

 Well that is the problem. I cant seem to fine any info on how to do
 it. I can fine bit and bobs. But when tryed to put together nothing
 works.

 Any ideas?

 On Oct 5, 12:00 am, TreKing treking...@gmail.com wrote:
  On Tue, Oct 4, 2011 at 4:36 PM, leigh8347 leigh8...@aol.com wrote:
   any help would be great
 
  Help with what? You explained what you're trying to do but not what
 problem
  you're having.
 
 
 ---
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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


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

Re: [android-developers] Changing package name in eclipse

2011-09-28 Thread Nick Risaro
On Wed, Sep 28, 2011 at 12:50 PM, Keith leftcont...@gmail.com wrote:

 I renamed a package in eclipse and checked off change name in all subfiles
 . Now when I try to load my app it crashes .


Define Crashes :) Did you changed the package name in the manifest?

 I tried to rename back to the original and it still if crashing.
 Anyone have any experience with this problem ?

 Keith Zettler

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

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

Re: [android-developers] weird crash

2011-09-24 Thread Nick Risaro
It looks like the server is sending a bad response to your phone's request.

Check both ends, the client and the server and try to figure out why the
server is sending the string Acc in the response code field.

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

Re: [android-developers] Re: maths in android

2011-09-20 Thread Nick Risaro
Check the methods on the Math class. Something like Math.round(value1 /
10.9375) and so on.

On Tue, Sep 20, 2011 at 4:32 PM, leigh8347 leigh8...@aol.com wrote:

 Hi,

 I have had a look through it and im still really confused. Please can
 you shed any light on it or know of any tutorials

 mant thanks

 On Sep 20, 2:50 am, Nick Risaro nris...@gmail.com wrote:
  Read thishttp://
 download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html(orhttp://download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html%28ora
  newer version) and try to implement the formula. If you have any problem
  come back.
  On Sep 19, 2011 9:42 PM, leigh8347 leigh8...@aol.com wrote:
 
 
 
   I am currently working on an app that takes 4 user input values and
   puts them through the following equation and gives an answer. The only
   thing is that it wont work.
 
   the equation is as follows.
 
   answer = max { round ( (value1 / 10.9375)+(value2 / 9.2105)+(value3 /
   3.889)-(value4 / 12.5) ) ,0 }
 
   so far i have the following
 
   package com.android.app;
 
   import android.app.Activity;
   import android.os.Bundle;
   import android.view.View;
   import android.widget.Button;
   import android.widget.EditText;
   import android.widget.TextView;
 
   public class Equation extends Activity {
 
   Button submit;
   EditText val1,val2,val3,val4r;
   TextView answer;
 
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
 
   /* First Tab Content */
   setContentView(R.layout.equation);
 
   val1 = (EditText) findViewById(R.id.value1);
   val2 = (EditText) findViewById(R.id.value2);
   val3 = (EditText) findViewById(R.id.value3);
   val4 = (EditText) findViewById(R.id.value4);
   submit = (Button) findViewById(R.id.submit);
   answer = (TextView) findViewById(R.id.answer);
   submit.setOnClickListener(new clicker());
   }
   class clicker implements Button.OnClickListener
   {
 
   public void onClick(View v)
   {
   String a,b,c,d;
   Integer Int;
   a = val1.getText().toString();
   b = val2.getText().toString();
   c = val3.getText().toString();
   d = val4.getText().toString();
   Int = max { round ( (a / 10.9375)+(b / 9.2105)+(c / 3.889)-
   (d / 12.5) ) ,0 }
 
   points.setText(Int.toString());
   }
   }
   }
 
   so... thats what i have, can you help?
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Cheap, rapid solution for disasters

2011-09-19 Thread Nick Risaro
And some peanuts, and cheese... maybe a pizza?

On Mon, Sep 19, 2011 at 10:46 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:

 Sir

 Would you like a glass of beer along with this also??


 On Sat, Sep 17, 2011 at 2:16 AM, david davidg...@googlemail.com wrote:

 Hello,
 I am looking for a Android GUI for cheap, rapid solution for
 disasters.  What I need is a very simple GUI with code to run on an
 Android table phone to do the following:

 To get device ID, get x, y, Z from GPS Signal, a picture, a recorded
 sound file, and then send this by email to s specified email address.

 Keep it as simple as possible for the time being.

 Regards.

 David

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




 --
 Regards
 Abhishek Talwar
 9953395712

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


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

Re: [android-developers] Need help with problem reading local variables

2011-09-19 Thread Nick Risaro
On Mon, Sep 19, 2011 at 3:50 PM, Ab Caballero a...@mac.com wrote:

StringBuffer fileBuf = new
 StringBuffer();
String tripName = null;
String origin = null;
String destination = null;
String triptype = null;
do{
tripName =
 cursor.getString(tripnameColumnIndex);
origin =
 cursor.getString(originColumnIndex);
destination =
 cursor.getString(destinationColumnIndex);
triptype =
 cursor.getString(triptypeColumnIndex);
}while
 (cursor.moveToNext());
String fileContents
 = fileBuf.toString();


In this code you don't use the variables!! Append the values to the fileBuf.

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

Re: [android-developers] Re: Need help with problem reading local variables

2011-09-19 Thread Nick Risaro
On Mon, Sep 19, 2011 at 5:10 PM, Ab Caballero a...@mac.com wrote:

 Thanks, Nick!


Your welcome


 I had written a method to do that an inadvertently forgot to call it.
 It was driving me crazy.


Sometimes the only you need are some fresh eyes


 On Sep 19, 12:29 pm, Nick Risaro nris...@gmail.com wrote:
  On Mon, Sep 19, 2011 at 3:50 PM, Ab Caballero a...@mac.com wrote:
  StringBuffer fileBuf = new
   StringBuffer();
  String tripName = null;
  String origin = null;
  String destination = null;
  String triptype = null;
  do{
  tripName =
   cursor.getString(tripnameColumnIndex);
  origin =
   cursor.getString(originColumnIndex);
  destination =
   cursor.getString(destinationColumnIndex);
  triptype =
   cursor.getString(triptypeColumnIndex);
  }while
   (cursor.moveToNext());
  String
 fileContents
   = fileBuf.toString();
 
  In this code you don't use the variables!! Append the values to the
 fileBuf.

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


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

Re: [android-developers] maths in android

2011-09-19 Thread Nick Risaro
Read this
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html (or a
newer version) and try to implement the formula. If you have any problem
come back.
On Sep 19, 2011 9:42 PM, leigh8347 leigh8...@aol.com wrote:
 I am currently working on an app that takes 4 user input values and
 puts them through the following equation and gives an answer. The only
 thing is that it wont work.

 the equation is as follows.

 answer = max { round ( (value1 / 10.9375)+(value2 / 9.2105)+(value3 /
 3.889)-(value4 / 12.5) ) ,0 }

 so far i have the following


 package com.android.app;

 import android.app.Activity;
 import android.os.Bundle;
 import android.view.View;
 import android.widget.Button;
 import android.widget.EditText;
 import android.widget.TextView;

 public class Equation extends Activity {

 Button submit;
 EditText val1,val2,val3,val4r;
 TextView answer;

 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 /* First Tab Content */
 setContentView(R.layout.equation);

 val1 = (EditText) findViewById(R.id.value1);
 val2 = (EditText) findViewById(R.id.value2);
 val3 = (EditText) findViewById(R.id.value3);
 val4 = (EditText) findViewById(R.id.value4);
 submit = (Button) findViewById(R.id.submit);
 answer = (TextView) findViewById(R.id.answer);
 submit.setOnClickListener(new clicker());
 }
 class clicker implements Button.OnClickListener
 {

 public void onClick(View v)
 {
 String a,b,c,d;
 Integer Int;
 a = val1.getText().toString();
 b = val2.getText().toString();
 c = val3.getText().toString();
 d = val4.getText().toString();
 Int = max { round ( (a / 10.9375)+(b / 9.2105)+(c / 3.889)-
 (d / 12.5) ) ,0 }

 points.setText(Int.toString());
 }
 }
 }


 so... thats what i have, can you help?

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

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

Re: [android-developers] Re: Abrir URL desde android y no mostrar barra de direcciones o fuente del sitio

2011-09-17 Thread Nick Risaro
Te respondieron en el 4 mail

you'll probably have to show the content on a webview on your own app if you
want to control what is displayed or not (address bar and so on)

Lo que te conviene hacer es mostrar un webview dentro de tu aplicación, de
esa manera tenés más flexibilidad para configurarlo.

Tené en cuenta que, probablemente, más del 90% de los integrantes de este
grupo no habla español. Si querés obtener más y mejores respuestas vas a
tener que postear en inglés

2011/9/16 scout-pistolero scoutpistol...@gmail.com

 Mmm sigo sin encontrarlo , las opciones que encontre son referente a
 las ventanas de una aplicacion estandar en android, que sin bordes,
 que sin titulo , pero sin suerte al abrir el navegador sin barra de
 direccion...
 bueno no doy mas la lata  ya que veo que con el tema del ingles se
 ponen nerviosos los chicos al que sepa algo que avise...yo seguire
 buscando y si encuentro les aviso...tambien.

 saludos y muchas gracias a todos

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


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

Re: [android-developers] Problem of Android RSS Reader

2011-09-14 Thread Nick Risaro
It's the phone connected to internet? Can you browse to the site with the
mobile browser?

On Wed, Sep 14, 2011 at 6:05 AM, Rathna Kumara Premadasa 
rathnakumar...@gmail.com wrote:

 Hi all,

 When i'm going to load RSS feed getting an Exception called
 Java.net.UnknownHostException:www.mobilopen.org in the SAX parser
 session.
 Please help me...
 --
 *Rathna Kumara Premadasa*
 Sri Lanka.

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

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

Re: [android-developers] Re: OutOfMemory exceptions

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 4:11 AM, gjs garyjamessi...@gmail.com wrote:

 These are typically OutOfMemory errors (not exceptions) which you can
 catch in a try catch block, you can then hide these errors from the
 user or display a friendly message.


In general you can't do that. If you have an OutOfMemoryError the JVM can't
allocate more memory and then you can't show a message or something because
there is no memory to build the objects.

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

Re: [android-developers] Re: BufferedReader hangs on readline

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 5:54 PM, petter petter.gus...@gmail.com wrote:

 Are end of line characters handled differently in Android?


Probably, the EoL is encoding dependent. Try forcing the encoding to
something like UTF-8 in both ends of the socket.

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

Re: [android-developers] Re: project contains many error

2011-09-04 Thread Nick Risaro
Also, start with just a Hello World to check if everuthing is correctly
installed and configured.

On Sun, Sep 4, 2011 at 7:24 PM, nadam a...@anyro.se wrote:

 Go to the menu Window - Show View - Problems to see what the
 problem is.

 On 2 Sep, 11:25, dhanaraj chaudhari dbchaudhari...@gmail.com wrote:
  Hello,
 
  I am new andriod developer, I have developed new project in Eclips.
  There are many .java files  some of the xml layout  files all these
  files not contain error. but in project explorer the project name
  shows the red mark.
 
  please any body can tell me why happens this
 
  thanks

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


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

Re: [android-developers] remarkable slowness

2011-09-04 Thread Nick Risaro
On Sun, Sep 4, 2011 at 9:02 PM, bob b...@coolgroups.com wrote:

 I am seeing some remarkable slowness in code like this:

String html = htmlheadstyle
 type=\text/css\tr:nth-child(odd)
 { background-color: rgba(0, 0, 0, 1.0); }
+  tr:nth-child(even) { background-color:
 rgba(0, 0, 0, 1.0); }
 td { padding: 4px; font-size: 13px; } 
+ body { color: white; font-family:
 \Helvetica Neue\; padding:
 0; border: 0; margin: 0;
+ } +

/style/headbody bgcolor=0table
 width=320 border=0;

String dotline = trtd colspan=4 align=centerfont
 color=#aed136
 size=3pxbmiddot; middot; middot; middot; middot; middot;
 middot; middot; middot; middot; middot; middot; middot;
 middot; middot; middot; middot; middot; middot; middot;
 middot; middot; middot; middot; middot; middot; middot;
 middot; middot; middot; middot;/td/tr;
html += dotline;
html += trtd/td align=centerfont
 color=#aed136bTEAMS/
 tdtd align=centerfont color=#aed136bTIME/td/tr\n;


 The only thing I can think of is that I ought to use a StringBuffer to
 build the HTML.  Can a mistake like that really cause so much
 slowness?


Each time you concatenate two strings a third one is created to hold the
result. Strings are inmutables and expensive. Try with the
StringBuffer/StringBuilder and check the results. Your code will be faster
and more legible.


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

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

Re: [android-developers] Service callback references ghost instance of my activity

2011-09-03 Thread Nick Risaro
On Sat, Aug 27, 2011 at 1:56 PM, Jason dummytes...@gmail.com wrote:

 1) Is it possible for instance A to be referenced even after
 onDestroy() is called on it?


Yes, because the instance is still loaded and the service holds a reference
to it.


  2) Is there a way to immediately invoke the garbage collector to clear
 out the memory space instance A is occupying?


You can call System.gc(), but that is just a hint, th GC may not run.


  3) Is this a problem with the third party service?  In my code i
 perform bind in onCreate and unbind in onDestroy... I am stumped as to
 why my destroyed instance A is still being referenced when the service
 was bound to and started by B.


It looks like that, check with the service provider.

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

Re: [android-developers] Re: How to 'delete' allocated class by 'new'??

2011-08-31 Thread Nick Risaro
On Wed, Aug 31, 2011 at 6:40 AM, Build account newandroi...@gmail.comwrote:

 Hi,

 Thank you very much to let me know clearly.
 I tired to use your code snippet, but counldn't get sure.

 Another question here,
 If I use below code
 
 String a = new String(test);
 String b = a;

 b = null;

 
 In this case,
 the variable 'a' still allocated? Am I right? As long as I keep
 original variable?


Yes

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

Re: [android-developers] Re: Can Android devices got normal computer viruses?

2011-08-29 Thread Nick Risaro
On Mon, Aug 29, 2011 at 5:14 PM, Zwiebel hunzwie...@gmail.com wrote:

 Ok, but people how can defend their devices againt these attacks? With
 the normal antivir programs like avg antivir or lookout?


Check the market ;-)

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

Re: [android-developers] Re: IndexOf on the toString Value of a object?

2011-08-28 Thread Nick Risaro
Also you can
1 - redefine the equals method on your object.
2 - use java.util.Collections and a comparator.

In both cases you meed to pass an instance of your object with, at least,
the string attribute setted.
On Aug 28, 2011 12:12 PM, blake blake.me...@gmail.com wrote:
 Use a Map. See java.util.Map and java.util.HashMap

 -blake

 On Aug 28, 6:59 am, Boozel boozelcl...@gmail.com wrote:
 Hi

 I have a list of objects and i need to search through it to find a
specific
 object.
 The objects have a String name property and i want to find an object with
 the same name as my query string.

 Is there anyway yo do this using the indexOf method or do i need to
create
 my own using a for loop.
 Thanks

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

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

Re: [android-developers] Read ms word document

2011-08-28 Thread Nick Risaro
On Aug 28, 2011 10:20 PM, imsmooth hoffi...@erols.com wrote:

 I know how to read a text file
 How do I read a ms word (doc) file?

Doc files are text files (docx are zip files) with MS format, but just plain
text.

 Is it like a webview?

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

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

Re: [android-developers] SQLite exceptions?

2011-08-25 Thread Nick Risaro
If you are not using the DB don't worry, maybe it's from another app in your
phone

On Thu, Aug 25, 2011 at 12:47 AM, kypriakos demet...@ece.neu.edu wrote:


 Hi all,

 I am getting this exception but I am not sure what it's all about - I
 am not really using
 a DB in my app and this started happening a couple of days ago. Any
 hints would
 certainly help me chase it. Thanks:

 I/dalvikvm(  878): Uncaught exception thrown by finalizer (will be
 discarded):
 I/dalvikvm(  878): Ljava/lang/IllegalStateException;: Finalizing
 cursor android.database.sqlite.SQLiteCursor@4380fe20 on null that has
 not been deactivated or closed
 I/dalvikvm(  878):  at
 android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
 I/dalvikvm(  878):  at dalvik.system.NativeStart.run(Native
 Method)
 I/dalvikvm(  878): Uncaught exception thrown by finalizer (will be
 discarded):
 I/dalvikvm(  878): Ljava/lang/IllegalStateException;: Finalizing
 cursor android.database.sqlite.SQLiteCursor@437fd090 on null that has
 not been deactivated or closed
 I/dalvikvm(  878):  at
 android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
 I/dalvikvm(  878):  at dalvik.system.NativeStart.run(Native
 Method)
 I/dalvikvm(  878): Uncaught exception thrown by finalizer (will be
 discarded):
 I/dalvikvm(  878): Ljava/lang/IllegalStateException;: Finalizing
 cursor android.database.sqlite.SQLiteCursor@437e9370 on null that has
 not been deactivated or closed
 I/dalvikvm(  878):  at
 android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
 I/dalvikvm(  878):  at dalvik.system.NativeStart.run(Native Method)

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

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

Re: [android-developers] Re: what are the best practices for good coding skills and classes, methods, and variables naming +android

2011-08-25 Thread Nick Risaro
On Aug 25, 2011 6:48 PM, Indicator Veritatis mej1...@yahoo.com wrote:

 That is much too vague an answer. A less vague and more helpful answer
 would be, start with what is best practices for good coding skills
 and classes in Java itself, and apply the same principles to
 Android's classes.

 Now to get that start, there is no better place to start than Joshua
 Block's Effective Java, described on Amazon at

http://www.amazon.com/s/ref=nb_sb_ss_i_0_12?url=search-alias%3Dstripbooksfield-keywords=joshua+bloch+effective+javax=0y=0sprefix=joshua+bloch
.

The book from Robert Martin, clean code, it's also a very good reading.

 The price on the Kindle edition is quite reasonable, though you might
 want to try local libraries first: Alameda County Library has it
 available for on-line reading, for example. Your local libraries might
 have it too.

 Next, one has to consider the issues of best practices for good
 coding skills and classes that are unique to Android. This is not as
 straightforward, since there is not enough clear precedent, there is
 still quite a bit of controversy. Unfortunately, I cannot recommend
 Google's own code practices without reservation. They too cut corners
 at times, writing code that does not conform to best practices. Yet at
 the same time, we are often quite dependent on them for initial sample
 code. So sometimes we can recognize their practices as good and follow
 them, sometimes we cannot.

+1 to that. A lot of common sense it's a good practice too.

 There is also the O'Reilly Press Android Cookbook, but that is still
 a work in progress.

 On Aug 25, 10:46 am, Doug beafd...@gmail.com wrote:
  On Aug 24, 5:23 am, Naveen kumarnaveen.si...@gmail.com wrote:
 
   what are the best practices for good coding skills and classes,
   methods, and variables  naming  +android
 
  There are two:
 
  1. Whatever has already been defined for Java
  2. Whatever suits you personally
 
  Doug

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

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

Re: [android-developers] quotes

2011-08-24 Thread Nick Risaro
On Wed, Aug 24, 2011 at 5:32 PM, bob b...@coolgroups.com wrote:

 How do I make it so Eclipse doesn't give me two quotes when I ask for
 one?


How are you asking to eclipse? Eclipse only understands english, if you
asked in other language he can't understand you.


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

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

Re: [android-developers] Re: Downloading Files Directly in Webview without it opening the browser

2011-08-22 Thread Nick Risaro
On Mon, Aug 22, 2011 at 4:48 PM, Raziel23x raziel...@gmail.com wrote:

 The files on on a webpage that I want the applcation to handle not it
 launching the web browser


The files are on a FTP server or on a HTTP server?

If the server is an FTP server you can connect to the server, list the files
using some API, then show the files in a listView or something like that and
download it with the same API. You don't need a browser at all.


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


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

Re: [android-developers] Using socket programing to communicate between two emulators in eclipse

2011-08-21 Thread Nick Risaro
2 basic things:

   1. Show us the exception!
   2. Shorten the code, let only the relevant stuff

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

Re: [android-developers] Re: java.lang.ClassCastException: android.widget.EditText

2011-08-20 Thread Nick Risaro
Hey, RichardC, this problem is solved, check the third mail of the thread.

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

Re: [android-developers] turn off screen lock

2011-08-20 Thread Nick Risaro
On Sat, Aug 20, 2011 at 7:29 PM, hectordu...@yahoo.com 
hectordu...@yahoo.com wrote:

 hi guys,
 i would like to turn off  programmatically the screen lock
 function ...
 how can i do it ?


3 easy steps.

   1. Go to google.com
   2. Type: android turn off screen
   3. Implement the functionality you want



 thanks in advance

 Hector

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

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

Re: [android-developers] Listview with image

2011-08-20 Thread Nick Risaro
On Sat, Aug 20, 2011 at 10:03 PM, TreKing treking...@gmail.com wrote:

 Stick an Image to the left of the title in your layout?


With glue?

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

Re: [android-developers] knowing when garbage collection occurs on a real device

2011-08-19 Thread Nick Risaro
On Aug 19, 2011 12:46 AM, rukiman ruksh...@optushome.com.au wrote:

 Hi, I noticed on the real device the garbage collection logs do not
 appear in logcat. Any way of knowing when a garbage collection
 occurred and how long it took? I am looking at animation performance
 and using the emulator isn't really an option and plus I'm guessing
 just cos a garbage collection occurs on an emulator at a certain point
 doesn't mean the device will behave the same way.

By definition it will not.

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

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

2011-08-19 Thread Nick Risaro
On Sat, Aug 20, 2011 at 1:56 AM, vineeshkc kcvine...@gmail.com wrote:

 any  idea


Yes

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

Re: [android-developers] Andriod Ebooks

2011-08-18 Thread Nick Risaro
On Thu, Aug 18, 2011 at 12:09 AM, Moul Kakada moul.kak...@gmail.com wrote:

 Hello all developer I am new in andriod, so would you mind sending me the
 ebook download link or web tutorial?


Sure, developer.android.com


 Best Regard

 Kakada

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

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

Re: [android-developers] Realidad Aumentada Android

2011-08-17 Thread Nick Risaro
Hasta donde yo sé no se puede.

Te recomiendo que escribas en inglés si querés tener más respuestas.

2011/8/16 danielgo0307 danielgo0...@gmail.com

 Hola, quiero desarrollar una aplicación para Android q use Realidad
 Aumentada usando patrones de textura, inicialmente instalé Eclipse
 pero el simulador de las apliciones no me permite ver la imagen de mi
 webcam, alguien sabe como configurar eclipse para q reconozca mi
 webcam?? o necesito algo adicional para esto??

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

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

Re: [android-developers] someone please suggest me how can i get notification on my smart phone when i will be getting e-mail from third-party mail server...

2011-08-17 Thread Nick Risaro
Read the documentation and implement it ;)

On Tue, Aug 16, 2011 at 7:53 AM, shailendra pathak 
shailendra.path...@gmail.com wrote:

 someone please suggest me how can i get notification on my smart phone
 when i will be getting e-mail from third-party mail server...

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

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

Re: [android-developers] Re: app inventor

2011-08-17 Thread Nick Risaro
Indicator I challenge you to translate *pamientras* jajajaj

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

Re: [android-developers] Glad to help

2011-08-17 Thread Nick Risaro
On Wed, Aug 17, 2011 at 7:45 AM, Luis Ramirez
luisangelramir...@gmail.comwrote:

 Download adobe PDF viewer

Good idea

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

Re: [android-developers] Translation handling

2011-08-17 Thread Nick Risaro
On Wed, Aug 17, 2011 at 3:26 PM, Daniel Rindt
daniel.ri...@googlemail.comwrote:

 Hi droids,

 i am looking for a possibility to access to the translation via the
 translation key like my_cart. The reason is that the datasource is more
 complex and written in xml which is residing in res/raw. So in this xml is
 just configured which translation key should be used. How can i achieve
 that?


What?

Read this
http://developer.android.com/guide/topics/resources/providing-resources.htmlmaybe
is what you need.


 Thanks in advance
 Daniel

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

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

Re: [android-developers] Translation handling

2011-08-17 Thread Nick Risaro
On Wed, Aug 17, 2011 at 4:07 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use getResources().getIdentifier() to convert the String into a
 resource ID. This uses reflection under the covers, so please cache
 the looked-up ID.


Nice one!

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

Re: [android-developers] How to read *.CHM File ?

2011-08-16 Thread Nick Risaro
Here is all you need http://tinyurl.com/42r8nb2

On Fri, Aug 12, 2011 at 1:53 PM, mahdi mahdi.farz...@gmail.com wrote:

 Hi ,
 i want to read *.chm file im my application and show it on textView ,
 how can i do this ?
 thanks

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

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

Re: [android-developers] logic

2011-08-16 Thread Nick Risaro
On Tue, Aug 16, 2011 at 9:14 AM, TreKing treking...@gmail.com wrote:

 Put your device on a stove, then turn it on. You will have awesome smoke
 effect.


logically ;)

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

Re: [android-developers] How to setup Android Development environment

2011-08-11 Thread Nick Risaro
Go to a place with a good connection.
Browse to developer.android.com
Download all the things you need.
Put the things in a pendrive.
Copy those things on your PC.
On Aug 11, 2011 4:59 PM, Vishalbandre vshlbn...@gmail.com wrote:
 How to setup Android Development environment on Windows XP 2000
 Professional SP3 , in offline mode because i do not have, and i can't
 make available fast internet connection?

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

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

Re: [android-developers] I'm trying to retrieve twitter Json feed and display in list view. I've created service to retrieve it. When I call service in List activity service object gives null value.

2011-08-11 Thread Nick Risaro
Try with the debugger, maybe you can find a clue.
On Aug 11, 2011 5:00 PM, Anoop Namdev nam...@gowebbaby.com wrote:
 Hi,
 I'm trying to retrieve twitter Json feed and display in list view.
 I've created service to retrieve it.
 When I call service in List activity service object gives null value.

 Service easily fetch data from twitter but service not able to return
 data to client(List activity).

 In log cat no error occurred. What's the problem with my code?

 ParseJSON.java(service code)



 package gowebbaby.com.wp;

 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Timer;
 import java.util.TimerTask;

 import org.apache.http.HttpEntity;
 import org.apache.http.HttpResponse;
 import org.apache.http.StatusLine;
 import org.apache.http.client.ClientProtocolException;
 import org.apache.http.client.HttpClient;
 import org.apache.http.client.methods.HttpGet;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.json.JSONArray;

 import android.app.Service;
 import android.content.Intent;
 import android.os.Binder;
 import android.os.IBinder;
 import android.util.Log;


 public class ParseJSON extends Service {

 public final static String KEY_ROWID = null;
 private Timer timer = new Timer();
 private static final long UPDATE_INTERVAL = 5;
 private final IBinder mBinder = new MyBinder();
 private ArrayListString list = new ArrayListString();
 @Override
 public void onCreate() {
 super.onCreate();
 checkNewPosts();
 }

 private void checkNewPosts() {
 timer.scheduleAtFixedRate(new TimerTask() {
 @Override
 public void run() {
 String readWebservice = readWebservice();
 try {
 JSONArray jsonArray = new JSONArray(readWebservice);
 Log.i(ParseJSON.class.getName(), Number of Post  +
 jsonArray.length());

 for(int i = 0 ; i  jsonArray.length(); i++) {
 list.add(jsonArray.get(i).toString());
 //Log.i(ParseJSON.class.getName(), Data  +
 jsonArray.get(i).toString());
 }

 } catch (Exception e) {
 e.printStackTrace();
 }

 }
 },0, UPDATE_INTERVAL );

 }

 protected String readWebservice() {
 StringBuilder builder = new StringBuilder();
 HttpClient client = new DefaultHttpClient();
 HttpGet httpGet = new HttpGet(http://twitter.com/statuses/
 user_timeline/gowebbaby.json);

 try {
 HttpResponse response = client.execute(httpGet);
 StatusLine statusLine = response.getStatusLine();
 int statusCode = statusLine.getStatusCode();

 if(statusCode == 200) {
 HttpEntity entity = response.getEntity();
 InputStream content = entity.getContent();
 BufferedReader reader = new BufferedReader(new
 InputStreamReader(content));

 String line;
 while((line = reader.readLine()) != null) {
 builder.append(line);
 }
 } else {
 Log.i(ParseJSON.class.toString(), Failed to download file);
 }

 } catch (ClientProtocolException e) {
 e.printStackTrace();
 } catch (IOException e) {
 e.printStackTrace();
 }

 return builder.toString();
 }

 @Override
 public void onDestroy() {
 super.onDestroy();
 if(timer != null) {
 timer.cancel();
 }
 Log.i(getClass().getSimpleName(), Timer Stopped.);
 }

 public ListString getPostList() {
 return list;
 }

 public IBinder onBind(Intent intent) {
 //Log.i(getClass().getSimpleName(), onBind Called);
 return mBinder;
 }

 public class MyBinder extends Binder {
 ParseJSON getService() {
 return ParseJSON.this;
 }
 }
 }

 List Activity Code

 package gowebbaby.com.wp;

 import gowebbaby.com.wp.ParseJSON.MyBinder;

 import java.util.ArrayList;
 import java.util.List;

 import android.app.ListActivity;
 import android.content.ComponentName;
 import android.content.Context;
 import android.content.Intent;
 import android.content.ServiceConnection;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.view.View;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;
 import android.widget.Toast;


 public class WordpressPostList extends ListActivity {
 /** Called when the activity is first created. */
 private ParseJSON s;
 private ArrayListString values;
 private ArrayAdapterString adapter;
 public static final int POST_DETAIL = 1;

 @Override
 public void onCreate(Bundle savedInstanceState) {

 super.onCreate(savedInstanceState);
 setContentView(R.layout.post_list);
 doBindService();
 //Log.i(WordpressPostList.class.getName(), Post  +
 s.getPostList().get(0));
 filldata();
 registerForContextMenu(getListView());
 }

 @Override
 protected void onListItemClick(ListView l, View v, int position, long
 id) {
 super.onListItemClick(l, v, position, id);
 Intent i = new Intent(this, WordpressPostDetail.class);
 i.putExtra(ParseJSON.KEY_ROWID, id);
 startActivityForResult(i, POST_DETAIL);
 }

 private void filldata() {
 if(s != null) {
 ListString postList = s.getPostList();
 values.clear();
 values.addAll(postList);
 adapter = new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,values);
 

Re: [android-developers] Force Close Issue

2011-08-11 Thread Nick Risaro
That's so sad :(

Maybe if you attach some logs we can help you and stop being sad.

On Fri, Aug 12, 2011 at 1:15 AM, Spica spicaneb...@gmail.com wrote:

 I am developing location based application which uses phone's gps. It
 works fine on my android device when i am not moving but as soon as i
 start moving my application either freezes or error out with option of
 Force close. This application is also consuming web service to send
 location to the server.

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

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

Re: [android-developers] key from value in hash table

2011-08-10 Thread Nick Risaro
On Wed, Aug 10, 2011 at 10:19 AM, TreKing treking...@gmail.com wrote:

 On Wed, Aug 10, 2011 at 7:19 AM, sktniran sktniranjanad...@gmail.comwrote:

 is it there any way to retrive key from value in hashtable?


 Assuming the value is unique...


... you can build another map and keep both synchronized

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

Re: [android-developers] Connection refused: connect socket

2011-08-10 Thread Nick Risaro
On Wed, Aug 10, 2011 at 11:21 AM, N K Shrivastva 
kumarnaveen.si...@gmail.com wrote:

 Exception in thread main java.lang.NullPointerException
at connection.run(connection.java:94)


Check the connection class, specially the line 94

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

Re: [android-developers] Why does Long.decode fail?

2011-08-10 Thread Nick Risaro
On Wed, Aug 10, 2011 at 4:29 PM, RLScott fixthatpi...@yahoo.com wrote:

 I am trying to convert a string of 16 hex digits to a 64-bit Long, but
 there is a run-time exception for negative values:

Long a = Long.decode(0x3774d56d682e549c); //..works just fine

Long a = Long.decode(0x9774d56d682e549c); //..crashes with a run-
 time exception

 Apparently you can't decode a hex string that is negative as a 64-bit
 Long.  Why?


Reading this may help
http://download.oracle.com/javase/6/docs/api/java/lang/Long.html#decode(java.lang.String)


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

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

Re: [android-developers] Re: Why does Long.decode fail?

2011-08-10 Thread Nick Risaro
On Wed, Aug 10, 2011 at 4:48 PM, RichardC richard.crit...@googlemail.comwrote:

  The string may be an optional minus sign - followed by a
 hexadecimal (0x... or #...), octal (0...), or decimal (...)
 representation of a long.

 I agree it is unclear.


It's not unclear at all This sequence of characters *must represent a
positive value* or a
NumberFormatExceptionhttp://download.oracle.com/javase/6/docs/api/java/lang/NumberFormatException.htmlwill
be thrown

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

Re: [android-developers] Re: Unable to open log device '/dev/log/main': No such file or directory

2011-08-08 Thread Nick Risaro
Did you read this http://developer.android.com/guide/developing/device.html?

Sorry if that doesn't help.

On Mon, Aug 8, 2011 at 6:08 PM, devgeeks to...@devgeeks.org wrote:

 Bumping as a last resort before buying another phone :(

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


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

Re: [android-developers] help with sdk install

2011-08-08 Thread Nick Risaro
On Tue, Aug 9, 2011 at 12:00 AM, TreKing treking...@gmail.com wrote:

 On Fri, Aug 5, 2011 at 10:18 AM, Old Orange Juice kc2...@gmail.comwrote:

 Android sdk doesn't think I have a jdk installed, how do you get the sdk
 to learn where your jdk is?


 What makes you think that's what the SDK is thinking? Do you have an actual
 error message?


He is in the matrix? :P



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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

Re: [android-developers] Arrays and android

2011-08-07 Thread Nick Risaro
On Sun, Aug 7, 2011 at 6:24 AM, Romain Guy romain...@android.com wrote:

 What you want is not an array but a map. Look at java.util.HashMap for
 instance.

 What he needs is an object :)

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

Re: [android-developers] Re: Google contact name fetch

2011-08-06 Thread Nick Risaro
If you attach a logcat with the error maybe we can help you.

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

Re: [android-developers] Re: Google contact name fetch

2011-08-06 Thread Nick Risaro
On Sat, Aug 6, 2011 at 9:49 PM, Goutom goutom.sust@gmail.com wrote:

 Hi Nick
 Thanks for reply.It dont stop my app.


Check the log anyway, maybe there is a hint of whats happening there.

But skips this step.


What step?


 I think my problems in these two lines:

String where = ContactsContract.Data.CONTACT_
 ID +  = ? AND  + ContactsContract.Data.MIMETYPE +  = ?;
 String[] whereParameters = new String[]{id,
 ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE};

 Cursor contacts =
 contentresolver.query(ContactsContract.Data.CONTENT_URI, projection, where,
 whereParameters, null);


Try whit less parameters in the query, use the debugger to check step by
step whats happening and/or put some log in your code.


 can u check this please?


 On Sat, Aug 6, 2011 at 5:40 PM, Nick Risaro nris...@gmail.com wrote:

 If you attach a logcat with the error maybe we can help you.

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


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


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

Re: [android-developers] Re: map does not displaying in device

2011-08-05 Thread Nick Risaro
On Fri, Aug 5, 2011 at 6:59 AM, Tonez apires...@gmail.com wrote:

 Hi Ratheesh,

 I've been having the same problem, up until a few minutes ago when I
 sorted it out.  The way in which I resolved this issue was by making
 sure the debuggable property of my application tag in
 AndroidManifest.xml is set to true - you can also do this by going to


Please don't do that!! your release application should not be debuggable.

Check the group yesterday somebody asked the same, you need another key for
the signed application.

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

Re: [android-developers] Still can't log in to update app...

2011-08-05 Thread Nick Risaro
If you are in a hurry you can send the signed apk to your client, or put it
on some webserver for him to download it.

I know it doesn't solve your problem but at least you can deliver the app to
some critical users.

On Fri, Aug 5, 2011 at 3:41 PM, Tobiah t...@tobiah.org wrote:

 I've been in contact with Market support for a few days and got
 some canned answers that did not help.  The bottom line is that
 I can no longer log in to update my app - any time I log in
 (Isn't it 
 http://market.android.com/**publishhttp://market.android.com/publish?)
 it only gives
 me a page where I can sign up for a new account.  Even then,
 it tells me my business name is in use, which of course it is.

 I'd buy a new account at this point, but the app is signed, and
 some users have it already.  I really need to be able to update
 the app.  A client needs to use it tomorrow.  The app is
 called ExpoSmart - I don't know what to do.  I feel like I'm
 in trouble with my boss.  I don't suppose there is any human
 anywhere to talk to?

 Thanks,

 Tobiah

 --
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Still can't log in to update app...

2011-08-05 Thread Nick Risaro
On Fri, Aug 5, 2011 at 5:23 PM, Tobiah t...@tobiah.org wrote:

 On 08/05/2011 12:09 PM, Nick Risaro wrote:

 If you are in a hurry you can send the signed apk to your client, or put
 it on some webserver for him to download it.


  I know it doesn't solve your problem but at least you can deliver the
 app to some critical users.


 Thanks, that's what I'm going to have to do.  I can send this guy
 a link, but then the best way I can imagine to have him install it
 is to have the browser save it, then have him install and use Astro
 file manager to get to it.  The stock browser on our phones doesn't
 seem to handle the .apk specially.

 Is there a better way?


In my phone I use firefox, when I download an apk with firefox it
automatically starts the installation. I don't know if that behaviour is
standard on firefox or just in my phone.



 Thanks,

 Tobiah



 On Fri, Aug 5, 2011 at 3:41 PM, Tobiah t...@tobiah.org
 mailto:t...@tobiah.org wrote:

I've been in contact with Market support for a few days and got
some canned answers that did not help.  The bottom line is that
I can no longer log in to update my app - any time I log in
(Isn't it 
 http://market.android.com/__**publishhttp://market.android.com/__publish
http://market.android.com/**publishhttp://market.android.com/publish?)
 it only gives
me a page where I can sign up for a new account.  Even then,
it tells me my business name is in use, which of course it is.

I'd buy a new account at this point, but the app is signed, and
some users have it already.  I really need to be able to update
the app.  A client needs to use it tomorrow.  The app is
called ExpoSmart - I don't know what to do.  I feel like I'm
in trouble with my boss.  I don't suppose there is any human
anywhere to talk to?

Thanks,

Tobiah

--
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@__googlegro**ups.com http://googlegroups.com

 mailto:android-developers@**googlegroups.comandroid-developers@googlegroups.com
 

To unsubscribe from this group, send email to

 android-developers+__**unsubscr...@googlegroups.comandroid-developers%2b__unsubscr...@googlegroups.com

 mailto:android-developers%**2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 **

For more options, visit this group at

 http://groups.google.com/__**group/android-developers?hl=enhttp://groups.google.com/__group/android-developers?hl=en

 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en
 **


 --

 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en


 --
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Is it possible to stream audio or video from a computer to a android phone?

2011-08-05 Thread Nick Risaro
On Fri, Aug 5, 2011 at 6:04 PM, neuromit stuart.lay...@gmail.com wrote:

 I'm extremely interested in streaming audio and or video from a
 computer to an android device?

 Ideally an event on the computer would trigger the creation of the A/V
 stream, the computer would then notify the phone via sms, or some
 other mechanism, about the stream at which point the phone could
 connect and play the audio and or video in the stream.

 Is something like this currently possible without creating everything
 from scratch?

 You can read something about DLNA
http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance some devices
had support for it out of the box.

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

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

Re: [android-developers] EMAIL SMS

2011-08-04 Thread Nick Risaro
Cool, godspeed

On Thu, Aug 4, 2011 at 10:51 AM, arun kumar hariarun2...@gmail.com wrote:

 Hello all,
 I am developing one application. In that application i want to send
 email and sms to a particular user.

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

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

Re: [android-developers] Need Help

2011-08-04 Thread Nick Risaro
Why??

On Wed, Aug 3, 2011 at 10:46 AM, Deepak Sharma deepaksimple...@gmail.comwrote:

 I want to make an app in which i have to play a background song while
 user is on a call with someone  and this song should be heard to both
 user and the caller .

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

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

Re: [android-developers] Android source line numbers in stack trace

2011-08-04 Thread Nick Risaro
I think that you need to look in the code of Button.java, not View.java.
Check that the code you are looking is the same (version) that the one you
are running.

Just for curiosity, why are you trying to follow the error in that class?

On Wed, Aug 3, 2011 at 5:20 PM, Caleb9 peter.karasin...@gmail.com wrote:

 Hello,
 I'm an Android noob, so sorry if this kind of question has already
 been asked million times before, but searching both here and elsewhere
 I couldn't find an answer to my problem.
 It seems to me that my stack trace in Eclipse, while debugging, is
 showing wrong line numbers for Android classes. As an example, the
 stack trace shows Button(View).performClick() line: 2364, but line
 2364 of View.java is within initializeScrollbars(TypedArray a) method,
 not performClick(). I've binded the jar file as described on
 http://source.android.com/, then I also tried the adt-addons source
 plugin from code.google.com/p/adt-addons/, with the same result. The
 plugin didn't automatically bind the source .zip files - I had to
 manually add ~/.eclipse/org.eclipse.platform_3.6.1_272132065/plugins/
 com.android.ide.eclipse.source_11.0.0.201106122256/10/sources.zip, and
 I tried debugging with Android  2.1 (for which I initially aimed), as
 well as 2.3.3 (which, as far as I understood, corresponds to 10 in
 the plugin's subdirectory path) but the line numbers seem to be always
 wrong...
 Can someone please give me some hints on what am I doing wrong or
 maybe what did I misunderstand about this?
 Thanks in advance.

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

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

Re: [android-developers] Override Hint when EditText is fullscreen

2011-08-04 Thread Nick Risaro
You can try with one layout for each mode, in one you have the Enter User
Name text and in the other don't.

On Wed, Aug 3, 2011 at 9:12 PM, Karthz zkar...@gmail.com wrote:

 Can I override the hint of an EditText when it is in landscape mode
 and the ime is fullscreen?

 For example, in a login screen, I have a TextView labeled User Name:
  with an EditText with no hint (or say, a different hint) - on both
 portrait and landscape modes.

 However, since the TextView wouldn't appear when the ime is
 fullscreen, I need a hint that says something like Enter User Name.

 Thanks!

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

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

Re: [android-developers] Need Help

2011-08-04 Thread Nick Risaro
Yeah, it's possible, once I was using Navigation, received a phone call and
the lady continued giving me directions over the call but I don't now if
the other person could hear she.

On Fri, Aug 5, 2011 at 1:19 AM, Durgadoss R durga.dr...@gmail.com wrote:

 I don't think the Audio Flinger would allow you play a Media Stream when
 you are on a CALL.
 If you explore (Hack) the Audio Flinger + Telephony stack, you can make the
 song yourself.

 Not Sure, whether the latter part is doable.

 On Fri, Aug 5, 2011 at 7:34 AM, Nick Risaro nris...@gmail.com wrote:

 Why??


 On Wed, Aug 3, 2011 at 10:46 AM, Deepak Sharma deepaksimple...@gmail.com
  wrote:

 I want to make an app in which i have to play a background song while
 user is on a call with someone  and this song should be heard to both
 user and the caller .

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


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


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


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

Re: [android-developers] Google Map Road Showing In Dev But not When Signed for Deployment

2011-08-03 Thread Nick Risaro
I'm not TreKing :)

I do it with a method like this

private boolean isDebuggable(Context context) {
 return (context.getApplicationInfo().flags 
 ApplicationInfo.FLAG_DEBUGGABLE) != 0;
 }


On Wed, Aug 3, 2011 at 3:39 PM, Adam Ratana adam.rat...@gmail.com wrote:

 TreKing, would you mind giving some quick details on how you'd implement
 that?  I find myself changing the key manually when I go to upload a
 release, not very ideal or convenient.

 On Wednesday, August 3, 2011 8:17:56 AM UTC-4, TreKing wrote:

 On Tue, Aug 2, 2011 at 11:55 PM, usafrmajor usafr...@gmail.com wrote:

 Just wondering, is it possible to have both keys for the map view active?


 Active as both set? No. But you can determine whether you are running in
 debug or release mode and use the appropriate key or layout in either case.



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

Re: [android-developers] Publish .APK on a website, not in Android Market?

2011-08-02 Thread Nick Risaro
On Mon, Aug 1, 2011 at 8:15 PM, Molly_G mollygar...@gmail.com wrote:

 I need to limit the audience of an Android app I'm working on. Is it
 possible to publish the .apk on my password-secured mobile website for
 users to download directly?

 Yes


 Also, what's the process like on the users' side? Do they need to go
 through a Download Manager, etc. to get the app?

 The user navigates to your website, enters user/pass, and downloads the
apk, then he installs the apk (some browsers start the install after
downloading) .

Any examples and info would be much appreciated.

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

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

Re: [android-developers] HELP!!! Anyone know about streams real time video from an android to Facebook, and/or our own server????

2011-08-02 Thread Nick Risaro
Or use UStram

On Tue, Aug 2, 2011 at 9:36 PM, TreKing treking...@gmail.com wrote:

 On Tue, Aug 2, 2011 at 3:12 PM, Morning Glorie canopy.sun...@gmail.comwrote:

 I just use it not developer ; (

 We would like to create an Android application by using JAVA programming
 language(or other) that streams real time video from a mobile phone to, if
 possible, Facebook, and/or our own server.

 anyone suggest me what I should do first?


 Hire a developer that can do this.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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

Re: [android-developers] problem of using intent to start activity of an add-on package

2011-08-01 Thread Nick Risaro
Have you tried different names for the search activity in the manifest? Like
.SearchActivity.

BTW, I'm not sure if you can mix packages in one manifest, because you
have to specify one base package for your application.

On Tue, Aug 2, 2011 at 12:17 AM, dave dayong...@gmail.com wrote:

 Hi,
 I am using an add-on in my app.
 When  I try to start an activity defined in the add-on package, it
 complains ActivityNotFoundException:

 in my code:

 package com.a.c.demo.search;
 import com.a.b.SearchActivity;
 import com.a.c.demo.R;

 public class ActivityDemo extends Activity {
   public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Button btn = (Button)
 findViewById(R.id.launch_search_activity);

btn.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Intent i = new Intent();
i.setClassName(com.a.b, com.a.b.SearchActivity);
i.putExtra(KEY_SEARCH_HINT_TEXT, Search);
ActivityDemo.this.startActivityForResult(i,
 SEARCH_CODE);
}
});
 }

  activity android:name=.search.ActivityDemo android:label=@string/
 app_name
intent-filter
action
 android:name=android.intent.action.custom.activitydemo /
category
 android:name=android.intent.category.DEFAULT /
/intent-filter
  /activity
  activity android:name=com.a.b.SearchActivity /

 the add-on is in the java build path.
 When I ran the app, I got error from log cat:
  ActivityNotFoundException:
 Unable tofind explicit activity class {com.a.b/
 com.a.b.SearchActivity}; have you declared this activity in your
 AndroidManifest.xml?

 Please help me out on this issue.
 Thanks a lot.
 dave

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

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

Re: [android-developers] Events on ListView's row components problemes

2011-08-01 Thread Nick Risaro
Aja, and then

On Tue, Aug 2, 2011 at 1:31 AM, Yassine Serhane serhan...@gmail.com wrote:

 Hello all,

 well I wish you can help me with these, it's been about 2 days blocking on
 it


 _
 1 |
|
 _|___

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

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

Re: [android-developers] context menu

2011-07-31 Thread Nick Risaro
Put a break point in the line

if (item.getItemId() == 1) {


And check with the debuger what's happening step by step.

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

Re: [android-developers] image view

2011-07-31 Thread Nick Risaro
Try this
http://developer.android.com/reference/android/widget/ImageButton.html

On Sun, Jul 31, 2011 at 2:45 AM, arun kumar arun.kata...@gmail.com wrote:

 HI
 how to make imageview as highlight
 i given imageview when i on click on that it has to become
 highlight(background has to become focus
 ...

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

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

Re: [android-developers] Re: Spurious Location ... not been setup error message on WindowAndroid SDK and AVD manager

2011-07-31 Thread Nick Risaro
Try moving your SDK to a path without blanks.

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

Re: [android-developers] Annoyingly-persistent error in live wallpaper + prefs code

2011-07-31 Thread Nick Risaro
Is LiveWallpaperSettings an inner class? I think that you can't put an
activity as an inner class. Try moving that to a normal class.

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

Re: [android-developers] Annoyingly-persistent error in live wallpaper + prefs code

2011-07-31 Thread Nick Risaro
On Sun, Jul 31, 2011 at 2:23 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 31.07.2011 21:20, Nick Risaro пишет:

  Is LiveWallpaperSettings an inner class? I think that you can't put an
 activity as an inner class. Try moving that to a normal class.


 You can, as long as:

 - It's static (public static class Inner { ... });
 - It's properly referenced in the manifest as Outer$Inner.

 Same with services, receivers, etc.


Thanks for the clarification!

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

Re: [android-developers] Annoyingly-persistent error in live wallpaper + prefs code

2011-07-31 Thread Nick Risaro
Glad to hear that :)

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

Re: [android-developers] Re: import ca.uol.aig.fftpack.RealDoubleFFT;

2011-07-29 Thread Nick Risaro
Then you need to add the jar containing the ca package to your classpath

On Fri, Jul 29, 2011 at 12:54 AM, Wan Cekang kesyahd...@gmail.com wrote:

 the info - The import ca cannot be resolved

 On Jul 28, 8:49 pm, Nick Risaro nris...@gmail.com wrote:
  Did you read the info about the error? What does it say?
 
 
 
 
 
 
 
  On Fri, Jul 29, 2011 at 12:42 AM, Wan Cekang kesyahd...@gmail.com
 wrote:
   hi,
   when I want to import this : import ca.uol.aig.fftpack.RealDoubleFFT;
   got an error. (red underline bellow the code).
   Im new in android.how to solve this?
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Problem in starting Android emulator

2011-07-29 Thread Nick Risaro
I readed about this in this same group... but I don't remember the answer, I
think that was something about the blanks in the path to the emulator.

On Thu, Jul 28, 2011 at 10:30 AM, SamShah sarmadl...@gmail.com wrote:

 Hej,

 I am having problem in setting it up and running for the first time.
 Each time when I try to start it it gives an error of,
 invalid command-line parameter: Files.
 Hint: use '@foo' to launch a virtual device named 'foo'.
 please use -help for more information
 I had no idea where to look for the solution?
 Can somebody help me please
 tnx

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

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

Re: [android-developers] Re: Eclipse - Emulator is not running

2011-07-29 Thread Nick Risaro
Sounds like a zombie proccess, check for the pid of the emulator and kill
it.

You can try moving (or deleting) the img files.

On Thu, Jul 28, 2011 at 10:17 PM, Dalton Cézane daltoncez...@gmail.comwrote:

 Someone, please?

 [ ]s


 On Thu, Jul 28, 2011 at 12:51 AM, Dalton Cézane daltoncez...@gmail.comwrote:

 Anyone? Is this kind of doubt in the wrong place? If it is, please tell me
 in what list I must ask.

 Thanks.


 On Wed, Jul 27, 2011 at 4:12 PM, Dalton Cézane daltoncez...@gmail.comwrote:

 Hi, I am new with Android development and I was trying some examples. But
 when I realize the high delay of the emulator, I did something and now I
 just get these messagens when I run my codes:

 [2011-07-27 15:56:42 - Emulator] WARNING: Data partition already in use.
 Changes will not persist!
 [2011-07-27 15:56:43 - Emulator] WARNING: SD Card image already in use:
 /home/dalton/.android/avd/AndroidVM.avd/sdcard.img
 [2011-07-27 15:56:45 - Emulator] ko:Snapshot storage already in use:
 /home/dalton/.android/avd/AndroidVM.avd/snapshots.img

 Can anyone help me to solve this problem, please? After these messages
 the emulator is not initializing...

 Thanks in advance.

 --
 ===
 Dalton Cézane - Smarteju Tecnologia
 Especialista em Ciência da Computação (UFCG)
 Bacharel em Ciência da Computação (UFCG)
 Técnico em Informática (ETER)




 --
 ===
 Dalton Cézane - Smarteju Tecnologia
 Especialista em Ciência da Computação (UFCG)
 Bacharel em Ciência da Computação (UFCG)
 Técnico em Informática (ETER)




 --
 ===
 Dalton Cézane - Smarteju Tecnologia
 Especialista em Ciência da Computação (UFCG)
 Bacharel em Ciência da Computação (UFCG)
 Técnico em Informática (ETER)

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


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

Re: [android-developers] hiii dearssssss

2011-07-29 Thread Nick Risaro
Thanks that worked for me ;)

On Fri, Jul 29, 2011 at 6:43 PM, TreKing treking...@gmail.com wrote:

 Just include in your project and run.

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

Re: [android-developers] Verifying Map API key

2011-07-29 Thread Nick Risaro
Define crash.

Did you read the log? What does it say?

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

Re: [android-developers] Verifying Map API key

2011-07-29 Thread Nick Risaro
It looks like MapBackMarkActivity is an inner class, the upperCase M in
the FQN points to that (mapBack.*M*apback.MapBackMarkActivity), if thats the
case I don't now if dalvik can handle activities as inner classes, you can
try promoting MapBackMarkActivity to a normal class.

If it's not, it's MapBackMarkActivity a public class? it has a default
constructor? Any weird static initialization?

If that's not the case, check for duplicated jars in your build.

Also, Did you read
thishttp://stackoverflow.com/questions/3621163/cannot-resolve-mapactivity-class-on-android
?

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

Re: [android-developers] Re: Curious NPE

2011-07-28 Thread Nick Risaro
Doug, may I point you to the JPA API, made by Gavin King and approved by the
JCP, it's based on unchecked exceptions.

Also you can read Clean Code, A Handbook of Agile Software Craftmanship by
Robert C. Martin he talks about the bennefits of using unchecked exceptions
over checked.

I agree with you, this flame war is losing sense, also the original poster
dissapeared years ago.

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

Re: [android-developers] Re: Static Initializers - interdependencies

2011-07-28 Thread Nick Risaro
I think that means that the JVM reads your code line by line and initialize
the classes as needed, starting by your Main class. It only loads class A
if your Main class has a reference to it, then stops loading the Main
class and starts loading A, when A referrs to B, pauses the load of A and
start with B, the resumes the load of A, and at last resumes the load of
Main.

On Thu, Jul 28, 2011 at 4:25 PM, RLScott fixthatpi...@yahoo.com wrote:



 On Jul 28, 11:13 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com
 wrote:
 
 
  There is this paragraph:
  ' The static initializers and class variable initializers are executed
  in textual order, and may not refer to class variables declared in the
  class whose declarations appear textually after the use, even though
  these class variables are in scope (§8.3.2.3). This restriction is
  designed to detect, at compile time, most circular or otherwise
  malformed initializations.'

 Ah, that makes sense.  Thank you.  But what is the textual order when
 my code is developed in Eclipse where my source Java files are listed
 in alphabetical order, one class per file?  Is that the textual order?

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


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

Re: [android-developers] Re: The emulator died when I execute ping in adb shell repeatly

2011-07-28 Thread Nick Risaro
I think that making a simple HttpRequest for a file in the server is a best
solution, I'm assuming you want to do a health check.

On Thu, Jul 28, 2011 at 10:53 PM, nanhu tianlifeixue...@gmail.com wrote:

 our program need to ping a host repeatly

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

Re: [android-developers] import ca.uol.aig.fftpack.RealDoubleFFT;

2011-07-28 Thread Nick Risaro
Did you read the info about the error? What does it say?

On Fri, Jul 29, 2011 at 12:42 AM, Wan Cekang kesyahd...@gmail.com wrote:

 hi,
 when I want to import this : import ca.uol.aig.fftpack.RealDoubleFFT;
 got an error. (red underline bellow the code).
 Im new in android.how to solve this?

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

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

Re: [android-developers] Package File is Invalid

2011-07-27 Thread Nick Risaro
If you have an unsigned version of your application you can't install a
signed one, try deleting your unsigned apk and then installing the signed
version.

On Tue, Jul 26, 2011 at 6:37 PM, Eric yougote...@gmail.com wrote:

 I have a working app with a working debug APK file generated by
 Dreamweaver CS5.5 and PhoneGap.
 It runs perfectly on both the emulator and actual devices.

 The distribution apk file has an extension of .ap_

 I have signed the file using jarsigner, and aligned it using zipalign.
 I have uploaded the file to the Android Market, but when I download it
 to my device from the Market, upon attempting to install the app, I am
 prompted with an Install Unsuccessful, Package file is Invalid
 error.

 In the zipalign process, I have tried outputting the file at as both
 an .ap_ file and an .apk file, and both yield the same result.

 Any help here is greatly appreciated.

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

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

Re: [android-developers] Re: Curious NPE

2011-07-26 Thread Nick Risaro
OK, forget the second statement, the first one still is a valid one. If you
follow the standard you have to throw a checked exception when something
goes wrong but you expect that to happen. Like a violated FK in the DB.

On Tue, Jul 26, 2011 at 3:23 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

  A checked exception is an exceptional state that you expect to happen,
 like
  the user entering some wrong values, you check that ant throw the ckecked
  exception.

 No, exceptions shouldn't be used as a program flow control mechanism,
 which is what your example is.



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

Re: [android-developers] Out of Memory Exception

2011-07-25 Thread Nick Risaro
I think the problem is with your background, try with a smaller picture

On Mon, Jul 25, 2011 at 8:38 AM, chetan chetanchauha...@gmail.com wrote:

 bitmap size exceeds VM budget

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

Re: [android-developers] Re: CountDownTimer too slow ???

2011-07-25 Thread Nick Risaro
When you run your app in eclipse (or with debuggable=true) it runs in
debug mode, this allows eclipse to hook the debugger to your app, this can
slow down your app performance because of the overhead.

On Mon, Jul 25, 2011 at 2:35 PM, Christophe 
christophe.lebesner...@gmail.com wrote:

 What is debug symbol anyways ??

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

Re: [android-developers] Re: CountDownTimer too slow ???

2011-07-25 Thread Nick Risaro
If you run your app on eclipse, i.e. without making an apk and installing it
on the phone, you always run with the debug flag in true.

If you want to run 100% in normal mode you have to make an APK file and
install it on a real phone.

On Mon, Jul 25, 2011 at 4:54 PM, Christophe 
christophe.lebesner...@gmail.com wrote:

 I'm using eclipse but I run the app using the normal mode, not the
 debug mode.


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

Re: [android-developers] Re: Sql query not working

2011-07-25 Thread Nick Risaro
To make some DBAs cry? :P

On Mon, Jul 25, 2011 at 7:55 PM, lbendlin l...@bendlin.us wrote:

 Why Union All? Why not just a couple of ORs ?

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

Re: [android-developers] Re: Curious NPE

2011-07-25 Thread Nick Risaro
A checked exception is an exceptional state that you expect to happen, like
the user entering some wrong values, you check that ant throw the ckecked
exception.

In your case I think that your checked exception it's a hidden unchecked
exception, something like a try-catch catching an unchecked exception and
throwing back a checked one.

Try cleanning your code and digging around for the root of your error, I
don't think that asking the user to send you the error, or wrapping your
exception with an unchecked exception to force that, is a good choice. Just
let the code be ;)

On Mon, Jul 25, 2011 at 10:29 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 b) throw an unchecked exeption (with my checked exception as the
 cause) and hope the user will have a chance to send it via the normal
 Android error reporting channel.


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

Re: [android-developers] Re: Curious NPE

2011-07-25 Thread Nick Risaro
+1 to that, I fight every week or so with my co-workers trying to convert
them but they insist on work with checked exceptions :(

On Tue, Jul 26, 2011 at 1:08 AM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 By now, it's pretty much universally accepted that checked exceptions were
 a bad idea. An exception is an exception, and you either handle it or you
 let it propagate up the stack. The whole checked/unchecked divide is hugely
 artificial.


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

Re: [android-developers] CountDownTimer too slow ???

2011-07-24 Thread Nick Risaro
The calls to *onTick* are synchronized, maybe your code is taking more than
a second to execute. Log can be expensive, and with debug symbols enabled
your code will run a little bit slower than in real life.

Or maybe the end of times is close!! :P

On Sun, Jul 24, 2011 at 2:30 PM, Christophe 
christophe.lebesner...@gmail.com wrote:

 Run the following code in the emulator and start a chronometer at the
 same time :

 // log some text each second :
 CountDownTimer countDown = new CountDownTimer(Integer.MAX_VALUE, 1000)
 {
private int i = 0;
@Override
public void onTick(long millisUntilFinished) {
Log.i(, ### + i);
i++;
}
@Override
public void onFinish() {}
 };

 countDown.start();

 Then wait a few minutes.
 For example I stop when my chronometer was at 7min44s. The value in
 the log was 448seconds = 7min28s.

 WTF ?!???

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

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

Re: [android-developers] Re: restart application after Android's killed it

2011-07-20 Thread Nick Risaro
mmm I think that you need to save all that data via shared preferences (or
something like that) when your app is about to be killed. You can check the
javadoc for Activity#onPause() and the Spinner sample that comes with the
SDK.

On Wed, Jul 20, 2011 at 10:56 AM, Fina Perez fina.pere...@gmail.com wrote:

 Well, the problem is that when the program is killed, due to android
 policies or because of an error, sometimes the program is restarted in
 the last activity that was displayed. In my application, when this
 happens, I have an error and the program is force to close because
 I'm missing some data that I dont have if the program is restarted in
 that activity. So I would like, in that case, to force the program to
 restart in my main activity. I'm using MVPC (Model view presenter
 controller), so if Android restarts in the last activity, some data
 dont exists, that's why I would like to restarts in the main activity.

 On Jul 20, 3:24 pm, Mark Murphy mmur...@commonsware.com wrote:
  On Wed, Jul 20, 2011 at 7:02 AM, Fina Perez fina.pere...@gmail.com
 wrote:
   As far as I know, Android kills an application after sometime if the
   user is not interacting with it, in order to save memory. If the user
   goes back to the application, the last activity is displayed again.
 
  That depends on how the user goes back to the application. If they
  click on the launcher icon, they will go to the launcher activity. If
  they navigated back to the destroyed activity via the BACK button or
  something like that, they will go to that specified activity.
 
   What I would like to do is that when this situations occurs, I always
   would like to restart from my main activity. But only if my
   application was killed, not in other scenarios.
 
  Why?
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  Android Training...At Your Office:http://commonsware.com/training

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


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

Re: [android-developers] Eclipse, android and the emulator

2011-07-20 Thread Nick Risaro
What error you got? Did you checked the logCAT to see what's happening?

Did you tested the app in a real phone?

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

Re: [android-developers] How to lock current orientation at runtime?

2011-07-16 Thread Nick Risaro
If you add android:configChanges=orientation to your activity in the
manifest then the method onConfigurationChanged of your activity will be
called, here you can decide what to do with the change, but most important,
the activity will not be restarted.

You can check this
http://developer.android.com/guide/topics/resources/runtime-changes.htmlwhere
it's better explained.

2011/7/16 Kostya Vasilyev kmans...@gmail.com

 Assuming you lock the orientation, how will you prevent the user from
 sliding out the keyboard on those devices that have it? (For the duration of
 your HTTP request.)

 Less plausible, but possible as well, from changing the phone's configured
 UI language?

 --
 Kostya Vasilyev
 17.07.2011 2:41 пользователь Brad bradfull...@gmail.com написал:

  Hi,
 
  I'm trying to lock my activity to the current orientation to prevent
  an orientation change from restarting my activity while I'm waiting
  for a http response.
 
  So I'm trying to use this:
 
  setRequestedOrientation(getResources().getConfiguration().orientation);
 
  And it works fine for portrait (orientation == 1), but when the device
  is in landscape it's getting a value of 2 which ==
 
  ActivityInfo.SCREEN_ORIENTATION_USER
 
  And this doesn't lock the screen.
 
  Does anyone have any idea why I'm getting this instead of LANDSCAPE?
  Any suggestions for a better way to lock the current orientation?
 
  Thanks!
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Re: Ayuda con el emulador Android

2011-07-15 Thread Nick Risaro
Nice answer Indicator Veritatis ;)

The translation you made is pretty good but i'm not sure because i can't
understand very well the original question in spanish (and it's my native
language). Only a minor detail Jonathan says that the issue started after an
upgrade of the SDK (for windows) and that he can't upgrade in linux.

Jonathan, can you give us some extra info? what is the issue on windows? do
you have any log or extra info for us?

Jonathan, podrías darnos alguna información extra ¿qué problema tienes en
windows? ¿tienes algún log o datos extra para nosotros?

On Thu, Jul 14, 2011 at 10:37 PM, Indicator Veritatis mej1...@yahoo.comwrote:

 Well, obviously, yes it is English. However, Google headquarters is
 located in California, where by the Treaty of Guadalupe-Hidalgo, the
 State of California is obliged to treat Spanish as co-official with
 English. Of course, we got around this clause of the treaty by
 pointing out that we HAVE no concept in our law of an official
 language, but that is a poor excuse for continuing the bad behavior.

 Besides: Google translate does an OK job on this. It would do better
 if Mr Roa would have broken the sentence up into smaller sentences,
 connecting them with the relevant pronouns.

 In particular, combining the Win7 issue and the Ubuntu issue into one
 sentence was not a good idea. And 'cualquiera' looks like it should be
 followed by another word.

 Of course, it would also help if he would SPELL in Spanish correctly!
 The word is, of course, 'después', not 'despues'! Likewise, it is no
 sé, not no se.

 Sheesh!

 But I assume what he reallymeant was something like:

  I have a problem when I start the Android emulator,
  either version 2.3.1 or any other after it is launched in Windows 7
  ['it' = Android SDK] for the latest version I have this problem,
 Linux
  Ubuntu 11.04 Android SDK  attempt to launch and I do not know if it
 is the
  connection or what but no progress but when you start to launch, and
  because of this I can not test the application I am developing.

 And yes, I am amazed that Google Translate could not translate the
 tense correctly on that last verb. The tenses are identical to English
 throughout this passage!


 On Jul 14, 2:45 pm, Filip Havlicek havlicek.fi...@gmail.com wrote:
  The official language for this group is English as far as I know.
 
  2011/7/14 Jonathan Fajardo Roa jfajardor9...@gmail.com Buenos días
 señores,
 
   Tengo un problema cuando voy a iniciar un emulador Android con la
   versión 2.3.1 y cualquiera, despues de que actualice en Windows 7 el
   SDK de Android por la ultima versión tengo este problema, por Linux
   Ubuntu 11.04 intento actualizar el SDK Android y no se si es la
   conexión o que pero no avanza nada cuando empieza a actualizar, y pues
   debido a esto no puedo probar las aplicaciones que voy elaborando.
 
   Gracias a toda la comunidad.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Eclipse - Android - can't connect my device to Eclipse

2011-07-15 Thread Nick Risaro
On linux you need a little script, check the developers site, all the info
is in there.

On Thu, Jul 14, 2011 at 8:27 PM, TreKing treking...@gmail.com wrote:

 On Thu, Jul 14, 2011 at 8:31 AM, Zwiebel hunzwie...@gmail.com wrote:

 What can I do? Thanks for help!


 If you're on Windows, you need drivers.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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