android-intent

How to jump from ListView to next Activity

☆樱花仙子☆ 提交于 2020-01-16 18:58:39
问题 I am using this code to jump from ListView to selected class. public class mainmenu extends Activity { private ListView lv1; private ArrayAdapter<String> listAdapter; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mainmenu); lv1 = (ListView) findViewById(R.id.options); String[] lv_arr = new String[]{"Book a Classified Ad", "Book a Classified display Ad", "Book a display Ad", "Page Position Availability", "MIS", "Market

How to jump from ListView to next Activity

纵然是瞬间 提交于 2020-01-16 18:57:32
问题 I am using this code to jump from ListView to selected class. public class mainmenu extends Activity { private ListView lv1; private ArrayAdapter<String> listAdapter; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mainmenu); lv1 = (ListView) findViewById(R.id.options); String[] lv_arr = new String[]{"Book a Classified Ad", "Book a Classified display Ad", "Book a display Ad", "Page Position Availability", "MIS", "Market

IONIC 3 - Open app on notification received

无人久伴 提交于 2020-01-16 17:08:12
问题 My app's notification is working fine, receiving notifications on background and foreground, using firebase-native plugin .Now, my client needs the app open when the notification is received without any user iteration. I've found was this, but has no correct answer for me. On my debug, I've realize that the notification is received via broadcast by FirebaseInstanceIdReceiver. So, I've tried: Modify the plugins/cordova-plugin-firebase-lib/plugin.xml This compile but nothing happens. Modify the

android Intent clear don't ask again

非 Y 不嫁゛ 提交于 2020-01-16 17:06:51
问题 For some intents, there are multiple providers which provide the functionality. An example: For the intent Intent.ACTION_SET_WALLPAPER it shows many options image with a Don't ask again option. Now if the user checks it and opens through some app, how to clear it the next time programmatically if the user requests to show all the possible options again? i.e. the prompt should show all the available providers again. I'm starting the intent in this way val intent = Intent(Intent.ACTION_SET

How to store the Generated QR-Code as an image in SDCard (ZXing library)

北慕城南 提交于 2020-01-16 15:50:25
问题 I m making an app based on QR code. I have to Generate a QR-Code of a specific String and also I have to save the generated QR-Code in SD card. is it possible using the Zxing Library. So for I am able to generate the QR-Code, using the following code. Note:I m calling the QR-Code Scanner via Intent. I m inserting the input using an EditText Field right now. see code below public class MainActivity extends Activity { EditText edQR_Field; Button btnGenerate_QR_Code; @Override protected void

How to store the Generated QR-Code as an image in SDCard (ZXing library)

删除回忆录丶 提交于 2020-01-16 15:50:09
问题 I m making an app based on QR code. I have to Generate a QR-Code of a specific String and also I have to save the generated QR-Code in SD card. is it possible using the Zxing Library. So for I am able to generate the QR-Code, using the following code. Note:I m calling the QR-Code Scanner via Intent. I m inserting the input using an EditText Field right now. see code below public class MainActivity extends Activity { EditText edQR_Field; Button btnGenerate_QR_Code; @Override protected void

How can I send a notification from inside the onProviderDisabled method of a LocationListener

末鹿安然 提交于 2020-01-16 14:08:13
问题 How can I send a notification from inside the onProviderDisabled method of a LocationListener? So far I have been using: Toast.makeText(mainmenu, "GPS Location providers are disabled... blah blah", Toast.LENGTH_LONG).show();}}); but that entails using a static mainmenu variable stored when the mainmenu class is first instantiated - I gather doing it that is a bad idea, in case the mainmenu object gets removed from memory I guess - so I think I should be using notifications. I guess I need to

Xamarin Android Start app using link with parameters

断了今生、忘了曾经 提交于 2020-01-16 11:32:32
问题 I have a problem. I created a IntentFilter so my app launches when clicked on a specific link. Here is my IntentFilter: [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable }, DataScheme = "myapplication.app" )] And here is the link: <a href='myapplication.app://'>here</a> But how can I pass a parameter (integer) in that link and how can I use that parameter in my C# code? 回答1: A complete URL Scheme protocol format

passing a long value from one intent to another

若如初见. 提交于 2020-01-16 10:00:08
问题 I am trying to pass a long value from intent of one class to another. But Somehow I dont seem to get the syntax or method to do so. This would solve 90% of my problem. Passing it from a method called intentfunction(setid) in the MainActivity.java to a received intent in SelectOptions.java. /--MainActivity.java---/ private void intentfunction(long setid) { Intent intent = new Intent(this, SelectOptions.class); //editText = (EditText) findViewById(R.id.editText1); //editText = new EditText(this

Why it is not opening defined folder via intent in Android?

天大地大妈咪最大 提交于 2020-01-16 09:09:31
问题 This code is redirecting to drive with open navigation but not opening actual given path OLD Code Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath() + "/foldername/"); Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setDataAndType(uri, "text/csv"); startActivity(intent); The path value I am getting through uri is: /storage/emulated/0/myfolder NEW Code Intent resultIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT);