WP7 Screen capture program
[OBSOLETE, INSTEAD USE Screen Capturer v3]
Program structure
At application start Jaxbot's dehydrate hack, its enabled automatic by setting some registry values (that enables sort of multitasking). So that you can just run this app, go to home, enter the wanted app of you choice that you want to capture.
Brief info about how this app has functionality to take captures.: Uses The DllImport Project to talk to the system that enables C# code to call C++ for me.
The app is actually only an infinitive loop that listen for [Focus]-key.
As you can see below, a Sleep is enabled of 500ms to spare your battery so that is does not spam the system cpu with a while loop that runs forever, draining your battery fast.
Code:
public static void StartHook()
{
Phone.Screen.init();
bw = new BackgroundWorker();
bw.DoWork += bw_DoWork;
bw.RunWorkerAsync();
}
static void bw_DoWork(object sender, DoWorkEventArgs e)
{
int key = (int)Phone.KeyboardHook.PhysicalKeys.Focus;
while (true)
{
if (DllImportCaller.lib.GetAsyncKeyState7(key) != 0)
{
Phone.Screen.Capture cap = Phone.Screen.CaptureScreenToPictures();
var str = string.Format("PictureName: {0}\nTimeElapsed: {1}ms\nPictureByteSize: {2}",
cap.PictureName, cap.TimeElapsed.TotalMilliseconds, cap.PictureByteSize);
int res;
DllImportCaller.lib.MessageBox7(str, "Screen Capture", (uint)MB.MB_OK, out res);
}
System.Threading.Thread.Sleep(500);
}
}
In App instructions (Web)
[Checkbox] Jaxbot' Dehydrate hack (On / Off)
- This is for yourself, so you can toggle the "multitask" after capturing the app.
- Automatic activate on app launch (this)
"How to":
- Enter this app
- Navigate to the app you want to capture (no more than 2 apps in between (this app will be killed by "Watchdog"))
- Hold "focus" (not click, >focus), for at least 500ms
- Wait for messagebox to verify capture
- (SUCCESS) > Located under "Pictures > All > Saved Pictures"
Extras comments by me
(100% Verified to work (on mine lol))
Test pictures made at the moment: 460!
Fixed-list
- (1.0.1) Collision with real "Dll Import" when the guids are the same
- (1.0.2) GUI + Standalone + No collision with overwrite whats so ever (Same GUID)
- (1.0.3) "In-app dehydration toggler" + "better experience", EPIC release
- (1.0.4) Fail-safe, for sure no more multiple capture bug (2-4). (Test: I Can hold focus for 1 min and only one is captured).
- (1.0.4.0.0.0.1) For some random reason without debugger it took 1-6 captures, but WITH the debugger i could hold it for a minute and only one would be captured. Fixed now with a "Sleep()" to prevent 1+.
- (1.0.5) Now, problem with 2 msg box are 100000% GONE NOW! Ill pay you money else if 2 come up lol, jk
> Problem was located in "CSharp___DllImport.MainPage(); .ctor" that ALSO hooked to key-press.
- (1.0.5, HD2 edition) Now supports HD2, works now because its binded to "Search" instead of "Focus" -button; Aka "Search version".
Thanks for my time
Thanks!
Feature request: disable / enable dehydration from within the app. Maybe an option to automatically reenable dehydration after the screenshot. I don't want to leave dehydration on, because of performance and batterylife.
Well done!
Heathcliff74
Heathcliff74 said:
Thanks!
Feature request: disable / enable dehydration from within the app. Maybe an option to automatically reenable dehydration after the screenshot. I don't want to leave dehydration on, because of performance and batterylife.
Well done!
Heathcliff74
Click to expand...
Click to collapse
Is there a good cross device that can toggle dehydrate? Because of how i see it its device specific (root access). Is there a basic lib out there that i know exist somewhere, ill implent it.
Thanks for criticism
Fantastic ! Thanks for this app. Confirmed working on my HD7.
Attached some screenies.
contable said:
Fantastic ! Thanks for this app. Confirmed working on my HD7.
Attached some screenies.
Click to expand...
Click to collapse
Thanks for reporting (cross compiled anyways (device non-specific)).
> One "thanks" for you
fiinix said:
Is there a good cross device that can toggle dehydrate? Because of how i see it its device specific (root access). Is there a basic lib out there that i know exist somewhere, ill implent it.
Thanks for criticism
Click to expand...
Click to collapse
I'm not sure, but I believe the registry value that needs to be set can be changed with the normal registry api (no root access required). I could be wrong though. If it doesn't work, then the COM dll's from Samsung and HTC will work for sure. But you need to add the COM dll's for all the different brands and they have different interfaces. It isn't too hard though.
By the way, the criticism was meant as "constructive criticism" I appreciate your work.
Ciao,
Heathcliff74
Heathcliff74 said:
I'm not sure, but I believe the registry value that needs to be set can be changed with the normal registry api (no root access required). I could be wrong though. If it doesn't work, then the COM dll's from Samsung and HTC will work for sure. But you need to add the COM dll's for all the different brands and they have different interfaces. It isn't too hard though.
By the way, the criticism was meant as "constructive criticism" I appreciate your work.
Ciao,
Heathcliff74
Click to expand...
Click to collapse
Yep thats what i tried to say, "constructive criticism", forgot how to call if fully out
Also working fine on my OMNIA 7. I can enable/disable dehydration with advanced config tool on both devices.
@Heathcliff:
After testing the HD7 for some weeks now I decided to go back to the OMNIA 7 when you have finished your work. The HD7 isn´t nearly as good as the OMNIA 7 but atm the best choice if you wanna do some customizations...
wow, thanks for the app! Here are some of my own screenshots
Thanks for your work, but I have now the same problem like this tread.
Ddriver said:
Thanks for your work, but I have now the same problem like this tread.
Click to expand...
Click to collapse
Oh, right, cant have the same "AppId" on two apps. Then the apps will fail sometimes.
Ill leave a small update to fix some problems.
edit: Fixed (update at first page) (1.0.1)
fiinix said:
Oh, right, cant have the same "AppId" on two apps. Then the apps will fail sometimes.
Ill leave a small update to fix some problems.
edit: Fixed (update at first page) (1.0.1)
Click to expand...
Click to collapse
Thanks for the update. But...
Now stay the "PhoneRestartApp" again on my Mozart, but the "BatteryStatusApp" flay a way. ;(
fiinix said:
Oh, right, cant have the same "AppId" on two apps. Then the apps will fail sometimes.
Ill leave a small update to fix some problems.
edit: Fixed (update at first page) (1.0.1)
Click to expand...
Click to collapse
... nothing is fixed it overwrite my batteryMeter
Ddriver said:
Thanks for the update. But...
Now stay the "PhoneRestartApp" again on my Mozart, but the "BatteryStatusApp" flay a way. ;(
Click to expand...
Click to collapse
if you're having problems with the batteryStatusApp, try this one instead:
Newer battery app
CopyCounsler said:
if you're having problems with the batteryStatusApp, try this one instead:
Newer battery app
Click to expand...
Click to collapse
I have exactly this one on my Mozart and hi flay a way after the installation from the "ScreenCaptureApp". 8)
Ddriver said:
I have exactly this one on my Mozart and hi flay a way after the installation from the "ScreenCaptureApp". 8)
Click to expand...
Click to collapse
All this is fixed now.
Great work fiinix
Function all like a charm, thanks a lot for this app.
any word on disable / enable dehydration from within the app?
munkeyphyst said:
any word on disable / enable dehydration from within the app?
Click to expand...
Click to collapse
Have found an open source solution on that. That works on all platforms.
It is buggy but works! That's the important thing, thank you so much! Keep up the great work!
Sent from my HD7 using XDA Windows Phone 7 App
Related
Hi guys.
Who wanted a free barcode scanner? Here we are...
No network connection needed; app based on zxing library and Kevin Marshall's (from Clarity Consulting, can't remember his blog url now) code.
I just slightly modified the original code and added a few (probably useful but not sure ) services.
App interface is very simple: run application, focus on barcode, and wait until code is recognized. Touch handset screen to run recognition again.
Buttons description:
- "Save" saves captured barcode to jpeg;
- "Bing" and "Google" used for barcode web lookup (probably this part needs more work)
- "Mail" and "SMS" used for sending recognized code text.
Enjoy!
UPDATE 1: v 1.1, auto focus added;
UPDATE 2: v 1.2, orientation-less UI added, project moved to opensource at googlecode: http://code.google.com/p/barcodescan/
UPDATE 3: v 1.2.1, slightly changed autofocus logic, now works better on HTC. Download link: http://barcodescan.googlecode.com/files/BarcodeScanner.xap
UPDATE 4: v 1.2.2
- barcode search improved;
- added HTC detection, changes in autofocus logic;
http://barcodescan.googlecode.com/files/BarcodeScanner_1.2.2.xap
Is this a marketplace app?
sensboston said:
Hi guys.
Who wanted a free barcode scanner? Here we are...
No network connection needed; app based on zxing library and Kevin Marshall's (from Clarity Consulting, can't remember his blog url now) code.
I just slightly modified the original code and added a few (probably useful but not sure ) services.
App interface is very simple: run application, focus on barcode, and wait until code is recognized. Touch handset screen to run recognition again.
Buttons description:
- "Save" saves captured barcode to jpeg;
- "Bing" and "Google" used for barcode web lookup (probably this part needs more work)
- "Mail" and "SMS" used for sending recognized code text.
Enjoy!
Click to expand...
Click to collapse
I can't seem to get it to do anything. It says 'Scanning...' and I'm trying different distances to codes, but nothing ever happens. Any pointers?
Is this limited to any country or is it just reading out what the barcode says?
OK, lets go through step by step:
- it's not a marketplace app and have no chance to be published 'cause it uses undocumented camera API; you should download and unpack attachment and sideload the app;
- if you can't capture the barcode, try better lighting. Also, move a handset to autofocus camera. In my tests the scanner captured 100% of barcodes: from books, computer part boxes, foodstuff...
- it's not limited to US 'cause (I believe) the barcodes are international. And yes, it's just reads the barcode; however you may bing or google results, in the most cases search engines able to find product/book description or specifications.
It's a very basic scanner; if someone can recommend online API/service to parse barcode value, I can add it to the program (but I really do not want to spend much time for this)
It technically works but the issue is lack of AF or Macro access.
On my Focus, it only works if I scan a barcode off of my PC (do an image search for one) --then it's super fast and quick.
Books, CDs, etc. do not work, regardless of lighting or distance--I suspect because the camera is not trying to AF. Any work around to that?
I've tested first on HTC Surround - work perfect (I can prove). But you've right about Focus'es bad autofocus (LOL, sound nonsense - "Focus have no autofocus"!).
Will see what I can do... Any other suggestions or wishes (about barcode lookup, UI, etc.)?
P.S. Fixed (reload version from the first post), now working good on Samsung Focus.
sensboston said:
I've tested first on HTC Surround - work perfect (I can prove). But you've right about Focus'es bad autofocus (LOL, sound nonsense - "Focus have no autofocus"!).
Will see what I can do... Any other suggestions or wishes (about barcode lookup, UI, etc.)?
P.S. Fixed (reload version from the first post), now working good on Samsung Focus.
Click to expand...
Click to collapse
Boom.
Working great on Focus now. Nice job. Think I'll try an LG next... bwahaha
As far as changes, no none right now. I'm sure what other apps use for barcode price comparisons--but perhaps a tie into Amazon or eBay would be good. Too bad you can't just jack into ShopSavvy's system with it, lol. If I think of any, will post back.
Edit: Working on LG Quantum too!
sensboston said:
I've tested first on HTC Surround - work perfect (I can prove). But you've right about Focus'es bad autofocus (LOL, sound nonsense - "Focus have no autofocus"!).
Will see what I can do... Any other suggestions or wishes (about barcode lookup, UI, etc.)?
P.S. Fixed (reload version from the first post), now working good on Samsung Focus.
Click to expand...
Click to collapse
hmm, 1.0 wasn't upside down, but 1.1 is upside down on my Focus. Anyone else see this?
davux said:
hmm, 1.0 wasn't upside down, but 1.1 is upside down on my Focus. Anyone else see this?
Click to expand...
Click to collapse
Nope. Fine on my Focus. It does work with accelerometer, you sure that isn't it?
Works well on my HD7! Great job! Hopefully it will tie in with Amazon and save previous searches within the app etc
sensboston said:
Hi guys.
Who wanted a free barcode scanner? Here we are...
No network connection needed; app based on zxing library and Kevin Marshall's (from Clarity Consulting, can't remember his blog url now) code.
Enjoy!
UPDATE: v 1.1, auto focus added;
Click to expand...
Click to collapse
Do you have any interest in releasing the source? I may have some time to improve upon this a bit, but I'd rather not start from scratch (or step on any toes re-creating virtually the same thing).
malatesta said:
Nope. Fine on my Focus. It does work with accelerometer, you sure that isn't it?
Click to expand...
Click to collapse
Good call, I was holding it strangely every time I opened it before. It works great.
davux said:
Do you have any interest in releasing the source? I may have some time to improve upon this a bit, but I'd rather not start from scratch (or step on any toes re-creating virtually the same thing).
Click to expand...
Click to collapse
Why not? I'm really do not have time for that project...
Here we are: http://code.google.com/p/barcodescan/
Send me a PM with your gmail and I'll add you to the project contributors. Do not forget comment each commit, increment solution version and promptly build community release (and upload xap to the project's download page!) - and you allset
BTW, there are many things to improve: better UI (completely orientation-less), additional functionality - commit found barcodes to database etc. etc. etc.
Please review and follow these rules, it appears you aren't following them, you most likely aren't following the template. So fix it quick . It is not a harsh criticism, it is just for consistency and better for the user. PM me for help or support!
If this post is here and your thread is closed, it means that you aren't following them and your intentions are for gain only.
~~Tito~~
problem htc hd7
how do i copy this scanner programme to my htc hd7
i really hate this phone i had a htc touch pro 2 and it was far better can someone help me out here and also if some one can teach me how to customize personal ringtone would be great
Thx for the code. Really usefull to learn from this
Sometimes when you scan a barcode and touch the screen to start again. After a few seconds it stops and shows the last barcode again.
It looks like the UI thread is catching up scanning some images. How to get rid of this?
ajhvdb said:
It looks like the UI thread is catching up scanning some images. How to get rid of this?
Click to expand...
Click to collapse
Sorry, I don't have a time for that application now but it should be significantly refactored.If you want you may join the project and continue development, we can share some ideas for app improvement etc.
As for problem u described, you should play with the different capture resolutions or give some hardcoded "pause" to recognition library Also, MS camera API (still not officially allowed) is not documented and very poor... However it's a great field for experiments and hacks
Thanks! That works great on my HD7.
~~Tito~~ said:
Please review and follow these rules, it appears you aren't following them, you most likely aren't following the template. So fix it quick . It is not a harsh criticism, it is just for consistency and better for the user. PM me for help or support!
If this post is here and your thread is closed, it means that you aren't following them and your intentions are for gain only.
~~Tito~~
Click to expand...
Click to collapse
Please follow up on this!
sensboston said:
Sorry, I don't have a time for that application now but it should be significantly refactored.
Click to expand...
Click to collapse
Im not that experienced in multiple threads. Do you think the problem is in the Zxing lib?
Looking at the code the Zxing lib should have a completed event from which you can restart or show the image.
This code works but is racing and racing in the UI thread and after finding a barcode and restarting it looks like something from a buffer is used..
Code:
private void GrabFrame()
{
Dispatcher.BeginInvoke(() =>
{
if (_Camera != null && CameraVisualizer.Visibility == Visibility.Visible)
{
WriteableBitmap wb = new WriteableBitmap(640, 480);
_Camera.GetCurrentFrame(wb);
wb.Invalidate();
ScanBarcode(wb);
wb.DisposeIfPossible();
GrabFrame();
}
});
}
Hello again
I figured out a quick little change in the WMAppManifest.xml file that allows you to make your XAPs resume, rather than restart, when clicked on from the start menu.
Here's a demonstration:
So here's how it works:
In every WMAppManifest.xml file, located inside the XAPs, there's a line called "DefaultTask". In the Visual Studio IDE, there's little you can do with this line, but if you edit it post-compiling, you can actually do a lot of things. In this case, adding the term ActivationPolicy="Resume" to your DefaultTask will make the application resume the task, rather than replace it (default action). Here's an example:
Original:
Code:
<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" />
Resumable:
Code:
<DefaultTask Name="_default" NavigationPage="PivotPage.xaml" ActivationPolicy="Resume"/>
This follows the same rules as the back button resuming, for example, if my dehydration hack is enabled, the code will resume instantly, and otherwise, it will resume with the usual "resuming..." message. It'll make sense
Should be fairly easy for you guys to figure out, and hopefully we'll see some developers integrate this directly into their code
For the end users, though, I've created a simple tool that does this patch for them, then deploys. Info and download over on my website:
http://windowsphonehacker.com/resumablexap
I'd say more, but I'm in a bit of a hurry. Let me know what you guys think, if you have any questions, etc.
Your friend,
Jaxbot
Awesome. Imma try this in a bit with some .xap files I got stored somewhere... jejeje
Sent from my []D[][]V[][]D ARRIVE using Board Express
thanks for this app
really nice find
Cool hack thanks again
I have been experimenting with some xaps with this.
I found some quirky apps:
- Facebook (u already know)
- IMDB
- NU.nl
- Daily motion (does not play the video anymore)
All others I tested seem to work fine. I did not test any games.
Its probably bad coding or not storing the back history or something.
Thanks for the tool. It helps with productivity.
I btw notice more quirky behaviour with the dehydrate on (I could be mistaken)... how is your batterylife Jaxbot? Is it fine with normal use? Or do we have to be sure to close the apps etc?
Are the apps stored in ram temporarily?
Does it affect general performances if you have 4/5 apps in "soft sleep" ?
Sakem said:
Are the apps stored in ram temporarily?
Does it affect general performances if you have 4/5 apps in "soft sleep" ?
Click to expand...
Click to collapse
If you have my dehydration hack enabled, yes, they're in the RAM.
In my experience, no, the performance isn't really affected (there's a reason for that), and as an example, I've had Twitter open for the last few days and I've seen no negative impacts.
So its an updated version of this one:http://forum.xda-developers.com/showthread.php?t=999475
FPM
FlowerPotmen said:
So its an updated version of this one:http://forum.xda-developers.com/showthread.php?t=999475
FPM
Click to expand...
Click to collapse
Not really. That dehydration hack allowed applications to stay open in the background. This method allows applications to be resumed from that state, directly from the start menu.
Eg, the instant resuming allowed Twitter to be instantly resumed when the lock screen popped up, or when you dive into messages and then click Back.
This allows Twitter to be navigated from, and then returned to, say, a day later, and it will still be where you left it. Nifty, I thought.
Does this new hack improve IM+ functionality? Will the app still have to reconnect with this hack? If so is this related to the lack of sockets in NoDo?
blindpet said:
Does this new hack improve IM+ functionality? Will the app still have to reconnect with this hack? If so is this related to the lack of sockets in NoDo?
Click to expand...
Click to collapse
It has to reconnect yes. This is the way IM+ is coded. However the contacts will still be displayed on the screen so its less annoying for sure.
It will look the same as opening IM+ then exit by pressing windows button, than click back, the exact same effect... only now you will have the same if you press a live tile
Thanks for the quick reply, guess I'll have to wait for Mango for true messaging functionality despite all the hard work of devs.
blindpet said:
Thanks for the quick reply, guess I'll have to wait for Mango for true messaging functionality despite all the hard work of devs.
Click to expand...
Click to collapse
If you use native sockets, you can get around this, but it means you'll have to code your own IM client, which is no fun.
if do this to all of your xap and dehydration hack.
it look like u have real multitask.
parnunu said:
if do this to all of your xap and dehydration hack.
it look like u have real multitask.
Click to expand...
Click to collapse
Indeed yes... Unfortunately in some cases it screws up the order of the backbutton press and you will not be able to "escape" from apps or go back to the main Menu. IMDB, FB, some others as well will have to be recoded in order to work with this hack
posted on wmpu
awesome job jaxbot per usual! cheers!
domineus said:
posted on wmpu
awesome job jaxbot per usual! cheers!
Click to expand...
Click to collapse
Thanks for the post (saw it a second ago), but you need to update it:
This is for *current* Windows Phone builds, not Mango. Mango already has this feature built in.
Eg, if you have a developer unlocked device, you can use this on NoDo, pre-NoDo, RTM, etc. You don't need Mango.
Jaxbot said:
Thanks for the post (saw it a second ago), but you need to update it:
This is for *current* Windows Phone builds, not Mango. Mango already has this feature built in.
Eg, if you have a developer unlocked device, you can use this on NoDo, pre-NoDo, RTM, etc. You don't need Mango.
Click to expand...
Click to collapse
I said that in the article too
domineus said:
I said that in the article too
Click to expand...
Click to collapse
Yes, but this has nothing to do with Mango. In fact, it probably wouldn't even work on Mango.
Regardless, I do appreciate the mention
Jaxbot said:
Yes, but this has nothing to do with Mango. In fact, it probably wouldn't even work on Mango.
Regardless, I do appreciate the mention
Click to expand...
Click to collapse
and I'm sorry too
I've been trying to amend it and it won't amend
However I did note in the comment it works on all devices
I sincerely apologize for the mixup darn thing didn't save at all ><
wordpress fail sorry man
domineus said:
and I'm sorry too
I've been trying to amend it and it won't amend
However I did note in the comment it works on all devices
I sincerely apologize for the mixup darn thing didn't save at all ><
wordpress fail sorry man
Click to expand...
Click to collapse
No worries, I know the drill Just wanted to make sure you knew, wouldn't want trolls getting on ya
Good luck man, and again, thanks for the mention
~Jaxbot
Hi hackers,
Threw together something fun for you: a one-click (don't sue me, Bezos) app for enabling or disabling multitasking (no-dehydrate) on Mango. Fast app switching + full multitasking = awesome! Disabling multitasking when you need to save battery = convenient!
Credit to Jaxbot for working out the no-dehydration registry change. That's all this app is, just a convenient way to toggle that registry value.
I'm going to try to add support for more devices (Samsung Focus S and HTC phones that have lost the ability to use COMRegRW.dll).
UPDATE 1.1.1: Case sentitivity recognizing SAMSUNG now fixed, Samsung and LG confirmed!
UPDATE 1.1: Better Samsung support, possible LG support.
Features:
Secondary tile with deep linking! Shows current multitask state and toggles it when tapped.
Supports HTC, LG, Samsung phones.
HTC phones need to not have the latest HTC updates, as those break the Registry driver I used.
The latest DFT ROM works, and others that support TouchXplorer probably do too.
I'm working on a way to make it work with official ROMs as well - you can help out here: http://forum.xda-developers.com/showthread.php?t=1335862
Works on Mango! Uses no homebrew DLLs.
Limitations:
No Dell/Asus/Toshiba/Nokia/etc. support yet (find me a registry function and I'll add them, though).
Doesn't work pre-Mango; it's a 7.1 app (could be downgraded pretty easily).
Requires interop-unlock.
Instructions:
Unpack ZIP file and find the XAP in MultiTaskToggle\Bin\Debug.
Install app on an interop-unlocked Mango phone.
Run app and ensure it loads the current value.
[Optional] Select the value you want; it will set immediately.
[Optional] Tap "Live Tile" button to create a tap-to-toggle secondary live tile.
This app is a simple wrapper for the OEM registry edit DLLs to make use of Jaxbot's hack. I wrote it largely just for familiarity with mango homebrew. The source is a bit of a mess right now - I took an existing homebrew library and beat it savagely until it worked on Mango, but didn't really put the pieces away neatly afterward - but it's simple enough I expect somebody else can use it for good things. Personally, I plan to make an app that allows easy general-purpose registry edits on Mango, though I still don't see any way to do registry browsing.
Thanks to XDA member MarysFetus for taking the time to do a visual overhaul of the app, with nice icons and such. It's much more artistic than my solid-color tiles with simple text! Grab the xap directly below. You can also visit the site: http://www.suicideclown.com
Thanks to XDA member singularity0821 for doing more visuals for the app, with a new (and flipping) live tile. I've included that XAP below as well.
Downloading to test now.
Oh. wow nice tool.Fast toggle MultiTask no need to edit registry by using touchexplorer and connection setsetup
Doesn´t run on OMNIA 7.
"System.Runtime.InteropServices.COMExeption (0x80070032)..."
Custom Skin
Great App,
but personally wanted to do an custom design, so I've changed color values in the MainPage.xaml file, but for some reason I am getting an error while building the xap.
Anyone knows how to fix that?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Error Code is in German.
@Moderators: delete if this necessary.
MarysFetus said:
Great App,
but personally wanted to do an custom design, so I've changed color values in the MainPage.xaml file, but for some reason I am getting an error while building the xap.
Anyone knows how to fix that?
Error Code is in German.
Click to expand...
Click to collapse
Error in English;
Code:
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight for Phone\v4.0\Microsoft.Silverlight.Common.targets(249,9): error : Could not load file or assembly 'Microsoft.Phone.InteropServices, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
Thank u very much.....
It works great in my HTC Mozart....
regards
work on HTC HD2 Mango 7720 (BTTF)
edit:
change between Dehydrating and Multitasking with Live Tile also working
MarysFetus said:
Great App,
but personally wanted to do an custom design, so I've changed color values in the MainPage.xaml file, but for some reason I am getting an error while building the xap.
Anyone knows how to fix that?
Error Code is in German.
@Moderators: delete if this necessary.
Click to expand...
Click to collapse
Read: http://thounsell.co.uk/2010/11/avoiding-reflection-adding-the-interopservices-library-to-the-wp7-sdk/
fiinix said:
Read: http://thounsell.co.uk/2010/11/avoiding-reflection-adding-the-interopservices-library-to-the-wp7-sdk/
Click to expand...
Click to collapse
Make sure to read the comments about using Visual Studio Command Prompt. I had to do this after copying in the dll & editing the filelist XML.
Yeah, I had to get around the Strong Name Validation too, before it would compile. People have said it shouldn't be necessary but I ran into it all the time.
Thanks for testing, folks! Let me know if you find any bugs or have feature requests.
contable said:
Doesn´t run on OMNIA 7.
"System.Runtime.InteropServices.COMExeption (0x80070032)..."
Click to expand...
Click to collapse
Hi Contable,
That's unfortunate, but I need more info to fix it. There should be a stack trace; can you tell me where in my code the exception is coming from? It's probably either the way I'm accessing the registry on Samsung, or the way I'm deciding whether it's a Samsung device or not. Either one can probably be fixed, if I know what's broken.
Unfortunately, the old way of determining what device I'm on (checking a registry key) doesn't work until I know what registry reader to use (the generic reader doesn't work in mango).
Big thanks if you help me get this working!
Hah... you ever felt like a total idiot before, doing something the unreliable and hard way when there's no need to? Yeah... there's an official API to get the OEM name. LOL @ all those registry-based versions.
New version coming soon. Fixes to Samsung support; please test again. Possible LG support too, please test that also! Still needs Mango.
EDIT: Update is live, now! Please let me know if it works on non-HTC, and give me a bug report if it doesn't. Thanks!
GoodDayToDie said:
Hi Contable,
That's unfortunate, but I need more info to fix it. There should be a stack trace; can you tell me where in my code the exception is coming from? It's probably either the way I'm accessing the registry on Samsung, or the way I'm deciding whether it's a Samsung device or not. Either one can probably be fixed, if I know what's broken.
Unfortunately, the old way of determining what device I'm on (checking a registry key) doesn't work until I know what registry reader to use (the generic reader doesn't work in mango).
Big thanks if you help me get this working!
Click to expand...
Click to collapse
Here my reply:
V1.1 doesn´t work either. After starting the app on my screen appears a message: "Unknown Manufacturer: SAMSUNG Please report at XDA..."
GoodDayToDie said:
Hah... you ever felt like a total idiot before, doing something the unreliable and hard way when there's no need to? Yeah... there's an official API to get the OEM name. LOL @ all those registry-based versions.
New version coming soon. Fixes to Samsung support; please test again. Possible LG support too, please test that also! Still needs Mango.
EDIT: Update is live, now! Please let me know if it works on non-HTC, and give me a bug report if it doesn't. Thanks!
Click to expand...
Click to collapse
just downloaded latest and installed on LG Quantum. app works fine, live tile works fine as well. not sure if it does what it says though. still tinkering to see if the settings actually have an effect. should I see a change o fthe setting under settings/background tasks?
That always lists Tasks "on", irrespective of what I do with your app.
edit1: hmm. just tried to turn the Tasks under background tasks in WP7 to off. Now I can't turn it back on. any idea why that is?
edit2: in addition to the observation above it seems some of my multitask programs stopped working in multitasking (they crash on resume, or refresh instead of resume - e.g. bbc news mobile, wpcentral). Is it possilbe your program can have this effect and how to fix it?
edit3: it seems it's only bbc news that crashes. others seem to work fine. maybe that wasn't working before I sideloaded your app (likely).
contable said:
Here my reply:
V1.1 doesn´t work either. After starting the app on my screen appears a message: "Unknown Manufacturer: SAMSUNG Please report at XDA..."
Click to expand...
Click to collapse
LOL case sensitivity fail. Thanks for testing though, try version 1.1.1
GoodDayToDie said:
LOL case sensitivity fail. Thanks for testing though, try version 1.1.1
Click to expand...
Click to collapse
Thanks button is pushed.
V1.1.1 is confirmed to work on OMNIA 7.
I like the concept of the live-tile toggle. A Bluetooth toogle is still a dream...
derausgewanderte said:
just downloaded latest and installed on LG Quantum. app works fine, live tile works fine as well. not sure if it does what it says though. still tinkering to see if the settings actually have an effect. should I see a change o fthe setting under settings/background tasks?
That always lists Tasks "on", irrespective of what I do with your app.
edit1: hmm. just tried to turn the Tasks under background tasks in WP7 to off. Now I can't turn it back on. any idea why that is?
edit2: in addition to the observation above it seems some of my multitask programs stopped working in multitasking (they crash on resume, or refresh instead of resume - e.g. bbc news mobile, wpcentral). Is it possilbe your program can have this effect and how to fix it?
edit3: it seems it's only bbc news that crashes. others seem to work fine. maybe that wasn't working before I sideloaded your app (likely).
Click to expand...
Click to collapse
Thanks for the report that it works on LG! First post updated.
You can read more about the change by reading about Jaxbot's multitasking hack - that's all this is, a convenient way to enable or remove it. The simple asnwer to "what does it do" is that if you background an app (hit Start, hit Camera, hit Search, lock the screen, answer a phone call, tap on a streen-top toast, switch apps uing Mango's fast app switcher, etc.) the app you were running won't exit. This means it doesn't need to be re-loaded when you switch back, and also means that if it's running a timer or similar in the background, that can still run. However, it also consumes RAM and may decrease battery life.
Mango is completely un-aware of this hack, even though it makes fast app switching work better. Settings -> Background Tasks (a new Mango control panel) has nothing to do with it and shows no changes when I enable or disable the hack.
If you want to test if it's working, this is easy. Enable multitasking using the app. Then, open any NoDo app with a significant load time (anything from Facebook to Plants vs. Zombies). Once that app is loaded, hit the Start button. Then, hit the Back button. If the hack is working, the app will resume instantly, no re-loading at all.
contable said:
Thanks button is pushed.
V1.1.1 is confirmed to work on OMNIA 7.
I like the concept of the live-tile toggle. A Bluetooth toogle is still a dream...
Click to expand...
Click to collapse
Awesome, thanks for testing and reporting!
GoodDayToDie said:
Thanks for the report that it works on LG! First post updated.
Mango is completely un-aware of this hack, even though it makes fast app switching work better. Settings -> Background Tasks (a new Mango control panel) has nothing to do with it and shows no changes when I enable or disable the hack.
Click to expand...
Click to collapse
thanks for the clarification. Got it. It's good to know it's flying under Mango's radar. Just wasn't sure. The change in the Background Tasks I see must be something else. Apparently something I do not understand at this point. It showed "on" before, now after turning it "off" I can't turn it back to "on".
Wait wait hold up... Are you telling me you have interop working on Mango?
Looks like I've been out of it for the last few months. Good work, to all the developers who have been working towards this, and hey, glad to see my hack is still useful come Mango time
Yesterday, I posted a test version in wpxap.com, and now this is the updated version.
= Step =
Click "Start Capture Task" to start capturing (A timer will start, and during this period, application will listen to Camera button event)
You may need to wait one or several seconds, a message box will show up to let you know you can start catpuring.
Navigate to any application, and touch Camera button to capture the screen
A message box will show if the capturing is success, you can capture 20 images a one time (yes, you can ask for more if you want)
When the Capture Task ends, a Toast will show up to let you save the captured image, tap the Toast to return to application
The thumbnail will list and the captured images will stored in Pictures Hub
Tap the thumbnail will delete the temporary image file in the application folder
= Settings Help =
Prevent Capture Task auto run: Capture Task uses BackgroundAgent to run and wait for Camera button event, BackgroundAgent may auto run in some case, enable this option to stop auto capture.
The Capture Task duration: How long will the Capture Task run before it stop to accept Camera button event.
= Notice =
Game and movie is not supported in this version.
The Capture Task only save temporary file, you need go back to application to trigger saving file to Picutres Hub.
BIG thanks to Heathcliff74, I followed his guide here:
http://forum.xda-developers.com/showthread.php?t=1299134
BIG thanks to fiinix, the DllImport project is a very great project, it help me a lot when I stucked:
http://forum.xda-developers.com/showthread.php?t=1006331
If you like my work, please buy me a beer.
Great improvement compared to V2 ! Thanks for that.
Now I know who you are: The creator of Chome Visual Editor.
Nice to see you here. Long time I used your tool for editing cpr´s on my OMNIA II.
Also (late) thanks for that app !
Best regards
contable
Nice work, great improvements.
A suggestion from my side:
Let the user decide whether he wants to save the captured image or delete it inside your app.
This means when the user has finished his capture session by pressing "no" go straight back to your app (remove the toast for saving the image). By long-pressing on a captured picture appears a menu:
view (if possible)
delete
save to picture hub
send via sms or email (if possible)
Regards
contable
Great work, thanks a lot~ The new version is really awesome!
not working on HTC HD2 (with camera button on hardware key)
is possible to get source code? thx
contable said:
A suggestion from my side:
Let the user decide whether he wants to save the captured image or delete it inside your app.
This means when the user has finished his capture session by pressing "no" go straight back to your app (remove the toast for saving the image). By long-pressing on a captured picture appears a menu:
view (if possible)
delete
save to picture hub
send via sms or email (if possible)
Regards
contable
Click to expand...
Click to collapse
+1
and increase the pic quality
thx, m8!works pretty good on my HTC Mozart!
Thank you, excellent app...i'll use this one a lot.
i have a samsung focus, and when i click start capture, i don't get any message or anything...
edit: nvm, restarted my phone and it works now...that was weird...
Thank you Sir!
perfect! thx
Installed on my HD2 running official Mango. I installed using Tom's XAP installer v1.2. Also not working with my hardware button. It says the action is complete, but it doesn't show in the recent area of the application.
I still say the layout and design is great.
I am trying to figure out how he called a com dll without using the interop services
addicus said:
Installed on my HD2 running official Mango. I installed using Tom's XAP installer v1.2. Also not working with my hardware button. It says the action is complete, but it doesn't show in the recent area of the application.
I still say the layout and design is great.
Click to expand...
Click to collapse
The HD2 camera button issue is allready known since fiinix has released the first version of the screen capture app...
Does it work for videos yet?
slimshady322 said:
Does it work for videos yet?
Click to expand...
Click to collapse
No, only for images...
contable said:
No, only for images...
Click to expand...
Click to collapse
I guess you misunderstood me. I know that it will not record the screen but instead make a screenshot and that's fine for me.
What I meant was whether this app can make a screenshot of a playing video.
Can you read? It´s on the first page.
slimshady322 said:
I guess you misunderstood me. I know that it will not record the screen but instead make a screenshot and that's fine for me.
What I meant was whether this app can make a screenshot of a playing video.
Click to expand...
Click to collapse
No. I tried it with a youtube video...
contable said:
The HD2 camera button issue is allready known since fiinix has released the first version of the screen capture app...
Click to expand...
Click to collapse
Is there a work around?
I've created a simple app to restart the phone. It's based on DLLImport by fiinix.
Cleaned it up a little and added source.
Video by WPXBOX
View attachment 772512
Cool stuff !
Do you think you could create a shortcut to the internet sharing settings page ?
Cool,
now take also out the Interop-Lock and we are all happy.
Sent from my 7 Mozart using XDA Windows Phone 7 App
Thx
nice App.......it`s possible to add PowerOff ?
grüsse markus
Nice. I like the option to pin to the start screen.
go2mp said:
Thx
nice App.......it`s possible to add PowerOff ?
grüsse markus
Click to expand...
Click to collapse
Well, you could also press the power button for that
contable said:
Cool stuff !
Do you think you could create a shortcut to the internet sharing settings page ?
Click to expand...
Click to collapse
As far as I know there is no way to do that right now.
Ddriver said:
Cool,
now take also out the Interop-Lock and we are all happy.
Sent from my 7 Mozart using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Sorry I don't think it's possible this time.
singularity0821 said:
As far as I know there is no way to do that right now.
Click to expand...
Click to collapse
In general you just have to call a .exe file in the windows folder. This way worked the first shortcuts I had for the OMNIA 7. Maybe in case of the internet sharing page it´s the softap.exe, but not important...
Another question:
Do you know the guid I have to call when your restart app is pinned ?
I mean if I want to execute the restart function directly not the app...
I would like to add the pinned tile to my created Homebrew folder, not the app with the settings page.
contable said:
In general you just have to call a .exe file in the windows folder. This way worked the first shortcuts I had for the OMNIA 7. Maybe in case of the internet sharing page it´s the softap.exe, but not important...
Another question:
Do you know the guid I have to call when your restart app is pinned ?
I mean if I want to execute the restart function directly not the app...
I would like to add the pinned tile to my created Homebrew folder, not the app with the settings page.
Click to expand...
Click to collapse
I don't know if that's possible. The guid should be the same as it is the same app.
OK, I'm not sure why this needs ID_CAP_INTEROPSERVICES - you should be fine without it. Did you try it that way? Unless your code is opening a driver handle, you don't need that capability. Native code works just fine with only the Interop manifest.
To call the live tile function directly, it's the same GUID but you need to know the parameter that passed along with the live tile. Calling the app with that parameter will start it and trigger the OnNavigatedTo event with the correct parameter.
GoodDayToDie said:
To call the live tile function directly, it's the same GUID but you need to know the parameter that passed along with the live tile. Calling the app with that parameter will start it and trigger the OnNavigatedTo event with the correct parameter.
Click to expand...
Click to collapse
So please give me a hint how to figure out the guid...
I´m sure that it is stored somewhere on device.
It is stored on the device, both in the file system and in the app manager. Neither of those are terribly useful though, so the simpler way is to open the XAP directly, and look in the WMAppManifest.XML file.
ProductID="{ede8d6f6-4b64-43b0-8be6-1c98def5ca85}"
As for the parameter you have to pass to make it think it's coming from the live tile, you'll either need to decompile the DLL or ask the author (or get the source code, which it would be awesome if more people just included up front).
By the way, ID_CAP_INTEROPSERVICES is already commented out of the manifest. You do not need interop-unlock for this app!
GoodDayToDie said:
It is stored on the device, both in the file system and in the app manager. Neither of those are terribly useful though, so the simpler way is to open the XAP directly, and look in the WMAppManifest.XML file.
ProductID="{ede8d6f6-4b64-43b0-8be6-1c98def5ca85}"
As for the parameter you have to pass to make it think it's coming from the live tile, you'll either need to decompile the DLL or ask the author (or get the source code, which it would be awesome if more people just included up front).
By the way, ID_CAP_INTEROPSERVICES is already commented out of the manifest. You do not need interop-unlock for this app!
Click to expand...
Click to collapse
I know how to get the productID, the problem is the mentioned parameter.
I want to add it to my with Jaxbot´s tool created homebrew folder...
The author don´t know either, I allready asked him.
Anyway thanks for trying to help me.
Edit: I totally agree that more people should post the sourcecode, too.
The author certainly does know - it's that thing which distinguishes "was I launched fromt the live tile or not?" that you check for in the OnNavigatedTo event handler. It's a string URI which is applied to the live tile when it is created, and is part of the live tile's identity (the URI must always be unique).
Nice application! Could you please share the source with us? I am still looking for examples that uses DLLimport
GoodDayToDie said:
The author certainly does know - it's that thing which distinguishes "was I launched fromt the live tile or not?" that you check for in the OnNavigatedTo event handler. It's a string URI which is applied to the live tile when it is created, and is part of the live tile's identity (the URI must always be unique).
Click to expand...
Click to collapse
So I don´t know either why I don´t get this information...
contable said:
So I don´t know either why I don´t get this information...
Click to expand...
Click to collapse
I was busy in the afternoon...
Guys, give me a moment.. I'll upload the source.
So done.. Sorry for not giving clear answers before...
And I also tried to figure out how to add it to folders. The parameter passed to the main page is tile. In the previous version I did it in a stupid way and I better spare you the details
Oh and if you figure out how to add it to the folder please let me know.
Great (+)