[Q] How to open a Photosphere from an Imagebutton in a Fragment - Java for Android App Development

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

Related

PocketCM like for emails ?

Hi,
Does somebody knows if there is a 'PocketCM contact' like application to replace email or calendar. I've seen some initiatives from OTO but nothing for email.
Thanks
Ced
d_ced said:
Hi,
Does somebody knows if there is a 'PocketCM contact' like application to replace email or calendar. I've seen some initiatives from OTO but nothing for email.
Thanks
Ced
Click to expand...
Click to collapse
If you are referring to the scroll features of pocketcm...install ftouchflo
If I were to guess, d_ced was referring to both the nice scrolling as well as the large (finger friendly) items to be tapped with a thumb.
I would like such an email interface too.
+1
kwickone said:
If I were to guess, d_ced was referring to both the nice scrolling as well as the large (finger friendly) items to be tapped with a thumb.
I would like such an email interface too.
+1
Click to expand...
Click to collapse
like i said install ftouchflo....works great for me when dealing with email
ljinsane said:
like i said install ftouchflo....works great for me when dealing with email
Click to expand...
Click to collapse
I don't' thik so. I like pocket CM sms management and shuld be great have a similar interface for mail writing
ljinsane said:
like i said install ftouchflo....works great for me when dealing with email
Click to expand...
Click to collapse
I would love to see a screenshot of your email app with large email items to be clicked on. I still can't visualize how touchflow would do any more than just allowing for finger swipe scrolling.
Thanks.
guap said:
I don't' thik so. I like pocket CM sms management and shuld be great have a similar interface for mail writing
Click to expand...
Click to collapse
there are programs that have similiar funtions as the sms function in pocketcm...search is your freind.....
kwickone said:
I would love to see a screenshot of your email app with large email items to be clicked on. I still can't visualize how touchflow would do any more than just allowing for finger swipe scrolling.
Thanks.
Click to expand...
Click to collapse
I was referring to the scrolling features not large finger friendly items....its not needed in email...ftouchflo works just fine imo
ljinsane said:
there are programs that have similiar funtions as the sms function in pocketcm...search is your freind.....
Click to expand...
Click to collapse
obviously I searched it before posting, but no luck, can you point me?
edit:
ljinsane said:
I was referring to the scrolling features not large finger friendly items....its not needed in email...ftouchflo works just fine imo
Click to expand...
Click to collapse
that's the point... dont reply "search is your friend....." if you don't even understand what we are looking for...
ljinsane said:
there are programs that have similiar funtions as the sms function in pocketcm...search is your freind.....
Click to expand...
Click to collapse
Can't you just stop trolling?
There are some people interessted in such an app. Me included. The PocketCM Interface is just awsome.
I agree....this would be extremely convenient when you factor in trying to select a recipient. This is a great idea.
I would also have a PocketCM interface in E-mail!
d_ced said:
Hi,
Does somebody knows if there is a 'PocketCM contact' like application to replace email or calendar. I've seen some initiatives from OTO but nothing for email.
Thanks
Ced
Click to expand...
Click to collapse
This app has some new email interface.
See here:
http://au.youtube.com/watch?v=d1DoaBKylsQ
App is here:
http://forum.xda-developers.com/showthread.php?t=336234
It's a Cube, but the guy made a new email finger friendly interface.
Try it.
mikhe69 said:
This app has some new email interface.
See here:
http://au.youtube.com/watch?v=d1DoaBKylsQ
App is here:
http://forum.xda-developers.com/showthread.php?t=336234
It's a Cube, but the guy made a new email finger friendly interface.
Try it.
Click to expand...
Click to collapse
Are you sure? All I've seen is a launch of poutlook.
OOps. You're right...I didn't look at the video. Cool
I'd love either a PointUI for pOutlook or a PocketCM for same.
mikhe69 said:
This app has some new email interface.
See here:
http://au.youtube.com/watch?v=d1DoaBKylsQ
App is here:
http://forum.xda-developers.com/showthread.php?t=336234
It's a Cube, but the guy made a new email finger friendly interface.
Try it.
Click to expand...
Click to collapse
WoooooooWWWWWW it looks great on the youtube clip, i'am just installin.. Great found mate, thanx alot
mikhe69 said:
This app has some new email interface.
See here:
http://au.youtube.com/watch?v=d1DoaBKylsQ
App is here:
http://forum.xda-developers.com/showthread.php?t=336234
It's a Cube, but the guy made a new email finger friendly interface.
Try it.
Click to expand...
Click to collapse
Thanks for the info mikhe69. I am not a big fan of "cubes" per se, but I will check it out.
As far as I know, this App is Flash based... which uses memory and stuff... the programer is working on a C++ based version, but this seems to be a basic cube, without the extensions so far.
slowatsch said:
Can't you just stop trolling?
There are some people interessted in such an app. Me included. The PocketCM Interface is just awsome.
Click to expand...
Click to collapse
i'll reply to what I want to period...dont like it dont read it.....its the internet stop taking it too serious
guap said:
obviously I searched it before posting, but no luck, can you point me?
edit:
that's the point... dont reply "search is your friend....." if you don't even understand what we are looking for...
Click to expand...
Click to collapse
I do understand what you are looking for and guess what ....someone just posted an app in this thread...again search is your friend....
slowatsch said:
As far as I know, this App is Flash based... which uses memory and stuff... the programer is working on a C++ based version, but this seems to be a basic cube, without the extensions so far.
Click to expand...
Click to collapse
I agree, thanks anyway mikhe69. Maybe PocketCM author can help us
@ljinsane: I ask because I don't find it with search, you should help me posting a link, not trolling saying "search is your friend" ok? Forum is cooperation

[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.

X1 Panel HTML pseudo-handlers

If anyone discover more pseudo-handlers for HTML panel development. Post them here.
The current ones discovered are
Contacts
Contacts
Click to expand...
Click to collapse
Calender
Calendar
Click to expand...
Click to collapse
Tasks
Tasks
Click to expand...
Click to collapse
Webpage in Internet Explorer
Open google.com
Click to expand...
Click to collapse
Webpage in Opera Mobile
Open google.com
Click to expand...
Click to collapse
Phone
Phone
Click to expand...
Click to collapse
Launch Bubble Breaker Game
BubbleBreaker
Click to expand...
Click to collapse
To launch applications from the Program Files directories you need to use something of this form. The "%CE1%" sets you to the program files directory
Google Maps
Replace %CE1% with any of these to go to the directory
%CE1% = \Program Files
%CE2% = \Windows
%CE11% = \Windows\Start Menu\Programs
%CE14% = \Windows\Start Menu\Programs\Games
%CE17% = \Windows\Start Menu
%CE18% = <default volume, dependent on device configuration>
%CE19% = \Application Data
Click to expand...
Click to collapse
To launch the messaging facility you can use ...
Messaging
Click to expand...
Click to collapse
Great idea!
Nice stuff. But how do you open URL with Opera instead?
And how do you start an installed app?
Im not too sure. I spent while yesterday trying to figure out where the root read directory is.
EDIT: Seems the exe's are located in \\Windows\
So, im guessing if you wanted to launch a website in Opera it would be
Open google.com
Click to expand...
Click to collapse
I can confirm ^^ works
Evostance said:
Im not too sure. I spent while yesterday trying to figure out where the root read directory is.
However I couldn't find cprog.exe on the phone....
Click to expand...
Click to collapse
cprog is in windows as are the others.
fards said:
cprog is in windows as are the others.
Click to expand...
Click to collapse
Yep found it thanks
Evostance said:
Im not too sure. I spent while yesterday trying to figure out where the root read directory is.
EDIT: Seems the exe's are located in \\Windows\
So, im guessing if you wanted to launch a website in Opera it would be
I can confirm ^^ works
Click to expand...
Click to collapse
Great stuff.
But how to launch other installed apps (the ones in \program files\)?
Lovsten said:
Great stuff.
But how to launch other installed apps (the ones in \program files\)?
Click to expand...
Click to collapse
Not sure yet. However most of the apps should be in \\Windows
How about trying the winmo aliases, can't find a list of em at the mo, but : DEFBROWSER and the like. (without the space, stupid smilies)
Then the paths have defined shortcuts but I can't find a list of those either (I'd best go to bed too tired, before I fail to find that as well) something like CE% points to /windows etc.
Launching Other applications
To launch applications from the Program Files directories you need to use something of this form ...
Google Maps
The "%CE1%" sets you to the program files directory
To launch the messaging facility you can use ...
Messaging
Please note I've only tested the two examples I have given at the top not these other ones here for access to other areas of windows mobile
%CE1% \Program Files
%CE2% \Windows
%CE11% \Windows\Start Menu\Programs
%CE14% \Windows\Start Menu\Programs\Games
%CE17% \Windows\Start Menu
%CE18% <default volume, dependent on device configuration>
%CE19% \Application Data
More info can be found here ...
http://msdn.microsoft.com/en-us/library/ms839402.aspx
nice one that was the list i was looking for last night...
hi,
im making a new panel and have been able to make the app start by pressing on a button on my panel. is it possible to make the app autostart when i press u press on the panel?
if so could someone post the code i need.
thanks
Hi there and thanks for this tips!
I've got an application saved on my memory card, any idea how to specify the link to be able to start the app?
Thanks
Stefan
Hi again,
Having tested a bit more I realised there is one more basic thing I don't get to work besides figuring out the right path to the memory card.
I have an application that I have developed myself. The application can be started by going browsing for the file in the file explorer, and then clicking it. the question then is; How do I then make a link in my html-panel to start the application?
I thought I could use the links like above, but exchange the name of the application to the file-path? This seems to work for my installed applications, e.g. Xperia Tweak can be started by with:
XperiaTweak
Click to expand...
Click to collapse
But my own application can not be started with:
VOR applikation
Click to expand...
Click to collapse
Any ideas what I'm doing wrong? Or are there alternative ways of starting up my application?
Br
Stefan
Hi there,
I'm building my own panel and get stuck with some links that are on my memory-card.
I want to link to G-Alarm wich is on \Opslagkaart\Programmabestanden\ageye\G-Alarm\GAlarm.exe (yeah, that's Dutch), but the link to
extended://app:start?app=\Opslagkaart\Programmabestanden\ageye\G-Alarm\GAlarm.exe
Click to expand...
Click to collapse
doesn't work. I get a . NET CF initialising error. Strange because I can open these from the Start menu. Same goes for moBlog:
extended://app:start?app=\Opslagkaart\Programmabestanden\moBlog\moBlog.exe
Click to expand...
Click to collapse
And does someone know where to link to if I want to start the MSN chat, the Calculator and the Notes?
When I've taken care of these little issues, I'll share my panel here. Thanks in advance!
Ganondolf said:
hi,
im making a new panel and have been able to make the app start by pressing on a button on my panel. is it possible to make the app autostart when i press u press on the panel?
if so could someone post the code i need.
thanks
Click to expand...
Click to collapse
you have to register edit,
go to software- sonyericson- panelmanager or something like that
http://developer.sonyericsson.com/site/global/home/p_home.jsp
Holds alot of information to.
is it possible to make a button for sms that change its icon when new sms is received?
like spb mobile shell sms icon?
tnx
Anyone Know any more?...
Hi gys, been working on a HTML panel and cant find out the following info.
I'm sure all the exe's have additional args, is there anywhere that has them all together.
one im looking for is for the tmail.exe so i can show sms when i click on the image.
i have at the moment
Code:
a href="extended://app:start?app=tmail.exe" img src="email.bmp" alt="email"></a>
this will open the mail app but not automatically select the email screen.
Anyone know the right arguments?
It's really annoying that this isnt held centrally somewhere, sony need to get in gear, lol!
Opening a .lnk file
Hi guys / gals,
i have a two .lnk file in windows folder that will allow me to create a new text msg and allow me to go to sms view in tmail.exe.
How would i open these using html?
tried a few variations.
href="\WINDOWS\NewSmsMsg.lnk" will open the text contained in the file and messes up the panel, sets the panel screen to be the text inside the shortcut file from then onwards, the panel must be uninstalled to fix that issue.
calling href="WINDOWS\NewSmsMsg" done nothing
same as href="NewSmsMsg" and ="NewSmsMsg.lnk"
Anyone got any ideas.
Annoying as clicking on these shortcuts in the windows folder will do the desired action, just trying to get me html panel to do more useful actions.
Oh and you can write java script in html panels, it's in the example html panel for visual studio creating panels, not sure about flash, have not tried it, it probably JS only being microsoft.
Camera working, notes, msn messenger, calculator
here is the code to run camerarunner.exe that some people have had an issue with:
Code:
<img src="camera.png" alt="Images"/>
hope that helps some people out.
also to run notes its:
Code:
<img src="notes.png" alt="notes"/>
messenger is:
Code:
<img src="messenger.png" alt="Messenger"/>

Share Intent animated GIF

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!

StackOverflowError in getString()

Here's crash stack http://pastebin.com/C5pGuhKh
this started after I moved hardcoded strings into .xml with automatic refactoring (IDEA13)
Very strange
GR0S said:
Here's crash stack http://pastebin.com/C5pGuhKh
this started after I moved hardcoded strings into .xml with automatic refactoring (IDEA13)
Very strange
Click to expand...
Click to collapse
Well it seems that you are recursively calling your toString method in the HeroFragment... Could you give us the code of that method?
http://pastebin.com/pFK2TTEe
http://pastebin.com/nkwsxCsb PagerAdapter
http://pastebin.com/BnTu6Bni Fragment
GR0S said:
http://pastebin.com/nkwsxCsb PagerAdapter
http://pastebin.com/BnTu6Bni Fragment
Click to expand...
Click to collapse
That's a really funny error... from the logs I would guess that somehow the getString(R.blabla) method needs to get the calling class and also calls toString... Although I don't see that in the Android source code.
My solution would be to just don't override toString at all and use a different name like getTitle to prevent the system from calling that...
Well it worked before I moved strings. It was return "string"
SimplicityApks said:
That's a really funny error... from the logs I would guess that somehow the getString(R.blabla) method needs to get the calling class and also calls toString... Although I don't see that in the Android source code.
My solution would be to just don't override toString at all and use a different name like getTitle to prevent the system from calling that...
Click to expand...
Click to collapse
Well I won't be able to do that without my own fragment implementation. I found mistake, it's not possible to use getString() before activity attachment, probably I have to mess with reflection.
GR0S said:
Well I won't be able to do that without my own fragment implementation. I found mistake, it's not possible to use getString() before activity attachment, probably I have to mess with reflection.
Click to expand...
Click to collapse
Right, or you could just make a method returning the required title per id inside your activity that is then called by the ViewPager

Categories

Resources