• Breaking News

    Thursday, March 26, 2020

    Android Dev - Create awesome app screenshots for PlayStore

    Android Dev - Create awesome app screenshots for PlayStore


    Create awesome app screenshots for PlayStore

    Posted: 26 Mar 2020 03:28 AM PDT

    Create awesome app screenshots for PlayStore

    I know you all are being extra productive in this difficult time and have multiple mobile apps lined up to be released, so please don't upvote me too fast in excitement, let me pitch something first.

    We made the daunting work of creating screenshots for GooglePlay a little bit more enjoyable. You might think, well, there were other ones already. Yes, we thought so too, but they didn't have the styles nor the devices we wanted and it's also cool to do the project yourself.

    So do use our service if it comes handy in your next app. Go to previewed.app, select a device, choose a style, upload a screenshot and whoalla, pretty PlayStore.

    You end up with something that looks like

    Please use PC to keep your sanity.

    P.S. Thanks for the downvotes!

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

    I guess I should feel flattered but not sure this is fair.

    Posted: 25 Mar 2020 02:20 PM PDT

    AutoCompleteTextView - Disable dropdown behavior

    Posted: 26 Mar 2020 06:16 AM PDT

    So I have subclassed autocompletetextview to meet my requirements but I'm stuck with one issue with the dropdown behavior, whenever I click on the view the dropdown fluctuates, the number of times I click on the view, it fluctuates every time, I want it to be persistent and dismiss only on outside touch or back press.

    here is an example https://imgur.com/PmVBANa

    package com.momentsnap.android.searchableSpinner; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import androidx.appcompat.widget.AppCompatAutoCompleteTextView; import com.momentsnap.android.teamlist.ui.entity.OnSpinnerEventsListener; import java.util.Calendar; import timber.log.Timber; public class MyAutoCompleteTextView extends AppCompatAutoCompleteTextView { private static final int MAX_CLICK_DURATION = 200; private long startClickTime; private OnSpinnerEventsListener mListener; private boolean mOpenInitiated = false; public MyAutoCompleteTextView(Context context) { super(context); } public MyAutoCompleteTextView(Context context, AttributeSet attrs) { super(context, attrs); } public MyAutoCompleteTextView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } public void performFiltering(CharSequence text) { super.performFiltering(text, 0); } public void setSpinnerEventsListener(OnSpinnerEventsListener onSpinnerEventsListener) { mListener = onSpinnerEventsListener; } //Override the parent class method, so that the drop-down box selection is also generated // when 0 input is possible. By default, at least 1 character is required for input. @Override public boolean enoughToFilter() { if (!isEnabled() || getAdapter() == null) { return false; } if (getText().length() == 0) { return true; } else { return super.enoughToFilter(); } } @Override public boolean performClick() { // register that the Spinner was opened so we have a status // indicator for the activity(which may lose focus for some other // reasons) mOpenInitiated = true; if (mListener != null) { mListener.onSpinnerOpened(); } return super.performClick(); } public void performClosedEvent() { mOpenInitiated = false; if (mListener != null) { mListener.onSpinnerClosed(); } } /** * A boolean flag indicating that the Spinner triggered an open event. * * @return true for opened Spinner */ public boolean hasBeenOpened() { return mOpenInitiated; } @Override public void onWindowFocusChanged(boolean hasWindowFocus) { Timber.d("onWindowFocusChanged"); super.onWindowFocusChanged(hasWindowFocus); if (hasBeenOpened() && hasWindowFocus) { Timber.d("closing popup"); performClosedEvent(); } } //Increase the chance of drop-down box display. @Override public boolean onTouchEvent(MotionEvent event) { if (!isEnabled() || getAdapter() == null) { return false; } switch (event.getAction()) { case MotionEvent.ACTION_DOWN: { startClickTime = Calendar.getInstance().getTimeInMillis(); break; } case MotionEvent.ACTION_UP: { long clickDuration = Calendar.getInstance().getTimeInMillis() - startClickTime; if (clickDuration < MAX_CLICK_DURATION) { if (!isPopupShowing()) { performFiltering(getText()); showDropDown(); } } break; } } return super.onTouchEvent(event); } } 
    submitted by /u/alwaysbakedarjun
    [link] [comments]

    How does my application work on an Android device?

    Posted: 26 Mar 2020 01:04 AM PDT

    Hello, everyone! I want to ask you about what's going on under the hood when you created or you're creating your own mobile application for Android. So, let's get started from the underlying technologies.

    1. On you computer you have JDK. You wrote some code and it was compiled by javac into bytecode. Then does my byte code go to .apk file or it should be converted into machine code by JVM and only then into .apk file?
    2. We have our application on an Android device. Imagine that I want to run it. How does it work? Should it compile my code again or .apk contains machine code already? If it doesn't contain, what will compile my code on an Android device? Kernel?
    submitted by /u/Danil_Ochagov
    [link] [comments]

    Need some help creating a Pie chart with custom styling and animations

    Posted: 26 Mar 2020 08:10 AM PDT

    I'm trying to create a donut chart that with some custom animations, and so far haven't been able to find any third party libraries that would fit my needs. I've looked at MPCharts and AnyChart, but I think I'm going to have to build this out from scratch. What I'm looking for is how to build a donut chart, whose slices have rounded edges (but still square in shape), and when clicked I'd like the selected slice to scale up to a larger size to emphasize that its been selected.

    To my knowledge, there doesn't exist a library that would allow me to do this, but if you know of anything, or can point me in the right direction, it would be much appreciated

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

    Testing ViewModels and LiveData

    Posted: 26 Mar 2020 08:05 AM PDT

    A notification listener running permanently ? Kotlin

    Posted: 26 Mar 2020 07:40 AM PDT

    Im trying to make an app that runs permanently on my phone that listens to notifications coming in stores them. So i was wondering where to start ? e.g should i be using a foreground or background service. Any help would be much appreciated. Thanks

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

    Need help for repeating notifications/reminder

    Posted: 26 Mar 2020 07:40 AM PDT

    I have to make an app for my final year project but I am stuck at one point and I'm unable to resolve that issue. Checked stackoverflow, youtube tutorials but no use. I could only make my reminder work for the same day and only once. I need to make it repeat itself on specific days or everyday. I'm attaching the link to codes (XML and java). Someone please help me. Thank you.

    https://www.dropbox.com/sh/9jvseot6b9xsuty/AAAfHWlyevPfPbtBLCPlh13Fa?dl=0

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

    What features should publishers seek for while choosing a monetisation partner for an app?

    Posted: 26 Mar 2020 06:54 AM PDT

    Mocking is not practical — Use fakes

    Posted: 25 Mar 2020 11:43 AM PDT

    ADB: Cant connect to emulator but can issue commands

    Posted: 26 Mar 2020 05:59 AM PDT

    Hi guys,

    Just started working with adb and emulated androids.

    I have an android emulator with Android studio.

    If I do "adb devices" it shows up as "emulator-5554" , but second column just says "device".

    I've tried to install an apk and check the packages and it all seemed fine, I just did "adb -e <command>"

    But I can't do "adb connect emulator-5554:5555", should I be worried or is that expected behaviour from emulators?

    Thank you

    submitted by /u/Norvig-Generis
    [link] [comments]

    ART and Davlik under the hood?

    Posted: 26 Mar 2020 05:30 AM PDT

    Hello, everyone! I asked the question here and you helped me where I should dig on that topic. So, now I've read some articles about this topic but I found a lot of unnecessary information about that. I need to get only superficially knowledge which will be useful.

    As I understand, when you run your Java code on PC you have JVM but when Google created Android OS he couldn't afford use JVM in their project free. Hence, they created their own VM's for running Android applications. Once upon a time we had Davlik. It translates your Java bytecode into executable .dex files during your application is running. Now we have ART. It translates your Java bytecode into executable ART files when you're installing your app and move the code into your storage. Every application is running on ART can be run on Davlik but not every application is running on Davlik can be run on ART. ART is faster because you compiled the source code only one time when you were installing the app. It uses less performance of you device.

    I hope you can tell me if something's wrong.

    Updated: therefore, every application is running on its own virtual machine. It helps in debugging and also it prevents malicious software from their impact on the Linux kernel of your device.

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

    Emulator 30.0.5 Stable

    Posted: 25 Mar 2020 12:33 PM PDT

    Before diving into this projects: What's your opinion on writing Python code for Android?

    Posted: 26 Mar 2020 04:07 AM PDT

    tldr: Would you reccomend to write Android Apps in Python instead of Java?

    Hallo fellow redditors!

    I hope you can help me here with some advice.

    A friend and I planned on programming Alexa Skills using Python. I just began learning programming and after I told my friend, who is a software developer, he got hooked with my idea and we decided to write the Alexa Skill in Python.

    Now, after a month however, we realised that the Amazon Web Services suck. Amazon is very restrictive in terms of what you are allowed to do and how to do it when programming Alexa Skills.

    So we decided to work on an Android App instead.

    Only problem is: Thus far I only know the basics of Python and my friends thinks that it would be way, way easier to code an App in Java. Which means that I'd have to start learning Java now.... :/

    (and after taking a glimpse it looks scary...haha!)

    So... what do you think? I definately want to keep up studying Python, but would you say that it is better to code in Java when it comes to Apps?

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

    How to initialize and store data across Activities?

    Posted: 26 Mar 2020 02:52 AM PDT

    I'm a beginner to Android Studio and I was trying to ceate a Tic-Tac-Toe game. I wish to keep a record of the scores which should be available for the user to view when he clicks on "SCORE" button and is redirected to Another Activty "score' using intent. I plan to store the variavbles in red_s and yellow_s but everytime a game ends and the person goes to the score activity, the red_s and yellow_s will be re-initiated and be set to zero. How can i preserve this data across activities?

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

    Now in Android #14

    Posted: 25 Mar 2020 11:03 AM PDT

    Hey Guys how do you think Reddit implemented the share post preview

    Posted: 26 Mar 2020 02:14 AM PDT

    I'm looking to do something similar in my app

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

    Need to create a movie from a collection of pictures and existing video. Is ffmpeg a good option for this, or are other options (MediaCodec, ?) better?

    Posted: 26 Mar 2020 01:06 AM PDT

    So as the title states, in my app the user should be able to select a collection of pictures and/or video, and render all of them together into a single video.

    I've been looking around and there are implementations for ffmpeg on Android, and the operations I want to do are quite easily done using ffmpeg (at least I think).

    My research also shows using Android's MediaCodec as an option, but the learning curve seems much higher, and it's a much more low-level approach. Using OpenGL has the same issues, and there are apparently some memory issues to consider?

    Any suggestions for other approaches, or is ffmpeg a good one?

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

    Violation of Android Advertising ID, but i don't use it

    Posted: 25 Mar 2020 01:41 PM PDT

    i just got an email from Google Play support about: "Violation of Usage of Android Advertising ID policy and section 4.8 of the Developer Distribution Agreement".

    My app is a simple ToDo app that uses some firebase services: database, storage and auth(email&google) WITHOUT any advertising or something similar. I'm the only user and it was part of my learning experience, but google thinks I'm violating some privacy&advertising policy.

    Maybe some of you can understand my problem and maybe is kind enough to share a solution. Do you have any idea about what do I have to do?

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

    My script for creating an Android Emulator

    Posted: 26 Mar 2020 12:30 AM PDT

    I have created a script that builds an android emulator on your linux operating system. You guys may check the script on github : https://github.com/levimake/androidemulator_CLI

    I tried on my systems and this works pretty fine.

    Known issues : The emulator is not working as expected on Gnome Wayland. On Xorg servers, it works super cool.

    Please contribute to the project.

    I am not a developer or any hardcore coder. I just created a bash script that makes use of lots of commands to build an emulator via command-line that I've got from stack overflow.

    I created this project for my app development on react native so that I don't need android studio to build an emulator.

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

    Houseparty app makes notification sounds even when the device is in silent/do not disturb mode

    Posted: 25 Mar 2020 08:51 AM PDT

    With the explosion in popularity of the Houseparty app, I thought I'd give it a go...

    Users receive a notification each time a friend signs up to the app. Somehow this notification doesn't respect OS rules - such as silent/do not disturb - and manages to make an audible notification.

    There's a few reports of this on Twitter.

    How is this possible?!

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

    Is it possible to develop Apps on Android that utilize Spark AR?

    Posted: 25 Mar 2020 11:05 PM PDT

    What should I learn next?

    Posted: 25 Mar 2020 08:54 PM PDT

    https://books.google.com/books/about/Android_Programming_with_Kotlin_for_Begi.html?id=CzCWDwAAQBAJ I have read this book completely and mastered all concepts. What should I learn next?

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

    No comments:

    Post a Comment