• Breaking News

    Sunday, September 20, 2020

    Android Dev - Howdy Android Devs 🤩👋, I have developed a little pet project called JetQuotes App made with Jetpack compose UI 📝.

    Android Dev - Howdy Android Devs ����, I have developed a little pet project called JetQuotes App made with Jetpack compose UI ��.


    Howdy Android Devs ����, I have developed a little pet project called JetQuotes App made with Jetpack compose UI ��.

    Posted: 20 Sep 2020 12:59 AM PDT

    13 — 19 September Android Newsletter

    Posted: 20 Sep 2020 04:18 AM PDT

    Stay up to date with Android development, in this week's edition:
    💡 Chrome Custom Tabs
    🧪 Proto DataStore experiments
    😮 4 ways to level up your app
    👀 Android Biometrics
    and much more!
    💚 Enjoy https://vladsonkin.com/android-newsletter-12/

    Featuring @tbfJohn @stephenvinouze @HusaynaHakeem @rockandnull @MarkIAllison @deniskrrr @elye_project @hitherejoe

    Subscribe and receive new editions directly to your email. Weekly, no spam, unsub anytime. Here is an example: https://mailchi.mp/a1826b677900/android-newsletter-12

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

    Is it possible to take 7 day for reviewing app updates?

    Posted: 20 Sep 2020 12:09 AM PDT

    Best Caches available

    Posted: 19 Sep 2020 08:12 PM PDT

    iOS offers NSCache where it will automatically evict objects based on system resources. Makes it super easy for devs. I couldn't find anything for Android development. Closest was LRUCache but it doesn't automatically take system resources into account. Seems you have to manually come up with a number for its size. Maybe there is an android equivalent to NSCache or maybe there is a way to determine the best cache size by using some system APIs?

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

    Wtf tutorials

    Posted: 20 Sep 2020 01:21 AM PDT

    Could someone please, please, please provide an example of fully functional FloatingActionButton? All the tutorials on line seem to be copied from developer.android .com home page, only more wordy. And non of them provide any information that would make the dumb thing do anything.

    Or should just find other hobbies?

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

    Clean Architecture + MVP Sample App Using: Dagger 2 + RxJava 2 vs Tootpick + Coroutines

    Posted: 19 Sep 2020 10:35 AM PDT

    How can I save my Map Markers when returning from Map Activity to my Main Activity?

    Posted: 19 Sep 2020 07:11 PM PDT

    I am trying to create markers based on data I receive from the 3 axis of the phone. Each time I get a new Pothole location I create a Marker inside the Map Activity with the coordinates I have received. But whenever I return from my Map Activity to my Main Activity. My markers don't get saved. I have read the documentation about the savedInstanceState but I cannot seem to get it to work. Being a novice on Map SDK any help would be greatly appreciated.

    Map Activity:

     public class MapsActivity extends FragmentActivity implements OnMapReadyCallback, LocationListener { private GoogleMap mMap; double latitude = 0; double longitude = 0; private LocationManager locationManager; private static final long MIN_TIME = 400; private static final float MIN_DISTANCE = 1000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //onSaveInstanceState(true); setContentView(R.layout.activity_maps); // Obtain the SupportMapFragment and get notified when the map is ready to be used. SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() .findFragmentById(R.id.map); mapFragment.getMapAsync(this); // mapFragment.getMapAsync(this); locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) { return; } locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME, MIN_DISTANCE, this); //Get the bundle Bundle extras = getIntent().getExtras(); if (extras != null) { latitude = extras.getDouble("lat"); longitude = extras.getDouble("long"); } else{ Location location = new Location("Provider"); latitude = location.getLatitude(); longitude = location.getLongitude(); } } public void onMapReady(GoogleMap googleMap) { mMap = googleMap; mMap.setMyLocationEnabled(true); mMap.getUiSettings().setMyLocationButtonEnabled(true); LatLng pothole = new LatLng(latitude, longitude); mMap.addMarker(new MarkerOptions().position(pothole).title("Pothole").icon(BitmapDescriptorFactory.fromResource(R.drawable.potholesmall))); mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(pothole, 10)); mMap.animateCamera(CameraUpdateFactory.zoomTo(15)); } @Override public void onLocationChanged(Location location) { } @Override public void onStatusChanged(String provider, int status, Bundle extras) { } @Override public void onProviderEnabled(String provider) { } @Override public void onProviderDisabled(String provider) { } @Override public void onSaveInstanceState(Bundle savedInstance) { super.onSaveInstanceState(savedInstance); } } 
    submitted by /u/Ntdark
    [link] [comments]

    Question about copyright rights for an android app

    Posted: 19 Sep 2020 03:41 PM PDT

    Is it allowed to use game names and photos(like gow, witcher3, rdr2 etc. and their cover photos) Is it against copyright rights?

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

    Live Data: Storing data in DB and allowing refreshing of data, hard to do?

    Posted: 19 Sep 2020 02:51 PM PDT

    Hi all.

    I know that the rules say no help me posts are allowed, however I sort of see it as a discussion around LiveData/Room/ViewModel and its complexity.

    I have started a sample project to try and learn more about all this as I am currently doing job interviews and I think it would be good to know more about the newer components. In the app I am making, I want to do a server requests, store it in a Room DB, and allow the user to clear the DB (Which with LiveData will remove everything from the Recycler View), and then also allow pulling to refresh/pressing a refresh button. This is the actual part that I'm finding hard with LiveData and ViewModels.

    From what I have read, it seems you should only have 1 instance of a LiveData object that will perform the callbacks. The issue I'm having is that from all the examples I have seen online, it seems complex to do a network request and save to a DB. The code I followed had me do the network, DB and save calls in one method that returns an instance of LiveData, however it seems you can't call this method more than once as there should only be 1 instance of LiveData.

    Any ideas on what is the best way to handle this use case?

    There is code examples here: https://stackoverflow.com/questions/63938890/android-room-with-livedata-viewmodel-refresh-question

    Hope this is okay but if not feel free to delete.

    Cheers

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

    Hi everyone hope you're having a great day !

    Posted: 20 Sep 2020 12:18 AM PDT

    I want to learn programming for android like making apps and building roms , from where should I start ? I am not a noob when it comes to android But I know nothing about programming.

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

    A General Question related Bluetooth

    Posted: 19 Sep 2020 02:08 PM PDT

    I'm just wondering is it possible to do a audio call with Bluetooth on Android? I'm trying to find any resource related to it but unfortunately didn't find one.

    submitted by /u/programming-nerd
    [link] [comments]

    Understanding The Lifecycle of Custom View In Android - Kotlin

    Posted: 19 Sep 2020 09:53 AM PDT

    Solicitar Bloque de Anuncios Admob y Android #1 ✅Curso de Programación A...

    Posted: 19 Sep 2020 04:15 PM PDT

    Are there good resources for using JetPack with Java instead of Kotlin?

    Posted: 19 Sep 2020 09:37 AM PDT

    Hi,

    I used to work on Android long back (before Kotlin came around) and recently got back into Android a year back for a pet project.

    A lot has changed since my last stint and it seems Jetpack is the way to go. I have been looking around and it seems most of the official documentation for JetPack is only available in Kotlin.

    So, my question is, 1. Do people not use JetPack with Java at all? 2. Are there any good documentation around usign it for Java?

    Thanks in advance!

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

    AndroidDev in a Smartphone

    Posted: 19 Sep 2020 12:59 PM PDT

    Just a silly question.

    Can i do AndroidDev in a Smartphone, maybe it's easier since i don't have to run a Virtual Device, i can use mine.

    Have any of you guys tried it?

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

    Rewrite App in Kotlin or Flutter

    Posted: 19 Sep 2020 12:28 PM PDT

    Hi,

    I have an app, and I plan on rewriting it in a more upto date language, when this guy I've hired to do backend joins our team. I wrote the thing in Java, because I learned how to code Android in 2016 - and that's what I remembered. I used firebase as my backend because who has time for anything else, but will need to switch to a more controllable back-end.

    Now if I'm rewriting a good portion of my code, might as well rewrite it all - so I gotta ask, should I do flutter and add in IOS compatibility or should I just do the small step of understanding Kotlin?

    App uses camera, gallery, and location.

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

    Do big projects need a team

    Posted: 19 Sep 2020 12:06 PM PDT

    I know silly question but I was wondering if I had a big project would it be hard to work on alone or not

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

    I need help with hilt and robolectric setup

    Posted: 19 Sep 2020 11:50 AM PDT

    I need help with hilt and robolectric setup

    I'm following https://developer.android.com/training/dependency-injection/hilt-testingand there's a line I add to configure tests which fails my build

    hilt { enableTransformForLocalTests = true } 

    and I guess this error

    error snippet

    I'm using this file to test the integration out

    @HiltAndroidTest @RunWith(RobolectricTestRunner::class) @Config(application = HiltTestApplication::class) class SomeTest { @get:Rule var hiltRule = HiltAndroidRule(this) @Test fun `should display`(){ val activityController = Robolectric.buildActivity(MainActivity::class.java) assert(true) } } 
    submitted by /u/sduduzog
    [link] [comments]

    How to apps handle notifications and alerts from the backend?

    Posted: 19 Sep 2020 11:50 AM PDT

    What I mean is for apps like LinkedIn or Facebook you get notifications when users comment or like your post, when an event happens, or when someone sends you a message. You're usually alerted to this and your app knows how to differentiate between old notifications and new ones.

    How does the app and the backend communicate to allow for this? What is the process flow like?

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

    No comments:

    Post a Comment