android-intent

Using intent between activities, in reverse - Android

吃可爱长大的小学妹 提交于 2020-01-07 04:22:05
问题 I am quite new to android programming (aswell as java in general) and have run into an issue that has me stumped. I am building a basic app (for practice) that accesses an already built website www.shodan.io . As far as i know there is no android app for this particular site yet and i quite enjoy it for my research. So I have an app that has 4 activities, all of which load beautifully (after much help from stack forums). They are: LoadingPage, MainActivity, SearchPage, and ExploitSearch. On

Uri returned in camera intent is null [duplicate]

情到浓时终转凉″ 提交于 2020-01-07 03:05:39
问题 This question already has answers here : Android camera photo comes back null (2 answers) Closed 4 years ago . I am trying to create and Android application that takes a photo or uploads a photo to the server. My main objective is to get the URI of the photo which is returned in the intent. I have followed the steps from [1]. The problem is that on a phone with Lollipop, version 5.1.1 it works fine and the intent returns the URI of the photo, but on a phone which has Jelly Bean, version 4.2.1

Assign the Intended bitmap value to an imageView

一个人想着一个人 提交于 2020-01-07 00:33:09
问题 I'm using an adapter to load the items to a grid. then when the user select an item from the grid then it opens up the customizing screen. In that process I'm sending some data in the intent and later I can load the these in the customizing screen. Successfully I have loaded the other items other than the isVeg item. Response I'mgetting for isVeg , [false, true, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true] . My problem is the way I

Making own Android App default for map intents

≡放荡痞女 提交于 2020-01-06 23:46:07
问题 I have been working on an android application which uses google maps it is map related application. i want my to be able to handle implicit intents like if user click on map link like Latitude and longitude my app should handle the intent and show that position on map. Like default Google Maps Application. Is it possible then what piece of code for intent specific activity? 回答1: Add an intent-filter in the Manifest so your app can respond to map URLs: <intent-filter> <action android:name=

How do you pass an image path between two activities without getting outofMemory error?

北城余情 提交于 2020-01-06 20:23:47
问题 So basically, a user click a button and it grabs an image from the gallery. Then that image is sent to another activity to be displayed. This is my first activity where I grab the image. private void grabImage() { Intent imageGetter = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(imageGetter, RESULT_LOAD_IMAGE); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode,

How do I open conversation of a particular contact in Whatsapp [duplicate]

拟墨画扇 提交于 2020-01-06 20:17:49
问题 This question already has answers here : Send text to specific contact programmatically (whatsapp) (22 answers) Closed 3 years ago . I want to send a message using whatsapp only to a particular contact without the user having to select it from his contact list. I am using the below code to fire an intent Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.setPackage("com.whatsapp"); sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");

Using intent ACTION_SET_ALARM to allow application to set a UNIQUE alarm

好久不见. 提交于 2020-01-06 20:11:17
问题 I am attempting to write an application that automatically sets the Android default alarm based on some preset values determined by an alternate algorithm. The alarm setting works fine using the ACTION_SET_ALARM intent, however every time I run the app, it sets a NEW alarm. I'm wondering if there is any way to instead have one unique alarm set to update every time the activity sets the alarm (so that there are not hundreds of new alarms in the Android alarm application). I will provide code

Android ACTION_IMAGE_CAPTURE auto focus on take picture

怎甘沉沦 提交于 2020-01-06 20:05:24
问题 We were using Camera API for our custom camera application. However, it turned out to be a very hard problem. Many devices required extra testing as they seemed to perform unexpected behaviors. So, we have decided to migrate to Android's camera intent. However, we are dealing with image retrieval tasks so, we don't want our users to send us blurry pictures. Previously, we were using autofocus as user taps on take picture button. Android camera intent performs worse than ours because it does

How to navigate in Tab Application in Android? with my sources classes

守給你的承諾、 提交于 2020-01-06 19:43:58
问题 // The below Fourth is fourth tab activity in my project so inside it am having few more other activites like MasjidsearchActivity inside on item .it is displaying as separate activity but i want with remaining tabs package com.hands.iagd.app; import java.util.ArrayList; import java.util.List; import android.R.layout; import android.R.string; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView;

Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/57054 (has extras) }}

Deadly 提交于 2020-01-06 19:29:10
问题 I'm writing an Image splitting method for a jigsaw puzzle game. Beside the default image the app can pick and split an image from the gallery. I get this error after choosing an image from the gallery and the app force close. Here are my code: ImageView image; Uri selectedImage; private final int RESULT_LOAD_IMAGE = 1; int chunkNumbers = 16; ArrayList<Bitmap> chunkedImages; Button[] buttons; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);