Android Developer

1

votes
1

answer
193

views

How to make a dialer based on Google's Android latest dialer app (or of a Vanilla based ROM such as Lineage OS)?

Background Starting from Android M, it's possible to make a replacement to the dialer app of the OS, meaning that taking phone calls could show your own customized UI. This is done by extending InCallService class, and having an Activity that handles dialing intents: And to request to be the default...
android developer
1

votes
0

answer
892

views

How to get a copy of private key xCode?

I am facing this issue in order to create a build. Please help if someone also faced this issue before.This is the screenshot of the issue I am facing
ANDROID DEVELOPER
1

votes
0

answer
26

views

Is it possible to query apps for their wallpapers?

There are apps that offer their own wallpapers, such as Nova Launcher, and Google's Wallpapers: My question is simple: Is it possible to query such apps for their wallpapers (images and maybe more information) ? If so, how? Is there anything special on those apps, that made it possible to find thei...
android developer
1

votes
1

answer
572

views

How To Get data by key (mobile number) in firebase web application?

I have record in User table in firebase and I want data by mobile number. mobile number is primary key in user table. I have code for getting data from table but in that code I am using loop so process taking time to get any one record from table. I have more then 3000 records in my users table. any...
1

votes
1

answer
48

views

Does rewarded-ads allow to check what the user got rewarded so far?

Background I've recently read about rewarded ads, as shown here: https://github.com/googleads/googleads-mobile-android-examples https://developers.google.com/admob/android/rewarded-video The problem I can't find any API about the recent rewards, of what the user got so far. What I've tried I tried...
1

votes
1

answer
271

views

How to adjust size of BottomSheet with Edittext and button below it?

I want to build a BottomSheet to display a view with button and edit text. If I click on the Edittext the Keyboard shows up but it hides the button which is below the edit text. These pics should show my problems 1)BottomSheet in normal view-First Image 2)BottomSheet hides the button- Second Image...
1

votes
1

answer
679

views

In ExoPlayer, how exactly to use SimpleExoPlayer.setVideoScalingMode to be like in ImageView center-crop?

Background I'm trying to have a video shown in center-crop manner (like on ImageView). I also hope I can find how to scale in other ways, as done on this library. The problem I use this for this purpose : player!!.videoScalingMode = C.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING But for some reaso...
1

votes
1

answer
30

views

Is it possible for my own document provider to be offered only within my app?

This is a very short answer, which I couldn't find an answer to, not in in the docs and not anywhere over the Internet: On Android, apps can offer the user to choose files from them, to be chosen from other apps. For example, the Google Photos app allows to choose photos files from it. This is done...
1

votes
1

answer
295

views

Is it possible to use WebView in Worker?

Background I'm trying to load some URL in the background, but in the same way WebView loads it in an Activity. There are multiple reasons developers would want it (and requested about it here) , such as running JavaScript without Activity, caching, monitor websites changes, scrapping ... The problem...
android developer
1

votes
0

answer
55

views

Push Notifications on Android using FCM and AWS

We are trying to send push notifications to android app using FCM and AWS. In most of the cases, the notifications are received on device's end, but for few devices, the AWS throws a delivery error 'Not Registered'. The FirebaseMessagingService returns the same device token and even Firebase Cloud M...
Android Developer
1

votes
0

answer
20

views

Is it possible to provide a zipped file in FileProvider, of a file that doesn't really exist?

Background I wish to be able to share some files (via a send intent) as a single compressed file, via FileProvider. For the intent, all you do is add the ArrayList as a parameter, as such: ArrayList uris = MyFileProvider.prepareFileProviderFiles(...) sharingIntent.putParcelableArrayListExtra(Intent...
android developer
1

votes
0

answer
23

views

Android Studio : Connection Refused (Connection refused)

I've just configured Android Studio 3.2 into my Ubuntu 16.04. Now I'm trying to create new project, it tries to download gradle then it sync & at the end it fails & shows me this errors with the top message in red fonts : Connection Refused (Connection refused) org.gradle.api.ProjectConfigurationExc...
Android Developer
1

votes
1

answer
24

views

Spinner with a underline and custom right arrow

I want to show spinner with a underline and a custom right arrow as shown below. I am setting below drawable as a background to spinner. It works for some devices but in some devices arrow appears on complete spinner with grey background like this- I am testing with Asus phone with API 21 in which I...
Android Developer
1

votes
1

answer
141

views

How to prevent AJAX generated content to be indexed by search engines?

i am injecting some text into my pages but i need to prevent search engines from indexing it. I read that some engines are able to read this content now. How can one prevent them from doing so?
android-developer
1

votes
2

answer
656

views

how to handle android screens fragmentations?

i wish to write the layout and code just once so that it would look good on all devices . i've tried many ways (yes, including what google suggests, to use DP and also add multiple layout files) , but none really solves the problem of having to deal with a new situation each time there is a new dev...
android developer
1

votes
1

answer
3.7k

views

How to make two different layout to have same height?

In My application xml layout, i have one Relativelayout, In which there are two linear Layout. Now i am doing the animation for that both layout. But because thera seems the height different i got some view problem. So i want to make the same height of the both layout. below is my xml file.
Android_Developer
1

votes
1

answer
444

views

draw points on google maps in android

I am working on Google map integration with my android application. I am able to display the map perfectly in map View. Now i need to draw points on that map based on get directions. Any working sample code will be a great help for me. I need some help in this issue. Kindly guide in. Thanks
Android Developer
1

votes
1

answer
1.2k

views

Scrollview and touch listener

I am facing a problem. I have a ScrollView in my application and I have to drag and drop a TextView with the help of a touch listener. The problem is when I drag a TextView using the onTouchListener(), the ScrollView activates and is creating a problem.
android developer
1

votes
2

answer
2.4k

views

Problems while showing a full screen videoView & changing orientation

I have an activity which shows a full screen videoView (yet maintain the aspect ratio). It worked perfectly on Android 2.3.7, but i'm having some weird problems on Android 4 (and probably 3, i didn't check yet): For some reason, if I set the theme to be full screen, without the titlebar (or action b...
1

votes
3

answer
2.1k

views

Compile Android source on Ubuntu 12.04 cannot continue because of bad JDK version

I've been trying all day to compile the Android source code on my Ubuntu 12.04 64bit OS. For some reason, I'm stuck on the phase of having the Sun/Oracle JDK 1.6 version installed. I've been trying many commands (and the official link of course) and I end up either having nothing, having JDK 1.7 or...
android developer
1

votes
1

answer
204

views

HorizontalFieldManager animation in Blackberry

Can I animate the HorizontalFieldManager in Blackberry? I have a button in the bottom bar of the screen, and there is an array of images which display in a horizontal layout above the button. When I click on the button, there should be a slide-in slide-out effect and the images appear one after the...
android developer
1

votes
1

answer
2.3k

views

How to show reflection of textures in libgdx?

I need to create an OpenGL ES app (preferably using libGDX) that shows a spinning texture that has a reflection of some sort beneath it. I've searched the web, and found some very old tutorials of how to do it in OpenGL. I'm wondering if there is an easy way to do it on libGdx or on Android, and if...
android developer
1

votes
2

answer
188

views

File sharing in android 2.3 via Bluetooth

I am working on application in which members can share data among each other . I have done it with wi-fi but having problem in Bluetooth . I am in doubt that is it possible to share data among different members at one time via Bluetooth. For example one member has some data and other members want to...
Android Developer
1

votes
1

answer
321

views

Two date pickers connected to each other invoke two listeners at the same time

I have two date pickers which are connected to each other as when I change the date of the first picker the second ones date is also changed automatically , the two pickers have a listener called on date change listener, as follows public class birthDate extends Activity{ Calendar c = Calendar.getI...
Android Developer
1

votes
1

answer
160

views

Does the listener inside onCreate works more than once?

I have a listener for my date picker which I defined inside onCreate which I want to work as soon as the user changed the date picker date as follows Edited public class birthDate extends Activity{ DatePicker birthDayDatePicker,periodDatePicker; @Override public void onCreate(Bundle savedInstanceSta...
Android Developer
1

votes
2

answer
620

views

How to use text ads on admob, programmatically?

Short question: I wish to be able to show only text ads using admob on some cases programmatically. Is it possible? or is it completely random?
1

votes
2

answer
72

views

Where are there guidelines for when&where to use each of the action bar icons?

background the action bar is now widely used, but other than the android assets studio website, there is no where to find native icons, and even on the website, you can't know for sure in which cases each of the icons should be used. for example, there is an icon for selectin all items, but is there...
1

votes
1

answer
291

views

getting “androidApplicationContext must be not null!” crashes from crash reporting service

after supporing linkedin social network, an app i'm working on has caused many crashes that the only thing that is written there is 'androidApplicationContext must be not null!' . i've searched the internet , and found only the next links as clues: http://pastebin.com/QeV9D8XH http://logs.nslu2-lin...
1

votes
1

answer
2k

views

create a share intent with respect to sms messages

background it's very common to share content by using intents: final Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType('text/plain'); shareIntent.putExtra(Intent.EXTRA_TEXT, 'msg'); shareIntent.putExtra(Intent.EXTRA_SUBJECT, 'subject'); final Intent chooserIntent = Intent.crea...
android developer
1

votes
1

answer
139

views

Show horizontal progress bar while app is replicating data with CouchDB [closed]

How do I show a horizontal progress bar while my android app is replicating/syncing data with the CouchDB server (both for completed and fully completed)? Any example would be of great help. Thanks in advance.
Android Developer
1

votes
1

answer
604

views

openContactPhotoInputStream causes “java.lang.IllegalStateException: get field slot from row 0 col 0 failed”

Background I'm trying to check if a contact image exists for a specific contact (and later to actually get it, much later). the query should be as minimal as possible and avoid un-needed memory usage. I've figured out this probably isn't possible using the normal way, so for now I'm using: final Uri...
android developer
1

votes
1

answer
325

views

INSTALL_FAILED_DEXOPT when using GreenDao

Background I wanted to simplify the usage of DB in an Android app. For this, I've compared some third party libraries that create a DAO layer. I've come up with a nice library called 'GreenDao' (presentation about it here) . The website shows that it's faster than other competitors (like ORMLite) a...
android developer
1

votes
4

answer
94

views

Disabling items in the list view

I have a requirement wherein I want to disable items in the list view. Say e.g., I have 5 items in the listview out of which I want to only enable 1 item. Note: disabling means greying out the item. Following is my code: ArrayAdapter adapter = new ArrayAdapter(activity,android.R.layout.simple_list_...
android developer
1

votes
3

answer
1.1k

views

Using Holo-Light theme doesn't set the correct color to TextViews

Background I'm adding a theme chooser of 'Holo' and 'Holo Light' (and maybe the dark action bar too) for my app 'App Manager'. For now I first try them out, via XML files. The problem I'm using the support library by Google and try out the themes, yet no matter what attributes and themes I use, the...
android developer
1

votes
1

answer
239

views

Which classes/functions on Java 1.7 are available/unavailable for Android development?

Background Starting with ADT 22.6 Android finally supports writing in Java 1.7 : http://developer.android.com/tools/sdk/eclipse-adt.html http://tools.android.com/recent/eclipseadt226preview It doesn't support exactly everything there, but the documentation only tells about one thing that isn't there...
android developer
1

votes
2

answer
336

views

How to perform multiple root operations in a row (batch root operations)?

Note: this question isn't necessary just for Android developers. It should be the same for Java developers that performed root operations on Linux too. Background My app allows the user the perform various root operations (an operation that can only be performed on rooted devices). Until now, each t...
1

votes
1

answer
688

views

ADT v23 + SDK 23 - Android “L” - missing Proguard?

Recently I've updated to the newest Android 'L' SDK versions (and the ADT plugin of course). I've updated my app and wanted to export it, and then got this old, known message : invalid proguard configuration file path I remembered I had a similar problem before, and went back to it here. Indeed, I h...
1

votes
2

answer
1.1k

views

gmail like Progress bar functionality

I am creating a gmail like progress bar functionality. There seems to be some space between the actionbar and the progress bar. Following is the code
1

votes
1

answer
3.4k

views

PopupWindow + full screen => show notification-bar?

Background I'm making an activity that has 2 fragments. the second fragment shows a full screen image, which also hides the status bar (AKA notification bar) using: final View decorView = getActivity().getWindow().getDecorView(); int uiOptions = View.SYSTEM_UI_FLAG_LOW_PROFILE; if (VERSION.SDK_INT >...
android developer
1

votes
1

answer
319

views

Some questions about “DONT_DELETE_DATA” , how it works, and how do apps use it

Background I'm developing an app-manager app, and I've noticed that there is a way to get a list of 'uninstalled apps' (using 'GET_UNINSTALLED_PACKAGES' flag) , which are apps that requested to avoid removal of their data upon uninstallation . Here's what the documentation says: Flag parameter to re...
android developer

View additional