[android-beginners] Re: SQLite database samples

2008-11-25 Thread Nanard

 The NotePad example in the SDK should be up to date and working.

Is there no easyest way of using SQLite ?  with less code ?
Without ContentProvider ?


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



[android-beginners] Android on Motorola A810...

2008-11-25 Thread Sameer Oak
Hello ALL,

Can Android be ported on Motorola A810? Has anyone done this?
A little I have come to know that Android was ported on Motorola Ming A1200,
the predecessor of Motorola A810.

Regards,
- sam.

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



[android-beginners] Re: New To App Development

2008-11-25 Thread g1port.com

Just go to http://code.google.com/android/documentation.html
for official documentation and start from very top on the left pane.
Just follow links, do all sample projects (hello android, notepad).

After you have finished, download sample Lunar Lander game project and
study its code - maybe u can try to create a similar game for
yourself.

This all my take a few weeks, but after you have finished, you will
have giant step in starting android development.


On Nov 25, 1:01 am, Six6Sicks [EMAIL PROTECTED] wrote:
 I'm looking to make some Apps for my G1. My knowledge is NONE, ZERO,
 ZIP, ZILCH.
 Where do I start? Where can I find information on how to start making
 Apps?

 I know this is a hard process, but I have more than enough confidence
 in myself that I can pick this up if I can just learn where to start.

 Any help would be greatly appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android on Motorola A810...

2008-11-25 Thread Sameer Oak
Hello ALL,

Can Android be ported on Motorola A810? Has anyone done this?
A little I have come to know that Android was ported on Motorola Ming A1200,
the predecessor of Motorola A810.

Regards,
- sam.

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



[android-beginners]

2008-11-25 Thread baba vali
hi all
i am tring to read doc,ppt,xls files

i am able to read only txt files

some body shud have done can anybody tell me that

regards

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



[android-beginners] Re: SQLite database samples

2008-11-25 Thread Mark Murphy

Nanard wrote:
 The NotePad example in the SDK should be up to date and working.
 
 Is there no easyest way of using SQLite ?  with less code ?
 Without ContentProvider ?

You do not need to wrap your SQLite access in a ContentProvider.

However, most tutorials are set up to demonstrate database access in 
some context, and that context might call for a ContentProvider, 
Service, or something. In the case of Notepad, I suspect they wanted to 
demonstrate the use of a ContentProvider.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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



[android-beginners] Re: Android on Motorola A810...

2008-11-25 Thread corjuela

You can look for this in
http://groups.google.com/group/android-porting
it is a group dedicated to porting the Android to different hardware
Good luck...

On Nov 25, 5:06 am, Sameer Oak [EMAIL PROTECTED] wrote:
 Hello ALL,

 Can Android be ported on Motorola A810? Has anyone done this?
 A little I have come to know that Android was ported on Motorola Ming A1200,
 the predecessor of Motorola A810.

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



[android-beginners] for help

2008-11-25 Thread along meng

hello:

 I  have install the plugin called  ADT in eclipse   (in windows
os) and download the SDK
   then add the path to the SDK tools directory to my path ,
   update my Eclipse preferences to point to the SDK directory.
   But when I create an android project ,there couldnot find the
Android Library.How should i do!!

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



[android-beginners] How to Layout

2008-11-25 Thread Brad Gies
 

Ok, I'm finally frustrated :-). 

 

How do I layout a single row with a TextView, an EditText, and a Button such
that the TextView is on the left (wrap_content), the Button (also
wrap_content) is on the right and the EditText fills all the available space
in between?

 

It seems that it should be such an easy thing to do, but I can't seem to get
it to work exactly the way I want it. I don't want to hard code the pixels
because then I need two separate layouts for the portrait and landscape
views, and the problem of it looking funny on the next phone if the screen
width is not the same. 

 

Anyone want to save the little hair I have left? 

 

Thanks.

 

 

Sincerely,

 

Brad Gies

 

 

-

Brad Gies

27415 Greenfield Rd, # 2,

Southfield, MI, USA

48076

-

 

Moderation in everything, including abstinence

 


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



[android-beginners] call compileStatement failed

2008-11-25 Thread xiaofeng.lei...@gmail.com

Hi all,

I want to encapsulate a function for checking the count of records
satisfying some condition in some table, the code is just like
following shown:

String sql = select count(*) from ?;;
SQLiteStatement state = mDb.compileStatement(sql);

state.bindString(0, TABLE_NAME);
return state.simpleQueryForLong();

But unfortunately, an exception is threw when the command
compileStatement is executed. I've checked the output log, and find
following log:

android.database.sqlite.SQLiteException: near ?: syntax error: ,
while compiling: select count(*) from ?;

But if I replaced the ? with the actual table name, it works fine.

Could anyone help me for this issue?

Thanks,

Stanley

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



[android-beginners] Re: Can I write apps for myself and not for android market?

2008-11-25 Thread Protocol-X

yeah what they said. keep in mind if u have godaddy you will not be
able to install it if your not connected to wifi   USB is the easiest
and fastest though  just install the driver from the sdk site close
and reopen eclipse   and launch it like u would on the emulator
instead itll load to ur device

On Nov 24, 8:57 am, Dorn Hetzel [EMAIL PROTECTED] wrote:
 In order to do do we just put the signed .apk on our own website
 instead of uploading it to market ?

 On Mon, Nov 24, 2008 at 6:19 AM, Adam Connors [EMAIL PROTECTED] wrote:
  Absolutely possible with USB install as stated. You can also write your own
  apps and distribute them from your own Web site (for your own use of for
  other people's).

   -- e.g. you don't *have* to use Market for distribution if you don't want
  to... Market is just a handy distribution point not a requirement. Though
  people installing your app will need to check Settings - Application -
  Unknown Sources checkbox, but they are prompted to do this when they attempt
  to install from your Web site so it's still a pretty smooth experience.

  Go buy that phone -- you know you want to :)

  On Sun, Nov 23, 2008 at 9:37 PM, misha.thegoat [EMAIL PROTECTED]
  wrote:

  I know you can develop apps for the android market... but can I write
  them for my own personal use? To use on my Google phone (if I should
  buy one, this is a big selling point). Or is this impossible..

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



[android-beginners] Re: Importing Jars

2008-11-25 Thread Zhang Bo-E13782
Same to me, I`ve tried this in eclipse, also failed.
Anyone could help on this?
 
Thanks in advance
Bruce
 
Zhang Bo
Motorola(China) Technologies Ltd.
No.1 WangJing East Road, Chao Yang District, BeiJing 100102, P.R.China
Email:[EMAIL PROTECTED]
Office:86-10-84731103
P Thanks for considering our environment before any printing. 
 



From: android-beginners@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jeremy Kalinowksi
Sent: Friday, November 21, 2008 2:47 AM
To: android-beginners@googlegroups.com
Subject: [android-beginners] Re: Importing Jars


Yes I have tried this and it doesn't seem to work.


2008/11/20 Adam Connors [EMAIL PROTECTED]


Did you try this ? 


In eclipse: right click - Build path - Configure Build Path

Add jars to libraries tab (I think you've already done this)

Click tab Order and Export and check all the jars that you want to 
export into the compiled apk file... Then they'll be accessible in the 
application when you run in emulator or device.


2008/11/20 jeremy Kalinowksi [EMAIL PROTECTED] 


I do use Eclipse for development. I have imported them into 
project and I references them using Add jars in the Java Build Path menu for 
the project Preferences. I import as usual in my Java files. Everything 
checks out in the java file, no errors. Thanks for helping.
Sincerely,
Jeremy


2008/11/19 Lawrence Samantha [EMAIL PROTECTED] 


Are you developing using eclipse? If they are 
inaccesible, it shouldn't build. How do you reference it? 


2008/11/19 jeremy Kalinowksi [EMAIL PROTECTED] 


They are on the java build path but it seems 
that in the emulator they are unaccessible. 


On Wed, Nov 19, 2008 at 3:12 AM, 心蓝 [EMAIL 
PROTECTED] wrote:


I just wanna get the answer!!


2008/11/19 Dennis Wilmsmann [EMAIL 
PROTECTED] 



Are the JAR files shown under 
Referenced Libraries in eclipse and
included inside the Java Build Path of 
your project?

Dennis


On 18 Nov., 18:48, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:
 Hey all,
 I wanted to know how to bring in 
external Jars into the Android
 Application? The issue I'm having is 
that I have imported all the Jars
 that I want however when I run my 
program it doesn't seem to be able
 to access them. Any ideas?
 Sincerely,
 Jeremy










-- 
Lawrence Samantha 















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



[android-beginners] Android on Motorola A810...

2008-11-25 Thread Sam Android
Hello ALL,

Can Android be ported on Motorola A810? Has anyone done this?
A little I have come to know that Android was ported on Motorola Ming A1200, 
the predecessor of Motorola A810.

Regards,
- sam.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Interfacing with AndNav (via Intent-Broadcast)

2008-11-25 Thread plusminus

Hello Developers,

I want to introduce the nice and small AndNav-API to you all. With a
tiny snippet you can make any application use the full navigation
capabilities of AndNav2 and or AndNav1. This API can be useful for any
application, especially all kinds of Piggyback- or FriendFinder-
Applications!

See sample code here:
http://www.andnav.org/index.php/component/content/article/30-the-community/81-interfacing-with-andnav

API-Talk:
http://www.andnav.org/index.php/community-forum?task=viewforumid=8

We are open to all suggestions!

Best Regards,
Nicolas  Pascal
# http://www.andnav.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to Layout

2008-11-25 Thread Adam Connors
android:layout_weight is the key... This will probably be useful:

http://androidrecipes.blogspot.com/2008/11/simple-form-layouts.html


On Tue, Nov 25, 2008 at 6:30 AM, Brad Gies [EMAIL PROTECTED] wrote:



 Ok, I'm finally frustrated J.



 How do I layout a single row with a TextView, an EditText, and a Button
 such that the TextView is on the left (wrap_content), the Button (also
 wrap_content) is on the right and the EditText fills all the available space
 in between?



 It seems that it should be such an easy thing to do, but I can't seem to
 get it to work exactly the way I want it. I don't want to hard code the
 pixels because then I need two separate layouts for the portrait and
 landscape views, and the problem of it looking funny on the next phone if
 the screen width is not the same.



 Anyone want to save the little hair I have left?



 Thanks.





 Sincerely,



 Brad Gies





 -

 Brad Gies

 27415 Greenfield Rd, # 2,

 Southfield, MI, USA

 48076

 -



 Moderation in everything, including abstinence



 


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



[android-beginners] URLSpan onClick issue

2008-11-25 Thread Mark Dodgson
Hi,

I am new to java and developing on android so am trying out a few little
ideas.

I am trying to make some text in a TextView or EditText be clickable just
like a hyperlink. There doesnt seem to be too much available on the web but
here is what I have so far.

public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);

 final EditText tv = (EditText)findViewById(R.id.txtView);
 //tv.setOnClickListener(txtClicked);

 Spannable span = (Spannable) tv.getText();
 URLSpan url = new URLSpan(www.google.co.uk) {

 /* (non-Javadoc)
  * @see
 com.loosenoose.hyperlinktext.myURLSpan#onClick(android.view.View)
  */
 @Override
 public void onClick(View widget) {
 // TODO Auto-generated method stub
 tv.setText(URL Clicked!);

 super.onClick(widget);
 }

 };
 span.setSpan(url, 0, 5, Spannable.SPAN_INCLUSIVE_INCLUSIVE);


My problem is that the onClick event never seems to be called when
debugging. Can someone please help?

cheers

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



[android-beginners] Re: adb not seeing my G1

2008-11-25 Thread Ian

Check this out:

http://groups.google.com/group/android-developers/browse_thread/thread/a63423889c2c06a0/1124ebe4f8882c66#1124ebe4f8882c66

and look for the post by me on Nov 14.

Ian

On Nov 24, 11:47 am, Kenneth [EMAIL PROTECTED] wrote:
 I am using android-sdk-linux_x86-1.0_r1 on SuSE 10.3.  However, I
 cannot seem to get adb to see the phone when it is plugged in.  If I
 do adb devices, I get an empty list back.  When I plug the phone in,
 the following messages appear in /var/log/messages:
 Nov 24 12:25:27 Socrates kernel: usb 2-4: new high speed USB device
 using ehci_hcd and address 7
 Nov 24 12:25:28 Socrates kernel: usb 2-4: new device found,
 idVendor=0bb4, idProduct=0c02
 Nov 24 12:25:28 Socrates kernel: usb 2-4: new device strings: Mfr=3,
 Product=2, SerialNumber=1
 Nov 24 12:25:28 Socrates kernel: usb 2-4: Product: Android Phone
 Nov 24 12:25:28 Socrates kernel: usb 2-4: Manufacturer: HTC
 Nov 24 12:25:28 Socrates kernel: usb 2-4: SerialNumber: HT846GZ10122
 Nov 24 12:25:28 Socrates kernel: usb 2-4: configuration #1 chosen from
 1 choice
 Nov 24 12:25:28 Socrates kernel: scsi3 : SCSI emulation for USB Mass
 Storage devices
 Nov 24 12:25:28 Socrates kernel: usb-storage: device found at 7
 Nov 24 12:25:28 Socrates kernel: usb-storage: waiting for device to
 settle before scanning
 Nov 24 12:25:29 Socrates kernel: scsi 3:0:0:0: Direct-Access
 HTC      Android Phone    0100 PQ: 0 ANSI: 2
 Nov 24 12:25:29 Socrates kernel: sd 3:0:0:0: [sdb] Attached SCSI
 removable disk
 Nov 24 12:25:29 Socrates kernel: sd 3:0:0:0: Attached scsi generic sg2
 type 0
 Nov 24 12:25:29 Socrates kernel: usb-storage: device scan complete

 Obviously, the kernel sees the phone.  Why does adb not?

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



[android-beginners] Can not find .apk file when I add external .jar files

2008-11-25 Thread Rankith

I imported some .class files to my project, that seems to have worked
fine. But then I needed to add some .jar files for those .class files
I imported. I was getting this error:

The type javax.jws.soap.SOAPBinding$ParameterStyle cannot be resolved.
It is indirectly referenced from required .class files
The type javax.xml.bind.annotation.XmlAccessType cannot be resolved.
It is indirectly referenced from required .class files

So I looked around and found what jar files had those. Turns out it
was:
axis2-jws-api-1.3.jar
and
jaxb-api-2.0.jar

I downloaded them since I couldn't find them on my computer. I just
threw them into my jre6 directory. Now the problem arises when I try
to add them to my project. I goto the java build path and hit add
external jars and select them. But now when I compile it it gives me
the error:

Could not find Jini2.apk!

Jini2 is the name of my project. I do not get that error without
the .jar files being included in my project. What is causing this? And
how can I fix it?

Im using Eclipse 3.2

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



[android-beginners] Sync Microsoft Outlook Email!

2008-11-25 Thread Vanessa Motley
Hello Everyone,

I am trying to find a way to sync my new G1 phone with my work email
Microsoft Outlook.  I found a way to sync my contacts and calendar but no
email???  Please help!


Vanessa

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



[android-beginners] Button Resize Issue

2008-11-25 Thread Tim

I'm trying to resize a button placed on DynamicTableLayout an extended
TableLayout.

I've overloaded the onSizeChanged event of the TableLayout to resize
the button using:

Button button = (Button)((Activity)_context).findViewById
(R.id.Button1);

ViewGroup.LayoutParams params = button.getLayoutParams();
params.width = width;
params.height = height;
button.setLayoutParams(params);

This executes; however, the button is not resized.  I've also tried
the button.setWidth and button.setHeight functions.  Could someone
point me in the right direction?

thanks,
tim

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



[android-beginners] Re: New To App Development

2008-11-25 Thread Michael Martin - MM Agency

I concur - I HIGHLY recommend Mark's book when first starting out at Android
development - The Busy Coder's Guide to Android Development

Michael Martin
Google And Blog
http://www.googleandblog.com/

-Original Message-
From: Mark Murphy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2008 4:46 AM
To: android-beginners@googlegroups.com
Subject: [android-beginners] Re: New To App Development


David Orme wrote:
 ...and IMO Mark's book is the best.
 
 -Dave Orme

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml



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



[android-beginners] Home Sample has arrived and I can't make it go away

2008-11-25 Thread [EMAIL PROTECTED]

Hi,

I'm trying to working though the sample applications - got the
HelloAndriod level app working fine.

I progressed to /samples/Home, and ran it (my laptop is connected to
the G1 via USB) and now each time I press the home button on the G1
I'm need to choose between

Home and
Home Sample

How do I remove/delete/uninstall what I've done?

The other test apps just appear in the pull-out tab of applications on
the handset and I can pick them up and dump them into the 'trash'.

The new home thing doesn't.

A google search for Home Sample and a mixture of other works wasn't
particularly useful... I'm hoping I'm not the first person to get to
this point.

Dave

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



[android-beginners] onStart argiment change

2008-11-25 Thread steve_macleod

Hi,
I am attempting to get the following service to work, and running into
problems. Seemingly the onStart function has updated parameters. It is
now expecting the Intent and an integer. How do I get the intent to
pass in to the function?

thanks

package com.stevemacleod.prankapp;

import java.io.IOException;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Binder;
import android.media.MediaPlayer;

public class PrankService extends Service
{
MediaPlayer player = null;
String str;
 public IBinder onBind(Intent intent)
 {
return null;
 }

public void onStart(int startId, Bundle arguments)
{
super.onStart(startId, arguments);
try
{
player = MediaPlayer.create((Context)this, 
R.raw.groove_arm);
player.start();
} catch (IOException e)
{
System.out.print(Exception while starting audio);
}
}
public void onDestroy()
{
super.onDestroy();
player.stop();
}

}

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



[android-beginners] Re: Home Sample has arrived and I can't make it go away

2008-11-25 Thread Romain Guy

 How do I remove/delete/uninstall what I've done?

Go in Menu  Settings  Applications  Manager Applications and uninstall it.

 The other test apps just appear in the pull-out tab of applications on
 the handset and I can pick them up and dump them into the 'trash'.

This does NOT uninstall applications. It's used only to delete
shortcuts from the desktop, nothing more.

-- 
Romain Guy
www.curious-creature.org

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