|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| [WM19] Android Intent object in Java code |
| Iniciado por guest, 28,dic. 2015 17:29 - No hay respuesta |
| |
| | | |
|
| |
| Publicado el 28,diciembre 2015 - 17:29 |
Hi,
I like to use the intent to get the StringExtra. However, both the getIntent en getUri methods are not valid... Am I forgetting something?
thanks, Edwin
Quote Code
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.Context;
public static void TestIntent()
{
Intent intent2 = parseUri();
Intent intent3 = getIntent();
Context context = getApplicationContext();
}
Quote Errormessage
Failure creating the Android application named .
Command Line: "C:\Program Files\Java\jdk1.8.0_40\in\javac.exe" -encoding UTF-16LE -nowarn -source 1.5 -target 1.5 -d bin\classes -bootclasspath "C:\AndroidSDK\android-sdk\platforms\android-22\android.jar" gen\ l\provelu\ eststart\*.java src\ l\provelu\ eststart\wdgen\*.java -classpath "libs;bin\classes;libs\android-support-v4.jar"
Error returned:
src\ l\provelu\ eststart\wdgen\GWDCPCOL_GlobalProcedures.java:100: error: cannot find symbol
Intent intent2 = parseUri();
^
symbol: method parseUri()
location: class GWDCPCOL_GlobalProcedures
src\ l\provelu\ eststart\wdgen\GWDCPCOL_GlobalProcedures.java:101: error: cannot find symbol
Intent intent3 = getIntent();
^
symbol: method getIntent()
location: class GWDCPCOL_GlobalProcedures
2 errors |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|