Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Java
You last visited: Today at 11:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Andr.Stud] Taschenrechner - crash

Discussion on [Andr.Stud] Taschenrechner - crash within the Java forum part of the Coders Den category.

Reply
 
Old   #1
 
.BritainAndy's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
Question [Andr.Stud] Taschenrechner - crash

Hey Community,
Ich habe vor zwei Tagen angefangen, mich ein wenig mit Android Studio auseinander zu setzen und wollte jetzt mal eine kleine Taschenrechner app coden, die folgender maßen aussehen soll.


Dazu folgende XML Datei:

Und folgende JAVA Datei:


Ich kriege keinen Syntax Fehler angezeigt und die App lässt sich kompilieren und ausführen, jedoch crasht sie sofort.
Also muss es ja ein semantischer Fehler sein, oder?

Wäre froh, wenn ihr mir auf die Sprünge helfen könntet, und wenn euch noch irgendetwas anderes negatives auffällt (style, umständlich gecoded, ...) bin ich für alle Tipps dankbar.

Liebe Grüße,
Yannik
.BritainAndy is offline  
Old 09/21/2017, 17:03   #2
 
0xFADED's Avatar
 
elite*gold: 7
Join Date: Dec 2013
Posts: 446
Received Thanks: 187
Schließ dein Handy mal per USB an den Rechner an und mach "USB Debugging" an.
(Wie das geht steht überall im Internet).

Dann öffnest du die "Logcat".
Wenn es Fehler/Exceptions gibt werden sie da angezeigt.
Den/Die Fehler kannst du ja dann eventuell auch mal hier posten oder auf Pastebin packen,
damit wir wissen worum es geht ohne zu raten.

Guides zur Logcat:
- Konsole:
- Android Studio:

LG
0xFADED is offline  
Thanks
1 User
Old 09/22/2017, 13:28   #3
 
.BritainAndy's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
Vielen Dank für die Logcat Methode. Sehr nützlich!
Habe dadurch den Fehler gefunden.


PS:Und auch noch den kleinen Divisionsfehler beseitigt (double statt int)
.BritainAndy is offline  
Reply

Tags
android studio, app, java, taschenrechner


Similar Threads Similar Threads
[Selling] [Change Name] LV 148/TH 11 - Wall 11 | Builder 5 | BK 38 AQ 37 GW 13 | Gems 19 | Andr
09/08/2017 - Clash of Clans Trading - 3 Replies
Device: Android Based Link Device still ON (Still can link to IOS) - I can Help linking if needed Gmail Connect - (Email and Pa**sword will be given) Change Name: YES *Available for both Android and iOS *For IOS user require linking from Android to IOS please message me once u ordered *Free Linking Device Level 148 Town Hall 11 Highest Trophy: 4073 Wall: 11 Builder: 5 Gems: 19 Heroes: Barbarian King 38, Archer Queen 37, Grand Warden 13 Screenshots 1:...
Crash Crash Crash
07/27/2010 - SRO Private Server - 3 Replies
When i try to log in with bot, after i log in, instant CRASH. It is because of the traffic on ZSZC ? What should i do ?
Crash. Crash. Crash. Help?
10/30/2009 - Dekaron - 10 Replies
Okay EPVPr's, I have a question for you. Is anyone else having the 2moons/dekaron client crash on them as much as it is for me? I'll explain my full situation unlike alot of people on here(I'm sure most of you guy's know what i'm referring to :p) Situation: I start 2Moons, login. Usually on char select i'll open CE 5.5 from my "Up To Date" .CT file. Other times it will be "in map" depends on the situation as you all know. With as little as only one script activated(or even all) which most...



All times are GMT +1. The time now is 11:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.