android-intent

multiple plugins Unity 4.1.2

半城伤御伤魂 提交于 2019-12-24 13:19:23
问题 I want to use two plugins at the same time.They work perfect individually.But when I use them both at the same time , one does not work but another works or vice versa. I have already read these links : Cannot start activity on Android through Unity http://forum.unity3d.com/threads/184960-Unable-to-start-activity-NullPointerException http://forum.unity3d.com/threads/149089-Android-Plugin-multiple-Android-Activity-problems?p=1058651&viewfull=1#post1058651 but It still crashes.Giving me

putExtra() and getBooleanExtra() in android

给你一囗甜甜゛ 提交于 2019-12-24 13:07:23
问题 I'm developing an app that implements mapsView. I have two activities that lead to the mapsView activity. activity_A will lead to mapsView activity, and the mapsView activity will lead to the activity_B. I'm implementing putExtra() and getBooleanExtra() in my code. Here's my code in activity_A case R.id.buttonMaps: Intent i = new Intent(MainActivity.this, MapsActivity.class); i.putExtra("maps", false); startActivity(i); break; Here's my code in activity_B buttonNavigasi.setOnClickListener(new

how to get running application/package name using broadcast receiver

十年热恋 提交于 2019-12-24 13:00:26
问题 in my application i want to write code of receiving broadcast for which application is running.like when we run/open any application my broadcast receiver should receive it. how can i get the app name/ package name??? public class Receiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if("android.intent.action.PACKAGE_FIRST_LAUNCH".equals(intent.getAction())) System.out.println("context..."+context.getPackageName()); } } androidmanifest file-

Start activity from adapter don't work with SwipeListView library

半城伤御伤魂 提交于 2019-12-24 12:56:27
问题 I'm using SwipeListView library and I'm getting error when trying to start an activity in my adapter. public class ProductAdapter extends ArrayAdapter<Product> { private Context context; public ProductAdapter(Context context, int textViewResourceId, List<Product> objects) { super(context, textViewResourceId, objects); } @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; final Product product = getItem(position); if (convertView == null) {

Starting Activity by intent from Fragment starts blank Activity

大城市里の小女人 提交于 2019-12-24 12:45:28
问题 I could not find an answer to my problem, so I make a new Question. I have an Android app with a TabLayout (+ ViewPagerAdapter) in my MainActivity and every Tab is a Fragment. Now I want to start a new Activity with Intent from my Fragment. Once I want to open an Activity when pressing a FAB, and another time I want to open another Activity when pressing a FeedItem from my Newsfeed. Now everytime i press something, it opens a completely blank Page. I do the setContentView in both Activities'

intent-filter in manifest file to enable the open button on install

我是研究僧i 提交于 2019-12-24 12:35:13
问题 I am fairly new to Android Development and I have seen examples where this is put into the Manifest.xml file: <intent-filter> <action android:name="android.intent.action.MAIN" />` </intent-filter> I thought this was what I needed so that after my Application Installs the open button would be enabled. However, even though Ihave this in my Manifest the button is stlll disabled. So, can anyone tell me ehat I am doing wrong? Thanks for any help. ** UPDATE... Here is my full Manifest.xml file: <

Unity Android Intents

旧时模样 提交于 2019-12-24 12:13:26
问题 I'm trying to launch an android app using Intents in Unity. Using the code I've written, I'm able to open the app, but I'm trying to make it launch into a specific action inside that app. I found a link on a website that does what I want, but its not in the right format which is: intent://placeID=370731277#Intent;scheme=robloxmobile;package=com.roblox.client;S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.roblox.client;end When I click on this link on

CaptureActivity from Zxing library didn't return when barcode is scanned

笑着哭i 提交于 2019-12-24 12:13:09
问题 i have integrated zxing library in my app, i used to call zxing via intent : Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_MODE", "ONE_D_MODE"); intent.putExtra("SCAN_FORMATS", "CODE_39,CODE_93,CODE_128,DATA_MATRIX,ITF,CODABAR,EAN_13,EAN_8,UPC_A,QR_CODE"); startActivityForResult(intent, 1); But com.google.zxing.client.android.SCAN allows user to choose scan app if he has another barcode scanners, and i want that if user starts scan from my app than

Failed to Read Image file from Assets folder and share it using Intent in Android?

蓝咒 提交于 2019-12-24 11:47:00
问题 Following this tutorial to read image from assets folder.Here is the link Link to read image from Assets folder Contentclass extends from ContentProvider but i am getting error on first Line.This error is on very first line Contentclass1 Line.Please let me know that what things i need to implement in Contentclass1.java Multiple markers at this line - The type Contentclass1 must implement the inherited abstract method ContentProvider.onCreate() - The type Contentclass1 must implement the

Prevent onDestroy when Bluetooth connection state changes

百般思念 提交于 2019-12-24 11:46:03
问题 Goal If an already connected bluetooth device disconnects, and an Activity is already running, close the Activity Problem When the bluetooth device connection state changes through BluetoothAdapterProperties: CONNECTION_STATE_CHANGE , it seems like a new Activity is created or the current one restarts. There is nothing in the code that listens and/or should react to bluetooth connection state changes. The problem manifests itself in the use of BroadcastReceivers which in turn starts the