Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 2 Jahren, 2 Monaten
Letzter Beitrag:
vor 1 Jahr, 2 Monaten
Beteiligte Autoren:
Yogi Yang, Ruben Sanchez Peña, Binod Lohani

[WM17] - How to use available service from installed software in Android

Startbeitrag von Yogi Yang am 11.06.2015 10:46

I an App that I am building there is a need to use two different services from already installed software in Android Phone:
1. Edit a Text File in any Text Editor that may be installed in the Mobile
2. Choose a File using default File Manager that may be installed in the Mobile

Let me try and explain in detail:
For example if anyone on this forum have used WhatApp/Telegram will know that when we want to attach a file and send it to someone WhatApp/Telegram will show us multiple options from which we can choose and based on our choice Android will start the necessary app and return the file to WhatApp/Telegram.

I want to implement something like this.

How to do it?

Please guide me.

TIA

Yogi Yang

Antworten:

Hello !! same problem here !!
Any new development on using telegram api with windev ??
Thanks

von Binod Lohani - am 11.06.2016 13:13
Regarding Telegram...

None from my side.

I have stopped looking for solutions for WinDev. Instead we have shifted to Python for this particular case and another developer is handling it at the moment so don't know much as to how much progress is made.

Yogi Yang

von Yogi Yang - am 11.06.2016 14:26
Hi.

The funcionality you are requested works using Intents in Android. With WM you can use the ShellExecute function with the path to the filename you want use. Then Android say to you the apps options you have installed to use this file.

In the WM Help: http://doc.pcsoft.fr/en-US/?3035007&product=WD&productversion=XXF150063J&verdisp=170

"The application used to open the document is the application corresponding to the MIME type associated with the extension of the file. If several applications correspond to the same type of file, a dialog box will be displayed to select the application to start."

Rubén

von Ruben Sanchez Peña - am 13.06.2016 12:17
Hi Ruben,

I am not talking of shell execute.

What I want is that when I the software requires to select a file, I want to use the default explorer and allow the user to select a file and then the explorer should pass that file name back to my software.

I hope I have explained my requirements.

TIA

Yogi Yang

von Yogi Yang - am 14.06.2016 04:44
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.