Working with webform delphi xe7 fmx - android

I'm using webform from Rest.Authenticator.OAuth.Webform.Fmx to get access to one of the google api. This mechanism is working on my desktop app, so I want to use it on android app. But there is a trouble: I can't copy access code, from Twebbrowser on webform. Android does not raise mechanism of copying text.
What is the right way to solve this problem?
Parse page from webbrowser?

Well, I found the solution, the token i need will be here:
webform.lasttitle
After changing this title I will copy it and close webform automatically.

Related

Broadcast Receiver in Phonegap 'Build'

I'm trying to receive a link shared from another application like browser or youtube into my phonegap app. I'm using phonegap build (build.phonegap.com) to make my app.
I'd like to know how to make my app appear in the 'share' list for links.
All solutions I found online are making me edit Android Manifest or Java files, but is there a way (a plugin of sorts) I can use to make data transfer between apps possible?
There is a plugin available for PhoneGap which will handle receiving content from other application. You can use it. Following is the link to this plugin. https://www.npmjs.com/package/cordova-plugin-intent
If you find any issue or something else other than that functionality, you can make the custom plugin so that you will have direct access of java file from javascript.
If I understand your question correctly, you're talking about deep linking in android. The details about it can be found here
Correct me if I explain your ideas wrong: What you want to do is that you have an URL that showed up in another application (Ex: Facebook Messenger, Slack, ...) and you want after clicking it, a list of application that can be used to open that link appear and you want your app to be listed there.
But here is the problem, how can the OS knows what apps it can suggest to the end-user and what kind of link your is acceptable to your app? the answer lies in your application manifest and to be more precise, the intent-filter tag. It tells the OS what you kind of url you want and also use it to determine if the OS should suggest your app to be open by using that link for the user.
So the answer for your question about doing without editing Manifest is impossible. As for the reason why you don't want to edit your apps is unknown to me but I still suggest you to take a look at this tutorial. It still involves editing your manifest but the guide it self is clear and easy to implement.
Hope this help ^^

Convert android app to web app

i made this app for android using Android Studio that is kind of like a game, and i wanted to make the same thing but on a website, is there any simple way to do this? Or do i have to write the whole code all over again (i.e. using HTML, CSS, Javascript)?
is there any simple way to do this?
No
Or do i have to write the whole code all over again (i.e. using HTML, CSS, Javascript)?
exactly

Android web automation in app

I would like to make a simple android app that can perform some automated behaviour on the web.
I want to be able to input username/password details and gave my app navigate to a website via a web view presumably and fill in my login credentials and navigate to a particular section of the website.
I realise selenium would be ideal for a task like this but was wondering if anyone had experience of trying something similar and whether it is all possible from inside the Android app rather than running on a standalone server testing the actual app as I realise is selenium/selenedroids main purpose.
Thanks
If your intention is to automate the actions for testing of your web from an Android app, try calabash-android, it's like Selenium for Android.
Calabash-android supports WebView manipulation, in your case entering text as well.
You can use the enter_text method to enter text in a webview (in addition to any other android widget).
enter_text("webView css:'input.login'", "run")
This will enter the text "run" into the first input field of the class 'login'.
Source: https://github.com/calabash/calabash-android/wiki/06-webview-support

Phonegap Application Not Scrolling

I have developed a Phonegap application, and am now trying to run it in the android emulator. My problem is that the application doesn't scroll in the emulator or device, but it works well in a normal browser like mozilla or chrome. Butwhen I test in the emulator or device then it doesn't scroll.
Here is my html file http://pastie.org/3981916
And here is my css file http://pastie.org/3981918
I am not able to find a solution to this problem, can any one help me out please?
well you cant get the normal html scroll behavior when trying to create a app using phonegap on android.
you cant get the overflow:scroll effect for any of the html elements.
you'll need to make use of third party libraries such as jquerymobile, iscroll4, etcfor getting the native look and feel.
or also you can construct your own logic

Webapp based Android keyboard

I am programming an Android keyboard. Right now I reached the point where I have to rewrite the KeyboardView and I'm asking myself why not to switch to an Webapp instead of a native Android app. Thereby I could later easily deploy the application for other platforms whithout the need of rewriting.
My approach would be to use the Android App as an container for my web app probaply in combination with GWT. I am also considering using PhoneGap.
The problem is that so far I haven't found anything about people using webapps for an InputMethod. Now I'm wondering if it's reasonable or even possible to use webapps for this task or if they are only suitable for normal activities.
Has anyone tried doing this before or some hints why or why not it is possible?

Categories

Resources