• Breaking News

    Sunday, April 4, 2021

    Android Dev - Google is limiting which apps can see everything else you have installed

    Android Dev - Google is limiting which apps can see everything else you have installed


    Google is limiting which apps can see everything else you have installed

    Posted: 04 Apr 2021 05:28 AM PDT

    Writing text to a file & save it in a folder in Android 11.

    Posted: 04 Apr 2021 01:07 AM PDT

    I have to export a list contents to a csv file. My App's compile & target SDK is still 29 only. I have also set requestLegacyExternalStorage to true, But still not working in Android 11. Getting Operation Not Permitted exception

    Calendar calendar = Calendar.getInstance();
    SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss.SSS");
    String time = format.format(calendar.getTime());
    final File path =

    Environment.getExternalStoragePublicDirectory
    (
    Environment.DIRECTORY_DOCUMENTS + "/MyAndroidApp/"
    );
    // Make sure the path directory exists.
    if (!path.exists()) {
    // Make it, if it doesn't exit
    path.mkdirs();
    } // Make sure the path directory exists.
    final File file = new File(path, "history_" + time + ".csv");
    // Save your stream, don't forget to flush() it before closing it.
    try {
    FileOutputStream fOut = new FileOutputStream(file);
    OutputStreamWriter myOutWriter = new OutputStreamWriter(fOut);
    myOutWriter.append(csvtext);
    myOutWriter.close();
    fOut.flush();
    fOut.close();
    Toast.makeText(getActivity(), "CSV generated successfully", Toast.LENGTH_LONG).show();
    } catch (IOException e) {
    e.printStackTrace();
    Log.e("Exception", "File write failed: " + e.getMessage());
    }

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

    Correct modeling of POJO classes for lists obtained using join queries

    Posted: 03 Apr 2021 09:29 PM PDT

    I have to develop a multi functional app. It has 2 main modules. 1st is a room booking service like Airbnb which allows users to book rooms as well as rent their own spaces So there are 3 tables involved. Users Rooms Bookings. When users browses the available rooms, we have to join room table with users to display name, image etc of room owner. In bookings page, we have to join rooms & users from bookings table (for both customer to see booking history & for room owner to see bookings on his rooms)

    2nd is a mini e commerce service which allows users to both buy & sell products. Here also same Users table & also tables for Categories Subcategories Products Orders

    Here also we join users table in products list, join both products & users in orders table

    So the fields from users table are common for some APIs.

    The fields related to room are also involved in bookings The fields related to product are also involved in orders The fields related to user (customer/room owner/seller) are involved in rooms, bookings, products & orders.

    I think declaring variables which represent same field in all API response models is not correct. So how should be the API Response & how the models should be created to avoid repeated variable declaration?

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

    Making a keyboard in Android Studio!

    Posted: 04 Apr 2021 08:06 AM PDT

    Hello! So i want to make a button, labelled A, for example, so when I press it, it outputs the letter A on my computer as if it was a keyboard.

    submitted by /u/Safe-Trifle-2500
    [link] [comments]

    Online Tool to Generate iOS/Android Starter Project

    Posted: 04 Apr 2021 12:51 AM PDT

    Best practices of Android CI/CD & releases

    Posted: 03 Apr 2021 03:05 PM PDT

    Coming from a full-stack background where you can deploy changes without requiring anything on the user side in order to see the changes, CI/CD on Android has very different constraints. So I'm curious what some of the best practices are?

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

    Resources for learning Kotlin for Android dev

    Posted: 03 Apr 2021 04:27 PM PDT

    Hello, I've chosen a college course in developing Android applications in Kotlin.

    We're using Android Studio and Kotlin programming language. I'm looking for some good online resources (ideally using MVVM design pattern) that will help me learn (materials that we get aren't very helpful on this course).

    Thank you in advance!

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

    Do I absolutely need to use React to build my Firebase chat app?

    Posted: 03 Apr 2021 07:52 PM PDT

    I'm building a group chatting app using Cloud Firestore. I'm seeing a lot of tutorials online of using React - is this the recommended way to build a real-time group chat app? Or what is the recommended method?

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

    No comments:

    Post a Comment