PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Java Help
Java Help
Started by iso, Oct., 24 2014 10:40 AM - 1 reply
Connect yourself…
iso
#1
Posted on October, 24 2014 - 10:40 AM
Can anyone help me convert a java script to work in windev mobile?
thanks iso
Report
0
0
adrianoboller
#2
Registered member
3,660 messages
Popularité : +175 (223 votes)
Posted on November, 18 2014 - 2:21 PM
//ExecRun - Funcional - Perfeito
import android.app.Activity
;
import android.content.Intent
;
import java.lang
.
*
;
import android.util
.
*
;
import java.lang.Exception
;
import android.util.Log
;
PUBLIC static boolean
ExecRun
(
string
Aplicativo
)
{
try
{
IF
(
Aplicativo
=
=
null
)
{
RETURN
False
;
}
ELSE
{
Intent Apk
=
getActiviteEnCours
(
)
.
getPackageManager
(
)
.
getLaunchIntentForPackage
(
Aplicativo
)
;
getActiviteEnCours
(
)
.
startActivity
(
Apk
)
;
RETURN
True
;
}
}
catch
(
EXCEPTION
e
) {
Log.e
(
"WM"
,
e.toString
(
)
)
;
RETURN
False
;
}
}
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text