I have implemented a Button in my Mobile Application und have a Textfieldwith a Telefon Nummer.
What i want to achieve: When the User Click the Button-> The Default Page to send SMS is open in Android and the Telefonnummer is Paste in the default Nummer Textfield for Android.
I Use Gluon Mobile with JavaFX
:compileJava/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:4: error: package android.content does not exist
import android.content.Intent;
^
/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:5: error: package android.net does not exist
import android.net.Uri;
^
/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:12: error: cannot find symbol
Intent smsIntent = new Intent(Intent.ACTION_VIEW);
^
symbol: class Intent
location: class AndroidSMSService
/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:12: error: cannot find symbol
Intent smsIntent = new Intent(Intent.ACTION_VIEW);
^
symbol: class Intent
location: class AndroidSMSService
/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:12: error: cannot find symbol
Intent smsIntent = new Intent(Intent.ACTION_VIEW);
^
symbol: variable Intent
location: class AndroidSMSService
/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:13: error: cannot find symbol
smsIntent.setData(Uri.parse("sms:"));
^
symbol: variable Uri
location: class AndroidSMSService
/Users/yotti/CAMVOYAGE/MultiViewProjectFXML/src/main/java/com/gluonapplication/views/AndroidSMSService.java:15: error: cannot access Activity
FXActivity.getInstance().startActivity(smsIntent);
^
class file for android.app.Activity not found
7 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.