[BIG FAIL] Unmerging posts dont worry - Your Mod, ~~Tito~~ - Windows Phone 7 Software Development

will the WP7 support for the old apps of wm?
i know, only market apps, but if we can cook, then we can add a install app existent which install apps, this if the programs have acess to the file system and register.

As far as current information goes, there is no support for legacy software, so I don't think that the libraries necessary for WM6.5 hardware would be on the phone.
Also the window-management (if one wants to call it that) would be completely different in the Windows Phone 7 series.
Another important thing is that it is based on a different kernel than Windows Mobile 6.* (which uses Win CE 5.1). I don't remember what the last number was but it could either be the Win CE 6 Kernel or as was rumored some time ago: the first use of the new Win CE 7 Kernel. This means that lots of API might have changed or be missing.

if we would manage to cook our own custom WP7 ROMs in the future then we also can get us access to the native api. however it won't be possible to run standard wm 6 applications due to GUI components missing. But we still could develop some nice little hacks, tools, services, free customization or maybe even build libraries with native functions exported (to re-use them in the Silverlight apps) to allow us develop something like a simple file explorer, task switcher or registry editor! though not sure about the Silverlight part. What are some .NET experts saying there?

Silverlight and Isolated Storage
When I first read, that there was no direct access to the FileSystem and instead the Silverlight isolated storage was to be used I wondered wether the regular Silverlight Quota's for the isolated storage would apply.
Anyone who wants to know more on what IsoStore quotas are can look for more information here: http://msdn.microsoft.com/en-us/magazine/dd458794.aspx
Suffice to say, that for Silverlight 2 there was a default quota of exactly 1 Megabyte of Storage Space (which could be expanded by querying the user). So I went to find out if this would apply to WP7s Applications as well.
Luckily there are methods for requesting exactlly this information.
This told me that I have: 1 927 Megabytes of free space and that the quota limit is set to the maximum value supported by a long variable - which implies no quota limitation.
The question remains: is this only true of the emulator image or will this apply to the final phones as well (my guess currently is that the 1.9 GB of free space imply 2 gb storage space on the emulator image and ~ 90 mb being used by the system and IE).
I hope somebody thinks this information is useful, I'll perhaps try how much i can fill this memory up and how big my programm can get in memory next.

How do I create 'pages' in VS?
I've downloaded the new VS Express and made a basic GUI app, but I can't figure out how to make pages. Please see my pic below to understand what I am refering to.
Has any one figured this out or seen any guides on how to do this?
{
"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"
}

Don't remember where I saw it, but I think pages or "pivots" as they have been called are disabled in this release of the sdk.
Edit - It's on page 57 of the UI Design and Interaction Guide.

Yup it's meant to come in the updated release, also support for Visual Basic

Visual Basic
I just downloaded Windows Phone Developer tools and i can see only support for C#.
Does that means that they are still working on VB part or that they done with VB and i should finally start learning some real programming languages?

check this out... good behavior that works like the panoramic control for that might be released in future versions of the SDK
http://aimeegurl.com/2010/03/18/pan...ne-7-with-no-code/comment-page-1/#comment-966
hope this helps

you know what I'd like to see?
The WP7 homescreen consists of hubs, right? and swiping it to the left, gives you a list of applications. The app list doesn't seems to be finished yet, but how likely will it be, that this page will eventually be made available for UI customization? I mean, the hubs/tiles interface should still be the main screen when getting the phone out of standby, but the app page could an ideal spot for custom UI, just by a swipe of your finger. just a thought.

Quote from the developer forum
Hi folks,
I have some great news!
I received feedback from the GPM for the Microsoft VS Languages team, who indicates:
"there will definitely be support for writing VB apps for Windows Phone 7, but we are still working on the details and the timeline".
Best Regards,
Mark

mrabie said:
http://aimeegurl.com/2010/03/18/pan...ne-7-with-no-code/comment-page-1/#comment-966
hope this helps
Click to expand...
Click to collapse
Cool link!

Yay, i can postpone my VB to C switch
Thx for info

Thanks for pointing out where in the guide it said that. Also thanks to mrabie for that link. I hope the 'pivot' template released with the final version of VS is a simpler though.

You can probably get away with using VB in SL4 using the VB edition of VS2010. Just avoid using any libraries or controls that SL4 doesn't support in WP7. Then when they launch WP7 it will just be a matter of re-making your interface and copy & pasting most of the code.
Beware: I am an idealist

Silverlight limitation \ work around
I was investigating if it was possible to create a Silverlight (SL) application that can help IT people with basic task; ping, trace-route, port scan, viewer HTTP headers, etc. Unfortunately Silverlight doesn't seem to be cable of doing any of this. Very disappointing to learn.
Anyway, the only work around I can in-vision is if a program were to be installed on that network that had all these abilities and then SL could just be used as a remote control. Since many of us in this forum are tech savoy people, I'm curious as to your feelings toward such an application.
Personally, I would use it only as a last resort. I have a similar application for my iphone, but its all self contained on my phone which makes it great when I have to troubleshoot a foreign network.

Possibly you could do the part about an http-header viewer, but as silverlight and XNA currently don't give you access to the ip-stack itself, port-scanner, ping, tracert don't seem possible.
A fact, MS hopefully will address. As to an application which does this from the phone using a proxy: if i have to setup that proxy first, I'd rather stick with that machine for the occasional ping, tracert, too - but that's just me. Nice idea anyway.

Arabic support in the development tools? [Edit: resolved]
Hello
I'm new to WM development and trying to learn on the WM 7 CPT tools released last week. I try to change label text to Arabic characters but they show up as squares. Are the current tools not yet supporting such languages or is there a work around?
On a semi-related note, is anybody else experiencing some lag while playing around the emulator? It just seems quite slow. I'm running on quite a decent PC (quad core, 2gb ram etc).

How would I go about downloading a file?
How would I download a file from the internet onto the phones storage?
I got a text file in mind, and I'd like the text from the file to be displayed in a text box.
So does anyone know how I would go about doing this?

LooperNor said:
How would I download a file from the internet onto the phones storage?
I got a text file in mind, and I'd like the text from the file to be displayed in a text box.
So does anyone know how I would go about doing this?
Click to expand...
Click to collapse
You don't need to download it to the storage device to be able to display a text file from the net. I haven't developed on WP7 yet, but assuming you can use System.Net.dll and System.IO.dll:
C#:
Code:
HttpWebRequest hwr = HttpWebRequest.Create("http://www.google.com/Robots.txt");
WebResponse resp = hwr.GetResponse();
StreamReader sr = new StreamReader(resp.GetResponseStream());
this.textBox1.Text = sr.ReadToEnd();
sr.Close()
edit:
And looking at Scottgu's Twitter code example, you should be able to do:
Code:
private void Form1_Load(object sender,EventArgs e)
{
string url = "http://www.google.com/Robots.txt";
WebClient wc = new WebClient();
wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
wc.DownloadStringAsync(new Uri(url));
}
void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
if (e.Error != null)
return;
string DownloadedText = e.Result;
this.textBox1.Text = DownloadedText;
}

Related

EDITORIAL: Newest Interface Schemes for WindowsMobile/ Android HTC Phones

There's a lot of development at XDA, but often hard to get a snapshot of what is happening all over the site. Since this topic covers multiple phones, and is about modifying the whole user interface of the phones, it seems right to post it here. I would like to see more energy put into User Experience design -- and general usability -- as opposed to just replicating what's out there.
For me, all the effort that's been spent on replicating the Windows 6.5 interface is such an un-leveraged, fairly wasteful use of time and energy -- other than for decoration purposes so someone can say "I've got the invisible honeycomb look!". ( Microsoft's CEO Ballmer himself, as most industry analysts, have seen it as a lame band-aid for Microsoft to APPEAR to be innovating after apple kicked its ass. This is why what should have been a HUGE marketing & branding campaign, heralding WINDOWS PHONE as the new brand for Windows Mobile as instead been fairly low-key. Because the phones are all out there already from HTC, etc, but they're running the ugly, left-in-the-dust 6.5 interface. Ballmer acknowleged WindowsMobile 7.0 should be out -- and THAT could be a game changer. It will for sure have elements of the Zune HD interface, which is following the interface "family" (or eco-system -- new word of the year) of Windows 7.0 desktop user experience )
I'd like to see what user interface designers think about all of this.
It seems to me that the world of touchscreen phones has, essentially, four navigation schemes:
(1) Apple iphone is a grid-based icon system, which "sells" the idea of specialty apps -- as replacements for 90% of them which could be web pages displaying through a decent mobile browser.
(2) Palm's Web OS, which essentially uses a full screen version of Apple's own "coverflow" display system -- providing a context-view of what else is nearby the main window you're working with.
(3) Android's widget-based system -- which I view as enabling unrestricted usage of the entire screen, to be adapted into custom navigation schemes and display systems for applets & widgets.
(4) WM's old-fashioned pull-down menu, click-through to tiny-type interface screens, all inconsistent from one another, forming a hodge-podge stick and glue user experience. It just barely gets you where you need to go.
(I know all of these can be, and should be, disputed. But it's just to set the stage for: what can we do on HTC phones that provides flexible and rapid-access interfaces for the functions people use most).
---------------------------------------
So here are some examples:
---------------------------------------
This is the interface for a new WindowsXP phone made in China. I saw this today on GIZMODO:
{
"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"
}
--
The above XP phone interface is not for Windows Mobile, but for fully functional Windows XP OS. So we see more convergence of platforms and devices. But there are some resemblances to some other schemes emerging, some of which we see at XDA:
For example:
1. FEWidgets Ultimate 1.0b12 , screenshots below:
It's nice to see some original thinking going on here, vs just accepting TouchFlo 3 as a great interface just because it's shipping on so many phones.
2. HTC's Hero theme transformed people's view of the possibilities for Android OS ...
To me, android's initial round of wallpaper schemes made the whole UI appear lifeless and ugly, like some bad imitation Salvador Dali painting. But HTC's Hero showed how some simple graphical elements could transform the overall appearance of Android -- which I am sure made Android's makers very happy, since they built something with an open architecture. (I want to save Sense UI for separate discussion)
3. ANDROKKID (from XDA's iFonz developer)
Written in dot net, this is the newest interface scheme from "simo" of simosoftprojects.com. He developed about 4 iterations of the iFonz interface over a two-year period before putting it to bed earlier this year in favor of the more Android-like "Anrokkid". Once simo moved away from ifonz (icon grid) and towards androkkid, the "radical change" was making the whole screen addressable in terms of navigation and display elements, and open-source widgets.
Now that we see the Hero Theme for Androkkid, to me this look also demonstrates the greater power available to revamp the entire look of Androkkid... more than just dragging around some widgets on a phone desktop.
Some emerging examples:
--
Would love to get some comments -- and some posts of other current interface schemes being developed here at XDA. thanks!
(Mods -- if this thread belongs elsewhere, would you please move it and PM me so that I understand where and why. thank you)
Please tell me hot upgrade above mentioned very damn good products on my i780....?
psolunke said:
Please tell me hot upgrade above mentioned very damn good products on my i780....?
Click to expand...
Click to collapse
Sorry I don't know what the i780 is ... I probably should, but I don't. Is it an HTC phone?
I think the best investment of time right now is ANDROKKID -- because I read recently that the developer of FEWidgets has less time to move along his excellent UI ....
Androkkid thread is here:
http://forum.xda-developers.com/showthread.php?t=540428
You have to invest time to go read and follow its instructions. People are very helpful in the thread. The main thing you may want to know is that Androkkid is an application that installs with a .cab file. It has never been cooked into a ROM, as far as I know. Because it is unnecessary to do so.
It requires Microsoft .net compact framework.
Samsung i780..now I hv WM 6.5 in it.
Please let me know how can you help me out.
psolunke said:
Samsung i780..now I hv WM 6.5 in it.
Please let me know how can you help me out.
Click to expand...
Click to collapse
It's very simple:
Go to the link for the thread I listed above -- the official ANDROKKID thread, and post there: "How do I install Androkkid on my Samsung 1780 running WM 6.5 ?"
Seriously, I cannot help you. Only they can. good luck.

WM Trojan Dialer, a case for sandboxed apps/managed code

As seen here http://forum.xda-developers.com/showthread.php?t=650393 theres a game that people have downloaded that is infected with a trojan that calls out to expensive international numbers at midnight,
I can imagine the guys at Gizmodo/Engadget etc having a field day with WM Trojan racks up bills etc. and the bad press it brings to Windows Mobile
Is this a case for WP7 and its Silverlight/XNA written apps only and apps that can be withdrawn from a single market place instead of dodgy copies hitting numberous websites?
DMAND said:
Is this a case for WP7 and its Silverlight/XNA written apps only and apps that can be withdrawn from a single market place instead of dodgy copies hitting numberous websites?
Click to expand...
Click to collapse
{
"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"
}
You realize of course that your [thread] title doesn't match the contents of the thread at all?
Your title purports to suggest sandboxing and managed code, which are both good ideas, and then in the thread itself you talk about restricting the APIs available on the platform to Silverlight/XNA and restricting distributing to the Marketplace, which is a terrible idea.
"Managed code" -- in case you weren't aware -- is terminology created by Microsoft for code that interacts exclusively with the CLR.
BUT IN CASE YOU DON'T KNOW, P/INVOKE IS PART OF THE CLR, SO "MANAGED CODE" CAN STILL ACCESS NATIVE APIS!
"Sandboxing" can refer to a broad range of concepts, all of which are relatively good ideas (although some are more expensive in terms of overhead than others).
I think the best thing that Microsoft could do to prevent attacks like this -- rather than locking down their whole OS like Apple-wannabes -- is to implement the multi-user paradigm of Windows NT6.x and/or Linux on their phone OS.
See the problem -- as far as I can tell -- is that Windows CE is a single-user operating system. Much like Windows 9.x. Which means that processes only run in one context: Administrator.
So any process that is running on your Windows CE device, has full access and control of the device/operating system. This is why you experience so many lock-ups/crashes on CE-based devices.
In a modern multi-user operating system, processes can run in one of two contexts: User or Administrator. The User context has no access to the system itself -- it is effectively sandboxed. It can still wreak havoc in many ways, but it cannot bring down the operating system because it doesn't have the privledges to access the APIs et cetera that it would need to do so. The Administrator context still exists, and the user chooses to elevate processes there when the need arises -- this is what UAC, runas, su, and sudo are for in Windows/Linux.
These are the devices that should be implemented on a phone OS, not draconian lock-in schemes that turn a phone OS into a phone appliance.
Well, actually making phone calls should never prompt for elevated permissions as far as I am concerned.
In the case mentioned above a game has an add on functionality which doesn't play nice, so even prompting on installation (which WinMo 6.5 does), doesn't help matters.
The CLR incorporates a pretty sophisticated permission management but it's terrible to deal with it, even if as a programmer you know what things are about - pushing it onto the end user of a phone in my opinion would be a pretty bad idea.
Cases like this one are exactlly why the way Microsoft intends to deal with software, is a great idea for a default behavior - although I would like to be able to sideload applications.
But honestly, if people could sideload at all, they would activate it in masses, if even for one dumb farting app, outside the marketplace that everyone thought was cool. I'm not talking about devs or Power Users but about people using Google to find: how to get app xyz working.
Pretty soon a situation would arise like the one we could see some weeks ago, when a virus infested lots of jailbroken iPhones in Australia. The problem was that simply after jail break, most didn't change the administrator password of the phone, allowing telnet connections from the phone network.
I don't like the situation that arises with WP7 and I really hope we will get access to APIs for doing actual phone calls, accessing the PIM data, etc. but yes: sandboxing with reduced permission sets without elevation is the way to go when MS tries to change the way WinMo is perceived by many: unstable and easily compromised.
off topic/
Please copy / paste / timetravel / this conversation back to 1975, to a non-suspecting group of consumers, along with the PDA and tell them this is how we go about calling eachother in 2010. Sandboxed AntiTrojan/Virus Administrative Rights Calling Application Programming Interface and some more of that.
For sure they will protest and kling-on to the old round dialer disk phones.
/end of topic
It''s about control. As many other said and Microsoft implicated, they need more control over the brand/expierence.
In the early months of 2002 you could take your Compaq Ipaq 3870 and hook it up to a Bluetooth GPS, a Bluetooth Phone with GPRS, and have navigation- and web based realtime GPS Tracking software running at the same time.
That is 7 years back. Making that work took 5 minutes (manually configuring COMport splitter).
I sincelery hope that developers will get access to the system at a level that makes the above possible.
lucid said:
off topic/
Please copy / paste / timetravel / this conversation back to 1975, to a non-suspecting group of consumers, along with the PDA and tell them this is how we go about calling eachother in 2010. Sandboxed AntiTrojan/Virus Administrative Rights Calling Application Programming Interface and some more of that.
For sure they will protest and kling-on to the old round dialer disk phones.
/end of topic
It''s about control. As many other said and Microsoft implicated, they need more control over the brand/expierence.
In the early months of 2002 you could take your Compaq Ipaq 3870 and hook it up to a Bluetooth GPS, a Bluetooth Phone with GPRS, and have navigation- and web based realtime GPS Tracking software running at the same time.
That is 7 years back. Making that work took 5 minutes (manually configuring COMport splitter).
I sincelery hope that developers will get access to the system at a level that makes the above possible.
Click to expand...
Click to collapse
LOLLOLOLzzzzzz

Javascript Apps

The KIN's browser has javascript... and I've been playing a few javascript games on the phone and they work wonderfully. And it's really nice that you can pin the web pages on the apps screen. Some games require arrow keys that the kin lacks so games like tetris don't work properly. What i'm trying to get at is why don't we try to develop Javascript applications designed for use with this phone? Downside is you have to have a data plan or be on wifi to use the applications. But on the brightside it is a solution to the lack of apps on the phone.
Below are screenshots of some Javascript apps and the app menu.
{
"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"
}
or we can develope applications that download to the phone and dont require internet?
Personally, two things: no connection needed, saves.
The nvidia part is a monster if used right, and we have a qwerty to map as keys for random emulators (if the OS protection is broken).
And i will use javascript to do some jailbreak or something, like i stated and/or normal website ajax requests....
johnkussack said:
Personally, two things: no connection needed, saves.
The nvidia part is a monster if used right, and we have a qwerty to map as keys for random emulators (if the OS protection is broken).
And i will use javascript to do some jailbreak or something, like i stated and/or normal website ajax requests....
Click to expand...
Click to collapse
I see where you're coming from. It's just this phone is so locked down and we haven't been able to get around it... Possibly some time in the future we may. This is just a proposal for one of the possibilities. I also like the idea of jailbreaking through javascript.
dezgrz said:
The KIN's browser has javascript... and I've been playing a few javascript games on the phone and they work wonderfully. And it's really nice that you can pin the web pages on the apps screen. Some games require arrow keys that the kin lacks so games like tetris don't work properly. What i'm trying to get at is why don't we try to develop Javascript applications designed for use with this phone? Downside is you have to have a data plan or be on wifi to use the applications. But on the brightside it is a solution to the lack of apps on the phone.=QUOTE]
Only if we could download Javascript Apps...
Click to expand...
Click to collapse
WP7-KIN said:
dezgrz said:
The KIN's browser has javascript... and I've been playing a few javascript games on the phone and they work wonderfully. And it's really nice that you can pin the web pages on the apps screen. Some games require arrow keys that the kin lacks so games like tetris don't work properly. What i'm trying to get at is why don't we try to develop Javascript applications designed for use with this phone? Downside is you have to have a data plan or be on wifi to use the applications. But on the brightside it is a solution to the lack of apps on the phone.
Click to expand...
Click to collapse
Only if we could download Javascript Apps...
Click to expand...
Click to collapse
Well, in theory if we could access the storage of the phone so we could read/write files to it... we could store the document on the phone and point the browser to it's location.
dezgrz said:
Well, in theory if we could access the storage of the phone so we could read/write files to it... we could store the document on the phone and point the browser to it's location.
Click to expand...
Click to collapse
as far as i know, KIN's browser doesn't support urls starting with "ftp://" and "file://"
So, i see no way to access files through browser.
JavaScript App Development in Browser
I've experimented with developing hosted applications to run in the web browser (data connection required). Unfortunately, the double-tap delay introduces an irritating latency into the browser's response, making it seem slow. It waits for a second tap for zooming in, then responds to a single tap if the second tap doesn't occur within the wait period.
My experiment was to clone the Calculator application, adding scientific functions below the first step of buttons. When the phone is held horizontally, you have a basic calculator. Turning it vertically reveals the extended functions. Anyway, this latency causes the application's response to lag behind your input.
www .gregsearle.com/kin/scicalc.html (work in progress, somewhat flaky, you'll need to reassemble this link).
This is great, thanks for posting up this website. Does anyone know of other places to access these types of games?
The scientific calculator is finished as a proof-of-concept test, but the browser's tap lag makes it difficult to use. If there was a way to eliminate this lag, browser-based apps may be an effective solution.
I know this sounds noob-ish, but if this thing is based on WP7, then we can
a) get the Windows Phone 7 people to help us create a virus/something to crack the system.
b) Use the Chevron WP7 unlocker to hack the KIN. http://www.chevronwp7.com/
c) Connect an external harddrive/USB to this and see if we can get a connection. If we do, we can load up some sort of program like CWM to flash ROMS, edit the system, etc.
I know my ideas might be stupid, but doesn't hurt to try.
obsama1 said:
but if this thing is based on WP7
Click to expand...
Click to collapse
The thing is that as far as we know, its based on Windows CE 6, not WP7 sorry (though I may be mistaken with my facts)
got one
i found a game that is cached on the phone so it can be played without a connection... www.iminesweeper.com. it's as the name implies minesweeper, but it's better than nothing
obsama1 said:
I know this sounds noob-ish, but if this thing is based on WP7, then we can
Click to expand...
Click to collapse
mscoolnerd said:
The thing is that as far as we know, its based on Windows CE 6, not WP7 sorry (though I may be mistaken with my facts)
Click to expand...
Click to collapse
Correct. The phone was originally planned to be the first WP7 product, but due to time and other issues, they used a very customised build of Windows Mobile 6.
The phone will always attempt to cache the last page loaded so that you can access it offline for a while. However, some pages can't be cached.
Just a thought
Before anyone freaks out on me, know that I haven't done any programming in 10 years (so I'm pretty much useless there), but I can do research for things people have done in the past. I stumbled across a method to cache games called "cache manifest". It seems to have been used by iphone/ipad users a lot (not sure why since they have apps). However, I did add a couple of the games I found that use it to my "apps" page on my KIN and while they can't be played (I guess not a compatible Java), I was able to pull it up 10 hours later without WIFI and see the start screen and some counters and drop down menus. Wondering if anyone has any experience with this and can mention if it may help. If this is useless sorry for wasting every bodies time. I'll give a couple example below.
touchsolitaire.mobi/app
www.roccles.com/external/jquerymobilelocalstorage/
www.gauravmanek.com/projects/3dminesweeper/ipad/index_ipad.html

Find On Page / Forward / View Source bookmarklets

UPDATE: New incremental search on page ("Next" button)!
So, one thing that has annoyed me about Mango are the changes to IE's user interface. I love the new rendering and JavaScript engines, but the UI is a pain. It wasn't enough to hide away the Tabs and Favorites options; they completely removed the "Find on page" and "Forward" menu options.
However, these can be (somewhat) implemented in JavaScript, and stored as Favorites (sometimes called "bookmarklets") that execute the script instead of navigating to a page. This is the approach that was used for iOS 3 and below, for example (which also lacked Find on Page). It also works on the desktop, incidentally.
Together with XDA member @byobge, I set out to create bookmaklets that would reimplement these features on Mango.
Forward was easy. You can simply create a Favorite from any page, change the Name (I use "! Forward" to help it stand out), and set the Web Address box:
Code:
javascript:history.forward()
Find On Page was a lot trickier. For one thing, it's a more complicated action that doesn't have a built-in JS function like Forward. For another thing, IE on WP7 doesn't support the JS prompt() function, for no discernable reason (Mobile Safari does, which is how their version was implemented). To fix this, we created a pseudo-prompt that puts a highlighted bar with a text box and a button at the top of the current web page view. The actual searching and highlighting code was taken from multiple sources through various attempts to make this work, with the final version being borrowed from Jesse Ruderman’s bookmarklet collection on his blog.
UPDATED VERSION: Now adds incremental searching to the page, so it will auto-scroll you between them using a "Next" button!
Just like Forward, create a Favorite on any page, change the name (I used "! Find On Page"), and change the Web Address (Copy/Paste are your friends; make sure you get all of it!):
Code:
javascript:eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4(){4 e(s){b B.1z(s)}4 8(s){b B.1r(s)}4 12(){5 o=w.1w;b o==F?p.1v:o}4 Y(){5 o=w.1P;b o==F?p.1I:o}4 z(s){s.1J=\'1p\';s.1m=\'1M\';s.1i=12()+\'14\';s.1h=Y()+\'14\'}4 G(){5 2=e(\'2\'),9=e(\'9\');k(F==2){2=8(\'T\');2.r=\'2\';5 s=2.7,l=8(\'v\');z(s);s.1g=\'1e%\';s.y=\'#1f\';9=8(\'v\');9.r=\'9\';9.t=\'1d\';2.f(9);l.t=\'1k\';l.u=\'1o\';l.H=4(){P(9.u)};2.f(l);p.f(2)}10{2.7.O=\'S\';a=0}}4 P(s){e(\'2\').7.O=\'1l\';k(s===\'\')b;5 n=D(B.R,s.x(),s.Z),m=8(\'v\'),d=8(\'T\'),c=8(\'v\');1c(s+": "+a);2.13.18(2);d.r=\'U\';z(d.7);d.7.O=\'S\';m.t=\'16\';m.u=\'1b\';m.H=4(){N()};d.f(m);c.t=\'16\';c.u=\'1j\';c.H=4(){1L.1K()};d.f(c);p.f(d);i=a-1;N();b n}4 N(){5 s=e("J"+i),Q=-V,M=-V;s.7.y="X";++i;i%=a;s=e("J"+i);s.7.y="1G";1H{Q+=s.1q;M+=s.1R}1Q(s=s.1O);w.1N(Q,M);z(e(\'U\').7)}4 D(6,K,L){5 q,A,g,h,17,E;A=0;k(6.11==3){q=6.1u.x().1t(K);k(q>=0){g=8("1s");g.r="J"+a;g.7.y="X";h=6.15(q);17=h.15(L);E=h.1x(1y);g.f(E);h.13.1D(g,h);++a;A=1}}10{k(6.11==1&&6.I&&6.W.x()!="1A"&&6.W.x!="1B"){1C(5 j=0;j<6.I.Z;++j){j=j+D(6.I[j],K,L)}}}b A}5 a=0,i=0;5 w=1E,C=B;5 p=C.R;5 1a=C.19;G();C.1n(\'1F\')})()',62,116,'||pf||function|var|nd|style|dce|qt|ct|return|||gebi|appendChild|sp|mN|cur|ch|if|sb|nx|||db|pos|id||type|value|input||toUpperCase|backgroundColor|PAT|skip|document|doc|sN|mC|null||onclick|childNodes|fsp|te|len|yo||display||xo|body|inline|div|dv|30|tagName|red|PXO|length|else|nodeType|PYO|parentNode|px|splitText|button|eB|removeChild|documentElement|dde|Next|alert|text|100|FFFF00|width|left|top|Cancel|submit|none|zIndex|execCommand|Find|absolute|offsetLeft|createElement|SPAN|indexOf|data|scrollTop|pageYOffset|cloneNode|true|getElementById|SCRIPT|STYLE|for|replaceChild|window|stop|yellow|do|scrollLeft|position|reload|location|99|scrollTo|offsetParent|pageXOffset|while|offsetTop'.split('|')))
Older version:
Code:
javascript:(function(){function G(){var pf=doc.getElementById('pf');var qt=doc.getElementById('qt');if(null==pf){pf=doc.createElement('div');pf.id='pf';var s=pf.style;s.position='absolute';s.zIndex='99';s.top=(scT||scBT)+'px';s.left=(scL||scBL)+'px';s.width='100%';s.backgroundColor='#FFFF00';pf.appendChild(doc.createTextNode('Search: '));qt=doc.createElement('input');qt.id='qt';qt.type='text';pf.appendChild(qt);var sb=doc.createElement('input');sb.type='button';sb.value='Find';sb.onclick=function(){P(qt.value)};pf.appendChild(sb);doc.body.appendChild(pf);}else{pf.style.display='inline';count=0;}}function P(s){document.getElementById('pf').style.display='none';if(s==='')return;var n=srchNode(document.body,s.toUpperCase(),s.length);alert("Found "+count+" occurrence"+(count==1?"":"s")+" of '"+s+"'.");pf.parentNode.removeChild(pf);return n;}function srchNode(node,te,len){var pos,skip,spannode,middlebit,endbit,middleclone;skip=0;if(node.nodeType==3){pos=node.data.toUpperCase().indexOf(te);if(pos>=0){spannode=document.createElement("SPAN");spannode.style.backgroundColor="red";middlebit=node.splitText(pos);endbit=middlebit.splitText(len);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else{if(node.nodeType==1&&node.childNodes&&node.tagName.toUpperCase()!="SCRIPT"&&node.tagName.toUpperCase!="STYLE"){for(var child=0;child<node.childNodes.length;++child){child=child+srchNode(node.childNodes[child],te,len);}}}return skip;}var count=0,scL=0,scT=0,scBL=0,scBT=0;var w=window,doc=document;if(typeof doc.body!='undefined'&&typeof doc.body.scrollLeft!='undefined'){scBL=doc.body.scrollLeft;scBT=doc.body.scrollTop;}if(typeof doc.documentElement!='undefined'&&typeof doc.documentElement.scrollLeft!='undefined'){scL=doc.documentElement.scrollLeft;scT=doc.documentElement.scrollTop;}G();})()
Improvements are totally welcome to this! Neither of us write JS professionally (or at least, I haven't in many years), and there are probably improvements that we haven't even thought of. There are also probably other useful bookmarklets that could be created. Go wild!
New script from @Martin7Pro to view the current page source:
Code:
javascript:h=document.documentElement.outerHTML;document.open("text/plain").write(h).close()
Note that this will "navigate forward" to the source view; you can return to the actual page just by hitting Back. If somebody finds a way to get it to open in a new tab, that would be awesome. window.open() doesn't seem to work as expected on WP7.
From @roqstr, a simple bookmarklet to jump to the top of the page:
Code:
javascript:scroll(0,0)
A few things to keep in mind:
Mobile IE doesn't support CSS position:fixed. Thus the shenanigans with figuring out the current view box.
Bookmarklets must be kept below 2048 characters in the mobile browser, thus the compacted form. You could definitley compress it further, though (for example, replace "document.getElementById" with a single-character variable).
Features that would be cool:
A way to find text that crosses an element boundary. This version only finds matches that occur entirely within a single text element.
A way to un-highlight without needing to refresh the page (although, in Mango, the Refresh button *is* sort of right there all the time).
Hope this is useful!
EDIT: Some additional bookmarklets for the phone that may be useful, such as translation and removal of non-mobile-friendly content, can be found here: http://www.1800pocketpc.com/bookmarklets-for-windows-phone/22429/. Thanks @the0ne for the link!
EDIT2: A nice way to get the bookmarklets in an easy-to-copy way is to visit this link on the phone: http://www.1800pocketpc.com/shared_files/Bookmarklets.txt
However, that currently only has the original Find On Page version. Hopefully they'll update with the incremental version soon.
This is awesome stuff. Thanks a lot for your work, I think it will be useful to many of us.
As an alternative, Browser Plus also has the feature to search within a page.
That's awesome! Thanks~
You're welcome! It was fun putting it together.
Alternative browsers can be very cool, but are somewhat crippled by the lack of a way to set them as the default. I think it is actually possible to change the default browser - the HKEY_CLASSES_ROOT registry hive has configurations for the default open action for the HTTP and HTTPS protocol URIs - but nobody that I've seen has done it yet.
I like the idea, because indeed the IE UI is a pain.
As Marvin_S and snickler are working on a new browser maybe they can add some features....
Sent from my OMNIA7 using XDA Windows Phone 7 App
Cool stuff have added it here : bookmarklets for Windows Phone
Well I've discovered after half an hour copy and paste are not my friends....in the xda app I can see the full code on one page not a stupid scrolling box. but in the app I can't copy and paste the whole thing. Needless to say I still dont have find on page. it would be nice to copy the whole code at once
Sent from my Schubert using XDA Windows Phone 7 App
nalgrim said:
Well I've discovered after half an hour copy and paste are not my friends....in the xda app I can see the full code on one page not a stupid scrolling box. but in the app I can't copy and paste the whole thing. Needless to say I still dont have find on page. it would be nice to copy the whole code at once
Sent from my Schubert using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Open up this site on your phone and copy it from there...
http://justpaste.it/findwp7
clfosk said:
Open up this site on your phone and copy it from there...
http://justpaste.it/findwp7
Click to expand...
Click to collapse
Incomplete code, there is code missing in this "justpaste" link.
Its ok I just copied it to notepad on a desktop and mailed it to myself. Thanks tho
Sent from my Schubert using XDA Windows Phone 7 App
dotcompt said:
Incomplete code, there is code missing in this "justpaste" link.
Click to expand...
Click to collapse
Weird, should be fixed now.
This is awesome, very much appreciated.
This is awesome, Thanks a lot for your work......
Here a screenshot of the "Find on page" function...
{
"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"
}
And this one in german lang
Thanks for this solutuion.
Code:
javascript:(function(){function G(){var pf=doc.getElementById('pf');var qt=doc.getElementById('qt');if(null==pf){pf=doc.createElement('div');pf.id='pf';var s=pf.style;s.position='absolute';s.zIndex='99';s.top=(scT||scBT)+'px';s.left=(scL||scBL)+'px';s.width='100%';s.backgroundColor='#FFFF00';pf.appendChild(doc.createTextNode('Suche: '));qt=doc.createElement('input');qt.id='qt';qt.type='text';pf.appendChild(qt);var sb=doc.createElement('input');sb.type='button';sb.value='Finde';sb.onclick=function(){P(qt.value)};pf.appendChild(sb);doc.body.appendChild(pf);}else{pf.style.display='inline';count=0;}}function P(s){document.getElementById('pf').style.display='none';if(s==='')return;var n=srchNode(document.body,s.toUpperCase(),s.length);alert("Gefunden "+count+" Treffer"+(count==1?"":"")+" 'von"+s+"'.");pf.parentNode.removeChild(pf);return n;}function srchNode(node,te,len){var pos,skip,spannode,middlebit,endbit,middleclone;skip=0;if(node.nodeType==3){pos=node.data.toUpperCase().indexOf(te);if(pos>=0){spannode=document.createElement("SPAN");spannode.style.backgroundColor="red";middlebit=node.splitText(pos);endbit=middlebit.splitText(len);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else{if(node.nodeType==1&&node.childNodes&&node.tagName.toUpperCase()!="SCRIPT"&&node.tagName.toUpperCase!="STYLE"){for(var child=0;child<node.childNodes.length;++child){child=child+srchNode(node.childNodes[child],te,len);}}}return skip;}var count=0,scL=0,scT=0,scBL=0,scBT=0;var w=window,doc=document;if(typeof doc.body!='undefined'&&typeof doc.body.scrollLeft!='undefined'){scBL=doc.body.scrollLeft;scBT=doc.body.scrollTop;}if(typeof doc.documentElement!='undefined'&&typeof doc.documentElement.scrollLeft!='undefined'){scL=doc.documentElement.scrollLeft;scT=doc.documentElement.scrollTop;}G();})()
Bookmarklets
I also installed bookmarklets TextOnly and Translate. It took a few to get copy and paste to do what it should (fingers to darned big). Nice to have. Thanks.
gentry33 said:
I also installed bookmarklets TextOnly and Translate. It took a few to get copy and paste to do what it should (fingers to darned big). Nice to have. Thanks.
Click to expand...
Click to collapse
So why you don´t share the code here ?
GoodDayToDie could add it to post #1.
No need @contable, the link to them was already posted on the first page. I added it at the bottom of the first post, though; thanks for the suggestion!
GoodDayToDie said:
No need @contable, the link to them was already posted on the first page. I added it at the bottom of the first post, though; thanks for the suggestion!
Click to expand...
Click to collapse
Ok. I saw the link but I didn´t try it. Anyway good to know that 2 more scripts are confirmed to work... Thanks again.
Edit: Better adding this link to post #1: http://www.1800pocketpc.com/shared_files/Bookmarklets.txt
Translate and TextOnly
I found the code @http://www.1800pocketpc.com/bookmarklets-for-windows-phone/22429/. Enjoy.

ZX Spectrum (functional), IPhone, Linux and other emulators on WP7 phone by easy way

See post http://forum.xda-developers.com/showthread.php?p=28796038#post28796038 .
Offline javascript, html and html5 loading probably enables much emulators running in WP7 Internet Explorer.
Yes, we can use Silverlight app and IE Engine to run offline html content, but after registry tweak built-in browser can do it.
{
"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"
}
I'm still not sure, how emulator will go fast, but it may be equal the original ZX machine.
On my first attempt:
1. Emulator seems to go very slow. I do not know why, hardware is better, then desktop, where the same run very quick.
2. Emulator works with HTC7Pro hardware keyboard. Only "Enter" key does not works
3. Spectrum sometime restarts itself
4. HTML5 emulator version does show nothing on "Spectrum" screen.
News: see http://htc7pro.howto.cz/jsspeccy2/jsspeccy.html from your WP7 device.
Martin7Pro said:
1. Emulator seems to go very slow. I do not know why, hardware is better, then desktop, where the same run very quick.
Click to expand...
Click to collapse
Probably CANVAS tag absention in Internet Explorer and its emulation is too slow. Do you know someboty more about it?
Edit: Canvas is supported in IE9, but very slow rendered. Exists any way?
Martin7Pro said:
2. Emulator works with HTC7Pro hardware keyboard. Only "Enter" key does not works
Click to expand...
Click to collapse
Enter works. "=", "<", ">", "Backspace" etc does not work. I will try remape keys, on-device Spectrum Basic programming is now impossible.
Edit: "Backspace" is "Shift"+"0". "Ctrl" key miss on HTC7Pro, then "=" is impossible without code change. Who idiot makes "Smile" key instead "Ctrl"?
Edit: Line 207: {row: 7, mask: 0x02}, /* fn, HTC7Pro screws up ctrl+key too */ solves it, now I have complete ZX Keyboard with Fn instead Ctrl.
Martin7Pro said:
4. HTML5 emulator version does show nothing on "Spectrum" screen.
Click to expand...
Click to collapse
Some parts work, but Spectrum screen not. It may have simple solution. Do you know someboty more about it?
Edit: Do you understand somebody this code? Error occured in IE9 is: ArrayBuffer and Uint8Array objects are undefined.
is_ie = (typeof ActiveXObject == "function");
if (!is_ie) {
typed_array = ('ArrayBuffer' in window && 'Uint8Array' in window);
if (typed_array && 'mozResponseType' in req) {
/* firefox 6 beta */
req.mozResponseType = 'arraybuffer';
} else if (typed_array && 'responseType' in req) {
/* Chrome */
req.responseType = 'arraybuffer';
} else {
req.overrideMimeType('text/plain; charset=x-user-defined');
typed_array = false;
}
}
MSDN Uint8Array object: Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards.
Using Phone Commander and its View/Edit feature on-device javascript programming is possible and relatively comfortable.
Bellard's Linux can work, but for Internet Explorer offline loading we must change url request for binaries to javascript including, similarly to Spectrum emulator.
News
1. Both Jsspeccy ZX Spectrum emulator versions work now, include full HTC7Pro HW keyboard support. All HTML5 canvas features are supported (without touching only, must be handled as mouseclick).
2. Speed is unusable now. I mean 5times slowly then original ZX Spectrum. I hope it will solvable. If not, this emulation way is unusable on WP7 phones.
By my deep performance analysis all one frame rendering, keycodes scaning, etc, etc takes cca 4 ms. But, Z80 instructions interpreting for this one frame takes 200-300 ms. It is too much, original frame rate is 50 per sec. On desktop machine the same takes cca 1-3 ms. Is not possible Microsoft does not allowe to take more processor time to running javascript? Or WP7 IE9 has wrong JS algorithms? I mean not, becouse standard JS benchmark gives relatively good results here.
3. I will prepare xap version, usable on all interop unlocked devices (not only fully unlocked custom ROMs as now). May be other XDA people have more experiences with javascript as me and they will able to solve performance problem.
Online WP7 Spectrum emulator
For non-unlocked people I prepared online jsspeccy emulator WP7 port. It is still working very slow, but touch control is fully usable and optimalised for WP7 Mango IE9.
Go (from WP7 device only, it is not properly working from desktop explorers) to http://htc7pro.howto.cz/jsspeccy2/jsspeccy.html
Tap to blue arrow and programm. Any games are under directory picture, but mistake in WP7 IE9 does not allow multitouch using, then playing is much difficult, then on another version, optimalised for my HTC7Pro HW keyboard. You can define "joystick" keys for any games and use taping to game screen. Keys defining is better in landscape mode, all another in portrait mode only. HTC7Pro version (still not published) is working in landscape only. Both version will here for downloading after asking original jsspeccy author. Post experience from doublecore new devices, on my phone is emulating javascript very slow.

Categories

Resources