#StackBounty: #video #android 2d to 3d video conversion

Bounty: 50

I’m looking for a method to convert a normal movie format like m4v or mkv and creating a file with side by side images that would be viewable in Vic for Android in a Google cardboard.

I have an old Android phone and the tilt and gyro sensors don’t work with 3d video players. You can’t control anything.

What I would like to do is create the side by side video image from a normal mkv or m4v. Then I would start the video and place it in the Google cardboard. I don’t care about the control aspect.

I didn’t find anything in other questions. Googling gives a few windows centric solutions, but I don’t have the darkside in my house.

Get this bounty!!!

#StackBounty: #android #ionic-framework Make Ionic 1 toggle switch look like the iOS one on Android

Bounty: 100

I’m working on an Ionic 1 project with a toggle switch in it. Y’know:


It looks different on Android to iOS, and I prefer the iOS one. I know that in Ionic 2, I can do:

<ion-toggle mode="ios">hello</ion-toggle>

But this is an Ionic 1 project and I don’t want to convert it to Ionic 2 just for this. Am I out of luck?

Get this bounty!!!

#StackBounty: #android #ios #dart #cross-platform #flutter fixing the Unicode rendering in flutter

Bounty: 50

I am new to flutter, I manage to receive the data from server and decoded it as well, when i tried to display in the text, it shows like below.

enter image description here

Code to display the text

import 'package:flutter/material.dart';
import 'package:sachchirashifal/model/serverdata.dart';

class RashiFalDetail extends StatelessWidget {
  Data rashi;


  Widget build(BuildContext context) {
    return new Container(
      child: new Text(rashi.desc, style: new TextStyle(
        fontSize: 18.0,
        color: Colors.black

Any suggestions will be great, Thank u.

Get this bounty!!!

#StackBounty: #android #google-play #nativescript #angular2-nativescript #google-play-console How can I specify or get the resource id …

Bounty: 250

We are using nativescript with angular for our mobile app. I want to use the Google Play pre-launch report feature, but our app requires a password to be entered. Google Play allows specifying a password but you need a resource name so the testing script can identify where to put the password.

How can I specify or receive the resource name of a nativescript textfield, either in the view or by code behind or via any other means?

The view in question:

      <StackLayout class="form">
    <GridLayout columns="*,90" rows="50">
      <TextField #inviteTx
        class="input input-border"
      <Button col="1" height="50" class="btn btn-primary w-full fa" text="START " (tap)="enter(inviteTx.text)"></Button>

I did some research and found out that in native android, one could add an id to a TextField by adding an android:id attribute.

<TextView android:id="@+id/nameTextbox"/>

This does not seem to work in nativescript, I cannot find the resource in R.java afterwards.

Get this bounty!!!

#StackBounty: #android Hide notification from Foreground Service on click notification Action

Bounty: 100

I have a simple foreground service with a Heads-Up Notification and that notification have two actions where one send an intent to the Service and can open an activity depending on the app configuration.

The problem is that when i click on a action that sends the intent to the service the notification doesn’t hide. This not seems to occur when the intent opens a Activity

I don’t want a foreground service without a Notification, i just want it to hide when the intent is sent to the service

Here is the code:

NotificationCompat.Builder(mAlarmApplication, CHANNEL_ID)
            .addAction(0, dismissActionText, dismissPendingIntent)
            .setFullScreenIntent(alarmScreenPendingIntent, true)

Get this bounty!!!

#StackBounty: #android #android-service #android-lifecycle #android-location #android-doze Minimal android foreground service killed on…

Bounty: 50

I’m trying to create an app that lets users log routes (locations/GPS). To ensure locations are logged even when the screen is off, i have created a foreground service for the location logging. I store the locations in a Room Database which is injected in my service using Dagger2.

However, this service is killed by android which is, of course, not good. I could subscribe to low memory warnings but that doesnt solve the underlying problem of my service getting killed after ~30 minutes on a modern high-end phone running Android 8.0

I have created a minimal project with only a “Hello world” activity and the service: https://github.com/RandomStuffAndCode/AndroidForegroundService

The service is started in my Application class, and route logging is started through a Binder:

// Application
public void onCreate() {
    mComponent = DaggerAppComponent.builder()
            .appModule(new AppModule(this))

    Intent startBackgroundIntent = new Intent();
    startBackgroundIntent.setClass(this, LocationService.class);

// Binding activity
bindService(new Intent(this, LocationService.class), mConnection, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT);
// mConnection starts the route logging through `Binder` once connected. The binder calls startForeground()

I probably dont need the BIND_AUTO_CREATE flag, i’ve been testing different flags in attempt to not get my service killed – no luck so far.

Using the profiler it does not seem like i have any memory leaks, memory usage is stable at ~35mb:


Using adb shell dumpsys activity processes > tmp.txt i can confirm that foregroundServices=true and my service is listed 8th in the LRU list:

Proc # 3: prcp F/S/FGS trm: 0 31592:com.example.foregroundserviceexample/u0a93 (fg-service)

It seems like it is not possible to create a foreground service that you can trust to not get killed. So what can we do? Well..

  1. Put the service in a separate process, in an attempt to let Android kill the UI/Activities while leaving the service alone. Would probably help, but doesn’t seem like a guarantee
  2. Persist everything in the service in e.g. a Room database. Every variable, every custom class, every time any of them changes and then start the service with START_STICKY. This seems kind of wasteful and doesnt lead to very beautiful code, but it would probably work… somewhat. Depending on how long it takes for Android to re-create the service after killing it, a large portion of locations may be lost.

Is this really the current state of doing stuff in the background on Android? Isn’t there a better way?

EDIT: Whitelisting the app for battery optimization (disabling it) does not stop my service from being killed

EDIT: Using Context.startForegroundService() to start the service does not improve the situation

EDIT: Added a link to example project that produces the issue

EDIT: So this indeed only occurs on some devices, but it occurs consistently on them. I guess you have to make a choice of either not supporting a huge number of users or write really ugly code. Awesome.

Get this bounty!!!

#StackBounty: #android #image-processing #pixel #photo Android color splash

Bounty: 50

Can someone suggest me a fast method or a library for color splash effect? For example, I select a color and a photo gets desaturated for all colors except that one I have picked.

I have tried using pixel by pixel color check and then replace the color but it is too slow for big images.

            int width = originalImage.getWidth();
            int height = originalImage.getHeight();
            int[] pixels = new int[width * height];
            originalImage.getPixels(pixels, 0, width, 0, 0, width, height);

            for (int x = 0; x < pixels.length; ++x) {
                pixels[x] = Distance(pixels[x], fromColor) < 4 ? targetColor : pixels[x];

            Bitmap newImage = Bitmap.createBitmap(width, height, originalImage.getConfig());
            newImage.setPixels(pixels, 0, width, 0, 0, width, height);

        public int Distance(int a, int b) {
             return Math.abs(Color.red(a) - Color.red(b)) + Math.abs(Color.green(a) - Color.green(b)) + Math.abs(Color.blue(a) - Color.blue(b));


Here are the original and the processed images, the color I am keeping is #ff9350:
enter image description here
enter image description here

Get this bounty!!!

#StackBounty: #android #react-native Sending Simple Data to Other Apps in React Native[ANdroid]

Bounty: 50

I have two react native apps say App 1 and App 2.Now i need to start App 2 from App 1 passing simple text data.On research using this link from android documents i am able to call the activity of App 2 from App 1 using indents,

Sample Image of opening App2 from App1

But the question is will i be able to pass these data to the React Native screen of App 2.My App 2 has a dummy Activity class to receive indents from other apps but if there is a much neat approach without using Indents to pass data between apps in React Native is most welcome.

Get this bounty!!!