Windows Phone 8 Re-theme Application on activation - windows-phone-8

I was looking for a way to apply the current theme to the application on application activation.
E.g. the app is started in light theme and the user switches to the settings to switch to dark theme. Now when he comes back to my app, he still sees a white theme until he restarts the app.
I found several older blogs and stackoverflow links which stated that this is a bug in WP7.
But when I tried this with the calculator app or the people app (both from Microsoft), they are visually rethemed once I reactivate them.
Any idea how this can be achieved on Windows Phone 8?

Sounds like a low priority bug to me. :) Anyway you can use PhoneThemeManager to change the theme for the app manually.

Related

How do I remove the PWA install button from Google Chrome?

On my desktop PC, I do not wish to see the PWA install button in my Google Chrome address bar, nor see the option to install in the menu. I have no intention of installing or using them and I don't want to have them constantly pushed into my face.
On my Android phone I want the same, but I also want to see a warning if I am about to install a PWA from the Play Store by accident because it wasn't properly revealed to be a PWA.
Is there a hidden setting or flag in my browser that I can turn off? Can I use Tampermonkey? HELP!
(I don't want to go into detail why I want this except to say that one company is trying to force a PWA on me without offering me the option to get my money back because I'm no longer receiving the software or service I paid for. I also have yet to see a PWA that offers something its website doesn't.)

The google translator icon disappears from my address bar when I load my website

I need to be able to translate my web application into another language. I enabled the google translate extension in chrome. When I load my company website with chrome the translate icon appears and I can translate the site. I then loaded my secure web application in chrome and the translate icon disappeared. My knowledge on how the translator works with web pages in minimal at best. Any help would be appreciated as I do not know where to begin. Any links to helpful articles on how the translator does its job would also be appreciated
I also had a problem with the google translate (gt) icon disappearing from the right side of the Chrome address bar. I believe I caused the problem myself as I was trying to come up with a way to use it to switch languages quickly using Keyboard Maestro.
I keep 2 Chrome windows open with 2 different gmail accounts, and the gt icon was only missing from one of the windows. I tried many things and couldn't get the gt icon to come back.
Eventually, I was able to fix the problem based on the procedure described on this page, which suggests going to this address: chrome://settings/languages to make sure the Offer to translate pages that aren't in a language you read option is on in the Languages section, as shown in this image:
In my case, the option was already set to on. So I turned it off, logged out of the account associated with that Chrome window, closed that browser window, and when I opened a fresh browser window for that gmail account the gt icon was back.
I'm using Chrome Version 96.0.4664.93 on a MacAir (M1, 2020) running MacOS 12.0.1

Windows Phone 8 navigation

I just started developing wp8 apps coming from android. What is the equivalent UI control for an app drawer (android) to be able to quickly change from page to page? I'm looking for the control used to change from page to page in OneNote
EDIT: I found out that Windows phone 8.1 offers flyouts which can be made to look like an app drawer.
The equivalent to the android app drawer is probably the windows phone appbar, but the appbar in windows phone is not used for navigation - only settings like actions.
In windows phone, navigation is done primarily through your own interface, with heavy use of the BACK button to go to previous pages. The main class you use in windows phone is the NavigationService
I don't believe the OneNote uses standard UI components, so you would probably have to create your own
There are plenty of solid resources online that should help. Start here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626521(v=vs.105).aspx

Debug Ipad web app on Windows

I've got site that is correctly displayed on desktop version but has few bugs on iPad. What's the simplest way to detect problems if my OS is Windows?
Option 1 - Free, local machine debugging
You may use Safari browser for Windows (download Safari 5.1.7).
Steps
Enabling Develop menu in menu bar (Press 'Alt' key to open menu bar. Then follow to Edit menu > Preferences > Advanced tab. Find this option at the bottom.)
Then, follow through Develop menu > User Agent. Select iPad, iPhone etc.
There are more options in the Develop menu (e.g. Show Web Inspector) to help with your JavaScript etc debugging.
Credits to How to debug iPhone and iPad web applications, using Safari.
Option 2 - Paid, browser-based access to target browser/OS/machine
I've personally used http://www.browserstack.com/ and it lets you test the functionality on a wide combination. However debugging may not be as convenient here as it would be on a local machine.
There may be more companies providing similar services.
Beware of basic online emulators
As mentioned in a comment, be wary of 'emulator' websites. Example: A website I ran into claimed to emulate iPhone, with a picture of iPhone, and inside it was an iframe, being dutifully rendered by the browser I opened that website in (Firefox).
The best way I can think of(depending of your implementation) is to use the firefox plugin
https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
It allows you to switch to all sort of devices and see how they would appear on another device.
Here http://www.ampercent.com/test-website-design-iphone-ipad-mobile-devices/7075/ is a quick guide on getting you started.
There are also user-agent switchers for other browsers than FF like Chrome. Do a google search and try for yourself which one you like.

How to make an HTML5 that does not require the blackberry browser component?

I used the latest and greatest jQuery Mobile (RC1) to develop an app for the client. I used the latest Webworks version from RIM and packaged the app in a Cod file.
The app works great if accessed through the web browser ETC however when I installed the actual generated JAD/Cod files onto a blackberry device, performance was horrible even with minimum number of jQuery libraries.
Since I have Googled this everywhere and it is apparent that one cannot have a meaningful app experience if Webworks is used, I want to be able to just create something that just places the app icon on the phone. Once clicked, it open the browser and takes the user to the web server where the HTML files are parked.
Is this possible?
You can do that, with a very simple Java-application.
The following code:
Browser.getDefaultSession().displayPage("http://www.yourserver.com");
It will open browser and open page: http://www.yourserver.com
Browser class javadoc is here: http://www.blackberry.com/developers/docs/5.0.0api/net/rim/blackberry/api/browser/Browser.html