• Breaking News

    Wednesday, January 8, 2020

    Android Dev - How did Telegram implement this theme change effect ? I know I can look at the code but needed the gist of the implementation. It animates the status bar color change as well! I'm fairly impressed.

    Android Dev - How did Telegram implement this theme change effect ? I know I can look at the code but needed the gist of the implementation. It animates the status bar color change as well! I'm fairly impressed.


    How did Telegram implement this theme change effect ? I know I can look at the code but needed the gist of the implementation. It animates the status bar color change as well! I'm fairly impressed.

    Posted: 08 Jan 2020 06:59 AM PST

    CustomView design preview in Android Studio

    Posted: 07 Jan 2020 08:06 PM PST

    Android Custom View 102 (Part III)

    Posted: 08 Jan 2020 03:50 AM PST

    Adding dark mode support to your android apps

    Posted: 08 Jan 2020 05:00 AM PST

    How to give root access to C/C++ native side of an Android application using JNI? It seems to be impossible.

    Posted: 08 Jan 2020 07:27 AM PST

    StackOverflow question

    I'd like to make the native code gain root access, even if the Java side correctly has root privileges... and it seems to be quite challenging.

    Example app:

    Java side

    [...]

    Log.d(TAG, "JAVA ROOT? " + rootManager.runCommand("id -u").getMessage()); // has the process

    root access?

    rootTest(); // this is the native C function

    Log.d(TAG, "JAVA ROOT? " + rootManager.runCommand("id -u").getMessage()); // check again

    [...]

    C side

    JNIEXPORT jlong JNICALL Java_com_example_MainActivity_testRoot(JNIEnv* env, jobject obj) {

    FILE *fp;

    char path[1035];

    fp = popen("id -u", "r");

    while (fgets(path, sizeof(path), fp) != NULL) {

    printf("C ROOT?: %s\r\n", path);

    }

    pclose(fp);

    return 0;

    }

    Output

    JAVA ROOT? 0 // -> Yeah, root!

    C ROOT?: 10114 // -> :(

    JAVA ROOT? 0 // -> Java side still has root.

    I don't know why, but when the process executes his native code, it loses root permissions.

    Is this for a sort-of security reason?

    If yes, can it be disabled?

    submitted by /u/BioH4z4RD
    [link] [comments]

    How to make custom camera application without using implicit intent to phone camera

    Posted: 08 Jan 2020 01:12 AM PST

    Is it ok to use Java Executor and Android Handler as global variables for all concurrency tasks?

    Posted: 08 Jan 2020 08:13 AM PST

    I have a few simple tasks to run in the background, to update a global List<App> of apps. Now that AsyncTask is deprecated, I use a simple executor to do the task and a handler from the main thread where I update a gridAdapter on my main thread.

    private final Executor executor = Executors.newCachedThreadPool(); private final Handler handler = new Handler(Looper.getMainLooper()); private List<App> loadAllApps() { final List<App> apps = new ArrayList<>(); executor.execute(new Runnable() { public void run() { // My long-running code to get items into the list handler.post(new Runnable() { public void run() { gridAdapter.notifyDataSetChanged(); } }); } } return apps; } 

    This works fine, but as a new android developer I get the feeling that I'm missing something and it cannot be that simple. Is there anything wrong with this way of doing background tasks? For example, how will I know the progress of my task using this way? Thanks in advance for any insights!

    submitted by /u/rufusinzen
    [link] [comments]

    File is magically rewritten with random text after updating to Android Studio 3.5.3

    Posted: 07 Jan 2020 10:24 PM PST

    Does anybody experienced this after updating to Android Studio 3.5.3?

    <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="AndroidLayouts"> <shared> <config> <device id="pixel" /> </config> </shared> </component> <component name="AndroidLogFilters"> <option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" /> </component> <component name="ChangeListManager"> <list default="true" id="5f8ee286-50de-4b3e-b06b-452c3d44810a" name="Default Changelist" comment=""> <change beforePath="$PROJECT_DIR$/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/build.gradle" afterDir="false" /> <change be 

    These just randomly occur every time I check a file I just updated. Then lint alerts that a random class used in the file cannot be located because the file was magically rewritten. I did not even update that file.

    Full android studio specs:

    Android Studio 3.5.3 Build #AI-191.8026.42.35.6010548, built on November 15, 2019 JRE: 1.8.0_202-release-1483-b03 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 

    EDIT: Formatting

    submitted by /u/spanishbread129
    [link] [comments]

    Google Play Content Policy Violation

    Posted: 08 Jan 2020 03:59 AM PST

    I am a developer from India. I developed a free gaming app that offers real rewards when the user wins. The app doesn't take money from the user for playing. It is completely free. The app was rejected saying it comes under Gambling and violates Google's policies.

    Unfortunately, the Google Play Developer Policy is not very clear in this regard, it says "We don't allow content or services that facilitate online gambling, including but not limited to, online casinos, sports betting, lotteries, or games of skill that offer prizes of cash or other value".

    According to the policy, such apps are allowed in UK, Ireland, and France only, Since apps with a similar model are already present in Playstore India like HQ, Real Cash Games, Loco, Qureka and tons more that provide cash or real rewards. Does anyone know what these apps are doing differently?

    submitted by /u/abinmittu555
    [link] [comments]

    Deep dive into DiffUtil library

    Posted: 08 Jan 2020 06:44 AM PST

    When WorkManager Stops Working

    Posted: 07 Jan 2020 02:06 PM PST

    Gradle 6.1 RC2 is out

    Posted: 07 Jan 2020 05:28 PM PST

    Companion Device Manager, anyone get it working?

    Posted: 07 Jan 2020 10:27 PM PST

    There is literally ONE bit of sample code for this and it crashes in its own address space on Android 8, 9 and 10. Documentation is just about nil and can't find any other references to it anywhere even though it's been a thing since Android M.

    Any leads would be awesome, want to use it to pair with a robotic Bluetooth arm that is mounted to a wheelchair.

    TIA

    submitted by /u/kennygoers
    [link] [comments]

    How to access nested local jar

    Posted: 08 Jan 2020 04:19 AM PST

    I have this app that uses a local jar. The app also has a dependency on a self created library that also contains that same local jar. If i remove the local jar from my app it cannot access the jar from my library. Is there any way to do this so i only need to have the jar in my library and not in my app?

    Thanks in advance :)

    submitted by /u/MagicManAnno
    [link] [comments]

    Android Studio 4.0 Canary 8 available

    Posted: 07 Jan 2020 11:03 AM PST

    Mobile game publishers list

    Posted: 08 Jan 2020 03:16 AM PST

    Is there anywhere I can get a curated list of mobile game publishers?

    submitted by /u/BorderTrader
    [link] [comments]

    How Google Represses Independent Developers on Google Play

    Posted: 07 Jan 2020 11:33 AM PST

    White Label App and Developers

    Posted: 08 Jan 2020 03:02 AM PST

    Hi everyone, I'm looking for some info/opinions on white label apps. A friend and I have been talking about creating an AirBnB parking management platform (similar to Pavemint) for where we live. We were talking about getting a web app built first as it would be less expensive, when another friend suggested we look into white label apps.

    Obviously there is risk with this if the programming hasn't been done correctly, but my friend who recommended it thinks that for the price it's a good way to jumpstart everything, and then hire a full-time local developer to tweak things, check the programming and modify as needed.

    I did a search online and found this company from India that offers clones of popular sites. I emailed them and they gave me login information to check out the website as well as the Android and iOS apps which are in the app stores. They quoted me $1000 usd for all three; web, Android and iOS.

    Admin panel

    https://admin-rentpark.rentcubo.info/admin/login

    Username: [admin@rentpark.com](mailto:admin@rentpark.com)

    Password: 123456

    User panel: https://rentpark.rentcubo.info

    Username: [user@rentpark.com](mailto:user@rentpark.com)

    Password: 123456

    Provider panel: https://rentpark.rentcubo.info/host/login

    Username: [provider@rentpark.com](mailto:provider@rentpark.com)

    Password: 123456

    Now, I'm not a programmer and know nothing about programming. Please give me your opinions on going this route. We definitely don't have the money to develop all three ourselves, but could begin fresh with a web app. I'm wondering what you guys think about going the white label route.

    Thank you for your opinions and information!

    submitted by /u/notnotbacon
    [link] [comments]

    How to Localize an App or Game? Top Ten Free Sources

    Posted: 08 Jan 2020 02:52 AM PST

    hey, I got that error, when building layout in android studio, I'm using material io components

    Posted: 08 Jan 2020 02:22 AM PST

    Journey to a Faster Everyday Super App Where Every Millisecond Counts

    Posted: 08 Jan 2020 01:52 AM PST

    Want to learn Android Dev

    Posted: 08 Jan 2020 05:24 AM PST

    I am a first year college student, and would really like to learn mobile app development. I've searched around on the internet, but aren't quite sure how to proceed yet. i signed up for the course on Shaw Academy, but after reading more about it I don't know whether that's the best idea. Can anyone guide me as to how I Should proceed? Any online course recommendations would be highly helpful, and even if not, any other ways I could start learning?

    Thank you for your time and consideration.

    submitted by /u/JasFreak
    [link] [comments]

    No comments:

    Post a Comment