I am using Embarcadero's HTML5Builder for Android server mobile apps development.
How can i use Mobile Hardware components, like: MNotification.
i need some useful code to use MNotification.
Just give a value to the Message property from the Form Designer, and call ComponentNameNotification() from a JavaScript event, where ComponentName is the name of the MNotification component.
For example:
function MButton1JSClick($sender, $params)
{
?>
//begin js
MNotification1Notification();
//end
<?php
}
Note that hardware components only work inside PhoneGap. The notification will show in an application generated with the Mobile Deployment wizard, but not in a web browser.
SO WHAT TO DO:
Download the SDK ADT Bundle for Windows
http://developer.android.com/sdk/index.html
Download PhoneGap
http://phonegap.com/download
And use this instructions:
1) http://www.youtube.com/watch?v=lVjCMXQGS_w
2) http://www.youtube.com/watch?v=HO_59WXg33g
Thank's to all who trying to help me!
Related
I'm building hybrid mobile apps using cordova and quasar framework.
I used the following user agent to change the default user agent.
<preference name="OverrideUserAgent" value="Mozilla/5.0 Google" />
in config.xml for both ios and android preferences
its working fine for iOS but
not working for android (giving null value in OverrideUserAgent preference in generated code)
cordova-lib#9.0.1
platforms list :
android#8.1.0 and ios#4.5.5
How do i make it work for android ?
Have you tried using AppendUserAgent instead?
If set, the value will replace the old UserAgent of webview. It is
helpful to identify the request from app/browser when requesting
remote pages. Use with caution, this may causes compitiable issue with
web servers. For most cases, use AppendUserAgent instead.
I want to set other link when user open DynamicLink on desktop web browser.
There are DynamicLinkOtherPlatformParameters for iOS, but not Android.
How can I get that ?
You can create your link in android by using "ofl" parameter.
https://{page_link}/?isi={app_store_id}&ibi={ios_bundle_identifier}&ofl={firbase_deep_link+other_parameters}&imv={ios_min_version}&amv={android_min_version}&apn={android_package_name}&link={firebase_dynamic_link}
I have a Worklight 6.2 app. I am modifying the android java code to subscribe to a notification sent via Bluemix. After the user logs in, I would like to register the device using the userid that gets created. Is there an API call that I can use within the android code that is the equivalent to WL.Client.getUserName, or should I be calling the java code from my javascript and passing the userName to the java code? Thanks for any suggestions.
JT
There is no Java equivalent to this. This is a Worklight API.
What you can do is use the new WL.App.sendActionToNative method in Worklight 6.2 for to send a value to your native code and from there do what you need with it.
WL.App.sendActionToNative(“doSomething”, { customData: 12345} );
Where customdData is the WL.Client.getUserName.
On the native side you then need to use WLActionReciever (see What's New).
You could also opt to implement a basic Cordova plug-in that will move data from the web to native view.
The tutorial in the Getting Started page is doing exactly that.
I have started a project in phonegap for windows phone, and created a login form. Backend I have written some c# code for perform some api methods and check login.
And I have build the phonegap and got output file for all the platform. Whether is it compatible with all other platform than windows ?
I'm afraid your c# code will not be compatible with other platforms. You either need to write Phonegap plugins for each platform or write JavaScript to check login.
Depending on your situation, Phonegap has APIs for accessing the device's filesystem or making use of browser storage (Web SQL database).
See the Phonegap API for more info
For working with cross platform, I have created a web service and called the method of web service with ajax call,
If the webservice hosted in any other domain you should use
$.mobile.allowCrossDomainPages = true;
$.support.cors = true;
Refer more :- http://jquerymobile.com/test/docs/pages/phonegap.html
I am using titanium to develop android application.
In my application i have to make call from the application.
I am writing Java Script to develop application.
So My question is is there any way by which i can make call from my application when i am using titanium,as we can do in native android code by calling Intent to call to specific number.
Thanks,
Rakesh
Yes you can make call like this:
Ti.Platform.openURL('tel://911');
Or For Prompt,
Ti.Platform.openURL('telprompt://911');
For more details Titanium Platform
I found this, maybe it's the way on android:
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_CALL,
data: 'tel:12421342'
});
Ti.Android.currentActivity.startActivity(intent);
I've not tried it yet. Good luck!
(Aase