• Breaking News

    Monday, November 2, 2020

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

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


    Weekly "who's hiring" thread!

    Posted: 02 Nov 2020 04:44 AM PST

    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 - November 02, 2020

    Posted: 02 Nov 2020 02:56 AM PST

    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]

    Netflix Android and iOS Studio Apps — now powered by Kotlin Multiplatform

    Posted: 01 Nov 2020 04:42 PM PST

    Fewer crashes and more stability with Kotlin

    Posted: 02 Nov 2020 03:44 AM PST

    What Could a Debug Menu Contain?

    Posted: 02 Nov 2020 08:16 AM PST

    WebSockets and Android apps - client-side considerations

    Posted: 02 Nov 2020 03:16 AM PST

    What type of APP is used to communicate with micro-controllers ?

    Posted: 02 Nov 2020 03:13 AM PST

    Hi guys!

    Before I begin, if you find this post inappropriate for this subreddit, please let me know and direct me elsewhere if you don't mind. Thank you!

    I'm planning a project which will require an app to control it, but as I'm very new to this, I genuinely have no idea what am I looking for. I'm not asking for help with the development, but I could seriously use a few pointers just so I know where to start. There's an overwhelming amount of programming languages / frameworks / other relevant things and it's incredibly easy to become confused by it

    In a single sentence: the app should be able to communicate with an external micro-controller (ESP32) via Bluetooth and/or WIFI in order to control an individually addressable LED strip (such as WS2812B & SK6812B). I'd like it to be both Android & IOS compatible if possible.

    I'll continue to describe the plan in detail so you can get a better idea of what I'm trying to accomplish give feedback (if you want to help) accordingly. If something on this list is not possible or is extremely complicated, please take a moment to let me know if you don't mind.

    ----------------------------------------------------------------------------------------------------------------------------------------

    App Setup plans

    1.Download & install APP (Android + IOS compatibility)
    2.Select a control method - Bluetooth or Wifi
    - would like this option to be interchangeable later but active / selected option would apply to all connected devices (if multiple are added / present on the list)

    3.Select the LED strip chipset (WS2812B / SK6812, etc.)
    4.Select color order (RGB / GRB, etc.)
    5.Input the total number of LEDs
    6.Continue to APP / add more devices

    Since I'm likely to make custom models with separate dedicated white LEDs, I'd like to be able to add X models through APP updates.

    ----------------------------------------------------------------------------------------------------------------------------------------

    App Feature plans

    1.Brightness control (global)
    2.Speed control (global)
    3.Mic sensitivity adjustment
    4.On/off switch (turns the LEDs off via SSR to eliminate idle power consumption & puts ESP in idle mode)
    5.Auto-mode (each effect is displayed for X amount of time, then a new effect begins)
    6.Manual solid color presets + RGB wheel / color picker
    7."Add to favorites" button & list (quick access to saved pre-made effects)
    8.Save changes button & list (pre-made effects with custom brightness and/or speed settings)
    9.Option to "sync" multiple lamps so they can be controlled simultaneously
    10.Update APP if controls were changed using built-in push buttons, encoders/pots and switches
    11.Language change (2 languages, without "auto-translate")

    ----------------------------------------------------------------------------------------------------------------------------------------

    **Advanced Features (**This option would require a small one-time payment)

    1.Wake up feature // using built-in clock or RTC module if needed

    a) Gradual - lights turn on at set time and brightness gradually increases. Lights stay this way until user input occurs.b) Flashing - lights continuously flash until cancelled but stop after 30 minutes or something like that.c) Lights & Sound - combines option a or b (user's choice) with a user selected premade sounds (uses a small built-in speaker)

    2.Timer & schedule function

    a) Schedule the lights to turn off after a set amount of timeb) Lights turn on & off automatically at set times (+ choice for which days of the week)

    3.Proximity switch (Using a micro-wave radar or a passive infra-red sensor to detect nearby people)

    a) When a person is detected, the lights will automatically turn on (dedicated white light as a base, but changeable)b) When a person is not detected for X amount of time, lights turn off or go into idle mode

    // I don't know if this is possible to achieve without the lights turning off if a person isn't moving a lot. Why - PIR sensors usually use timers and only work with motion, if a person is sitting, they go out.

    4.Alexa & Google Home compatibility

    -- Not as important, but would be nice. Not sure if it's possible with a custom app or worth the integration price I'd probably have to pay since I know nothing about this but I reckon it would be a cool feature to have.

    Commands (just a few basic stuff):

    Lights on/offChange effect to _preset keyword or numberDim the X light to/by X percentIncrease brightness to X percent / set to full

    5.Clock / temperature / humidity (if the model has a built-in LED segment display or an OLED module)

    Turn on/offAuto cycle through stats / modes by default

    ----------------------------------------------------------------------------------------------------------------------------------------So Based on all that info, could you recommend a place to start ? Selecting an appropriate programming language is a priority, but any additional tips or suggestions are welcome.

    I was also wondering, how much would an APP like this cost ? Just in case someone has an approximation. In case this is an inappropriate question, ignore it.

    Anyways, thank you for taking the time & have a great day!

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

    Play protect Warning Pop-Up While installing Android app

    Posted: 02 Nov 2020 01:14 AM PST

    Play protect Warning Pop-Up While installing Android app

    So we have an app that's deployed via the Microsoft AppCenter and one of the users received the following pop-up when trying to install it.

    Installation Pop-Up

    Couldn't find any particular resource when I googled it except for the Minimum Target APK Version policy. The app in question has a minSdkVersion="21" and compile version(Target Framework) = Android 8.1 (27). I tried installing the same application on my device that has Android 11 but it works fine for me. Are we looking at a region specific issue?

    Would be super grateful if anybody can help me out with this.

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

    Best way to monetize the app?

    Posted: 02 Nov 2020 04:59 AM PST

    Hi everyone,

    I have a cool idea for an app, which could reach(potentialy) a pretty big amount of users/downloads.

    IF they find the app as interesting as I do, what would be the best way to monetize it? Pay for download or put the adds in it? (which might be anoying)

    What would you suggest?

    Thanks in advance

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

    does System.exit(int) kill the process and clear up all the resources?

    Posted: 01 Nov 2020 11:10 PM PST

    According to my previous post, and some research online, I found out that the sytem might be playing the music even after the service's onDestroy was called because it was holding on to some resources like the MediaPlayer, so I decided to actually kill the process instead of calling the stopForeground or stopSelf, because they simply are not working. However, I synced all the application states and called System.exit(0) and it kills the foreground process as well as the activity as intended.

    The only bit of confusion I had is if System.exit(0) killed the process and also freed the app resources? That is, does it release every bit of resource held by the app? I am worried about it because I don't need to call MediaPlayer.release() and stopForeground() and other similar cleanup methods, just one System.exit() does the trick.

    It's okay to call this for my app, because it triggers the behaviour I intend, but, I wonder if its okay for the android system, because lingering memories would be a bad thing. Thanks in advance, any insight would be helpful.

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

    Auto Revoke Permissions settings panel missing on some apps (Android 11 API/System)

    Posted: 02 Nov 2020 03:29 AM PST

    Hi,

    I'm trying to whitelist some of my enterprise apps, but it seems (https://issuetracker.google.com/issues/170968725) that a new manifest attribute " autoRevokePermissions " isn't working (anymore or for now, I don't know because its new on API lvl 30 BUT its also not working AND bypassed by system...logic).

    So I'm trying to ask user permisison for this action, like explained here : https://developer.android.com/guide/topics/permissions/overview#auto-reset-permissions-unused-apps

    My problem is, on some of the apps, this section of settings is totally gone. I've updated targetSdkVersion on all, the configurations seems similar...

    Does anyone know why I encounter this issue ? (Sorry for bad english I'm french ;)

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

    Something like LFS.

    Posted: 02 Nov 2020 01:18 AM PST

    I'm always fascinated by Android and various ports of Android. We know that there are tons and tons of "build" guides on the internet but non of them actually explain how things work. If only we had something like LFS for android, to teach people how android actually works, what goes where, etc, we'd be able to create more ports for various devices. Like right now, I wanna know how the port of android x86 actually works and how can I port other custom android like Lineage OS to work on x86 platform. (I know android x86 has Lineage OS port already, but that's version 14.1, Lineage is on 17.1 now)

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

    How to implement (Firebase) authentication in Clean Architecture?

    Posted: 02 Nov 2020 08:13 AM PST

    I saw a couple sample projects on GitHub, but none of those seemed to completely separate the domain layer from Google Sign-In. I'm starting to wonder if it's even possible, since Firebase authentication is very tightly coupled to the Android framework.

    What in your opinion is the advisable solution in this case?

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

    Flutter Packages - Flutter Tags | English

    Posted: 02 Nov 2020 08:12 AM PST

    Are there any websites that show the performance improvements, for Android updates, instead of just new features?

    Posted: 02 Nov 2020 12:29 AM PST

    Google Maps Directions

    Posted: 02 Nov 2020 01:50 AM PST

    My app uses Maps API to guide people where to go. However I would like it to be more assisting, in the same way Google Maps does it after you press 'start'. They use traffic information to color code the polylines, they will reroute if you drive wrong, there are instructions at the top that update in real time ("200m take a right"), the voice speaks. Is it possible to implement this detailed assistance in my app with the current API? Otherwise I might have to settle for a link to open Google Maps or Waze outside of my app, but I'd like to avoid that if possible. Appreciate the advice.

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

    Save custom adapter state on orientation change

    Posted: 02 Nov 2020 01:46 AM PST

    Hello,

    I have a custom adapter with a rather complex layout: imageview, checkbox, textview...It looks like this.

    public class DeviceListAdapter extends ArrayAdapter<BluetoothDevice> { public DeviceListAdapter(Context context, ArrayList<BluetoothDevice> devices) { super(context, 0, devices); } @Override public View getView(int position, View convertView, ViewGroup parent) { BluetoothDevice device= getItem(position); if (convertView == null) { convertView = LayoutInflater.from(getContext()).inflate(R.layout.device_item, parent, false); } TextView identifier = convertView.findViewById(R.id.identifier); TextView address = convertView.findViewById(R.id.address); ImageView icon = convertView.findViewById(R.id.icon); identifier.setText(device.getName()); address.setText(device.getAddress()); if (device.getName().startsWith(Constants.ARDUINO_NAME)){ icon.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.blood_pressure2)); } else if (device.getName().startsWith(Constants.GREENTEG_NAME)){ icon.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.temperature)); } else if (device.getName().startsWith(Constants.MAXIM_NAME)) { icon.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.heart_rate)); } return convertView; } } 

    My question is, how can I save the state of the adapter on orientation change?

    Thank you so much

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

    AGP 4.0+ - app:lint hangs and throws Out of Memory exceptions

    Posted: 02 Nov 2020 07:03 AM PST

    Hi everyone,We have a very nerve wracking issue with the lint task and specifically for the app module. We noticed this when we first updated to AGP 4.0, but, at the time, it was working for AGP version 4.1.0-beta05. Last week I tried it with stable version of the 4.1.0, only to notice it broke again. Does any of you have the same problem; I was able to find one other issueTracker ticket.

    P.S. I tested it today with AGP v. 4.2.0-alpha15 with no luck.

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

    Can an app identify other apps which are present on a phone

    Posted: 02 Nov 2020 01:01 AM PST

    Sorry in advanced if this is the wrong sub but i have a question for any app developer. for context i have online exams coming up and i am required to download and invigilation app,at the same time for privacy reasons i want to download a microphone disabling app. The invigilation app requires storage permission ,so my question is will the invigilation app be able to identify what other apps are present on my phone

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

    Default font in Jetpack Compose?

    Posted: 01 Nov 2020 10:39 PM PST

    Default font in Jetpack Compose?

    Does anyone know, what font is Jetpack Compose using by default? I cannot find any info about it. Since I am migrating my app to Jetpack Compose I need to use the same font in the XML files.

    https://preview.redd.it/8glcrob8vrw51.png?width=212&format=png&auto=webp&s=4aa7148ff00661ada1287e0a3ec29dda38038ec7

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

    Looking for people that want to develop an Open Source App that automatically logs into Wifi networks (sign in pages/accepting terms).

    Posted: 02 Nov 2020 05:48 AM PST

    Edit: Not talking about Wifi passwords

    We are all annoyed by doing this manually and I'm sure a working app would save a lot of time over a couple of years.

    Why open source?

    Well if some networks have special login requirements they should be able to be added to this app by anyone (excluding specific authentication).

    What am I looking for: Anyone really with Android experience or experience regarding the captive portal part. The captive portal part is definitely possible to be solved as can be seen with this app.

    Just write a comment here if you are interested in developing this with me, I probably would wait for at least 5 interested people.

    I already have a lot of Android experience and some captive portal experience too, looking forward to people that want to participate

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

    Cloud based IDE for android development

    Posted: 02 Nov 2020 05:15 AM PST

    What are the best cloud IDE for android development??

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

    I dont understand

    Posted: 02 Nov 2020 04:01 AM PST

    So im just starting to learn Java. Do i learn the basics, then choose a Java field like android dev. / backend etc. ?

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

    Oddly specific question

    Posted: 02 Nov 2020 12:03 AM PST

    I am currently working with the Garmin fleet 780 which is an android 6 device. This device has to two modes. mtp (media transfer mode) with which I can write to and from the device when it is attached to an usb cable to a pc. And dashcam mode. This mode only works when NOT attached by usb.

    I can only debug when it is attached to my pc obviously. But the dashcam functions cannot work while in mtp mode.

    Is there am easy way to debug your code while not actually live debugging your code? If that makes sense. I am currently writing all my logs to a text box on the android itself but maybe there is an better option.

    Thank you for reading.

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

    So how should i learn Java ?

    Posted: 02 Nov 2020 02:03 AM PST

    Should i learn the language Java and then the and.dev. field ? Or is there a beginner course that specializes ?

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

    How do I edit an app(Only for personal preferences: Online Classes)

    Posted: 01 Nov 2020 08:31 PM PST

    Hey there!
    I'm probably posting this on a wrong sub but I wanna know if it's possible for me to edit an app(not mine) and remove some lines of code for personal preference.

    I used to watch my online classes on Bluestacks(An Android Emulator) because it is much more convenient that way but due to a recent update in the app, It only allows you to run the app on a "physical device" now. I just want to be able to bypass this and I have no intention of doing anything else.

    Is this possible? Thanks.

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

    No comments:

    Post a Comment