Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

J2ME-MIDlet startet im Emulator, aber nicht auf den Testhandys

Empfohlene Antworten

Hallo,

ich habe folgendes Problem. Ich habe ein MIDlet geschrieben, dass sich mit einem .Net-Webservice verbindet (KSOAP2) und einen Teststring abruft.

Das funktioniert soweit auch einwandfrei solange ich es im Emulator laufen lasse. Aber auf meinen Test-Handys (Nokia 5500, SE K750i und SE W810i) startet es entweder garnicht oder gibt die Meldung "Fehler in der Anwendung" aus. Eine Exception oder ähnliches kann ich nicht abfragen, da das Programm ja garnicht gestartet wird.

Durch auskommentieren kritischer Code-Zeilen habe ich herausgefunden, dass es an dieser Zeile liegt:

envelope.bodyOut = soap;
Hat vielleicht jemand eine Idee, was ich anders machen muss, oder wie ich herausfinden kann woran das Nicht-Starten liegt? Die gefundenen Beispiele arbeiten alle so wie mein Codeausschnitt:
try

      {

         soap = new  SoapObject("http://www.meinedomain.de/Test_Services/","get_TestString");

         transport = new HttpTransport("http://www.meinedomain.de/Test_Services/");

         transport.debug = true;


          envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);


          envelope.dotNet = true;

          envelope.encodingStyle = SoapSerializationEnvelope.XSD;

          envelope.bodyOut = soap;


          transport.call("http://meinedomain.de/Test_Services/get_TestString", envelope);

          result = envelope.getResponse().toString();


          anabForm.append(result);

          showDisplay(anabForm);

      }

Vielen Dank für die Hilfe oder Tips und viele Grüße

MiBo

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.