Share Intent animated GIF - Java for Android App Development

I've developed an app in which you can export an animated GIF, but I just realized the anyone supports it! except for Tumblr.
neither Whatsapp or Twitter.
Why...
What would be the best way to share an animated GIF through Intents?
Should I programatically upload it after encoding it and share an URL? In that case, where or how could I do it?
Cheers

What does you sharing code look like? Could you please post it?

supernova18 said:
I've developed an app in which you can export an animated GIF, but I just realized the anyone supports it! except for Tumblr.
neither Whatsapp or Twitter.
Why...
What would be the best way to share an animated GIF through Intents?
Should I programatically upload it after encoding it and share an URL? In that case, where or how could I do it?
Cheers
Click to expand...
Click to collapse
To share a ".gif" file you have to create a new intent with type = "image/gif", and attach to the intent like this:
Code:
Intent.putExtra(Intent.EXTRA_STREAM, uriToImage);
Aditionally, you can specify a specific package to share with:
Code:
Intent.setPackage("com.whatsapp");
Hope it helps!

Related

[APP][Update 07-11-08] LockDown, keeping stuff private

Don't you hate it when you let someone play with your shiny new WM phone
they usually go right to your SMS inbox?
jonesj8 had the same irritation, so inspired by him I threw something together
Original thread :
http://forum.xda-developers.com/showthread.php?t=375057
I created a new thread to have a bit more overview, and also to get it under the attention of other users who might be interested
@mods
I can understand if you close this thread...
How does it work.
this version requires you to change all the .lnk files pointing to tmail.exe, or to the dll...maybe even other ones...
I say all lnk's but the most important are the ones the "friend" is going see/use.
I've included a shortcut creator in the attachment.
In FileList.ini specify the application to block,
in the included file it's \WIndows\tmail.exe
and i've used msg as argument.
so in the .lnk would point to lockdown.exe with the argument msg
if the passcode is correct the file will be opened.
it's not very quick (since it needs to be opened) but this should change in the next version.
the passcode can be changed in the settings.ini, default is 12345
Let me know what you think or if you have any ideas
Update Version 0.4
Well I finally got around to an update, which is attached below
The application has been rebuild from the ground up, I've used a Lock and Key method, e.g. the lnk uses key.exe which communicates with the server (the lock) this way the server only needs to read the filelist once which should save time.
<note>
because of this you will need to enter the items in the FileList.ini prior to starting the server, when the server is running it will create the used shortcuts for you
which you can then place.
if you add stuff while it is running the shortcuts wont be created...
pointers on making the FileList.ini is in the readme below.
New in this version
- installer (cab)
- app to date support
- redesigned layout
- support for arguments, opening the sms should work now, it does for me
- locking of other files should work now too (thesed with a html file)
- automatically create the proper lnk files in sub folder
To do
- include support for different screen sizes
- way to customize the colors
- mask input with *
- skinning...?
In case someone is bored and wants to create the graphics, be my guest,
My creativity in that department is next to null
Sounds great. Any chance of a screenshot of the lock screen?
Mr_Gee said:
Click to expand...
Click to collapse
Thanks, trying it now
works good, cant seem to get arguments passed to tmail.exe in settings.ini
ie.
msg=\Windows\tmail.exe -service "SMS"
just opens account picker, is on todo list? not bugging you, good app,
thx!
great will it run on VGA? make it as simple as you can so when we are in hurry the soft won't load so long
This looks nice and configurable.
Are we able to make it request the pin for any application listed in FileList? First try didn't work, I want to restrict more than just the inbox
sorry, double post
badaas said:
works good, cant seem to get arguments passed to tmail.exe in settings.ini
ie.
msg=\Windows\tmail.exe -service "SMS"
just opens account picker, is on todo list? not bugging you, good app,
thx!
Click to expand...
Click to collapse
Correct that isn't working... also i'm not sure if it will be in there,
the reason is I wanted to change the app so it looks at the window name,
this would close all message related windows, and there is no need to change the .lnk files
theme freak said:
great will it run on VGA? make it as simple as you can so when we are in hurry the soft won't load so long
Click to expand...
Click to collapse
Not yet, but is planned for future versions, I'll add it to the todo list.
evojulz said:
This looks nice and configurable.
Are we able to make it request the pin for any application listed in FileList? First try didn't work, I want to restrict more than just the inbox
Click to expand...
Click to collapse
Currently any application can be restricted by providing a ID + location, e.g
xyz=\Program Files\TCPMP\player.exe
changing the link to tcpmp would have lockdown popup first
What application would you like to restrict?
Mr_Gee said:
Correct that isn't working... also i'm not sure if it will be in there,
the reason is I wanted to change the app so it looks at the window name,
this would close all message related windows, and there is no need to change the .lnk files
Click to expand...
Click to collapse
hmmm, not sure i know what you mean. But basically, as it is now, I can't go direct to the inbox of sms using your lockdown? \o?
thanks
badaas said:
hmmm, not sure i know what you mean. But basically, as it is now, I can't go direct to the inbox of sms using your lockdown? \o?
thanks
Click to expand...
Click to collapse
Basically, no
but as a workaround you could try making an lnk to tmail.exe with the -service etc. in there, next change the FileList.ini pointing to that new lnk...
not sure if it will work though
Mr_Gee said:
Basically, no
but as a workaround you could try making an lnk to tmail.exe with the -service etc. in there, next change the FileList.ini pointing to that new lnk...
not sure if it will work though
Click to expand...
Click to collapse
bLEhg! lol, ok, will look into that (scratches head )
some novelty things to add: skins, mask input with '*', maybe use symbols instead of numbers, 'jumble' keypad/symbols random for added security (if using symbols )
thanks for infos and keep up the good work
badaas said:
bLEhg! lol, ok, will look into that (scratches head )
some novelty things to add: skins, mask input with '*', maybe use symbols instead of numbers, 'jumble' keypad/symbols random for added security (if using symbols )
thanks for infos and keep up the good work
Click to expand...
Click to collapse
Let me know if it worked, I'll look into the symbols
Skinning was already on my list great minds ....
input mask is also a good one
Any chance you can re-scale the images to fit a 240x240 screen res?
Can test it you want.
Cheers, Mike.
Mike1002 said:
Any chance you can re-scale the images to fit a 240x240 screen res?
Can test it you want.
Cheers, Mike.
Click to expand...
Click to collapse
I'll give it a shot
@ the rest
there are 4 basic resolutions right?
320 X 240
320 X 320
240 X 240
640 X 480
the rest is pretty exotic (Omni & X1)
is this possible on htm files?
Hi Mr_Gee, thanks for sharing
I have an couple of offline files I would also like to lockdown. Is it possible to lockdown those htm files as well? tia.
adomila said:
Hi Mr_Gee, thanks for sharing
I have an couple of offline files I would also like to lockdown. Is it possible to lockdown those htm files as well? tia.
Click to expand...
Click to collapse
probably...
have you tried entering them in the FileList.ini file?
currently not working on html files
Mr_Gee said:
probably...
have you tried entering them in the FileList.ini file?
Click to expand...
Click to collapse
now, that you mention it yes, i have tried it and it does not work, if it is the specific html file. the lockdown screen would still appear but nothing happens after entering the code. maybe it will work, if the iexplore.exe itself is lockdown but this will lock down every/all html files. would it be a big change to code it, just for specific html files? i'm also thinking on specific text files just like the said html files. i keep notes on pure text files like tax account number, passwords, pincodes, etc in a text or word file. maybe this is pushing too far. maybe in the next version/release? hehehe thank you for sharing and more power...
Sorry I was on holidays
I've tested with PIE.exe and i plan this for the next version.
Please note though that this tool is only for making sure "friends" don't read your personal stuff very easy, but passwords/pin codes might be a bit too high risk..
I think this should be further developed! It really should come standard on winmob... hey Gee, if you need a cab builder or photoshop, I'd be happy to help! Let's make this idea the next ROM must-have!
I wanna use this program because every time someone wants to see my phone, they get to snooping into my personal info. However, I'm afriad if I start changing things manually, I'll screw my phone up.

TCPMP skins

Basically you just need 0.72RC1
unzip attached to TCPMP folder (notice new Settings page in TCPMP)
add your own .lrc lyric files
This works with 0.72RC1 (I have checked this out) or 0.81 (unknown source). Then unzip the attached to the folder that TCPMP player.exe is located in (usually "Program Files\TCPMP\").
Oh yes, most important, it displays lyrics (would have been nice if it displayed jpg art too, but not my program ). I found you can get lrc files from http://lrcdb.org/index.php I save them in same folder as music, and IMPORTANTLY same name with .lrc extension.
I don't know who to credit this to. I have a copy of v0.72RC1 (as I understand the last open release). But I also have 0.81, and unsure where I picked this up from. So please step forward whoever created "smart_lyric.plg" [original from here, sorry I don't speak chinese]
I have simply resized 176x180 skins to 480x536, and then created my own from this. I think many of you can do better
For those wishing to develop the skin:
You may want to investigate my 0.skn, 0.bmp (and template.bmp) to create your own skin. Also lang_sls.txt to add you own language (I only kept default). All the other skins are simply resized from 176x180.
The .bmp is 493x535. In Y, 43-492 is visible (unless user switches off Taskbar, Timeslider and Titlebar) - hence "template.bmp" to help you. I don't suggest switching off timeslider as there is no feedback in the skin, so the timeslider ("position") is only displayed, not user dragable. Anyway, it looks good ​
reserved
reserved
can you post a pic
nfbarata said:
can you post a pic
Click to expand...
Click to collapse
Sure. There's a picture of skin I quickly made, and also one of the resized ones. You can see also the new settings page. (Please see first post)
I'm hoping others will create better skins than mine, though!
Nice work...thanks....Where is the setting to change the skin?
asolano895 said:
Nice work...thanks....Where is the setting to change the skin?
Click to expand...
Click to collapse
If you're using TCPMP then Options\Settings... Select Page\Lyric at the bottom choose Skin (as in picture on post #1)
hi
it works fine here, thank you very much!
i have only one question left:
some mp3 have an embedded picture in the id3-tag. Can i switch between this picture and the lyrics?
when there is a picture integrated in the mp3, than it is shown as default.
thank you very much ...
bye
dasacom
dasacom said:
some mp3 have an embedded picture in the id3-tag. Can i switch between this picture and the lyrics?
Click to expand...
Click to collapse
I have tried, but can't find how to do this . WMP doesn't do this either (the only way to show picture is to have "folder.jpg" in the folder).
According to http://www.wretch.cc/blog/doomer/4196774
The author is yy5000, if you have any problem, here is his contact info:
ICQ: 2930386
MSN: [email protected]
Email: [email protected]
Also you can change the language according to the following:
First you have to download the plugin smart_lyric.plg and put it into tcpmp directory.
Moreover, you would see a file named language.tgz in your tcpmp directory.
There are many language files within it, extract what language you need.
For example, lang_cht.txt ( Traditional Chinese )
You need to ADD several lines to the end of lang_cht.txt because smart_lyric.plg need the follwing interface settings
English Version
SLRC0000=Lyric
SLRC0020=Align
SLRC0021=CodePage
SLRC0022=Slide
SLRC0023=FontSize
SLRC0024=FontSize
SLRC0025=LineSpace
SLRC0026=CloseTimer
SLRC0027=CloseHour
SLRC0028=CloseMin
SLRC0029=ImageNo
SLRC0030=ColorPlay
SLRC0031=ColorNormal
SLRC0032=BackgroundColor
SLRC0033=LyricPath
SLAL0100=Left
SLAL0101=Center
SLAL0102=Right
Thanks tekknogenius. Always nice to know who to give the real credit to
it's nice skin, thanks a lot
good
good skins, thank you

Question: Mov or flash background possible?

Hi there,
Is it possible to have a moving background instead of an .jpg/.bmp/.png with in the FT3D menu?
I've installed the background4all tool so my kids are constant in my view!
But I'd like to have a new picture ones in a while.
Or better a small movie!
So is there a tool that would let me play a flash file, a movie file or a gif file?
On my Dell Axim X51 I had flash themes! but I didn.t have the program to create them with.
I would like to have them in my FT3D but if that is not possible a flash theme is ok to.
Thanks!
Greetings from Holland!
Mike
I don't know about moving backgrounds but I know you can have a panoramic background. I saw it on here somewhere.
mr.horndoctor said:
I don't know about moving backgrounds but I know you can have a panoramic background. I saw it on here somewhere.
Click to expand...
Click to collapse
What do you mean with a panoramic background? Is that a 10 pictures wide wallpaper that scroll to the left or right when I go from home to internet or massages??
That would be cool to, but I have a floder on my HTC with about 60+ pictures of my family. All resized to the screen size of my HTC pro.
That's why I would like to have a flash wallpaper player or an other moving wallpaper player.
But Thanks for the info!
I'm going to look for it now!
Anyone els who has an idea for my request?
Ok i got an Idea
There is Mortscript an is aw a script what changes Wallpaper.. you can customize the script to speed of change and add the Pics in the same folder as script...
good luck finding it i will lock after it when i have time or i could upload it...
found the Threat -> http://forum.xda-developers.com/showthread.php?t=435041

[Q] Steps needed to create a live wallpaper from FLV?

Hi all,
I am wanting to create a live wallpaper and have a FLV file with the animation that I'd like to use.
Can anyone provide some steps that I need to take in order to get a FLV as a live wallpaper?
Will I need to capture each frame as a png and iterate through them in my code? I've seen examples of where this is used, with 3-4 pngs, but my animation may end up with a couple hundred if I captured each frame!
Is there a way of just playing the file as my wallpaper with no conversion?
I'd like to be able to package the wallpaper into an APK and distribute it via the market too...
Thanks.
Anyone....?
majinfaisal said:
Anyone....?
Click to expand...
Click to collapse
Somewhere in this forum I have seen a live wallpaper creator. You can create it by importing single screens,
I think the easiest way would be to take screenshots from the single frames, edit & resize them and use that tool.
EDIT: found it: here

[Q] How to open a Photosphere from an Imagebutton in a Fragment

I have setup a simple application with a Navigation Drawer, with some different fragments.
In my "Photos" fragment, I have a ImageButton that I want to open a Photosphere.
Is this even possible? I've read this blog post and this page, but I have no clue on how to implement it.
I've tried to copy the code used on the blog post, but it doesn't work.
Any help/guidance is much appreciated.
/Christian
If you have the Uri of that image, I think you need to use a Panorama client to view it in the gallery.
SimplicityApks said:
If you have the Uri of that image, I think you need to use a Panorama client to view it in the gallery.
Click to expand...
Click to collapse
THanks man, I solved it
fluffenforliberty said:
THanks man, I solved it
Click to expand...
Click to collapse
Great

Categories

Resources