• Breaking News

    Monday, April 6, 2020

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

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


    Weekly "who's hiring" thread!

    Posted: 06 Apr 2020 05:45 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 06, 2020

    Posted: 06 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]

    ViewBinding – the New Standard for View Interaction Handling in Android

    Posted: 06 Apr 2020 04:27 AM PDT

    Learn Jetpack Compose from examples that show the Compose way of doing common Android tasks

    Posted: 05 Apr 2020 03:13 PM PDT

    Learn Jetpack Compose from examples that show the Compose way of doing common Android tasks

    I've been playing with Jetpack Compose the past few months so decided to release a project that shows examples of how you would do common Android things the Jetpack Compose way. Each example is fairly self contained and the hope is that you can learn Compose by just going through the examples and reading through the comments.

    Github - https://github.com/vinaygaba/Learn-Jetpack-Compose-By-Example

    Here are some examples that I cover (there are a lot more examples!) -

    https://preview.redd.it/7xrlb7c7r2r41.png?width=360&format=png&auto=webp&s=e4cb73145008d63a26edd64c6302b8756ed780f1

    https://preview.redd.it/x863n5c7r2r41.png?width=360&format=png&auto=webp&s=f51b1bd89586e8f26351d34f19d0850c936752d8

    https://preview.redd.it/zsf6x3c7r2r41.png?width=360&format=png&auto=webp&s=cf0a184a11a0cff21fb93c962503e4aa73069830

    Shared some more context in this Twitter thread

    My plan with this project is to keep adding more examples as I learn new things about Compose. I'll also happily welcome feedback/contributions so if you find something wrong or are hoping to contribute to the project, just send a pull request!

    Github - https://github.com/vinaygaba/Learn-Jetpack-Compose-By-Example

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

    Welcome to droidcon Online!

    Posted: 06 Apr 2020 06:09 AM PDT

    How long did it take for your first app/game to be downloaded by random people on Google Play?

    Posted: 06 Apr 2020 03:15 AM PDT

    My first app, a chess game, has been published two days ago, and it has zero downloads by random people. I know that Google doesn't always recommend apps at the beggining, but I'm just wondering about your experience. How long did it take for your games/apps to be downloaded by random people?

    Edit: the link to my game is https://play.google.com/store/apps/details?id=com.LMProgramming.Chessbutmess , if you wan't to check it out.

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

    Limit the number of documents a user can create?

    Posted: 06 Apr 2020 06:20 AM PDT

    How is corona impacting your apps and business?

    Posted: 06 Apr 2020 12:18 AM PDT

    Is there a drop in revenue? How are you and your company working? Is your productivity and long term goals somehow affected?

    On my side, despite increase of installs revenue is dropping due to decreasing fill rates, productivity is gone because of uncertainty of what will happen with economy and ads.

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

    What's my best choice for background jobs that occur every 2 minutes regardless of the app's state?

    Posted: 06 Apr 2020 07:24 AM PDT

    I tried using WorkManage (JobScheduler) but they only work for > 15 min periods.

    I also tried using a regular Service with a Timer & TimerTask but i feel like that's not a good idea and my service always gets killed.

    I need a way to periodically send a POST request (I use OkHttp) every two minutes regardless if the app isn't in foreground - and i would like to start the period on boot.

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

    Play Store Appeals are ridiculous

    Posted: 05 Apr 2020 11:50 PM PDT

    I recently had an app removed for "impersonation" so I wanted to change the title as well as the description to make it clear that I was not affiliated with the entity. I went to the store listing tab to find it empty, as well as all other tabs; I could not make any changes. I made an appeal saying I agree with their decision and I would like to fix it but I can't. After a week of review I get an email back explaining what impersonation is and telling me to fix it. I can't take the Google team seriously anymore

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

    AVD Manager Crashes

    Posted: 06 Apr 2020 07:10 AM PDT

    So I'm new to Android Development, and trying to get Android Studio (3.6.2) setup on my MacBook Pro running MacOS 10.15.4 (Catalina). Every time I try to set up a device in AVD Manager it crashes.

    Here is a portion of the report:

    Crashed Thread: 24 Java: AWT-EventQueue-0 3.6#AI-192.7142.36.36.6308749 Studio, ea

    Exception Type: EXC_BAD_ACCESS (SIGABRT)

    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

    Exception Note: EXC_CORPSE_NOTIFY

    I'm looking for any ideas, I tried several options that I've found via Google, but none of them have been the magic I'm after.

    TIA

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

    Anyone got the eBook by Adam Sinicki "Learn Unity for Android Game Development"? How do we use the sprites he's using?!

    Posted: 06 Apr 2020 07:02 AM PDT

    Hi

    I'm currently testing to see if I can learn best with online courses, tutorials or books. Right now I've got this eBook and everything is going great, that is until he started to use sprites. First a grassy tile and then "Squarey". Nowhere does the author mention where to get these sprites from or how to create them...am I going mad or did I miss something?

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

    Whats your expertise and preferences ?

    Posted: 06 Apr 2020 06:30 AM PDT

    adding a sliding overlay panel in SupportMapFragment

    Posted: 06 Apr 2020 02:37 AM PDT

    I'm interested in learning how to implementing an activity UI somewhat similar to this one found in the Uber Driver app.

    https://imgur.com/a/8MlvH2K

    particularly how would you add a panel that slides up and down (not sure of the proper name) over a Google Map?

    Any codes examples would be helpful.

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

    3d Card Game

    Posted: 06 Apr 2020 05:39 AM PDT

    Hi All

    Newbie here. In college I previously used unity to create a side scroller game and found unity great to use.

    I am now looking to develop an android game. More specifically a 2D multiplayer card game based off of a popular card game here in my country.

    Is unity the platform to use here or does anyone have any other suggestions?

    Thanks for your help in advance.

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

    I'm making an android app for a client and I don't know how to deal with the pricing

    Posted: 05 Apr 2020 06:11 PM PDT

    I just graduated last year October and was hired as an Android Developer on the same year November. I don't have much experience but I am willing to learn on new things. In my current work, there is no android app project yet so they allowed me to help with other teams working on a website. So I don't really count it as an experience.

    I'm currently working from home due to coronavirus. And I received a project from a restaurant (not client project from my company). This is my first time working on an actual project. I've made projects before but for thesis. Can you help me out? I'm really new to this. Here are my questions:

    How much should I ask for the price?
    Should I ask for money before? After? Or in the middle when I'm almost finished?
    Is there a contract? Should the developers make it? Or our client?

    Thank you so much for your reply.

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

    Can you explain me singleTask launch mode in Android?

    Posted: 06 Apr 2020 04:55 AM PDT

    Hello, everyone! I've been trying to understand launch modes in Android. I can't understand much singleTask. Can you help me?
    Okay, I found this article on Medium. Now follow the numbers on the photo (I will be asking you about that cases).

    1. He says that when we call an activity with singleTask launch mode, we just get that activity in our existing task. Stop! Actually, it will create a new task with that activity. Did he make a mistake or I don't understand something?
    2. If we call an existing activity with singleTask launch mode which was created in a separate task, it won't destroy other activities, it will just create one more activity in that task on the top. Did he make a mistake or I don't understand something here?

    I found plenty of articles with such kind of interpretation.

    Okay, now I have the second question about how to implement this thing (mb, it will depend on the first question). Let's imagine that I have activity A and activity B. In addition to that I have a foreground notification. I want to realize the next thing: when a user clicks the notification it will send the user to Activity A, no matter if activity B was on the focus. I want to destroy automatically activity B, if it needed, and go to activity A with the same state. How to implement this feature?

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

    api 29 emulator v30.0 + broken on MacOS?

    Posted: 06 Apr 2020 04:27 AM PDT

    Hi all,

    We run automated tests on the android emulator and recently found that our api 29 builds have started failing. It seems some adb commands are taking ages to respond or timing out.

    I think this may have started with version 30.0.5 of the emulator. I tried upgrading to 30.0.6 and now 30..0.7, without any luck.

    repro:

    ```

    create avd

    avdmanager create avd -n api-29-bug-emulator-30.0.7 -k "system-images;android-29;google_apis;x86_64" -d pixel

    run emulator

    emulator -verbose -avd api-29-bug-emulator-30.0.7

    wait for boot, then in another terminal

    adb root

    ```

    will hang, or timeout.

    the logs show the following:

    ``` emulator: OpenGL Version=[OpenGL ES 3.0 (4.1 ATI-3.5.5)] emulator: VERBOSE: AdbInterface.cpp:385: Found: 3 adb executables emulator: VERBOSE: AdbInterface.cpp:387: Adb: /Users/clem/Library/Android/sdk/platform-tools/adb emulator: VERBOSE: AdbInterface.cpp:387: Adb: /Users/clem/Library/Android/sdk/platform-tools/adb emulator: VERBOSE: AdbInterface.cpp:387: Adb: /Users/clem/Library/Android/sdk/platform-tools/adb emulator: No acpi ini file provided, using default

    emulator: VERBOSE: AdbInterface.cpp:408: Path:/Users/clem/Library/Android/sdk/platform-tools/adb protocol version: 41 emulator: VERBOSE: AdbInterface.cpp:408: Path:/Users/clem/Library/Android/sdk/platform-tools/adb protocol version: 41 emulator: VERBOSE: AdbInterface.cpp:408: Path:/Users/clem/Library/Android/sdk/platform-tools/adb protocol version: 41 emulator: VERBOSE: winsys-qt.cpp:919: config multidisplay with config.ini 0x0 0x0 0x0 emulator: _hwFingerprint_connect: connect finger print listen is called

    emulator: got message from guest system fingerprint HAL

    emulator: onGuestSendCommand: [0x7fd1a7b39c80] Adb connected, start proxing data emulator: INFO: boot completed emulator: INFO: boot time 29931 ms emulator: Increasing screen off timeout, logcat buffer size to 2M. emulator: Revoking microphone permissions for Google App. emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | emulator: VERBOSE: System.cpp:1486: Timed out with running command |/Users/clem/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell settings put system screen_off_timeout 2147483647 | ```

    So clearly something is going on with adb...

    I tried reporting this to google but the report to google button in the emulator UI tells me I am not allowed to post a bug request...

    Can anyone confirm / deny this? maybe an emulator dev will see this? It affects several employees from my company.

    Happy to provide more logs if needed of course.

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

    Loading animation (custom inderminiate progress bar/custom animation)

    Posted: 06 Apr 2020 04:20 AM PDT

    Hello,

    I just wanna ask, what is the best practice to do this animation (just the animation) for progress in Android (Java). Just like it can be seen here ... I want to do it with my custom image. I am asking because I am not so experienced with animation building and i wanna do it in the best way it is possible. One way would be like that here ... but i think that there could be better way to do that for styling the progress bar. I have done some more research and I did not see anything like that. Eg here (i use preferably Java)

    Any help would be appreciated.

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

    Lessons learnt from Vector Drawables

    Posted: 05 Apr 2020 09:20 AM PDT

    What is Kotlin feature you use in Android that is hard to implement in Java?

    Posted: 06 Apr 2020 02:59 AM PDT

    I know one is Data Class, but what else do you think is hard to do in Java?

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

    Map<String, List<Item>> inside recyclerView

    Posted: 06 Apr 2020 02:45 AM PDT

    Hello.

    From someone who came from cross-platform development, I have hard time to understand recyclerView in android.

    I can populate a simple list using recyclerView with no problem now, but i've problem with more complex list.

    As described in the title, i've Map<String,List<Item>> and want to display it in a recyclerView.

    the header will be the Key, and underneath that List of all the values of a given key.

    How can I implement this using kotlin? Of course i'm open to 3rd libaries

    Thank you for your answer in advance

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

    Is it possible to use WorkManager to launch an App?

    Posted: 06 Apr 2020 02:00 AM PDT

    I've been struggling with this for days, and I can't find an answer or example of this online. Have you ever tried it?

    This is how I'm scheduling the Work from MainActivity:

    class MainActivity: FlutterActivity() { private val APP_LAUNCH_WORK_ID = "app_launch" val appLauncherWorkRequest = OneTimeWorkRequest.Builder(AppLauncherWorker::class.java) .setInitialDelay(1, TimeUnit.MINUTES) .build() fun scheduleWorkRequest() { val instanceWorkManager = WorkManager.getInstance(this) instanceWorkManager.beginUniqueWork(APP_LAUNCH_WORK_ID, ExistingWorkPolicy.REPLACE, appLauncherWorkRequest) .enqueue() } } 

    This is my AppLauncherWorker class:

    class AppLauncherWorker(appContext: Context, workerParams: WorkerParameters) : Worker(appContext, workerParams) { override fun doWork(): Result { if (!isAppRunning()) { val intent = Intent(this, MainActivity::class.java) intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK) intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) startActivity(intent) } return Result.success() } private fun isAppRunning(): Boolean { return MainActivity.isRunning //<--- Static } } 

    My understanding from the documentation is that a Work starts a process, does something, and when it's done, the OS kills that process. But if I launch an activity, that should start a new process, right? And when the OS kills the Work process, the activity shouldn't be killed with it...

    In my tests, it never enters MainActivity's onStart() method.

    Is it even possible to launch an activity from a Work? Is it possible to launch a Foreground Service from a Work? What am I missing?

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

    Multi platform apps?

    Posted: 06 Apr 2020 01:49 AM PDT

    I've always been a big advocate of native apps. Proper integration with the platform etc. However the cost of developing two apps (frontends) is more than some clients can afford.

    What are your experiences with multi platform app development? I don't like the idea of using something like Xamarin. But I could be open to the idea of having a responsive web page which could be packaged in an apk and... Whatever iOS uses.

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

    Noob question incoming

    Posted: 06 Apr 2020 01:06 AM PDT

    Hey, there.. I am currently in the process of developing an application and in the contact section, I want to include a email section where people can reach out to me via email. I want to include a from, subject and body section. The recipient portion would be fixed. It would contain my email id. How can I achieve this ? I am very new to android development and any help would be appreciated.

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

    Managing so many App stores

    Posted: 06 Apr 2020 12:23 AM PDT

    Hi all, my app is live on Play Store and recently changed the screenshots in Play Store listing, but when I see app details on Mi app market - GetApps , I see old screenshots and old app version. I have never uploaded app on Mi app market and have no idea how apps appear there(need to know that as well). How do i update my app there with new screenshots or does it even make sense to do that!!

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

    No comments:

    Post a Comment