flamman
-
Posts
5 -
Joined
-
Last visited
Posts posted by flamman
-
-
It doesn't need much work..
Something like this already does it:
#In a ("NameOfMyActivity") Activity file:Intent intent = getIntent();Bundle extras = intent.getExtras();String action = intent.getAction();if (Intent.ACTION_SEND.equals(action)) { if (extras.containsKey(Intent.EXTRA_STREAM)) { Uri uri = (Uri) extras.getParcelable(Intent.EXTRA_STREAM); #do something with it (in this case print the path of the file to be shared to the screen) Toast.makeText(this, "Selected File :" + uri.toString(), Toast.LENGTH_LONG).show(); }}#In the AndoidManifest:<activity android:name="NameOfMyActivity"> <intent-filter> <action android:name="android.intent.action.SEND"></action> <data android:mimeType="*/*"></data> <category android:name="android.intent.category.DEFAULT"></category> </intent-filter></activity>
-
Thank you so much for you reply RomanZ - also the link is very helpful. I think this anwers my question completely!
-
The folder preference to overwrite local changes is off by default and must be manually activated.
In the API there are several options you can manage:
"search_lan":1,
"use_dht":0,
"use_hosts":0,
"use_relay_server":1,
"use_sync_trash":1,
"use_tracker":1Is there an Api call available to set "overwrite changes" to 1 - so any local changes will always be overwritten by Sync?
That's my intended use. I need to implement "read-only" in the broadest sense and not allow (or at least immediately undo) local changes.
-
Syncing an image works fine on my Android smartphone, when from inside the Sync app I add and select a file. I'd prefer if I could do the same from inside my Gallery. So when I look at a picture I want to sync, I do not need to remember the filename, but I can tap the little "share" icon and Sync is included in the list of apps, alongside Twitter, Facebook, Gmail or Whatsapp.
Can I Charge For A Btsync App?
in Developers
Posted
Thank you RomanZ for providing the email link to the licensing dept.