Application closes when device is rotated - html

I'm testing via USB debugging on my Galaxy Tab 8.9 and whenver I rotate the device the application closes itself.
How can i fix this?

Android 4.x orientation with phonegap
add this line your activity in the manifest
android:configChanges="orientation|screenSize|keyboardHidden"

For me I found out, that the android:configChanges-Entry must be the first in the list. I had it in the third after "name" and "label" and it didn't work.

I was having the same problem but Yaron Uliel's comment helped me out.
Just make sure that on yout "AndroidManifest.xml", the 'activity' node has the attribute:
android:configChanges="orientation|keyboardHidden"
Like this:
<activity
android:configChanges="orientation|keyboardHidden"
android:name=".FirstAppActivity"
android:label="#string/app_name" >
In my particlar case, I was missing "android:" part before "configChanges=" (it's an error on Adobe's tutorial I believe)
Hope it helps!

Related

Following MVVM Example - Droptargets get disabled after docking in some direction

I am following an Avalondock-example on github:
https://github.com/8/AvalonDockMVVM
It works well, but I want the possibility to dock in more than one direction. Can anyone explain how this can be done?
I'll add a couple of images as an example of what I mean:
What I want is to let the user place windows both in the left/right-direction and in the up/down-direction. Can anybody please point me in the right direction? Any ideas are appreciated!
Have you tried setting the AllowMixedOrientation Property ?
<xcad:DockingManager
Grid.Row="1“
MaxHeight="425"
AllowMixedOrientation="True"
BorderBrush="Black"
BorderThickness="1">
<!--your Code-->
</xcad:DockingManager
Found here: Wpf Toolkit on Codeplex

Launch a phonecall with windowsPhone

I add a page Support in my WindowsPhone Application.
I would like when the user click on Support to launch a phone call.
Do you know how is it possible, i don't find related documentation on it.
[UPDATE]
I try to add this and display in a texblock. doesn't work.
On Android : making a phonecall using a browser application
[UPDATE]
I found http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394025(v=vs.105).aspx and it works correctly enjoy :)
[Update]
It's a task action as send a mail http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394025(v=vs.105).aspx this link is really good
Best regards,
Alexandre
One solution is to add a PhoneCallTask:
PhoneCallTask callTask = new PhoneCallTask();
callTask.PhoneNumber = "999999";
callTask.DisplayName = "Support";
callTask.Show();
Remember to enable ID_CAP_PHONEDIALER in your WMAppManifest.xml

HTML5 getUserMedia - Disable Microphone Feedback

Seems that this is a big problem and I couldnt find anything in the documentations, but how do I disable the microphone feebdack? I know there is an option to disable individual tracks, etc .. but nothing related to output.
Any ideas?
Thanks,
I just had this issue and this is how I got to disable the microphone feedback in my web app (my web app is recording the mic with Matt Diamond recorder js).
First I realized I had in my code something that was telling the app to produce the feedback :)
input.connect(audio_context.destination);
So I just commented this line ... but still got the feedback on my Jabra headset but no more feedback when I use external speakers (while still using the Jabra headset mic).
I then realized there was a setting in my Windows 8.1 control panel > sound > playback tab > properties for the Jabra device I use. The setting is called sidetone and once I got this setting to 0 I could record without any feedback with my headset.
You also need to make sure your microphone is not in "Listen to this device" mode.
Thanks
Do this:
try {
yourSteam.getTracks()[0].stop();
} catch (ex) {
// This fails in some older versions of chrome. Nothing we can do about it.
}
I got that code from https://github.com/saebekassebil/microphone-stream and it is the only way that works for me.

ChartboostX not loading more apps

I am using this wrapper someone recommended for my iOS cocos2dx game link. It works when I call the showInterstitial() method, but when I try to use the showMoreApps the dialog appears for a split second and then disappears.
In my AppDelegate::applicationDidFinishLaunching() I do this
ChartboostX::sharedChartboostX()->setAppId("REDACTED");
ChartboostX::sharedChartboostX()->setAppSignature("REDACTED");
ChartboostX::sharedChartboostX()->startSession();
ChartboostX::sharedChartboostX()->cacheMoreApps();
And then when I want to call the showMoreApps I do this
ChartboostX::sharedChartboostX()->showMoreApps();
Have a look at my wrapper for Chartboost. It has been updated to use the latest version of the Chartboost SDK and works perfectly in my cocos2D-x game. I have not finished the android documentation yet but you can probably work it out yourself if you need to. The documentation for iOS is almost finished and quite easy to follow.(FYI the class ADELLE is the chartboost delegate and is an objective C++ class so you can use C++ in it as you normally would mixed in with the objective C. This is the same for AdWrapper.mm)
Check it out and see if it works for you.
https://github.com/Lochlanna/Chartboost-Cocos2D-x

Swiping through photo stack like Tinder - Cross-platform (Hybrid / HTML5 is OK)

I'm looking to create an app like Tinder where users swipe through a photo stack. Does anyone know of a way to reproduce this effect cross-platform?
So far, I'm thinking of building a web app using jQuery Mobile with
TouchSwipe for swipe detection;
see: http://labs.rampinteractive.co.uk/touchSwipe/demos/
and jStack to display the images;
see: http://lab.hisasann.com/jStack/
Are there any suggestions of a better way to do this?
Here is a jQuery Plugin for that:
jTinder
I've finally found a hack that does something like what I described in the question:
Using the touchpunch library (http://touchpunch.furf.com) for drag and drop, full-screen images, and drop zones to the right and to the left seems to do the trick.
Check out Swing JS : https://github.com/gajus/swing
and for angular: https://github.com/gajus/angular-swing
see this thread also:
Tinder style drag gesture and drop with Javascript?
Hope it isn't too late to post a suggestion. So, hammerjs allows to listen to multitouch and gesture events. And supports Android, iOS and Windows Phone.
http://eightmedia.github.io/hammer.js/
Can try calling the photostack control's next/previous step based on the gesture event?