Post the relevant code fragments in your message - use the code widget above the text box, and that'll engage the syntax highlighter and preserve any formatting.
<pre lang="cs">int Double(int x)
return x + x;
Will show as:
return x + x;
It's not a good idea to post the whole code anyway - people are more likely to respond if you show them where the problem is instead of dumping a whole app on them and saying "it don't work".
Remember, we can't generally run your whole code anyway - we don't have your site, your data, your user inputs - and we don't know what it should do or how to get to the problem area.
The better you make the question, the better we can make the response - and wading through pages of irrelevant code trying to work out what bit of it matters doesn't encourage people to be helpful!
Sent from my Amstrad PC 1640 Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
I. How to migrate an existing project to AndroidX
In Android Studio 3.2 and higher, you can quickly migrate an existing project to use AndroidX by selecting Refactor -> Migrate to AndroidX from the menu bar.
complile SDK version and target SDK version must be 28
II. AndroidX in a new project
If you want to use AndroidX in a new project, you need to set the compile SDK to Android 9.0 (API level 28) or higher and The following Android Gradle plugin flags to true in your gradle.properties file.
set android.useAndroidX=true , the Android plugin uses the appropriate AndroidX library instead of a Support Library. android.useAndroidX is false by default if it is not specified.
set android.enableJetifier=true , the Android plugin automatically migrates existing third-party libraries to use AndroidX by rewriting their binaries. android.useAndroidX is false by default if it is not specified.
We are planning to extend (upgrade) our current Xamarin.iOS / Xamarin.Android app to support Carplay and Android Auto.
The existing app is mobile parking and navigation app which is developed with Xamarin.iOS and Android.
Can anyone with the experience to suggest the basic strategy and approach regarding the upgrade (extend) the app to support Carplay and Android Auto? The team hopes to continue Xamarin platform (either Xamarin.iOS/Android or Xamarin.Forms) as we all love Xamarin.
Any ideas are very welcome and appreciated.
For iOS/iPhone Apps :
- Language : Swift (Version 2.x)
- IDE : XCode (Version 7.x.x)
For Android Apps :
- Language : Java (Version 7 / 8)
- IDE : Android Studio (Version 2.x.x)
For Web Panel & Admin Panel :
- Language: PHP with OOPS based Core PHP Structure following MVC Architecture
in my Xamarin page i have a button that browse the gallery to allow a user to bind it to an image editor , after selecting the image , the page refreshes to the first page that led to this current page. i would like to make it keep it in the current page after image selection . below is the code on my button
async private void Btnupload_Clicked(object sender, EventArgs e)
GenericMethods.IS_IMAGE_SELECTON = true;
await DisplayAlert("Photos Not Supported", ":( Permission not granted to photos.", "OK");
var file = await CrossMedia.Current.PickPhotoAsync(new Plugin.Media.Abstractions.PickMediaOptions
PhotoSize = Plugin.Media.Abstractions.PhotoSize.Medium
if (file == null)
filePath = file.Path;
readytosave = GenericMethods.StreamToByteArray(file.GetStream());
Uri uri = new Uri(file.Path);
filename = string.Empty;
filename = System.IO.Path.GetFileName(uri.LocalPath);
var extension = filename.Split('.').ToLower();
file_extension = extension;
imageEditor.Source = ImageSource.FromStream(() =>
var stream = file.GetStream();
imagepopup.IsOpen = true;
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
The emoji's that are used on whatsup are Unicode characters judging from the high quality graphics that get displayed on the chat area and also on the text entry where a selected emoji is displayed before the message is sent. i would like to have a text entry that can allow me to put a png of emoji in an entry or custom entry control and also include text when text are there as depicted below