How do I get Android Styleguide Switches in Appcelerator? - appcelerator

The on/off switches shown on http://developer.android.com/design/building-blocks/switches.html#switches are awesome. I can't figure out how to get them in Appcelerator

It is not a titanium thing, it is android. If you want to support 2.x, you cant have the 4.x look. You would have to change the manifest to change the SDK level support. Here is a good article that helped me. http://developer.appcelerator.com/doc/mobile/android-custom-androidmanifest

Related

Turning off default flash behavior in iOS Xam.Plugin.Media

How do I turn off flash by default? In iOS, the camera flash is always activated. Android's default flash behavior is off so I have no problem with that.
I think this option is not available so far. I see the documentation and the code but didn't find.
There is also a open issue there in GitHub Set camera flash default. In this discussion, the author seems still working on this feature but haven't completed.
To solve this problem,
You can overwrite the plugin code and turn off flash by default.
Refer :flashlight
You can use this plugin https://github.com/kphillpotts/Xamarin.Plugins/tree/master/Lamp

Xamarin cross-platform visual studio bottom navigation

I just started using xamarin in visual studio for building cross-platform apps, and i was searching on the internet for some tutorial etc, and i ran into a website "material.io" and i found this amazing bottom navigation
So i searched on google for a tutorial to make that bottom navigation in xamarin.forms cross-platform environment.
But i didn,'t find anything, so i hoped that someone here at stackoverflow knew how to or could provide me with code or a tutorial.
thanks in advance
As Jason already mentioned, something like this requires a custom renderer. However, you're lucky since someone has already done the hard work for you.
There's a Xamarin.Android control called BottomNavigationBar which has been ported to Xamarin.Forms in the project BottomNavigationBarXF. You'll also find an example of how to get started on the latter repository. On iOS, the control defaults to the standard page with tabs on the bottom.

Can we programmaticllay take screen shots using Blackberry and Windows 7 SDK?

I know that we can take screen shot of an App during runtime. In iOS we can use UIGraphicsBeginImageContext to get the screen shot. We can also do the same in Android.
But is it possible with Blackberry and Windows 7 Mobile OS?
A simple search for "blackberry screenshot" on stackoverflow returned this pretty straightforward answer:
Taking screenshot of the current screen in BlackBerry
And a search for "windows-phone screenshot" yields this:
Windows Phone 7 - Capture Screen
If what you need is for capture a screenshot of your own Windows Phone app, then this post from Jeff Wilcox will come in handy!
It looks like there is a function for that in Display. Check out the SDK reference.
There are a couple of Homebrew tools you can use to take screenshots on WP7 here and here however you wont be able to use these programatically. You can also something along the lines of Mark Artega or Jeff Wilcox
There is no Silverlight VisualBrush support for WP7 and no global Screenshot functionality on WP7 Mango, but writablebitmap.
There is a very usefull way by using default Microsoft Emulator integrated WP7 Screenshot Tool
or use third party methods.
If you are familar with XNA Framework, there you can access to the screen. Using Multithreading, you can do your screenshots that way. If never used the last app because I feel fine using Microsofts Emulator Screenshot button to save my png images.
After you can stitch it together using different ways.

Making an application in android 2.2 version compatible with android 3.0

I have an application written in Android 2.2 version. Now I want to make this app compatible in all tablets.
I went through the link Optimizing apps for 3.0
As per the details mentioned, I created folders: drawable-xhdpi(for storing images) and layout-xlarge and layout-xlarge-land to keep the layouts.
Added <uses-sdk android:targetSdkVersion="11" android:minSdkVersion="8"/> in manifest too.
But when I ran the app, the drawables are not taken from my xhdpi folder. So images getting displayed are too small. What may be the reason for this? Should I have to add anything more? Also whether this xhdpi and xlarge folders will help me out for all types of tablets(i.e. tablets with different screen sizes)?
Please reply. Thanks in advance.
The answer is here by anujprashar:
... For 10.1 tab you should use drawable-xlarge folder ...
Compared to that answer, I didn't add <supports-screens> and it works on my galaxy tab, also works for Nook color (cm7).

admob wp7 sdk dont work, alternative ad networks?

i use the admob wp7 sdk for displaying adds in my apps, but i dont see any, it looke like:
<google:BannerAd
xmlns:google="clr-namespace:Google.AdMob.Ads.WindowsPhone7.WPF;assembly=Google.AdMob.Ads.WindowsPhone7"
AdUnitID="MY_AD_UNIT_ID">
of course i insert my adUnitID, when i start my app i dont get anything to see, also when i enable test mode i cant see anything, what could be worng? on the homepage i see that i got requests because it counts up, but nothing to see.
other question:
are there any other add providers instead of smaato and adDuplex which provide a WP7 sdk?
As of today the Microsoft Ad SDK for WP7 can now be used in all territories where the marketplace is available.
Alternatively you could consider AdDuplex
I would recommend looking at the documentation and contacting admob support. Its a third party control so you would be lucky to find someone on here who can offer advice.

Resources