It is currently Fri Mar 24, 2017 3:05 am



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: file sharing using
Unread postPosted: Sun Dec 04, 2016 11:08 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5446
Location: Paris, France
Difference is in registration of Intent action.VIEW with MIME type image/png

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: file sharing using
Unread postPosted: Sun Dec 04, 2016 11:57 am 
Offline
User avatar

Joined: Wed Jul 10, 2013 8:11 am
Posts: 277
I do not aggree with Nicolas, because the filebrowser do it right and my example, too.

The implementation app.start is a little tricky.
I see in the photo app a canvas shortly blinking.

This code does not help either:
file.root r$: f$=r$+"/cartman.png"
cats$ = "android.intent.category.DEFAULT"
app.start "android.intent.action.VIEW", f$ ,,, "image/*",cats$,, HEX("04000000") %FLAG_ACTIVITY_CLEAR_TOP

Until now BASIC! have in the main task a waiting problem in context to Android outside intents.
In early spring I invested a lot of time to fix this. But with no success :cry:

So I used a differend and tested solution to work arround this behavior and also ableing to receive data.
I designed the Interface for given JAVA code examples, because if you find an example it is mostly written in JAVA. I hope it is more flexible for the future and not so cryptic.

Happy coding
Gregor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred