[android-beginners] Re: Problem when writing a file that was deleted in meantime or not enough space left on SDCARD

2010-04-27 Thread vanesa
I close the stream when download is finished. There is now exception. try{ while( (c = in.read(chunk, 0, 2)) != -1) { out.write(chunk, 0, c); } } catch(IOException ex) { Log.d("ex",ex); } try{ if(dos != null) { out.flush(

[android-beginners] Lighting effects in android

2010-04-27 Thread satish bhoyar
Hi all, I am developing one app where I need light effect. the exact is it should give a feel like light is traveling. I know one way i.e. by using GLSurfaceView, but is there any other way to achieve this ? because GLS might be costly i guess. Light is as a ray. please help or suggest on this

Re: [android-beginners] Problem when writing a file that was deleted in meantime or not enough space left on SDCARD

2010-04-27 Thread TreKing
On Tue, Apr 27, 2010 at 10:37 AM, vanesa wrote: > How can I avoid such situation ? > Maybe try closing the stream and catching any exceptions that get thrown there? - TreKing - Chicago transit track

Re: [android-beginners] Layout Scaling

2010-04-27 Thread Justin Anderson
* > I would like to know that is there any way to scale the layout so that > activity/application's UI fits in to provided rendering area? * A layout like LinearLayout, GridLayout, or RelativeLayout? *> I come across with the WindowManager.Layout.FLAG_SCALED in SDK but don't know which is the most

[android-beginners] Problem when writing a file that was deleted in meantime or not enough space left on SDCARD

2010-04-27 Thread vanesa
My application downloads a file from internet and saves it on the SDCard. I use FileOutputStream class to write data in the file. I encountered a problem when other application deletes the file or fills the SDCARD while the applications writes the file. "write" method doesn't throw any exception, f

[android-beginners] Re: Problem - How to copy .apk to /system/app ???

2010-04-27 Thread Chih-Wei
Please send your question of Android-x86 to android-x86 discussion group. You can't modify /system of android-x86, since it's absolutely read-only. But you can install apk to android-x86 like an android phone. See AppHowto in android-x86 website. For the adb issue, it's in the Android SDK. On 4月

[android-beginners] Layout Scaling

2010-04-27 Thread Sanjay
Hello, I would like to know that is there any way to scale the layout so that activity/application's UI fits in to provided rendering area? I come across with the WindowManager.Layout.FLAG_SCALED in SDK but don't know which is the most appropriate class in Android Framework to use it? Could anyo

Re: [android-beginners] Binding spinner to a list of custom objects

2010-04-27 Thread TreKing
On Mon, Apr 26, 2010 at 5:32 AM, mitch wrote: > Is it doable (and easily) or and I just missing stuff on my (possibly bad) > searches. > Yes, it's doable. Look at the adapter the spinner uses. If you want a better answer, you need to ask a better question. --

Re: [android-beginners] Re: menu.add - Cannot be resolved

2010-04-27 Thread TreKing
On Tue, Apr 27, 2010 at 2:21 PM, amitait wrote: > What is "private static final int" ? (Or, where can I read about it?) How about on "the internet"? http://lmgtfy.com/?q=java+private+static+final+int I know this is a beginners forum ... but .

Re: [android-beginners] Re: menu.add - Cannot be resolved

2010-04-27 Thread Mark Murphy
amitait wrote: > Thank you! > > What is "private static final int" ? (Or, where can I read about it?) You probably should pick up a book on Java (e.g., _Head First Java_), or read the Wikibook. private means the data member is only accessible from its class. static means the data member lives o

[android-beginners] Re: menu.add - Cannot be resolved

2010-04-27 Thread amitait
Thank you! What is "private static final int" ? (Or, where can I read about it?) -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/andro

[android-beginners] Re: Extremely slow application loading to emulator

2010-04-27 Thread Pinheiro
SOLVED! Closed Eclipse, created a new Workspace, imported the project and now it's OK :-| -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagg

[android-beginners] Monkey

2010-04-27 Thread Rc3375
I've have one app that I would like to test out using Adb and MONKEY or zipalign. I use WIN7 and searched the entire HD for both MONKEY & zipalign...no such program(s) are found. I tried ADB (forget the exact syntax) with Monkey, thinking that Monkey is internal to adb, but couldn't get it to w

Re: [android-beginners] Re: Why does my app "Stop Unexpectedly" every time I remove an item from myListView.

2010-04-27 Thread Justin Anderson
Point well taken... ;-) I will try to provide a little more info on how to do stuff like this in the future. At the same time though, for questions like this that have been answered over and over I try to provide just enough information that allows them to figure it out on their own. If you sear

[android-beginners] Re: Why does my app "Stop Unexpectedly" every time I remove an item from myListView.

2010-04-27 Thread Indicator Veritatis
I know Justin has been helping people in this forum for a long time, so perhaps he is tired of repeating it, but since this is a beginner's group, it is worth repeating the detailed steps for how to do this. To see the Logcat output in Eclipse, it is easiest to: 1) switch to DDMS perspective: (Wi

Re: [android-beginners] menu.add - Cannot be resolved

2010-04-27 Thread Justin Anderson
And you are going to have the same problem for MENU_QUIT as well. public class HelloAndroid extends Activity { private static final int MENU_NEW_GAME = 0; private static final int MENU_QUIT = 1; // other stuff for the class } -

Re: [android-beginners] menu.add - Cannot be resolved

2010-04-27 Thread Justin Anderson
you haven't declared MENU_NEW_GAME to be anything... public class HelloAndroid extends Activity { private static final int MENU_NEW_GAME = 0; // other stuff for the class } -- There are only 10 types of people in the

[android-beginners] menu.add - Cannot be resolved

2010-04-27 Thread amitait
Hi all. I'm doing my first steps with developing for the Android and I'm already stuck. I had this code: package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; public class HelloAndroid extends Activity { /** Called when the activity is first created. */

[android-beginners] Re: inflate xml custom component

2010-04-27 Thread Kitzy
The problem your facing is with this bit of code: LayoutInflater inflate = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); inflate.inflate(R.layout.my_component, null); You are telling it to inflate, but you are not telling it where, or t

[android-beginners] how to unedrline text?

2010-04-27 Thread David Fire
hi i need some help. how i do an underline text? i was looking for it but i didnt foun how... i was here http://www.droiddraw.org/widgetguide.html and on the android site... the best will be if the under line is blue or how can i use an image to underline a text view? thanks!!! David -- (\__/) (=

[android-beginners] Re: Downgrading 2.1 app to 1.5

2010-04-27 Thread Kitzy
Can you list for me all your import statements in ReadWebpage.java -Kitzy On Apr 26, 3:13 am, MartinM wrote: > >In your 'etc', does that include turning on Build Automatically? > > Yep. But now turned off. > > >And I hope that was a typo when you said "R.java.layout.main". It should be > >just

[android-beginners] Extremely slow application loading to emulator

2010-04-27 Thread Pinheiro
Hi! I'm using Eclipse with the latest Android SDK and I'm having a problem with software testing on the emulator: the installation takes longer and longer! I've taken out everything that's not essential to the project, done a Project->Clean but nothing helps. Right now it takes 3 minutes just to in

Re: [android-beginners] Problem - How to copy .apk to /system/app ???

2010-04-27 Thread Rubén González
He is running Android-x86, a "full" OS instead of the emulator ( http://www.android-x86.org/ ). To sridevi: You are not supposed to modify the system folder. Just install the apps to /data/app. On Tue, Apr 27, 2010 at 9:58 AM, Sebastián Treu wrote: > On Mon, Apr 26, 2010 at 12:09 AM, sridevi w

Re: [android-beginners] Problem - How to copy .apk to /system/app ???

2010-04-27 Thread Sebastián Treu
On Mon, Apr 26, 2010 at 12:09 AM, sridevi wrote: > I have installed Android x86 on my PC from LiveCD. I have also mounted > the sdcard. But I am not able to copy the .apk file from SDCARD into / > system/app folder in Android. Kindly help. in the sdk directory you should have tools/ddms. When run