Search

Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Tuesday, September 30, 2014

How to load UIImage from web URL ?


How to load UIImage from web URL ?

UIImage img=Images.Fromuri("www.google.com/my.jpg");

Common Class :

public static Class Images
{
Public static UIImage FromUrl (string uri)
{
    using (var url = new NSUrl (uri))
    using (var data = NSData.FromUrl (url))
        return UIImage.LoadFromData (data);
}
}

How to choose a photo From Phone album?

In Xamarin.iOS Application for choose a photo from album .we need to use UIImagePickerController

Follow below step for show photo album Controller

1.  Create the image picker control
Var Imagepicker=new UIImagePickerController();

2.    Set the Source and media Type

Imagepicker.SourceType = UIImagePickerControllerSourceType.PhotoLibrary;
Imagepicker.MediaTypes = UIImagePickerController.AvailableMediaTypes (UIImagePickerControllerSourceType.PhotoLibrary);

3.Create Delegate event for image chose & cancel image selection.
Imagepicker.FinishedPickingMedia += Handle_FinishedPickingMedia;
Imagepicker.Canceled += Handle_Canceled;

4.Show Image controller

 NavigationController.PresentModalViewController(Imagepicker, true);

5.  Implement Image choose event

protected void Handle_FinishedPickingMedia (object sender, UIImagePickerMediaPickedEventArgs e)
{
    // determine what was selected, video or image
    bool isImage = false;
    switch(e.Info[UIImagePickerController.MediaType].ToString()) {
        case "public.image":
        // get the original image
        UIImage originalImage = e.Info[UIImagePickerController.OriginalImage] as UIImage;
        if(originalImage != null) {
            // do something with the image
            Console.WriteLine ("got the original image");
            imageView.Image = originalImage; // display
            break;
        case "public.video":
            Console.WriteLine("Video selected");
            break;
    }

    // dismiss the picker
    imagePicker.DismissModalViewControllerAnimated (true);
}

     6 .Cancel Image controller

void Handle_Canceled (object sender, EventArgs e) {
       Imagepicker.DismissModalViewControllerAnimated(true);

}

3. Which controller we can use for Phone photo album access?

UIImagePickerController

Thursday, September 4, 2014

How to Check compiled .exe or .dll assemblies to scan platform Specific code ?


In xamarin Scan  providing online support for our library how much platform Specific .we need to follow 3 steps, after that we will get know how much % it will support

Select compiled .NET libraries or executable (.exe or .dll files) and the scanner will identify platform-specific dependencies in your code, as well as provide suggestions for how you can make your code mobile-ready.

click below link for scan your executable file

                                               http://scan.xamarin.com/



 

Saturday, August 23, 2014

XAMARIN TOP INTERVIEW QUESTION Part 1.1

Questions
1 Can you tell about Xamarin ?
2 History of Xamarin
3 What is Xamarin.iOS Application compiler?
4 What Xamarin.Android Application compiler?
5 Can we develop Windows mobile application using xamarin Studio in mac OS?
6 Can we develop iOS application using VS in Windows machine?
7 Can we develop iOS application using Xamarin Studio in Windows machine?
8 Did we develop Xamarin Mobile cross platform Application using Visual Studio?
9 Can you share iOS,Android,Windows Mobile application design guide line?
10 What is TestFlight?
11 What is hockeyapp?
12 How to use version control in Xamarin Studio?
13 What are the way to share the code to different platform?
14 What is Portable class libraries?
15 What are the benefits for PCL?
16 What is Shared Project?
17 Do we have any output file for share project?
18 What is the Version of xamain Studio and Visual Studio will support Share project?
19 What is iOS platform SDK Access?
20 What is Android Platform SDK Access?
21 What is Windows Platform SDK Access?
22 What is use of __MOBILE__ Conditional Compilation?
23 How to get library path in Xamarin.Android?
24 How to get library path in Xamarin.iOS?
25 How to get library path from UWP?
26 What is HttpClient ?
27 Did we have Xamarin.iOS unit testing framework?
28 How to make iOS native libraries accessible in Xamarin apps?
Xamarin. Android
29 What is Xamarin.Android ?
30 What is the file format for Android Designer File and where its located?
31 How to setup first PAGE (Launch page) in xamarin android?
32 What all Contains in AndroidManifest.xml file?
33 How to enable Debugging on Android Device?
34 How to Set Icons for Different Android Screen Densities?
35 Can you Explain about Activities?
36 Differentiate Activities from Services?
37 What is adb?
38 What are the four essential states of an activity?
39 What is ANR?
40 What is a Fragment?
41 How to specify Control ID in xamarin.Android?
42 How to Register button control in MainActivity Class?
43 How to add button click event?
44 Can you explain about Activity State?
45 Can You explain about Activity lifecycle?
46 When open the app, what are activity method will execute?
47 When Back Button Pressed, what are activity method will execute?
48 When home button pressed, what are activity method will execute?
49 When open App another app from notification bar or while open SETTING, WHAT are the activity method will EXECUTE?
52 Any phone is ringing and user in the app, What are the activity method will EXECUTE?
53 What is Different between Home and back button?
54 What is use of OnSaveInstanceState ?
55 What is use of OnRestoreInstanceState ?
56 What is indent?
57 Can You explain about 2 Different type of Intent?
58 How to Add Androidmanifest.xml file? If the application does not already have an AndroidManifest.xml .
59 How to Add Required Permission from Android Application? ( eg: Camera ,Call Phone )
60 How to Prevent orientation change for a page?
61 How you can use animation in xamarin android application?
62 What are different type Animation in Xamarin.Android?
63 How to Specify Supported Architectures?
64 How do you handle orientation changes on Activity?
65 What are two different type orientation technique?
66 How to Identify Orientation status?
67 How to play Audio in ANDROID?
68 How to recording Audio in Android ?
69 Do we need to Enable any required permission for Debug recording Audio?
70 Is there a way to disable screenshot?
71 How to Send SMS ?
72 How to Initializing and Playing Audio?
73 What is local Notification in Xamarin.Android ?
74 What are the Two Daffern type of Notification layout ?
75 What are the two different Android notification layouts?
76 What is the class will use for Notification?
77 How to Enable Notification SOUND?
78 How to Enable Notification Vibrate?
79 What is Google Cloud messaging?
80 What is a Push notification on Android?
81 How to implement Local Storage in Xamarin.Android?
82 What are the different way for Local storage?
83 What are the Advantages of using a Database?
84 How to retrieve library path in xamarin.Android?
85 What is CardView widget?
86 How to create Splash Activity?
87 What is use Grid View control?
88 What is different Grid View and Grid Layout ?
89 What is LinearLayout?
90 What is Android Beam?
91 How Android Beam will work?
92 What are the required device permission for Fingerprint Authentication?
93 What is App-Linking?
94 What is ProGuard?
95 How to Disable Debugging in release mode using conditional compile?
96 How to use Localization?
97 How Launch Android Emulator using Command line?
98 Can we develop Android Wear application ?
Xamarin.iOS
99 Can you tell about Xamarin.iOS?
100 Can we develop ios Application using Xamarin Studio in Windows machine?
101 What is use of Appdelegate.cs file?
102 What is use of info.Plist file?
103 How to read Custom .Plist file ?
104 What is use of entitlements.plist file?
105 What is UIViewController lifecycle?
106 What is content View Hierarchy?
107 How to change button text in Runtime?
108 How to enable to disable Button?
109 How to dismiss keyboard while button click?
110 What is use of NSURl?
111 What is code for Show alert?
112 How to deploy application to Device?
113 What is Device Provisioning?
114 What is storyboard?
115 How to use PushViewController on UIViewContoller ?
116 Can you explain about Navigation Controllers and Segues?
117 What Event with UIKit?
118 What is delegate?
119 What is use of NSAutoReleasePool?
120 What is UNUserNotificationCenter?
121 How to add Image in code behind file ?
122 How to set Launch Screens with Storyboards?
123 What is Different FromBundle VS FromFile?
124 Can we create Resource folder from iOS project ?
125 What is Build Action for image ?
126 What are the .plist file?
127 What is use info.plist file?
128 What is class we can use for FileSystem?
129 How to get subdirectory from Current Directory?
130 How to read the files?
131 How to get MyDocument Folder path?
132 How to write file to ios local storage?
133 How to create DIRECTORY?
134 What is use of UIFileSharingEnabled?
135 What is of SetSkipBackupAttribute?
136 How to generate unique ID?
137 How to create App URL Scheme in Xamarin.iOS?
138 How to Use or Debug App URL Scheme in Xamarin.ios?
139 How to open Setting in Iphone?
140 How to add Control inside the View ?
141 What is use of VieDidLoad()?
142 What is the use of LoadView() ?
143 What is Background Task?
144 What are the Application State?
145 What are the Application lifecycle?
146 What is App Switcher?
147 What are the different type of Background Fetch Interval?
148 What is use of BackgroundFetchIntervalNever ?
149 What is use of  BackgroundFetchIntervalMinimum ?
150 What is use of BackgroundFetchIntervalCustom ?
151 What are setting need to Enable for implement Location in your application?
152 How to Check Location Service Enable or Not?
153 What is  NSUserDefault?
154 How to use NSUserDefault?
155 What is use of Auto layout?
156 What is Storyboard?
157 How can show a pdf, stored on the device, in an UIWebView?
158 What is different between UITextField vs UITextView?
159 How can we get selected text index in UITextView in IOS?
160 How to Set TextView as Read only?
161 What is UIControlState?
162 What is use of Slider control?
163 What is use of Switch Control?
164 What are the UITableView Parts ?
165 What is UICollectionView?
166 What is use of Tabbed Application?
167 What is Binding Objective-C?
168 What is use of new Reference Counting System?
Xamarin .Forms
169 Can you tell about Xamarin.Forms?
170 Can you tell what are the platform will support xamarin.Forms?
171 What s version visual Studio Will support Xamarin.Forms?
172 How to convert Portable solution to Xamarin.Forms Applications?
173 How to Show Alert Box on all the platform ?
174 What is Page in Xamarin.Forms ?
175 What is different type of pages in xamarin.Forms ?
176 What is ContentPage?
177 What is MasterDetailpage?
178 What is NavigationPage?
179 What is TabbedPage
180 What is TemplatePage?
181 What is CarouselPage?
182 What is Layouts?
183 What are the different type of layouts?
184 What is Xamarin.Forms View?
185 What is StackLayout?
186 What is Xamarin.Forms ListView?
187 Can you tell about different type ContentPage Navigation?
188 What is Hierarchical Navigation?
189 Can you write code for Create RootPagenavigation ?
190 What is PushingPage NAVIGATION?
191 What is PoppingPage Navigation?
192 What is PopToRoot Navigation?
193 How to disable back action from login Success screen?
194 How to pass Data through BindingContext?
195 What is Model Navigation?
196 How to disable back Button press?
197 What is ResourceDictionary?
198 What is differentness between Static vs. StaticResources?
199 How to Set as Home page in xamarin Forms?
200 What is “MainPage” property from App Class?
201 What is Property Dictionary?
202 How to Save Property Dictionary?
203 How to Get Property Dictionary?
204 How to access Application.Current.Properties from a Native Class?
205 What is App Lifecycle?
206 What is Behaviors?
207 Why we need Behaviors?
208 What is Attached Property?
209 How to Create Custom Entry Control?
210 How to Consume Custom Control in Xaml Page?
211 How to Consume custom Control in C# Page?
212 What is Custom Render?
213 How to create Custom Render Class?
214 What are the steps to create PageRenderer?
215 How to IMPLEMENT Camera page using PAGERENDERER?
216 What is DependencyService?
217 How DependencyService Wokrs?
218 How to Dismiss Keyboard after entry using xamarin.forms ?
219 How to use FileSystem?
220 Do we have any Common Package for File System?
221 What is use of TapGestureRecognizera()?
222 What is use of PinchGestureRecognizer?
223 What is use of PanGestureRecognizer?
224 What is MessagingCenter?
225 How the messagingcenter Works?
226 What is Subscribe Message?
227 What is Send Message?
228 How to send message?
229 How to Subscribe message?
230 How to PASSING / receiving as argument from messaging?
231 How to unsubscribe Message?
232 What is Action Sheet?
233 How to display UIActionSheet?
234 What is Xamarin Forms Control Templates?
235 What is Data Templates?
236 What is trigger?
237 What are the Different type TRIGGER?
238 What is property Trigger?
239 What is Data Trigger?
240 What is Event Trigger?
241 What is Multi Trigger?
242 What are the build a Color instance?
243 How to assign Web Image from Image control?
244 What is different between Entry VS Editor?
245 How to Fix the Image size to the Screen?
246 What is WebView?
247 How to display website inside the apps?
248 How to Display Html Design inside the apps?
249 How to Send email from Shared code in Xamarin.Forms?
250 What is CocosSharp?
251 What are the COCOSSharp features ?
252 What is SkiaSharp?

253 What is urhoSharp?