Questions tagged [android]

440273 questions
1

votes
2

answer
179

Views

how to expand child on particular Button click in Expandable List View [duplicate]

This question already has an answer here: ExpandableListView expand only on a specific Button? 3 answers How to expand child on particular Button click in Expandable List View rather than Group click
Kavya
1

votes
0

answer
299

Views

Which SSML Tags are supported by Android TTS default engine

I have searched a lot unable to find any solid solution for, which are valid ssml tags supported by Android TTS default engine. could any one please update me. Will these tags support on all the android devices.
Manmohan Soni
1

votes
1

answer
584

Views

Expand collapse a layout in recycler view

I have a recycler view which has header element and child element at starting time the visibility of child element is gone. I want that when I clicked on header element suppose position zero child elements of that position should be visible (mean expand) I achieve this successfully. The only problem...
Abhishek Bhardwaj
1

votes
2

answer
1.8k

Views

Glide v4.4 disable memory cache and disk cache failure

The image file is downloaded from the server and always save to the same file name. So in earlier version of glide, i have been tested with Uri uri = Uri.fromFile(new File(downloadPath)); GlideApp.with(this) .load(uri) .diskCacheStrategy(DiskCacheStrategy.NONE) .skipMemoryCache(true) .into(mDownlo...
rodent_la
1

votes
0

answer
1.3k

Views

Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher

I am working on android project and every thing works fine, but when I started a new cordova project then it throw error Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher. I search on google and in most of answer says change in ANDROID_PATH. My current AN...
Vivek
1

votes
0

answer
190

Views

Got error while migrating to Android Studio 3.1 Canary 5 Build?

I tried following steps: 1.changed to classpath 'com.android.tools.build:gradle:3.1.0-alpha05' maven { url 'https://maven.google.com/' name 'Google' } and added google() android.enableAapt2=false in gradle.properties 4. android { compileSdkVersion 27 buildToolsVersion '27.0.1' defaultConfig { appli...
Swapnil
1

votes
2

answer
533

Views

Can't be upload an image in Firebase Storage in android

I'm learning to upload the an image in Firebase Storage but when i run / open my app and select an image to upload there is no any image to upload in firebase storage please help me where i mistake to write code . Androidmanifest.xml: MainActivity.java: package com.fireapp.newfireapplication; import...
LearnToProgram
1

votes
0

answer
43

Views

Gradle and library issues while importing a project into Android Studio.

I am importing an old project into android studio, getting gradle and library issues. Project imported. After solving gradle issue am getting below error message Error:Execution failed for task ':mergeDebugResources'. [declare-styleable/CircularImageView] /home/appristine/Aks_Projct/Bazaaralosra/re...
test appristine
1

votes
0

answer
17

Views

I have one button in fragment and textbox in main activity. now if i press button in fragment some message will print in textbox . How to do it?

I have one Button in fragment and Textbox in main activity. Now if I will press button from fragment, some message will print in Textbox. How to do it? public class MessageFragment extends Fragment implements View.OnClickListener{ public buttonPress press; public interface buttonPress { void getText...
Monil Gandhi
1

votes
1

answer
267

Views

What is the difference between ?android:colorControlHighlight and ?colorControlHighlight

I see both ?android:colorControlHighlight and ?colorControlHighlight in our code base, and they seem to behave the same. According to References to theme attributes doc, the android part is optional. Are these indeed the same? If not, which one should be used where?
BenMQ
1

votes
0

answer
200

Views

how do I reduce the size of the video captured using camera

How do I reduce the size of the video captured using cordova media plugin. Current Resolution and file size for 2-minute duration in Samsung Galaxy Tab S in 3 different resolutions is mentioned below. I tried quality option in captureVideo method but that is depending on the device resolution. (640...
Sharon
1

votes
1

answer
57

Views

Play Different Videos with different URLs for each Video, when Clicked on each item

I'm Creating an application with Horizontal RecyclerView. I've successfully added the items and managed to attach click handler for each items. But I am able to see only one video which i specified as the url of the Video. I want to play different videos with respect to the url of that record when c...
ZKhan
1

votes
1

answer
328

Views

Android Robo test cannot find element

I want to use Robo test from google firebase for my application. My application needs login process. I want to use resource and value mapping system. I filled in the form like this However, test report says that there are no such resource names Resource name was copied from android UI Automator Vie...
John
1

votes
0

answer
719

Views

Android Room With Custom Type Converter Live Data Triggers continuously

After add Type Converter Live Data Triggers continuously This is My JobImages Entity @Entity @TypeConverters({AddOnConverter.class}) public class JobImagesTable { @PrimaryKey(autoGenerate = true) int id; @ColumnInfo(name = 'job_marked_image') String jobMarkedImage; @ColumnInfo(name = 'complexity_id...
Rajesh Rajendiran
1

votes
1

answer
373

Views

Android sending Lat Long to php and storing in mysql

So I am using Android points = new ArrayList(); to track a users GPS location every 3 seconds, which sometimes can be up to 1,000's or more points if they are on a route long enough. What is the best method for sending this route after they finish to my php and storing it into mysql? I am currently...
user2101081
1

votes
0

answer
308

Views

How to properly implement a nested recyclerview, child recyclerviews behaving oddly

I am developing a chat application. The chat messages consists of normal text messages and sometimes it can be a list of items in a recyclerview. So I've implemented nested Recyclerview. So what happens is in the json response if the message is just a normal text is a textview will be displayed but...
Stackover67
1

votes
1

answer
58

Views

How would android apps notify users even though the app is not opened yet?

I've thinking this for a while that how do android app really notify its users? Like Messenger, Messenger usually notify a user by making a floating circular profile picture of the sender. and like other games like Subway Surfers or Zombie Catchers, in the case of subway Surfers and other apps it no...
Christian Makilan
1

votes
3

answer
309

Views

Android - Singleton Class only updating on second refresh

I have a singleton class called DataManager. I update some data in DataManager when I call onStop() in a class (activity) called userProfile. It takes the values from some text input boxes and updates the User Object in DataManger. I navigate through my app with a BottomNavigationView - so when I pr...
Taylor Barton
1

votes
0

answer
411

Views

Android unloading classloader cause crash

I'm working on an android app and I'm trying to plugin-like feature which would allow loading additional dex files to extend app functionality. I've figured out how to load additional dex files extending PathClassLoader with few small changes to allow other modules to communicate. The issue is that...
Patryk Rogalski
1

votes
0

answer
73

Views

Access data in Adapter From Activity

i want to access data inside Adapter from Activity, and then i will passing the data from activity to call API.. here is my data inside PremiumAdapter.java : public class PremiumVideoAdapter extends RecyclerView.Adapter { static List data; public PremiumVideoAdapter(List data) { this.data = data; }...
asqa
1

votes
1

answer
445

Views

intent.getParcelableExtra() working on API 23 but not on API 25

I am having this weird problem where the intent.getParcelableExtra() is working fine on API 23 but not on API 25, it is returning NULL. Here is how I reproduced the problem with less code: User class as example: public class User implements Parcelable { private String name; private int age; public U...
hiddeneyes02
1

votes
1

answer
560

Views

WebView keyboard React Native

when I select a text field and the keyboard appears it spoils the layout, in case it raises the page but when the keyboard disappears the page continues raised my WebView code:
1

votes
1

answer
314

Views

APK fails to be installed on any device

I'm new in the Xamarin Development world so I installed Visual Studio 2017 with all the needed cross compiler features. After downloading and updating the SDKs for Android API 23, 24, 25 and 26 and some corresponding emulator images I got the emulators starting up. I created a base Xamarin Android A...
Mischa
1

votes
0

answer
38

Views

CasperDatasets - Sorting CDataRows remain unsorted when inserted back into container

Using CasperDatasets, I'm attempting to sort the data within a CDataCacheContainer called dt2. CDataRow[] dt2RowsSorted = this.SortTable(dt2, 'INVSUB'); The dt2RowsSorted is sorted, but when I attempt to use that sorted data to create a fresh CDataCacheContainer called dtFinal it removes any sorting...
Dayan
1

votes
0

answer
41

Views

Dynamically adding custom Views to TableLayout

I'm trying to dynamically add custom Views to TableLayout. Adding things like TextView works but when I'm trying to inflate my own I see a blank screen. I saw similar questions but none of them had was any helpful. I have a layout which is inflated into a Fragment: And then I am dynamically adding r...
kaichi
1

votes
1

answer
280

Views

Recycler Search view gives for filter method and app get closed

I want to search items in recyclerview. I am using addtextchangedlistener method for searching. When I start typing in edittext to search an item instead of giving me the filtered results the app get closed and I got the error as 12-27 11:29:04.375 18962-18962/com.example.satyabhai.restaurant E/Re...
Satyam Gondhale
1

votes
2

answer
187

Views

Gradle sync Failed and many error are appearing as could not resolve

I am not able to understand what is the issue? Can anyone Help, attaching the screenshot for Android Studio Build grade file is // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() } dependencies { classpa...
R. Ranjan
1

votes
2

answer
96

Views

Getting likes data (id and name) from JSONArray - Facebook api

i'm trying to get id and name from likes data in the facebook graph api on android: { 'data': [ { 'id': '1433908706707486_917483885016640' }, { 'id': '1433908706707486_910831695681859' }, { 'id': '1433908706707486_906550586109970', 'likes': { 'data': [ { 'id': 'xxxx', 'name': 'xxx' } ], 'paging': {...
ahsen
1

votes
0

answer
97

Views

Store image in sqlite from variable

I created this database public void onCreate(SQLiteDatabase db) { String query='CREATE TABLE '+tableName+' ( ID INTEGER PRIMARY KEY AUTOINCREMENT, ' + col1+' INTEGER, '+col2+' String, '+col3+' String, '+col4+' String );'; db.execSQL(query); } to sotre an image with some informations in a list I get...
Hossame Makhlof
1

votes
1

answer
2k

Views

BuildException: Failed to execute aapt

I am trying to build the project and following error is coming: org.gradle.tooling.BuildException: Failed to execute aapt at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:547) at com.android.build.gradle.internal...
Malwinder Singh
1

votes
1

answer
226

Views

Get CALENDAR_ID to insert event in Google Calendar

I am trying to insert an event in my Google Calendar but it is not working so far. Is there a simple way to get the right CALENDAR_ID inside of my method? private void syncwithgooglecalendar2() { Account[] accounts = AccountManager.get(CalendarSyncActivity.this).getAccountsByType( 'com.google'); Str...
Timitrov
1

votes
1

answer
329

Views

ionic cordova build is showing lint warnings

I'm trying to build APK file with IONIC. I'm following all the tutorials and everything was OK until I tried to build APK with this command: $ ionic cordova build --release android and show me this error: $ ionic cordova build --release android Running app-scripts build: --platform android --target...
Mena Magdy
1

votes
0

answer
53

Views

Scaling images in exact touch position

I am trying to make dialog to show full screen image + scale it like in Instagram. But it is scaling by center, not touch positions. How can I scale it by touch position? I tried this to do it, I found scale types public class DFragment extends DialogFragment { public final static String BITMAP_ARG=...
Ilqar Rasulov
1

votes
3

answer
364

Views

How to wait for a AdMob Rewarded Video to Load properly

I am trying to use the AdMob Rewarded Ad in my Android application. In order to include it in the refered app, I need to wait for the rewarded video to load after the user click the buttom. I am trying it throughout the code bellow, but I get the error: java.lang.IllegalStateException: showAd mus...
Siqueira
1

votes
0

answer
137

Views

pass recyclerView image and data to next activity

how to pass data and image from recyclerView item click to the next activity ? i tried and success for only pass data. Failed to pass image using byteArray. Need help for pass data and image for recyclerView item click. RecyclerViewAdapter.java public class RecyclerViewAdapter extends RecyclerView.A...
Saidur Rahman Sumon
1

votes
0

answer
55

Views

Does Realm respects “Writable and Executable Segments (Enforced for API level >= 26)”

According to Android 8.0 Behavior Changes there was a change in NDK that has the following statement In apps targeting Android 8.0 (API level 26), native libraries no longer load if they contain any load segment that is both writable and executable. I am not sure what it means, but I am curious if...
Tom Koptel
1

votes
0

answer
76

Views

Add items to my list using Google Assistant

I have a shopping list app and I want to create a new list and add items to the app using voice on Google Assistant as below image. There are intents that are supposed to add items to a list. How can I implement them? And associate 'create a list' to my app? PS: On iOS, I used Sirikit with the inte...
yasin
1

votes
1

answer
50

Views

Tag a user when entering a username in a EditText

I want to replicate the functionality of tagging a user while entering his name in edit text after '@' is entered Please see the attached image what exactly i want to do Here sally jones tagged chris remkes while typing his name from an edit text. Any suggestion how to do this so when that name is...
Android
1

votes
1

answer
192

Views

Marker anchor/offset on Mapbox 5.2

I am setting markers on an Android Mapbox. Those markers are not squarred images and can not be centered, they need an offset. On Google Maps I can use Anchor, X and Y. On previous versions of Mapbox I could have used MarkerView with the same Anchor. But now in Mapbox 5.2 MarkerView is deprecated. S...
Ben-J
1

votes
1

answer
35

Views

Updating play services without reducing minSdkVersion

I use the following play services library in my android project. play-services-location,play-services-auth and play-services-gcm. The library are in version 9.2.0.I have the minSdkVersion as 9. I recently added the VerifyApps API into the project and in order to use that library properly I had to ad...
Nirmal Raj

View additional questions