[android-beginners] Re: MapView - findViewById returns null

2009-03-18 Thread PRATAP SOLAPUR
Add id to the map view.wat u r doing is wrong..do it like
this



then call..
findViewById(R.id.mapview1)

On Tue, Mar 17, 2009 at 11:33 PM, Francois Stephany <
tulipe.mouta...@gmail.com> wrote:

>
> Hi there,
>
> I'm new to Android development and encounter a small problem. I try to
> retrieve a MapView object in the onCreate method but findViewById
> always returns null.
> Here's the code:
>
> public class MySuperNiceActivity extends MapActivity {
>
>protected MapView mapView;
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
> mapView = (MapView) findViewById(R.main.mapview1);
>   
>   // end
>
> --
> main.xml:
>
> 
> http://schemas.android.com/apk/res/
> android"
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent">
>
>id="@+main/mapview1"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:enabled="true"
>android:clickable="true"
>android:apiKey="woaw this is my dev key"/>
> 
>
> ---
>
> The map is displayed  but the mapView instance variable stays null.
> I guess there's something about the id in the xml files but i dont see
> what...
> any pointers?
>
> Cheers,
>
> Francois
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Why doesn't this add an ID in r.java

2009-01-29 Thread PRATAP SOLAPUR
spelling mistake...make it xmlns:android

On 1/30/09, Kevin J. Brooks  wrote:
>
>
> I have the following code in a separate xml file from main.  When I save
> the file it it does not add webkit into R.java.
>
> 
>xlmns:adroid="http://schemas.android.com/apk/res/android";
>   android:layout_width="fill_parent"
>   android:layout_height="fill_parent"/>
> On Tue, 2009-01-13 at 18:04 +0530, PRATAP SOLAPUR wrote:
> >
> > import
> >
> > android.app.Activity;
> >
> > import
> >
> > android.os.Bundle;
> >
> > import
> >
> > android.webkit.WebView;
> >
> > public
> >
> > class BrowserDemo1 extends Activity {
> >
> > WebView
> >
> > browser;
> >
> > @Override
> >
> > public void onCreate(Bundle icicle) {
> >
> > super.onCreate(icicle);
> >
> > setContentView(R.layout.
> >
> > main);
> >
> > //browser.getSettings().setJavaScriptEnabled(true);
> >
> > browser=(WebView)findViewById(R.id.webkit);
> >
> > browser.loadUrl("http://www.google.com";);
> >
> > }
> >
> > }
> >
> >
> > On 1/13/09, Bear34238  wrote:
> >
> > I know this is something simple but it has eluded me.  Could
> > someone
> > provide a code example of launching the web browser inside an
> > adroid
> > Application.>
>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: how to move from one screen to another ?

2009-01-29 Thread PRATAP SOLAPUR
U should write another activity that displays ur next view n make a call to
it by using startActivity().or u can just change the view of current
activity on button click by calling setContentView()...

On 1/28/09, Ashwani Rao  wrote:
>
> Hi,
>
> i have created an activity which brings an UI with buttons for various
> actions.
> I want to associate various actions/call with these buttons.
> How i can do this ?
> For example i  click a button the then i should move to different screen.
>
> Reagrds,
> Ashwani
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: regarding game creation

2009-01-29 Thread PRATAP SOLAPUR
go through the example that are shifted with the sdku may get
some  idea.

On 1/29/09, Ashwani Rao  wrote:
>
> Hi,
>
> I trying to develop a small game.
> I have to draw a screen (in 2D) which will have a backgroung and will
> consists of other elements which i should be able to control through
> keystrokes.
> For example the screen will have a ball and stick.
> I should be able to control the stick through keystrokes.
> How should i proceed for this ?
> Is it possible through views.animation or throgh onDraw(canvas) ?
> This screen will have multiple components which will follow their own algo
> for their action.
>
> Online docmentation adds to my confusion as i m very new to android.
> Any help or clue on the apporach will be appreciated as it will give me  a
> starting point.
>
> Regards,
> Ashwani
>
>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: relative layout

2009-01-15 Thread PRATAP SOLAPUR
U can do it  by using android:background tag in ur
layoutfileplace a the picture u want to display in drawable
folder n use the tag

android:background="@drawable/picturename"


On 1/16/09, Ashwani Rao  wrote:
>
> Hi,
>
> I want to have a beautiful scenery in the background of my menu.
> Hoo we can provide this back ground?
>
>
> Regards,
> Ashwani
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator Problems

2009-01-15 Thread PRATAP SOLAPUR
sorry i forgot to mentionimg is the name of the adcard u've
creatednot the folder in toolsthe path which i've specified
is in my system...it may be different in urs.find the path of sdcard n
specify it with -sdcard option.
On 1/15/09, dhuri natarajan  wrote:
>
> Hi Pratap,
>
>I am doing it in ubuntu(Linux). In my
> android-sdk-linux_x86-1.0_r2/tools/.  I don't see img folder in my sdk.
> Instead of img folder what should, i give?.
>
>
> Thanks,
>
> Dhuri Natarajan.
>
> On Thu, Jan 15, 2009 at 6:08 PM, PRATAP SOLAPUR 
> wrote:
>
>> Start the emulator with -sdcard  Option...in eclipse u can
>> configure it
>>  Window>preferences>Android>Launch>Default emulator options...here u need
>> to specify -sdcard command n path of the sdcard...like
>>
>> -sdcard C:\android-sdk-windows-1.0_r2\android-sdk-windows-1.0_r2\tools\img
>> and then restart n try it...
>>
>>
>>   On 1/15/09, dhuri natarajan  wrote:
>>>
>>> Hi Pratap,
>>>
>>>  Yes. Ofcourse, i dont have permission to read and write. But, how
>>> can, i make this read and write permissions.
>>>
>>> Thanks,
>>>
>>> Dhuri Natarajan.
>>>
>>> On Thu, Jan 15, 2009 at 5:33 PM, PRATAP SOLAPUR <
>>> pratap.sola...@gmail.com> wrote:
>>>
>>>> See the permissions column in the SD card in ddmsu should
>>>> have read n write permissions to push n pull files.
>>>>
>>>>
>>>> On 1/15/09, dhuri natarajan  wrote:
>>>>>
>>>>> Hi Pratap,
>>>>>
>>>>>   I created SDcard when i loaded emulator itself by giving the
>>>>> command ./mksdcard sdcard1.iso.
>>>>>
>>>>> I have an SDCard in my DDMS. Where else i need to create an SDCard?.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Dhuri Natarajan.
>>>>>
>>>>> On Thu, Jan 15, 2009 at 4:43 PM, PRATAP SOLAPUR <
>>>>> pratap.sola...@gmail.com> wrote:
>>>>>
>>>>>> U need to create an sd card then push
>>>>>>
>>>>>>   On 1/15/09, dhuri natarajan  wrote:
>>>>>>
>>>>>>>  Hi ,
>>>>>>>
>>>>>>>  I am not able to push any file by using DDMS. It shows the error
>>>>>>> as:
>>>>>>>
>>>>>>> "Failed to push test_cbr.mp3 on emulator-5554: Read-only file
>>>>>>> system".
>>>>>>>
>>>>>>> What i should do so that i can push the file into emulator into
>>>>>>> sdcard.
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Dhuri Natarajan.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator Problems

2009-01-15 Thread PRATAP SOLAPUR
Start the emulator with -sdcard  Option...in eclipse u can
configure it
 Window>preferences>Android>Launch>Default emulator options...here u need to
specify -sdcard command n path of the sdcard...like

-sdcard C:\android-sdk-windows-1.0_r2\android-sdk-windows-1.0_r2\tools\img
and then restart n try it...


On 1/15/09, dhuri natarajan  wrote:
>
> Hi Pratap,
>
>  Yes. Ofcourse, i dont have permission to read and write. But, how can,
> i make this read and write permissions.
>
> Thanks,
>
> Dhuri Natarajan.
>
> On Thu, Jan 15, 2009 at 5:33 PM, PRATAP SOLAPUR 
> wrote:
>
>> See the permissions column in the SD card in ddmsu should have
>> read n write permissions to push n pull files.
>>
>>
>> On 1/15/09, dhuri natarajan  wrote:
>>>
>>> Hi Pratap,
>>>
>>>   I created SDcard when i loaded emulator itself by giving the
>>> command ./mksdcard sdcard1.iso.
>>>
>>> I have an SDCard in my DDMS. Where else i need to create an SDCard?.
>>>
>>> Thanks,
>>>
>>> Dhuri Natarajan.
>>>
>>> On Thu, Jan 15, 2009 at 4:43 PM, PRATAP SOLAPUR <
>>> pratap.sola...@gmail.com> wrote:
>>>
>>>> U need to create an sd card then push
>>>>
>>>>   On 1/15/09, dhuri natarajan  wrote:
>>>>
>>>>>  Hi ,
>>>>>
>>>>>  I am not able to push any file by using DDMS. It shows the error
>>>>> as:
>>>>>
>>>>> "Failed to push test_cbr.mp3 on emulator-5554: Read-only file system".
>>>>>
>>>>> What i should do so that i can push the file into emulator into sdcard.
>>>>>
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Dhuri Natarajan.
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator Problems

2009-01-15 Thread PRATAP SOLAPUR
See the permissions column in the SD card in ddmsu should have
read n write permissions to push n pull files.

On 1/15/09, dhuri natarajan  wrote:
>
> Hi Pratap,
>
>   I created SDcard when i loaded emulator itself by giving the command
> ./mksdcard sdcard1.iso.
>
> I have an SDCard in my DDMS. Where else i need to create an SDCard?.
>
> Thanks,
>
> Dhuri Natarajan.
>
> On Thu, Jan 15, 2009 at 4:43 PM, PRATAP SOLAPUR 
> wrote:
>
>> U need to create an sd card then push
>>
>>   On 1/15/09, dhuri natarajan  wrote:
>>
>>>  Hi ,
>>>
>>>  I am not able to push any file by using DDMS. It shows the error as:
>>>
>>> "Failed to push test_cbr.mp3 on emulator-5554: Read-only file system".
>>>
>>> What i should do so that i can push the file into emulator into sdcard.
>>>
>>>
>>> Thanks,
>>>
>>> Dhuri Natarajan.
>>>
>>>
>>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator Problems

2009-01-15 Thread PRATAP SOLAPUR
U need to create an sd card then push

On 1/15/09, dhuri natarajan  wrote:
>
> Hi ,
>
>  I am not able to push any file by using DDMS. It shows the error as:
>
> "Failed to push test_cbr.mp3 on emulator-5554: Read-only file system".
>
> What i should do so that i can push the file into emulator into sdcard.
>
> Thanks,
>
> Dhuri Natarajan.
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Code Example

2009-01-13 Thread PRATAP SOLAPUR
*

import* android.app.Activity;
*

import* android.os.Bundle;
*

import* android.webkit.WebView;

*

public* *class* BrowserDemo1 *extends* Activity {

WebView browser;

@Override

*public* *void* onCreate(Bundle icicle) {

*super*.onCreate(icicle);

setContentView(R.layout.*main*);

//browser.getSettings().setJavaScriptEnabled(true);

browser=(WebView)findViewById(R.id.*webkit*);

browser.loadUrl("http://www.google.com";);

}

}

On 1/13/09, Bear34238  wrote:
>
>
> I know this is something simple but it has eluded me.  Could someone
> provide a code example of launching the web browser inside an adroid
> Application.
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to get the SMS massage?

2009-01-12 Thread PRATAP SOLAPUR
Look into android.telephony.gsm ann smsmanager classes...

On 1/10/09, lukewar  wrote:
>
>
> I have a problem, how to get the sms massage in adroid. I have found a
> solution how to get the incoming sms massage but still i can not get
> to the already stored massages. Please help.
> Luke
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Notepad tutorial

2009-01-12 Thread PRATAP SOLAPUR
wrpa it with any layout tags...




http://schemas.android.com/apk/res/android";
*

android:orientation=*"vertical"
*

android:layout_width=*"fill_parent"
*

android:layout_height=*"fill_parent"
*

>

http://schemas.android.com/apk/res/android";
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"/>






On 1/10/09, alex.james@googlemail.com 
wrote:
>
>
> I'm having the same error as Teena. I created the file res> layout>
> notes_row.xml and this information in it
>
> 
> xmlns:android="http://schemas.android.com/apk/res/android";
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"/>
>
> But the R.java file has not changed
>
> Alex
>
> On Jan 9, 4:59 am, "PRATAP SOLAPUR"  wrote:
> > Are you getting any errors...
> >
> > On 1/9/09, Teena  wrote:
> >
> > > Thanks for the reply Pratap. :)  Yes, my notes_row.xml is in the res >
> > > layout folder.  Is there anything else I could have misplaced?
> >
> > >   _
> >
> > > From: android-beginners@googlegroups.com
> > > [mailto:android-beginn...@googlegroups.com] On Behalf Of PRATAP
> SOLAPUR
> > > Sent: Wednesday, January 07, 2009 11:02 PM
> > > To: android-beginners@googlegroups.com
> > > Subject: [android-beginners] Re: Notepad tutorial
> >
> > > have you placed the files in proper
> directoriesnotes_row.xml
> > > must be in under res>layout folder
> >
> > > On 1/8/09, Teena  wrote:
> >
> > > Hi all.
> >
> > > I'm following through the notepad tutorial.  I'm in Exercise 1 and in
> step 5
> > > it says at the end of step 5:
> > >http://code.google.com/android/intro/tutorial-ex1.html
> >
> > > "Open the R.java class in the project and look at it, you should see
> new
> > > definitions for notes_row and text1 (our new definitions) meaning we
> can now
> > > gain access to these from the our code."
> >
> > > I don't have these new definitions as far as I can tell.  I'm learning
> the
> > > interface of eclipse at the same time, so I might not be looking in the
> > > right place.  Here is the contents of my R.java:
> >
> > > /* AUTO-GENERATED FILE.  DO NOT MODIFY.
> > > *
> > > * This class was automatically generated by the
> > > * aapt tool from the resource data it found.  It
> > > * should not be modified by hand.
> > > */
> >
> > > package com.android.demo.notepad1;
> >
> > > public final class R {
> > >public static final class attr {
> > >}
> > >public static final class drawable {
> > >public static final int icon=0x7f02;
> > >}
> > >public static final class layout {
> > >public static final int notepad_list=0x7f03;
> > >}
> > >public static final class string {
> > >public static final int app_name=0x7f04;
> > >public static final int no_notes=0x7f040001;
> > >}
> > > }
> >
> > > I'm looking under Notepadv1 > src > com.android.demo.notepad1 > R.java
> in
> > > the Package Explorer.  Can anyone suggest why my new definitions are
> not
> > > there?
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Removing installed application in Emulator

2009-01-08 Thread PRATAP SOLAPUR

go to command prompt move to tools dir then execute following...

adb uninstall package-name

where package-name is the package name of the application u want to uninstall.

On 1/7/09, Mahesh Vaghela  wrote:
> To remove application
>
> go to command prompt
>
> go up to your tools directory
>
> than use this commands:
>
>  adb shell
> cd data
> cd app
> ls
>
> ls will list all your application installed.
>
> than..
>
> rm 
>
>
>
>
>
>
>
>
>
> On Wed, Jan 7, 2009 at 4:40 PM, Apparao Mulpuri
> wrote:
>
>>
>> How can we remove the already installed apps from the Emulator?
>>
>> Thanks,
>> Apparao Mulpuri.
>>
>> >
>>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Notepad tutorial

2009-01-08 Thread PRATAP SOLAPUR

Are you getting any errors...

On 1/9/09, Teena  wrote:
> Thanks for the reply Pratap. :)  Yes, my notes_row.xml is in the res >
> layout folder.  Is there anything else I could have misplaced?
>
>
>   _
>
> From: android-beginners@googlegroups.com
> [mailto:android-beginn...@googlegroups.com] On Behalf Of PRATAP SOLAPUR
> Sent: Wednesday, January 07, 2009 11:02 PM
> To: android-beginners@googlegroups.com
> Subject: [android-beginners] Re: Notepad tutorial
>
>
> have you placed the files in proper directoriesnotes_row.xml
> must be in under res>layout folder
>
>
> On 1/8/09, Teena  wrote:
>
>
> Hi all.
>
> I'm following through the notepad tutorial.  I'm in Exercise 1 and in step 5
> it says at the end of step 5:
> http://code.google.com/android/intro/tutorial-ex1.html
>
> "Open the R.java class in the project and look at it, you should see new
> definitions for notes_row and text1 (our new definitions) meaning we can now
> gain access to these from the our code."
>
> I don't have these new definitions as far as I can tell.  I'm learning the
> interface of eclipse at the same time, so I might not be looking in the
> right place.  Here is the contents of my R.java:
>
> /* AUTO-GENERATED FILE.  DO NOT MODIFY.
> *
> * This class was automatically generated by the
> * aapt tool from the resource data it found.  It
> * should not be modified by hand.
> */
>
> package com.android.demo.notepad1;
>
> public final class R {
>public static final class attr {
>}
>public static final class drawable {
>public static final int icon=0x7f02;
>}
>public static final class layout {
>public static final int notepad_list=0x7f03;
>}
>public static final class string {
>public static final int app_name=0x7f04;
>public static final int no_notes=0x7f040001;
>}
> }
>
> I'm looking under Notepadv1 > src > com.android.demo.notepad1 > R.java in
> the Package Explorer.  Can anyone suggest why my new definitions are not
> there?
>
>
>
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Notepad tutorial

2009-01-07 Thread PRATAP SOLAPUR
have you placed the files in proper directoriesnotes_row.xml
must be in under res>layout folder

On 1/8/09, Teena  wrote:
>
>
> Hi all.
>
> I'm following through the notepad tutorial.  I'm in Exercise 1 and in step
> 5
> it says at the end of step 5:
> http://code.google.com/android/intro/tutorial-ex1.html
>
> "Open the R.java class in the project and look at it, you should see new
> definitions for notes_row and text1 (our new definitions) meaning we can
> now
> gain access to these from the our code."
>
> I don't have these new definitions as far as I can tell.  I'm learning the
> interface of eclipse at the same time, so I might not be looking in the
> right place.  Here is the contents of my R.java:
>
> /* AUTO-GENERATED FILE.  DO NOT MODIFY.
> *
> * This class was automatically generated by the
> * aapt tool from the resource data it found.  It
> * should not be modified by hand.
> */
>
> package com.android.demo.notepad1;
>
> public final class R {
>public static final class attr {
>}
>public static final class drawable {
>public static final int icon=0x7f02;
>}
>public static final class layout {
>public static final int notepad_list=0x7f03;
>}
>public static final class string {
>public static final int app_name=0x7f04;
>public static final int no_notes=0x7f040001;
>}
> }
>
> I'm looking under Notepadv1 > src > com.android.demo.notepad1 > R.java in
> the Package Explorer.  Can anyone suggest why my new definitions are not
> there?
>
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Multiple activities in a package

2009-01-07 Thread PRATAP SOLAPUR
change the action tag in the manifest.xml to other than main
set it to view.


On 1/6/09, rktb  wrote:
>
>
> Hi,
>
> I have 5 activities and a receiver defined in my test package. Upon
> successfully building and launching the emulator, I see 5 copies of
> the applications in my home screen. Each icon representing one
> activity. What am I missing so that I see only one application icon? I
> am referring
> http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity
> but don't seem to be finding an option.
>
>
> Thanks,
> Ravi
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator Problems

2009-01-07 Thread PRATAP SOLAPUR
Its not an errror.its like the mobile keypad lock..to unlock
press menu.

On 1/6/09, Madhuri  wrote:
>
>
> Hi,
>
>Whenever,i am launching my Emulator from Eclipse, i get Some Error
> as,
>
>
> "The Menu is Locked.Please press menu to release the Lock".
>
> Can any one help me out?.
>
> Thanks,
>
> Dhuri Natarajan.
>
> >
>

--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problem in Playing sound

2009-01-07 Thread PRATAP SOLAPUR
May be the  emulator volume is set to mute.

On 1/6/09, Honest  wrote:
>
>
> I am playing sound by putting one folder which contains sound file.
> The coding is as below to play file.
>
> mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr);
>mMediaPlayer.start();
>
>
> "Test_cbr.mp3" is a file which i put in RAW folder which is available
> in RES folder. But when i am executing programme the sound is not
> playing. So what can be wrong in it ? Can some one tell me about
> this ?
>
> Any comment will be much 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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---