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 wrote: > if (item.equalsIgnoreCase("I. The Global Business Environment")); > Should be if (item.equalsIgnoreCase("I. The Global Business Environment")) -- You received

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 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 toget

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

2011-09-28 Thread Nick Risaro
On Wed, Sep 28, 2011 at 12:50 PM, Keith 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 stil

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 "Androi

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

2011-09-20 Thread Nick Risaro
; > mant thanks > > On Sep 20, 2:50 am, Nick Risaro wrote: > > Read thishttp:// > download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html(or<http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html%28or>a > > newer version) and try to implement the f

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" wrote: > I am currently working on an app that takes 4 user input values and > puts them thr

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 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 Risa

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 wrote: >StringBuffer fileBuf = new > StringBuffer(); >String tripName = null; >String origin = null; >

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 wrote: > Sir > > Would you like a glass of beer along with this also?? > > > On Sat, Sep 17, 2011 at 2:16 AM, david wrote: > >> Hello, >> I am looking for a Android GUI for cheap, rapid solution for >>

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

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.mobi

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

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 5:54 PM, petter 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 Goog

Re: [android-developers] Re: OutOfMemory exceptions

2011-09-11 Thread Nick Risaro
On Sun, Sep 11, 2011 at 4:11 AM, gjs 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

Re: [android-developers] remarkable slowness

2011-09-04 Thread Nick Risaro
On Sun, Sep 4, 2011 at 9:02 PM, bob wrote: > I am seeing some remarkable slowness in code like this: > >String html = " type=\"text/css\">tr:nth-child(odd) > { background-color: rgba(0, 0, 0, 1.0); }" >+ " tr:nth-child(even) { background-color: > rgba(0, 0,

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 wrote: > Go to the menu "Window -> Show View -> Problems" to see what the > problem is. > > On 2 Sep, 11:25, dhanaraj chaudhari wrote: > > Hello, > > > > I am

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 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 c

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 wrote: > 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; > > ---

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 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 Devel

Re: [android-developers] Read ms word document

2011-08-28 Thread Nick Risaro
On Aug 28, 2011 10:20 PM, "imsmooth" 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 Go

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" wrote: > Use a Map. See java.util.Map and java.util.

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" 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

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 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 o

Re: [android-developers] quotes

2011-08-24 Thread Nick Risaro
On Wed, Aug 24, 2011 at 5:32 PM, bob 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 ar

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 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,

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 fr

Re: [android-developers] Listview with image

2011-08-20 Thread Nick Risaro
On Sat, Aug 20, 2011 at 10:03 PM, TreKing 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.c

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 functio

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 t

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 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 and

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" 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

Re: [android-developers] Andriod Ebooks

2011-08-18 Thread Nick Risaro
On Thu, Aug 18, 2011 at 12:09 AM, Moul Kakada 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 Go

Re: [android-developers] Translation handling

2011-08-17 Thread Nick Risaro
On Wed, Aug 17, 2011 at 4:07 PM, Mark Murphy wrote: > 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 Group

Re: [android-developers] Translation handling

2011-08-17 Thread Nick Risaro
On Wed, Aug 17, 2011 at 3:26 PM, Daniel Rindt wrote: > 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

Re: [android-developers] Glad to help

2011-08-17 Thread Nick Risaro
On Wed, Aug 17, 2011 at 7:45 AM, Luis Ramirez wrote: > 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

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-dev

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

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 > Hola, quiero desarrollar una aplicación para Android q use Realidad > Aumentada usando patrones de textura, inicialmente instalé Eclipse > pero el simulador de las aplici

Re: [android-developers] logic

2011-08-16 Thread Nick Risaro
On Tue, Aug 16, 2011 at 9:14 AM, TreKing 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 andro

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

2011-08-15 Thread Nick Risaro
Here is all you need http://tinyurl.com/42r8nb2 On Fri, Aug 12, 2011 at 1:53 PM, mahdi 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 "Androi

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 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 appl

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" 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 eas

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" wrote: > How to setup Android Development environment on Windows XP 2000 > Professional SP3 ,

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 wrote: > " 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 *mus

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

2011-08-10 Thread Nick Risaro
On Wed, Aug 10, 2011 at 4:29 PM, RLScott 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"); /

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 subs

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 wrote: > On Wed, Aug 10, 2011 at 7:19 AM, sktniran wrote: > >> 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 bec

Re: [android-developers] help with sdk install

2011-08-08 Thread Nick Risaro
On Tue, Aug 9, 2011 at 12:00 AM, TreKing wrote: > On Fri, Aug 5, 2011 at 10:18 AM, Old Orange Juice wrote: > >> 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 actua

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 wrote: > Bumping as a last resort before buying another phone :( > > -- > You received this message because you are subscribed to the Google > Groups

Re: [android-developers] Arrays and android

2011-08-07 Thread Nick Risaro
On Sun, Aug 7, 2011 at 6:24 AM, Romain Guy 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

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

2011-08-06 Thread Nick Risaro
(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 P

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-deve

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 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

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 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 probl

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 wrote: > I've been in contact with Mar

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 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

Re: [android-developers] Need Help

2011-08-04 Thread Nick Risaro
e 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 wrote:

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 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 hav

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 wrote: > Hello, > I'm

Re: [android-developers] Need Help

2011-08-04 Thread Nick Risaro
Why?? On Wed, Aug 3, 2011 at 10:46 AM, Deepak Sharma 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

Re: [android-developers] EMAIL & SMS

2011-08-04 Thread Nick Risaro
Cool, godspeed On Thu, Aug 4, 2011 at 10:51 AM, arun kumar 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" gro

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 wrote: > TreKing, would you mind giving s

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 wrote: > On Tue, Aug 2, 2011 at 3:12 PM, Morning Glorie wrote: > >> 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 mobil

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 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 t

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 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

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 wrote: > Hi, > I am using an add-on

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

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 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 c

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@

Re: [android-developers] Re: Spurious "Location ... not been setup" error message on Window>Android 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

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 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 > ... > > -

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

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

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

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 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

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 wrote: > Someone, please? > > [ ]s > > > On Thu, Jul 28, 2011 at 12:51 AM, Dalton Cézane wrote: > >> Anyone? Is this kind

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 wrote: > Hej, > > I am having problem in setting it up and running for the first time. > Each time when I

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 wrote: > the info - The import ca cannot be resolved > > On Jul 28, 8:49 pm, Nick Risaro wrote: > > Did you read the info about the error? W

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 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

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 wrote: > our program need to ping a host repeatly -- You received this message because you are subscribed to the Google Grou

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

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

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 wrote: > I have a working app with a working debug APK file generated by > Dreamweaver CS5.5 and PhoneG

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 wrote: > > A checked excepti

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 wrote: > By now, it's pretty much universally accepted that checked exceptions were > a bad idea. An exception is an

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 ex

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 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@googlegrou

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.lebes

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

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 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 a

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 < chr

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 uns

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 wrote: > Well, the pr

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.andr

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 wrote: > On Thu, Jul 14, 2011 at 8:31 AM, Zwiebel wrote: > >> What can I do? Thanks for help! > > > If you're on Windows, you need drivers. > > >

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 th