when i tried after changing the code like:
catch (IOException ioe) {
return ioe.toString();
}
Giving error:
java.io.FileNotFoundException:
/data/data/hello.world/files/test.txt
online samples are giving the same code...am i missing some
setting/permission? pls help
On Aug 21, 6:30 pm, Mark
You have to change the data structure that stores the data for the
listView and then call notifyDataSetChange();
Let;s say you are using and ArrayList lst, you would do
something like this:
public void getRemoteData() {
// .. get data and put it in the array list
adapter.notifyDataSetCh
I don't know what's causing the error in your code but it seems like
you are using an older version of Android (maybe older than 1.0). I
would recommend upgrading your Android SDK and using the method
suggested in this link: http://moazzam-khan.com/blog/?cat=26&paged=2
.
- Moazzam
http://moazzam-
And there's no Android 2.0 SDK... The next version is 1.6.
On Fri, Aug 21, 2009 at 5:34 PM, Justin Anderson wrote:
> You can always download the source and build it yourself...
>
> On Aug 21, 2009 12:31 PM, "androidgoo" wrote:
>
>
> Why isn't Google releasing a beta version of Android 2.0 SDK fo
On Fri, Aug 21, 2009 at 2:00 PM, GlennovitS wrote:
>
> Hey everybody..
>
> I'm just startet writing code for android.. And then I need to have
> some if-sentences.. (sorry for my english) they look like this
>
>
>
> @Override
>public void onCreate(Bundle savedInstanceState) {
>super.o
You can always download the source and build it yourself...
On Aug 21, 2009 12:31 PM, "androidgoo" wrote:
Why isn't Google releasing a beta version of Android 2.0 SDK for
developers? Don't the folks at The Weather Channel already have it?
It would be nice if developers have the option of worki
Hmm, I wanted to add that the book I referenced has errors in it. I'm
working on the relative alignment section and it references
android:layout_toRight when it should be toRightOf. I tried it in both 1.1
and 1.5 to be sure, and I double checked the example.
Oh well, pressing on. I did notice i
This is a Java mistake that is common. By "common" I mean "one I make
all the frickin time." You should use String.equals() instead, like
if (!codedate.equals("220809")) {
If you just use the != operator then the JVM will compare the string
pointer addresses, not their values.
Yusuf Saib
Zack,
By reading your post I realized its not a perfect world.
May be you can bring perfection to Android tutorials to start with
On Aug 21, 3:20 pm, Zack Podany wrote:
> I have actually found a resource that is working well for me. It's a book
> called The Busy Coder's guide to Android. This
Emre
Now I am using myDB = openOrCreateDatabase("data2",
SQLiteDatabase.CREATE_IF_NECESSARY, null);
before I was doing
myDB = null;
myDB.openOrCreateDatabase("data2", null);
which was absurd
Have to initialize myDB as the prototype of openOrCreateDatabase has
the
return as static
On Aug 20,
Greg Hedin wrote:
> Are activity classes generally ugly or is there a common way that pro
> developers compartmentalize things in their activity classes?
I code in Ruby when I'm not working on Android. All Java code is ugly. ;-)
There are many patterns you can use to help organize an activity. H
I have actually found a resource that is working well for me. It's a book
called The Busy Coder's guide to Android. This explains a lot more
(although not everything) and I find myself starting to learn how things
work. I did go through andbook and found it to be either badly typed or
mis-transl
Finally figured it all out. Here is the final code extended from
ListActivity.
http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
public class HelloListActivity exten
Azelis DeLano wrote:
> So given my experience with outside tutorials that are only of
> peripheral interest to me and the knowledge that Android doesn't use
> the everyday flavor Java VM, is there a Java for Android for Beginners
> style reference anywhere?
Most of the books/tutorials that I hav
As I'm learning about Activities and the components they contain I am
wanting to break things up into components. Is there any list of
guidelines / commonly used organization of Activity classes?
As I add functionality to my apps, things like context menus, options
menus, and references to view o
Hi Azelis and welcome to Android development! :)
I'm pretty much new to programming. Android is my first software
development experience aside from some relational database stuff I did years
ago. I pretty much had to start learning from scratch several months ago.
The first recommendation I ha
Looking around the source I think I found what I was looking for. I
assume that I need to implement onDialogClosed from
DialogPreference.java. But to do this do I need to create a new class
say MyDialogPreference or is there a way to just implement that method
in the class below?
On Aug 20, 3:
Try selecting Use only 2G Networks in Settings->Wireless Controls-
>Mobile Networks. The getNeighboringCellInfo method only seems to be
populated when on 2G for me. On 3G it is empty though the data must be
in the radio stack. I'm using an ADP1 and 1.5 firmware.
On Jul 7, 2:13 pm, kevink wrote:
Hi there, I want to determine if a particular background png is being
used by an imageview at a particular time and want to execute some
action based on the boolean result? How can I determine the current
background resource?
--~--~-~--~~~---~--~~
You received this
I get the same thing... any solutions yet?
On Aug 4, 9:34 am, phill wrote:
> When I open the sample autocomplete_1.xml in eclipse and view in
> layout mode the screen is gray with the message NullPointerException:
> null
>
> It does the same if I create a layout and add an AutoCompleteTextView
>
I want my application to download an update file e.g.
http://www.mysite.com/updates/data.txt
Also, what do I need to add to the manifest?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To
This works for me for an EditText as well. But when I try the same
code for a Spinner I receive a NullPointerException. Both views are in
the same Layout and both views have got an id. Actually, it is exactly
the same code except the kind of the view. Any idea why I got this
exception?
Thanks
O
Why isn't Google releasing a beta version of Android 2.0 SDK for
developers? Don't the folks at The Weather Channel already have it?
It would be nice if developers have the option of working on 1.5 or
2.0.
--~--~-~--~~~---~--~~
You received this message because yo
Hello, my name is Zack but I go by Azelis.
Introduction's out of the way, let's get down to it.
>From my history of programming, I know that languages based on other
languages only make sense if you have extensive background. For
example when I started learning NQC for the Mindstorms Invention
thx.I will try it.
在 2009/8/21 02:23 時, skink 寫到:
>
>
>
> On Aug 20, 11:33 am, Kingcrowley wrote:
>> Weirdly if i press the home button, and then switch back to my app it
>> reopens and the animation is then shown as running!
>>
>> Thanks,
>>
>> David
>
> hi, start your animation when view is
I have a DialogPreference in my Preference Activity and would like to
know which button was pressed. I have implemented the
OnSharedPreferenceChangeListener which does not seem to get triggered
when the DialogPreference is selected. I have also tried
OnPreferenceClickListener but this gets trigg
If you use an emulator try to set your DNS when you start the emulator
./emulator -dns-server
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessa
Hey, I was wondering how to put a string array in a spinner (I can,
using the ArrayAdapter) but I also want to set keys for these also.
But it seems that there's no constructors for that (I may be
mistaken).
I have 2 arrays: {"5123", "7434", "7333", "7345" } and {"City 1",
"City 2", "City 3", "Ci
Hi,
I'm developing my application in Android emulator. In file
AndroidManifest.xml, when I declare uses-permission for INTERNET and
BATTERY_STATS it works without problems. However when I try to use
INSTALL_PACKAGES or BIND_APPWIDGET it does not work. These permissions
don't even appear on packag
I'm guessing the op wants to make their site mobile friendly. Just a
hunch.
Aa01
On Aug 19, 2:04 am, kapil1728 wrote:
> Hi,
>
> I need to make mywebsite developed in PHP(Linux server, MySQL) in
> android. How can I do it?
> Can anyone tell me the steps for it?
>
> Thanks
> Kapil1728
--~--~
Hey everybody..
I'm just startet writing code for android.. And then I need to have
some if-sentences.. (sorry for my english) they look like this
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
I'm sure this must be a simple/dumb thing I'm doing wrong, as I'm
unable to find anyone else posting about this problem...so, my
apologies in advance if this is a stupid question.
Basically, I'm trying to send mock location data to the Android
Emulator via the DDMS application. I can successfully
Hi,
Am I missing something here or are you setting your database pointer to "null"
and yet use it later on to crate/open your database ?
Emre
> Date: Thu, 20 Aug 2009 16:08:35 -0700
> Subject: [android-beginners] database openOrCreateDatabase
> From: gand...@gmail.com
> To: android-b
Hi,
There seems to be two levels of uses-permission, user level and system
level. When I declare to use INTERNET or BATTERY_STATS, in my
AndroidManifest.xml file it works without problem. However when I try
to use INSTALL_PACKAGES, BIND_APPWIDGET it does not work. According
to a [android-beginn
I have implemented onSharedPreferenceChanged in my Preference
Activity, which works for other preference settings but it won't get
triggered when I click on the DialogPreference. I have also tried to
add set the OnPreferenceClickListener to the DialogPreference, which
also works, but this gets tr
good morning :)
i have a problem with registring a reciever as i wish :/
My Problem: there exist links like "irc://someserver.org/channelXY".
When I try to open them with the browser, i always get some kind of
"not found, page maybe moved ..."-message.
Now im wondering if its possible to fetch t
HI
i m facing an urgent issue, as i tried to open the following URL
through coding it gives me exception at OpenStream()..
"illegal Character at home index 0:"
the URL is:
http://viralmesh_iphone.s3.amazonaws.com/lowURcholesterol/myplan.json
i also tried to encode the URL bt no vail...
here
I got this error, too, Could anyone help to give any comment ?
Thanks !
On Aug 4, 10:02 pm, green wrote:
> Hello, I think I have read all threads related to this problem. So I
> have tried the locale stuff, deleted keystore file from .android
> directory etc...Please advise on getting rid of thi
hi,all.
the url
http://developer.android.com/intl/zh-TW/guide/topics/data/data-storage.html
at the first example .
boolean silent = settings.getBoolean("silentMode", false);
setSilent(silent);
I can't find the function setSilent in the manual.
who can tell me? thanks.
--~--~---
What is the adapter class? For an ArrayAdapter, you don't need to call
notifyDataSetChanged() unless you called setNotifyOnChange(false).
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity
Kingcrowley wrote:
> the imgview is not set up in onCreate but later on,
>
hmm, so you setVisibke(View.VISIBLE) and start() your animation on
some external event, right?
did you try to start() your animation in post's Runnable?
post(new Runnable() {...})
pskink
--~--~-~--~~--
The following links should help you get started on game development:
Getting Started in Android Game Development
http://www.rbgrn.net/content/54-getting-started-android-game-development
Writing Real-Time Games for Android
http://code.google.com/events/io/sessions/WritingRealTimeGamesAndr
The Android SDK doesn't support Flash yet.
--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.
On Aug 2
Please also tell me how can i integrate a flash app on android. Can i
do that in the first place. I have also come to know that android
supports flash 10.
On Aug 21, 6:45 pm, Maxood wrote:
> I want to develop and application that will be a clone of flash based
> online game. I need to know what
I want to develop and application that will be a clone of flash based
online game. I need to know what resources would i require as a
beginner. I like to start off with small games. Please let let me know
about tutorials, articles, books, etc.
Thanks,
Maxood
--~--~-~--~~~-
nitin wrote:
> thanks for quick response, I am new to android and self learner. how
> to see the adb logcat or in Eclipse.
http://developer.android.com/guide/developing/tools/ddms.html
http://developer.android.com/guide/developing/tools/adb.html
--
Mark Murphy (a Commons Guy)
http://commonsware
Maybe i didn't explain it well enough..
The main.xml file is used already, so frame_animations_layout.xml is
the layout for this, see below
***
http://schemas.android.com/apk/res/
android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layo
hello sir,
thanks for quick response, I am new to android and self learner. how
to see the adb logcat or in Eclipse.
Is there something wrong in above code or some setting is required?
please help, sample code will be useful.
Thanks
On Aug 21, 3:09 pm, Mark Murphy wrote:
> nitin wrote:
> > he
http://sites.google.com/site/levitralipitor/11
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe
nitin wrote:
> hello,
>
> I want to create a simple text file in data/data/com.my.package/files/
> test.txt. My code is as follows:
>
> private String CreateFile(Context context){
> try{
> FileOutputStream fOut = context.openFileOutput
> ("test.txt",MODE_WORLD_WRITEABLE);
>
hello,
I want to create a simple text file in data/data/com.my.package/files/
test.txt. My code is as follows:
private String CreateFile(Context context){
try{
FileOutputStream fOut = context.openFileOutput
("test.txt",MODE_WORLD_WRITEABLE);
fOut.close();
On Aug 20, 11:33 am, Kingcrowley wrote:
> Weirdly if i press the home button, and then switch back to my app it
> reopens and the animation is then shown as running!
>
> Thanks,
>
> David
hi, start your animation when view is already visible (not in onCreate)
--~--~-~--~~--
52 matches
Mail list logo