• Breaking News

    Sunday, May 29, 2022

    Android Dev - Library for inspecting requests in WebViews

    Android Dev - Library for inspecting requests in WebViews


    Library for inspecting requests in WebViews

    Posted: 29 May 2022 02:34 PM PDT

    I've released my first actual open-source library: a simple client for Android WebViews, that allows inspecting and intercepting the full HTTP requests sent from WebViews. The reason why a library may be necessary is that the built-in client doesn't give access to the request body as well as some headers.

    Personally, I used it to reverse-engineer how logging in to Facebook works in a WebView, but I thought it may have many other use cases as well and I hope someone else will also find this useful.

    Here's the link: https://github.com/acsbendi/Android-Request-Inspector-WebView

    Any feedback is highly appreciated :D

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

    wireless adb in ATV is always ON. how to make it always on in phones too?

    Posted: 29 May 2022 10:28 PM PDT

    I noticed that I can with adb connect localhost:5555 use adb shell on my own device using termux.

    But, I need to start it with adb tcpip 5555 on another computer first.

    And then I remembered that on my Android TV device (Mi Stick) the wireless adb server is always online, I guess by design since you can't really plug it into a computer to jumpstart the wireless adb server.

    So, is there a way to keep it always on like on the ATV?

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

    Google has terminated our Developer Account, says it is "associated"?

    Posted: 28 May 2022 07:51 PM PDT

    Google has terminated our Developer Account, says it is "associated"?

    i am facing a difficult situation and I hope the community is able to help me.

    After 2 years of working with Google Play and getting more than more than 100k downloads in total, we have received an email that our account Play Developer accounts are terminated permanently and all of the apps have been removed. I can not still believe that we are being destroyed in an instant without any prior notice:

    ​my account terminated email :

    https://preview.redd.it/9clak68hub291.png?width=1045&format=png&auto=webp&s=d7b823c644390ee243c0143ce4af87777243303d

    my account used to have several freelancer with access to the Play Console, and one of them recently had done something wrong with "his own personal" Google Play Developer account. Now my account has been terminated, because it is assumed to be associated with the former freelancer who has left in March 2021 .

    i found a few other individuals who've posted online with very similar issues and were able to get their accounts back in good standing after getting in touch with the right people at the Play policy team, but after the last few days, i have been hard-pressed to get in touch with anyone.

    We have also used the formal appeal process but received the same automated/repeated response. After thoroughly reviewing Google's Developer Policies, i am sure that all apps are compliant with them and the only problem is currently this wrong, unfair, and unreal association.

    Appeal response :

    https://preview.redd.it/x3soacshvb291.png?width=1652&format=png&auto=webp&s=9c96e03927274933e5b3accff526461c57d6c613

    i living in a climate of fear. Without doing anything wrong, or crossing any redline, not only all apps and the account has been removed, but also we are threatened not to open a new account as Google will close it immediately.

    My Request:

    Does anyone have an experience with this situation or could possibly connect us with the right person in this case?

    While i am not longer associated in any formal or legal or contractual form.

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

    App Archive package name:

    com.app.radio2509

    com.radio.ghana250

    com.radio.mor2

    com.radio.radio2509

    Plus 10 other apps that are not mentioned here.

    now i send another appeal message to google and i hope to get good news

    29/5/2022 : i send appeal to google team and its ( under review )

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

    Is Base64 the best encoder for image URLs?

    Posted: 29 May 2022 04:36 PM PDT

    Say you want to encode an image URL. Is Base64 the best option for encoding the image URL and then using the Base64 format to load your image for your app?

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

    A lightweight library for Object Mapping

    Posted: 29 May 2022 06:33 AM PDT

    After developing a dozer alternative for a couple of years we have decided to polish it and publish as open source.

    The idea is to allow powerful object mapping with simple API and spring support.

    Key features:

    1. Fully written in Kotlin.
    2. Android support
    3. Annotation based.
    4. Multi class mappings - Map from source class to multiple different target classes/fields.
    5. Mapping to/from subclasses.
    6. Custom transformers.

    Any feedback will be more than welcome!

    https://github.com/krud-dev/shapeshift

    If you like to try it out check our getting started page:

    https://github.com/krud-dev/shapeshift/blob/master/docs/getting_started.md

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

    Is there a cheaper map API alternative than here.com or google maps?

    Posted: 29 May 2022 08:54 AM PDT

    Hi, it is forbidden to use the openstreetmap API.

    Google Maps and here.com are quite expensive. mapbox is crazy expensive too

    can someone recommend me a cheaper alternative?

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

    LightImageLoaderDownloader

    Posted: 29 May 2022 04:40 AM PDT

    Hello to everyone. Yes, this is another image loader, but different from others. I kept it really simple and minimal in code, so everyone can see how a image loader should be designed, more or less. It have my DiskCache as persistent cache, and a simple Memory cache, and supports loading and errors drawables. It also enable download to file and precache images, and also to save to file cached imeges, for the tipical use case when the user press add to favorite to a page where the informations are comprensive of images (displayed, so cached). You can Tag request for Advanced cache key management, and also provide custom target more than imageview, file and cache. No dependencies to other libraries, so easy maintenable, and, last but not least really fast. If you want, take a look: https://github.com/giovcorte/LILD

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

    Issue while getting data from google sheet to a RecyclerViewer in Android Studio

    Posted: 29 May 2022 04:26 AM PDT

    Hello, I'm trying to get data from my google sheet to a RecyclerViewer in android studio (using Java). My app right now is running, but it is failing to get the data. I think the problem is in the getDataFromAPI() method I created since it is giving me this message "E/RecyclerView: No adapter attached; skipping layout", but I've attached an adapter.

    Here is my main class (I can post the adapter if it isn't clear):

    public class MainActivity extends AppCompatActivity { // creating a variable for our array list, adapter class, // recycler view, progressbar, nested scroll view private ArrayList<UserData> userModalArrayList; private UserRVAdapter userRVAdapter; private RecyclerView userRV; private ProgressBar loading; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // creating a new array list. userModalArrayList = new ArrayList<>(); // initializing our views. userRV = findViewById(R.id.rv); loading = findViewById(R.id.loading); // calling a method to load our API. getDataFromAPI(); } private void getDataFromAPI() { // creating a string variable for URL. String url = "https://docs.google.com/spreadsheets/d/12UZGZPsl-ml1YBdfP4aeGf8Y4umD03hzlFFLM2qO05I/gviz/tq?tqx=out:json&tq&gid=0"; // creating a new variable for our request queue RequestQueue queue = Volley.newRequestQueue(MainActivity.this); // creating a variable for our JSON object request and passing our URL to it. JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, (String) null, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { Log.d("HI", response.toString()); loading.setVisibility(View.GONE); try { JSONObject feedObj = response.getJSONObject("feed"); JSONArray entryArray = feedObj.getJSONArray("entry"); for(int i=0; i<entryArray.length(); i++){ JSONObject entryObj = entryArray.getJSONObject(i); String name = entryObj.getJSONObject("gsx$name").getString("$t"); String speciality = entryObj.getJSONObject("gsx$speciality").getString("$t"); String city = entryObj.getJSONObject("gsx$city").getString("$t"); String phonenumber = entryObj.getJSONObject("gsx$phonenumber").getString("$t"); String exactlocation = entryObj.getJSONObject("gsx$exactlocation").getString("$t"); String avatar = entryObj.getJSONObject("gsx$avatar").getString("$t"); userModalArrayList.add(new UserData(name, speciality, city, phonenumber,exactlocation, avatar)); // passing array list to our adapter class. userRVAdapter = new UserRVAdapter(userModalArrayList, MainActivity.this); // setting layout manager to our recycler view. userRV.setLayoutManager(new LinearLayoutManager(MainActivity.this)); // setting adapter to our recycler view. userRV.setAdapter(userRVAdapter); } } catch (JSONException e) { e.printStackTrace(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { // handline on error listener method. Toast.makeText(MainActivity.this, "Fail to get data..", Toast.LENGTH_SHORT).show(); } }); // calling a request queue method // and passing our json object queue.add(jsonObjectRequest); } } 
    submitted by /u/Agitated-Ostrich-979
    [link] [comments]

    Readme for my app?

    Posted: 29 May 2022 02:53 AM PDT

    I am creating a movie tracking app as a portfolio app and would like to create a Readme describing this app. Are there any templates available? What information should I include in the Readme?

    submitted by /u/Ok-Present-7144
    [link] [comments]

    Is a Singleton bound to App lifecycle?

    Posted: 29 May 2022 06:12 AM PDT

    I need to perform some action like show a tooltip, but only once per app session. There are more such actions that I want to do once per app session.

    So to track this, I am thinking of having a Singleton will Boolean flags for each of the actions.

    Is this a good approach for the usecase or are there better ones?

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

    Question regarding Logic Building skills

    Posted: 29 May 2022 05:57 AM PDT

    Hello Programmers/Coders,

    Asking in this reddit as I am familiar with Android Programming but lack Language logic building knowledge. So apologies if I am breaking some rules.

    Not a complete beginner to Programming world, but doing it on and off just as side hobby, but always lacked a logic building skills, now because my math is really weak which doesn't let me think beyond certain limit, I am not able to solve the problems which needs some formulations, ( for example, I can easily sort an array using built in methods but I cannot think it without using those methods),

    So my question is, should I looks for alternate career or don't think too much about such problems as I know how to use google to solve my problems, I honestly love learning programming but lack of critical thinking abilities makes me feel so dumb of myself for not able to solve simple patterns or math problem without needing some help of google.

    I genuinely look for some help.

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

    android clean architecture

    Posted: 29 May 2022 02:48 AM PDT

    Regarding multimodule android project, right now just, app, domain, and data modules...

    The question is, the app module must have dependencies on data & domain layer, or just domain layer?.

    Since the domain layer is a kotlin module(not android) how to inject use cases in viewmodels

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

    How do you make intro/walkthrough videos of your android app

    Posted: 28 May 2022 08:19 AM PDT

    Hi,
    I am going to publish my first application on playstore, and I wanted to make a walkthrough video for my app, Which explains its functionalities and explains to users how to use it.

    I also want to embed that video in te onboarding section of my application

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

    Three features in Android Studio that maybe you've missed

    Posted: 29 May 2022 05:41 AM PDT

    "Invalid ID 0x00000000." error for every preference on PreferenceScreen

    Posted: 29 May 2022 01:55 AM PDT

    I just noticed this error in the log cat output for every single preference on any PreferenceScreens in my apps.

    After investigating and hours and hours trying to fix the problem (changing library versions, changing themes, adding id to every preference on a preference screen, etc.) the problem still appears.

    I even created the simplest app possible with Android Studio (New Project -> Settings Activity) and even there is this error output in the log cat (out of the box, without changing anything).

    After further investigation it turned out that this happens only on real Pixel (API 31, API 32) devices but not on the Emulator or on other devices wich I have at hand as test device (like Oppo A94 with APi 31).

    Do you have any idea why this happens and how to prevent it?

    The example app (Settings Activity) does use:
    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.6.0'
    implementation 'androidx.preference:preference:1.1.1'

    And uses this theme:
    <style name="Theme.MyApplication" parent="Theme.MaterialComponents.DayNight.DarkActionBar">

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

    Did anyone figure out how to write a preview for a bottom sheet?

    Posted: 29 May 2022 05:16 AM PDT

    I'm aware that you can write a preview for the content alone, that works fine.

    I was wondering if you could make a more "full" example where you have your page content, and for example a half expanded bottom sheet/modal on the page to preview what they would look like together.

    I tried using a bottom sheet scaffold with state = expanded. What happened was the bottom sheet just fully 100% expands over the content, and you never see any sort of content below it. It does this whether I have 1 small text box or 100. Size of the content does not seem to matter.

    Then I tried a modal bottom sheet with state = half expanded, and it doesn't show anything basically. The bottom sheet stays out of the preview, so now I ONLY see my content. I tried making it full expanded too, it didn't change anything.

    I know how to preview my regular screen content, and I know how to preview my bottom sheet content, but I cannot figure out how to preview them together. Any tips?

    Google only turns up posts talking about creating bottom sheets/modals in general, and whenever a guide previews it, it's only the content that would go inside of the bottom sheet.

    I really want a way to view them both together, where the bottom sheet is maybe half expanded.

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

    what is the best way to develop Android apps in 2022 please mention the best technologies?

    Posted: 29 May 2022 10:25 AM PDT

    Play Store's payment account: is there a way to avoid displaying personal information for an individual?

    Posted: 28 May 2022 10:38 AM PDT

    Hi,

    I've made an app that I'd like to release on Play Store. I'm a simple person, I don't own a company. My id has been verified by Google, they have all my legal information, all's good. However, they want to publicly display my real name and address on the Play Store to allow payments.

    I thought people would just pay Google and that Google would then send me my cut afterwards. But having my personal address potentially displayed to millions of users sounds crazy. This is not a business address, but where I live. There are a lot of nutcases out there, I don't want to find someone ringing my doorbell and threaten me because they don't like my app or something like that.

    So is there a way to avoid displaying such information? Would Google be ok if my current employer accept to put its address instead of mine? Could I put the name of my app instead of my real name?

    Thank you!

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

    Call a boolean function from another class

    Posted: 29 May 2022 01:01 AM PDT

    So I have multiple activities in my app and in each one of them, I have to call this function to verify whether an email is valid or not. How would I go about this? What I did is make a class with the function inside, but I can't seem to find how to call it...

    class ValidationRules { fun CharSequence?.isValidEmail() = !isNullOrEmpty() && Patterns.EMAIL_ADDRESS.matcher(this).matches() } 

    Any help would be appreciated.

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

    Has anyone built a full scale project by using jetpack compose in an XML project?

    Posted: 28 May 2022 06:53 AM PDT

    I'm thinking of doing parts of the UI compose, there are certain powers of XML I don't wanna completely lose like complex animations/navigations etc and I just don't wanna re-write the whole thing again.

    I wanna know how maintainable it is to mix both of these together in a project. Has anyone successfully done it and is it worth the complexity?

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

    Testing Face ID Biometrics on Emulator?

    Posted: 28 May 2022 11:04 AM PDT

    I am using the new Biometrics API (https://developer.android.com/jetpack/androidx/releases/biometric) in my app for authentication and need to test how it works when the user has face ID enabled. I have several test physical devices but none of them support Face ID. I already tried using the official emulator packaged with Android Studio with API level 30+, but none of them had face ID. They only have fingerprint testing functionality.

    Does anyone know how I can test this using an emulator? I haven't tried other emulators yet (e.g. Genymotion, Bluestacks, etc.) but was thinking of exploring this.

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

    Why my app is still in " getting ready " after 1 month in my AdMob

    Posted: 28 May 2022 08:02 AM PDT

    I uploaded my app one month ago. It has just three activities that contain some basic text and a few images.

    However, I do not understand why Admob takes so long to review my submission

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

    Where to start learning???

    Posted: 28 May 2022 12:48 PM PDT

    Hello,

    I'm very eager to learn how to modify apps. Is there an online course or somewhere that teaches the basics.

    Background; average android user I do alot of timelapse filming using a dedicated phone and GCam. I want to learn how to change the options for video recording speed (frame rate upto 1frame every 15 seconds, maybe more). I feel it should be easy...I want to learn how.

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

    Are you allowed to spend your Google Play balance on your own apps?

    Posted: 28 May 2022 12:31 PM PDT

    Suppose you have an app on the google play store, and you have an in game purchase option. Are you allowed to spend your own google play balance on that app, to turn it into cash?

    Also, whats the minimum treshold to withdraw your app earnings to your bank or paypal?

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

    I created an app that calculates electronic stuff's usage and monthly expected invoice price. Price policy is based on Turkey.

    Posted: 27 May 2022 10:02 AM PDT

    No comments:

    Post a Comment