Design and ship reliable Android apps. Learn Kotlin, Android Studio, Jetpack, Compose, data storage, networking, background work, testing, performance, accessibility, and Play Console publishing with patterns that scale to millions of users.
1,814 posts587 contributors
This is part of my program in C#(Win): OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Title ="Open File"; try { if (openFileDialog1.ShowDialog() == DialogResult.OK) { string file = openFileDialog1.FileName; string fileData = File.ReadAllBytes(file); } } But in Android, the closest I can come is this: Intent intent = new Intent(Intent.ActionGetContent); intent.SetType("text/plain"); intent.AddCategory(Intent.CategoryOpenable); intent.SetAction(Intent.ActionGetContent); intent.PutExtra("android.content.extra.SHOW_ADVANCED", true); intent.PutExtra("android.content.extra.FANCY", true); intent.PutExtra("android.content.extra.SHOW_FILESIZE", true); StartActivityForResult(Intent.CreateChooser(intent, "Select file"), 0); And while I can look at the files in various folders, I cannot open any of them. Thanks. RON
Hi, Iam developing an android app using MLKIT Vision for face detection. - I can able to detect the user faces using mlkit vision and store the detected faces in internal storage. Now i want to verify the user faces with stored faces like. If a user opens the app starting capturing the user face and i want to verify with the stored face. How to verify the two faces are identical or not using the MLKIT vision?
java.lang.illegalargumentexception: 'com.isaweb.ojtqr: targeting s+ (version 31 and above) requires that one of flag_immutable or flag_mutable be specified when creating a pendingintent. strongly consider using flag_immutable, only use flag_mutable if some functionality depends on the pendingintent being mutable, e.g. if it needs to be used with inline replies or bubbles.'
I have a mobile application in android and I use .net as API I have form to users to attached doctor prescription for medical leaves how to check that they attached the write file rather then any dummy file upload.
Hello everyone, I am interested in learning more about edge computing and how it impacts real-time data processing. I have come across some articles that suggest edge computing enables real-time data processing and decision-making in a variety of applications. However, I am still curious about the specific ways in which edge computing achieves this.
Java.Lang.IllegalArgumentException: 'com.isaweb.ojtqr: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.'
I am using a base URL like below private const val BASE_URL = "anyURL" an htt*P client private val client = OkHtttpClient.Builder().apply { addInterceptor(MyInterceptor()) }.build() a retrofit client private val retrofit = Retrofit.Builder() .addConverterFactory(Json.asConverterFactory("application/json".toMediaType())) .client(client) .baseUrl(BASE_URL).build() and a get call @GET("playlist_tracks=*********") suspend fun geAlltracks(): Music Currently, I am using an interceptor, but how can append my request with headers without Interceptor
DEAR I HAVE A MOBILE APPLICATIN WHICH IS FOR INTERNAL STAFF ONLY so Its not on playstore , Now I WANT to restrict this app to be used on specific devices , previously we were capturing the mac and IEME number and then matching that but now someone said that mac address and IMEI code cannot be get using android code what are the alternatives or best practices for that case.
Listview not adding value from second activity. I have ListView and Two Button at bottom in my First Activity. While I click on button it goes into Second activity In Second activity I created form where I am trying to add details which goes into First activity listview But it not adding value into listview if (edtName.Text != "" && edtDescription.Text != "" && edtDate.Text != "") { Intent intent = new Intent(); string Name = edtName.Text; string Description = edtDescription.Text; DateTime DateDeploy = DateTime.Parse(edtDate.Text); intent.PutExtra("Name", Name.ToString()); intent.PutExtra("Descritption", Description.ToString()); intent.PutExtra("Date", DateDeploy.ToString()); intent = new Intent(this, typeof(FirstActivity)); //StartActivityForResult(intent, 0); SetResult(Result.Ok,intent
Four essential items in every android project
How can i call my .net core localhost api in android studio with device
Hello can anyone help Archiving android application is archiving old builds after clean and build again Please can someone help me how to do ?
Hello,how can we create a file compression app in Android using java or kotlin. In which we can reduce the size of image or any other file at specific KB or MB.
Please provide me a solution on how to create a shadow on image view in android.
Hello ppl i have created one android application using android webview. In the url that i have loaded in webview has print options in some place. java code WebSettings webSetting = webView.getSettings(); webSetting.setBuiltInZoomControls(true); webSetting.setJavaScriptEnabled(true); webView.addJavascriptInterface(new webAppInterface(this), "Android"); webView.setWebChromeClient(new WebChromeClient()); webView.getSettings().setLoadsImagesAutomatically(true); webView.setWebViewClient(new WebViewClient()); webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); webView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favion){ super.onPageStarted(view,url,favion); setProgressBarVisibility(View.VISIBLE); } @Override public void onPageFinished(final WebView view, String url) { //hide loading image &nb
Hey, I have problem in connecting to sql server database from my android mobile application from C#.net.I am getting following exception for connection string. System.Data.SqlClient.SqlException: 'System.Net.Security.Native assembly:<unknown assembly> type:<unknown type> member:(null) at (wrapper managed-to-native) Interop+NetSecurityNative.ImportPrincipalName(Interop/NetSecurityNative/ Below is my connection string code try { fetchquest obj = new fetchquest(); string servdbname = "ExamSim"; string servname = "192.168.0.171"; string serusername = "sa"; string serpasswd = "Success24"; string sqlcon = $"Data Source={servname};Initial Catalog={servdbname};User Id={serusername};Password={serpasswd};Trusted_Connection=true"; SqlConnection sqlconn = new SqlConnection(sqlcon); sqlconn.Open(); SqlDataReader dr; SqlCommand cmd = new SqlCommand("Select * from Questions", sqlconn); dr = cmd.ExecuteReader(); if (dr.HasRows == true) { dr.Re
hi experts I need help on unlock andriod mobile all version , i tried all software which is not help me out ,simply took my money from wallet i need solution on my mobile oppo and samsung to unlock by nethunter or kali linux is it possbile to unlock mobile give me your inputs best way to do that thanks for valuable replies
Hii everyone! please help me to make a signature pad in android xamarin native.
I have main_activity and dashboard_activity, on dashboard_activity I added fragment using code in OnBackPressed() method public override void OnBackPressed() { //base.OnBackPressed(); FragmentTransaction transaction =FragmentManager.BeginTransaction(); Dialog dialog = new Dialog(); dialog.Show(transaction,"dialog_fragment"); } My fragment code is here class Dialog:DialogFragment { private Button btnExitapp; private Button btnLogOut; public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { base.OnCreateView(inflater, container, savedInstanceState); var view = inflater.Inflate(Resource.Layout.dialog, container,false); btnExitapp=view.FindViewById<Button>(Resource.Id.btnExitapp); btnExitapp.Click += BtnExitapp_Click; btnLogOut = view.FindViewById<Button>(Resource.Id.btnLogOut); btnLogOut.Click += BtnLogOut_Click; return view; } private void BtnLogOut1_Click(object sender, EventArgs e) { } private void BtnExitapp1_Click(object sender, EventArgs e) { System.Diagnostics.Process.GetCurrentProcess().Kill(); } } Note:My code for btnExitapp work fine only once after deployment and if I reopen the app in emulator and press btnExit it close app and reopen with Dashboard_Activity instead of closing app. Please guide me to achieve that when BtnLogout pressed, should go back to Main_Activity as it work on backpress button and when BtnExitapp pressed should close the app
What is O API in Flutter? and what are the benefits of using it.
How can I create our own package in flutter and publish it on pub.dev?
I have a project which prints a document but I don't know how to write the code for it I want to print a date with 3 textboxes value nad my app will be used for sunmi v2