• Breaking News

    Monday, April 13, 2020

    Android Dev - Weekly "who's hiring" thread!

    Android Dev - Weekly "who's hiring" thread!


    Weekly "who's hiring" thread!

    Posted: 13 Apr 2020 05:44 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Weekly Questions Thread - April 13, 2020

    Posted: 13 Apr 2020 03:56 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    I just published ✍️ "Working with In-App Updates in Android"

    Posted: 13 Apr 2020 02:41 AM PDT

    Hi guys, can you help me??? I'm new in Android

    Posted: 13 Apr 2020 06:57 AM PDT

    I'm new in Android kotlin, I never make a app, until now. I want to know, how to check if I have permission to execute a cmd command??? And how do I get it???

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

    Android Custom View 102 (Part 5)

    Posted: 13 Apr 2020 07:10 AM PDT

    Advice needed

    Posted: 12 Apr 2020 03:18 PM PDT

    I'll try not to waffle too much as I have a habit of doing so when making posts like this...

    Last summer I got obsessed with Android launchers. I tried probably 50 of the most popular ones but none of them felt 'right' to me. I'll admit I probably have some form of OCD or Aspergers or something in between.

    I decided I wanted to make my own launcher, despite very little experience with app development. While looking at reviews of the Palm phone (a tiny Android phone that didn't sell very well), I took a liking to the launcher/homescreen and its design became inspiration for my own app, with the intention that it would just be for me and anyone else that stumbled across the project.

    Hundreds of hours of coding, designing and a bunch of other challenges later, and I had a working launcher on the Play Store. I got really lucky and some websites/YouTube channels brought attention to it and I started getting a lot of unexpected downloads. I decided to add an in-app upgrade for a couple quid so I could start earning for my work, although I felt a bit reluctant to do so when the app wasn't 100% my original idea. I didn't think anybody would really buy it but it actually started making me more money than my old part-time job did. I kept working on it, taking onboard pretty much any feedback I got, and... long story short I think I burnt myself out with it. I was coding for like 8+ hours a day in my bedroom for 2 or 3 months straight, and I got absolutely fixated over some of its issues. Eventually I took a break from the project, life/studies took over and I no longer have the passion I did when I first started it.

    That would be fine, but I feel an overwhelming sense of guilt now. The app is generating quite a lot of money each month despite 0 effort on my part and it's just recently surpassed 150,000 downloads which is absurd. I make it clear all over that it's not a finished product but with the attention now, I feel enormous pressure to keep working on it. I've had a few emails along the lines of "What happened? No update in 6 months..."

    I don't have an excuse to not work on it now, other than the fact that I don't remember what half of my code does. It's really stressing me out. I'm 19, so I have no idea how really to handle this. My conscious wouldn't let me just take these people's money and run with it, but I also don't know how to go about continuing it. My mental health is shoddy at the best of times and the eat-sleep-code cycle I had last summer didn't do it any favours. The idea of selling the app to another developer/company has crossed my mind but I don't know if that's viable or possible.

    Any advice or wisdom regarding this would be super appreciated. Thank you :)

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

    Where to begin with building a survey app with a database on no budget?

    Posted: 13 Apr 2020 04:07 AM PDT

    Hi all,

    Hope you're all keeping well, especially in these particular times.

    I want to try building my first app from scratch that will require a user database as well as list of media (initially I had this in mind as a spreadsheet but thinking it would make more sense as a separate database, too), but have no idea where to start to try to do this all for free and by myself (this is a pet project for myself to use with my friends). I've had a look online and keep find myself pointed towards Airtable, which looks like it'd do the job but, given this is more for me just to tinker around and try out app-development, I don't want to actually invest any money into this project...

    Any recommendations? on viable solutions for what I want to do (bit more context below)? Thanks in advance :)

    The idea being the app will survey people on media they like and don't like (e.g. songs, shows, films, etc.) and fill out each media item's response accordingly. However, rather than doing it all in one go (it's a long list), this can be done in batches, say 10 items per survey or something, meaning a person can come back and carry on with the remaining items (as well as go back and update previous responses). I have a lot more features in mind but these are the barebone essentials.

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

    Connectivity State on Android 10 and Above

    Posted: 13 Apr 2020 04:05 AM PDT

    Developing a food delivery application

    Posted: 13 Apr 2020 07:35 AM PDT

    I'm developing a food delivery application. The updates like order confirmation are updated through push notifications using firebase. The push notifications are not really reliable and I want to find an alternative to inform the android client of the order status. One option I thought of is to use polling in the background and another is to check for the order status when opening the app or to implement all the three . Is there any other options that are being used in similar applications?

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

    Is Coroutines main dispatcher same as main thread?

    Posted: 13 Apr 2020 07:17 AM PDT

    I used the Main Dispatcher of Coroutine with Retrofit to call my api and it still works. I don't understand why android is not throwing the error of calling network on main thread? Even when accessing my room database I call it on the coroutine main dispatcher and it works fine. I have not written allowMainThreadQueries() for my room database so the app should have crashed but it works. This is weird. Isn't Coroutines main dispatcher same as the UI thread?

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

    Problem with reading text files from assets folder (Unmarshaling error, Parcelable class)

    Posted: 13 Apr 2020 03:03 AM PDT

    Hi everyone,

    I developed my first android app, so i will describe it and the problem briefly...

    It's a song book app. The app reads lines from text file that contains numbers and tile of the song then puts that data to an ArrayList that is used to set up the RecyclerView. When the certain item is clicked it checks for the song number that is in array list item and then based on that opens and reads text from a file that is named for example 23.txt. I have three languages (menu items) that can be checked in navigation menu, they have click listeners that change the current list for the RecyclerView. The problem is that when the third language (menu item) is checked whatever the first item is in the RecyclerView it throws an exception that the file doesn't exist (while it exists in the assets folder, and works for all other items in the list) and occasionally it says (on Samsung Galaxy A8):

    Class not found when unmarshalling: .... java.lang.ClassNotFoundException 

    I tried these solutions on stackoverflow but none of them seem to solve the problem:

    https://stackoverflow.com/questions/13997550/unmarshalling-errors-in-android-app-with-custom-parcelable-classes

    https://stackoverflow.com/questions/28589509/android-e-parcel-class-not-found-when-unmarshalling-only-on-samsung-tab3

    So I was wondering if someone would be kind enough to check my code and maybe see what did I do wrong. (Having in mind this is my first "serious" app, a lot of things could be done wrong...)

    https://bitbucket.org/andrejtomas/christiansongbookapp/src/master/

    Song text files are in: app/src/main/assets

    Other errors:

    2020-04-13 13:49:18.057 3566-5661/? E/WindowManager: win=Window{14b96a8 u0 com.andrejtomas.hriscanskapesmarica/com.andrejtomas.hriscanskapesmarica.SongOpened} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2759 com.android.server.wm.WindowManagerService.relayoutWindow:2456 com.android.server.wm.Session.relayoutForTranslate:302 android.view.IWindowSession$Stub.onTransact:518 com.android.server.wm.Session.onTransact:186 android.os.Binder.execTransact:739 <bottom of call stack> 2020-04-13 13:49:18.451 3566-5661/? E/Parcel: Class not found when unmarshalling: com.andrejtomas.hriscanskapesmarica.ExampleSong java.lang.ClassNotFoundException: com.andrejtomas.hriscanskapesmarica.ExampleSong at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:453) at android.os.Parcel.readParcelableCreator(Parcel.java:2827) at android.os.Parcel.readParcelable(Parcel.java:2781) at android.os.Parcel.readValue(Parcel.java:2684) at android.os.Parcel.readArrayMapInternal(Parcel.java:3053) at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:288) at android.os.BaseBundle.unparcel(BaseBundle.java:232) at android.os.BaseBundle.getString(BaseBundle.java:1155) at android.content.Intent.getStringExtra(Intent.java:8114) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:727) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:665) at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1542) at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:606) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6695) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6586) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:6577) at android.app.IActivityManager$Stub.onTransact$startActivity$(IActivityManager.java:10833) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:111) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4162) at android.os.Binder.execTransact(Binder.java:739) Caused by: java.lang.ClassNotFoundException: com.andrejtomas.hriscanskapesmarica.ExampleSong at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:1346) at java.lang.BootClassLoader.loadClass(ClassLoader.java:1406) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:453) at android.os.Parcel.readParcelableCreator(Parcel.java:2827) at android.os.Parcel.readParcelable(Parcel.java:2781) at android.os.Parcel.readValue(Parcel.java:2684) at android.os.Parcel.readArrayMapInternal(Parcel.java:3053) at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:288) at android.os.BaseBundle.unparcel(BaseBundle.java:232) at android.os.BaseBundle.getString(BaseBundle.java:1155) at android.content.Intent.getStringExtra(Intent.java:8114) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:727) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:665) at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1542) at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:606) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6695) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6586) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:6577) at android.app.IActivityManager$Stub.onTransact$startActivity$(IActivityManager.java:10833) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:111) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4162) at android.os.Binder.execTransact(Binder.java:739) Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available 2020-04-13 13:49:18.452 3566-5661/? W/Bundle: Failed to parse Bundle, but defusing quietly android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.andrejtomas.hriscanskapesmarica.ExampleSong at android.os.Parcel.readParcelableCreator(Parcel.java:2855) at android.os.Parcel.readParcelable(Parcel.java:2781) at android.os.Parcel.readValue(Parcel.java:2684) at android.os.Parcel.readArrayMapInternal(Parcel.java:3053) at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:288) at android.os.BaseBundle.unparcel(BaseBundle.java:232) at android.os.BaseBundle.getString(BaseBundle.java:1155) at android.content.Intent.getStringExtra(Intent.java:8114) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:727) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:665) at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1542) at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:606) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6695) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6586) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:6577) at android.app.IActivityManager$Stub.onTransact$startActivity$(IActivityManager.java:10833) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:111) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4162) at android.os.Binder.execTransact(Binder.java:739) 

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

    Google Play Store Console showing negative revenue

    Posted: 13 Apr 2020 06:47 AM PDT

    Google Play Store Console showing negative revenue

    According to the Google Play Store Console dashboard I'm regularly losing money on in-app purchases. This only started being reported a few months ago if I remember correctly, so I'm assuming it's a bug? Anyone else seeing such behavior?

    https://preview.redd.it/xaog7e1tals41.png?width=1816&format=png&auto=webp&s=0cff2070f237a5fdb06bb5c822c6a9dd93b3af31

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

    Is it possible for a calling app to be completely untraceable?

    Posted: 13 Apr 2020 06:21 AM PDT

    I am currently considering making an app where two people can call completely anonymoussly and without a trace. Is this possible with the android calls API? I'm not sure if this would be possible so please lmk

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

    Having an architecture problem using MVVM ?

    Posted: 13 Apr 2020 06:19 AM PDT

    I have a hard problem, I think, I already explained it in stackoverflow few secondes ago, any help.

    It is aout architecture not code, ofc I provided some code to explain, and code looks way better there in Stack.

    here is the link : https://stackoverflow.com/questions/61188657/mvvm-architecture-problem-when-trying-to-get-my-item-details

    Any help or thought would be much appreciated.

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

    Admob GDPR multilanguage

    Posted: 13 Apr 2020 06:08 AM PDT

    Can't find anything in the web, but how i can translate the admob gdpr popup ?

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

    Question on Portuguese localization

    Posted: 13 Apr 2020 02:17 AM PDT

    Currently, I have 2 set of resources (Strings, Images, ...)

    • Portugal Portuguese localization
    • Brazil Portuguese localization

    I plan to have the following folder

    • values-pt-rPT (Contains Portugal Portuguese files)
    • values-pt-rBR (Contains Brazil Portuguese files)

    But, how about?

    1. Do I need to have a folder named "values-pt" ?
    2. Should the folder hold Portugal Portuguese files, or Brazil Portuguese files?

    Thanks.

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

    Help with inputType in textEdit

    Posted: 13 Apr 2020 05:51 AM PDT

    Hi I just started getting back into Android development, after having taken a course in it 2 years ago, at uni. I have been fiddling with an editText, and according to stackoverflow, inputType="textLongMessage" should give the user the ability to add new lines. However, i dont get the new line button(Enter). I tried with textMultiLin|textLongMessage and that works, but what is the purpose of textLongMessage?

    My project has minSdk set to 15. Thx for the help

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

    Top 5 Best Android apps you've missed this April 2020

    Posted: 13 Apr 2020 05:09 AM PDT

    Multiple app instance in Google Play

    Posted: 13 Apr 2020 04:59 AM PDT

    Hello,

    In our company we already have an app which is used mainly in Europe. In future, we would like to create second instance dedicated for United States. Our backend guys suggested to create dedicated server for US clients only. For the mobile app, we know that there will be some features which will not be available for EU app.

    Question is: is it possible to create android app, which will be exactly the same but have suffix in the name (there will be "SuperApp EU" and "SuperApp US")? The pros of this solution will be easier update scenarios (update require some changes in backend part and time zones will have huge impact here).

    I have asked google support but they did not answer yet and I was wondering if anyone had similar situation here.

    Thanks

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

    Pluralsight is giving away 7k+ courses (including Android Dev courses) for free for the entire month of April

    Posted: 12 Apr 2020 10:20 AM PDT

    How to investigate obscure/inconsistent bugs happening on other people's devices?

    Posted: 13 Apr 2020 02:19 AM PDT

    I am an amateur developer and I would like for anyone that can help me with this.

    At the time of the bug, I do not posses the device, so I am not able to immediately check the bug.
    What would be the best practice and most convenient way into obtaining those logs?

    There are two scenarios:

    1. I will be able to get a hold of the phone after a while. (Local/QA users)
    2. Getting the hold of the phone is impossible. (Production users)

    For (1), I was thinking of writing the logs into a .txt file and then check it after once I get a hold of the device. Would anyone be able to suggest a better way?

    (2), The only way I could think of is use Firebase Analytics to record logs. Downside is I have to configure the whole project to record those events and those events doesn't reflect immediately in the dashboard based on my experience. (For apps already in production, I think this is the way to go.)

    Any help is extremely appreciated!

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

    Is there any way to change my MAC addresses if i dont have root?

    Posted: 13 Apr 2020 01:07 AM PDT

    Topic. I have s10+ but its Qualcomm model, as far as i know it can not be rooted, so can i change its mac still?

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

    Are fragments deprecated?

    Posted: 12 Apr 2020 11:12 AM PDT

    Hi, I'm new to Android and I'm trying to learn how to use fragments, but I see some things about them are deprecated. What way to use fragments should I choose? Thanks.

    submitted by /u/-ant_
    [link] [comments]

    What do you think of Devlogs? Is it worth it to start one?

    Posted: 12 Apr 2020 02:55 PM PDT

    I don't care about fame, but I wanted to know if there is room for App development devlogs. I see a lot of channels that post frequently about their progress in gamedev, personally I love watching this types of videos so I was wondering if I should start doing some app development videos.

    I just don't know if people actually enjoy watching these, mainly in Brazil, where programming isn't popular at all. I'd have to make portuguese videos since I still have a hard time speaking in english.

    My goal would be to have videos just like this one: https://www.youtube.com/watch?v=0ZeO0IQaJ-A

    edit: typo

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

    Model class

    Posted: 12 Apr 2020 08:34 PM PDT

    Hello guys why do we use a model class to read from DB ? (SQLITE)

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

    No comments:

    Post a Comment