Thanx!!!
I have a problem, when I add the new method, the following words creates an
error...
/** Called when the user clicks the Send button */
public void sendMessage(View view) {
* INTENT* intent = new *INTENT*(this, DisplayMessageActivity.class);
* EDITTEXT* editText = (*EDITTEXT)* findViewById(R.id.edit_message);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
}
And by the title: "Add it to the manifest" on the android training, I must
see this:
*When you use the Eclipse tools to create the activity, it creates a
default entry. It should look like this:*
*<application ... >*
...
<activity
android:name=".DisplayMessageActivity"
android:label="@string/title_activity_display_message" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.myfirstapp.MainActivity" />
</activity>*</application>*
But I don't have the <application>...</application> at all!
What do I wrong????
Op 8 nov. 2012 17:13 schreef "bob" <[email protected]> het volgende:
> It is MainActivity.java in the src folder.
>
>
>
> On Thursday, November 8, 2012 7:44:55 AM UTC-6, Imnewhere wrote:
>>
>> Where do I find "the mainactivity class" ? Is this the same window where
>> you could find the layout?
>> Op 7 nov. 2012 01:19 schreef "Indicator Veritatis" <[email protected]>
>> het volgende:
>>
>>> If the hotkeys don't work, there are a small number of possibilities.
>>>> The possibilities that come to my mind are: 1) you listed the hotkey for
>>>> both Windows machines and the Mac, but tried only the Mac; but are not
>>>> running a Mac, or are running too old a version of the Mac OS 2) something
>>>> is wrong with your installation of Eclipse, and it does not respond to the
>>>> hotkeys 3) the instructions forgot to mention which window has to have
>>>> focus when you try that hotkey, and you made some mouse motion that moved
>>>> the focus to someplace it would not be if you had followed the instructions
>>>> to the letter with no other operations intervening.
>>>>
>>>> Actually, I think 3 is most likely. I have verified myself that if the
>>>> mouse cursor is placed in the Console and you try the hotkey, it fails. But
>>>> it works in the file edit window itself (of course), and even in the
>>>> Navigator (which is a bit surprising).
>>>>
>>>> But 2 is a possibility, too. For my first several months of Android
>>>> programming under Eclipse, I could not get the hotkey to work reliably, so
>>>> I use right-mouse click instead to bring up the "context menu" and allow me
>>>> to select 'Quick Fix'. Yet under the current version of Eclipse (Juno)
>>>> installed on a Windows 7 system, I have had no problem with it.
>>>>
>>>> Finally, a question for you: is http://translate.google.com helpful
>>>> for understanding the English of either these posts or the Google Android
>>>> documentation? Dutch and English are closely related, the translator should
>>>> not have too much trouble.
>>>>
>>>> On Wednesday, August 22, 2012 8:00:57 AM UTC-7, Imnewhere wrote:
>>>>>
>>>>> What do they mean by:
>>>>>
>>>>>
>>>>> *Open the MainActivity class and add the corresponding method:*
>>>>>
>>>>> */** Called when the user clicks the Send button */
>>>>> public void sendMessage(View view) {
>>>>> // Do something in response to button
>>>>> }*
>>>>>
>>>>> *Tip: In Eclipse, press Ctrl + Shift + O to import missing classes
>>>>> (Cmd + Shift + O on Mac).
>>>>> *
>>>>>
>>>>> http://developer.android.com/**t**raining/basics/firstapp/**starti**
>>>>> ng-activity.html<http://developer.android.com/training/basics/firstapp/starting-activity.html>
>>>>>
>>>>>
>>>>>
>>>>> (the hotkeys doesn't work)
>>>>> Is there a site in Dutch?
>>>>> It's hard to understand HTML
>>>>> And it's difficult to understand English
>>>>> (I'm a little kid that is intressed in programming)
>>>>>
>>>>> I have already done the previous lessons...
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-d...@**googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+**[email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en