Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > German Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Menü mit "Addmenuitem" nur auf Startseite

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-27-2011, 01:12 PM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Schwäbisch Gmünd
Posts: 353
Arrow

Hallo CDPeter,
Quote:
die Sub ProgrammBeenden muss ProgrammBeenden_Click heissen ...
nach zig-tausenden Programmzeilen passiert mir sowas!

Natürlich hast Du recht!

Manchmal sieht man vor lauter Bäumen den Wald nicht!

DANKE Dir!
__________________
JOTHA | Greetz from the Schwabenländle.
Pocket-PC: HTC HD2 (Dual-Boot WindowsMobile 6.51 + Android 2.2 Froyo)
Reply With Quote
  #12 (permalink)  
Old 07-27-2011, 02:08 PM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Germany
Posts: 366
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by JOTHA View Post
@ Alle,
... alles schön und gut!
Ich mache es grundsätzlich auch wie Klaus und arbeite mit Buttons.

Ich habe jetzt aber mal interessehalber damit herumexperimentiert (um Paulsche eventuell helfen zu können) und dabei erstaunt festgestellt, dass bei mir das Menü überhaupt nicht funktioniert!

So müsste es doch klappen (abgespeckt dargestellt), oder?
Code:
Sub Activity_Create(FirstTime As Boolean)
Activity.AddMenuItem(
"Programm beenden""ProgrammBeenden")
End Sub

Sub ProgrammBeenden
ToastMessageShow("Programm beenden"False)
Activity.Finish
End Sub
Alles was dabei passiert, ist das das Menü eingeblendet wird, wenn ich aber in das Menü auf "Programm beenden" klicke, passiert nichts!

Es wird weder die Message angezeigt, noch wird die App beendet.

Woran kann das liegen?
Klaus, was soll ich sagen, es funktioniert mit Deinem Code

Danke.
__________________
Gruß Paulsche

Samsung Galaxy S2
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What exactly are "Core" and "Type"? nfordbscndrd Basic4android Updates and Questions 1 05-29-2011 04:38 PM
Catching the "Shift", "right" & "left" keys linum Questions (Windows Mobile) 3 08-21-2009 01:22 PM
calling the device's "Programs" or "settings" screens karmba_a Questions (Windows Mobile) 3 03-15-2009 05:41 PM
"AddEvent" and "buttonUp/buttonDown" Byak@ Questions (Windows Mobile) 12 09-10-2008 03:04 PM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 02:59 AM


All times are GMT. The time now is 06:22 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0