• Breaking News

    [Android][timeline][#f39c12]

    Saturday, March 30, 2019

    App Feedback Thread - March 30, 2019 Android Dev

    App Feedback Thread - March 30, 2019 Android Dev


    App Feedback Thread - March 30, 2019

    Posted: 30 Mar 2019 05:29 AM PDT

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make top level comment
    • must make effort to respond to questions and feedback from commenters
    • may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

    - Da Mods

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

    Maintaining Compatibility in Kotlin Libraries - zsmb.co

    Posted: 30 Mar 2019 03:10 PM PDT

    I love it when android glitches out like windows!!

    Posted: 29 Mar 2019 10:31 PM PDT

    Buy me a coffee link inside android app

    Posted: 30 Mar 2019 05:54 AM PDT

    Can I include my buymeacoffee profile link inside my android app?

    Eg: Buymeacoffee

    I know it's a repeated question. But I just want to know the latest update. Will the app get suspended from play store?

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

    How is the youtube app implementing this tabs and bottom navigation layout?

    Posted: 30 Mar 2019 03:33 AM PDT

    Migration from Ionic to Native

    Posted: 30 Mar 2019 10:34 AM PDT

    I have a possible interview coming up with a company that is migrating from Ionic to native Android. I have about a year of experience working on native Android, so I am unsure how that type of migration would look. What sorts of questions should I ask of the developers there to get a sense of things?

    Would a Junior-ish level person such as myself be able to handle that type of job? I was thinking since a codebase already exists, I would at least have something to reference while translating it to native.

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

    Techniques for dealing with dynamically added view state

    Posted: 30 Mar 2019 07:47 AM PDT

    So this is a problem I've ran into a handful of times and usually end up with a sub-optimal solution. Basically its a situation where I have a screen, which has some content that isn't immediately visible, and also not in the view hierarchy at inflation time. For instance, a gallery view while viewing movie details, until I click on the backdrop image, I don't add the gallery view into the hierarchy in order to reduce inflation times and cut down on unnecessary network calls.

    What I've typically done is keep track of if that view was added into the hierarchy, and put it into the bundle, with that view's hierarchy state manually using saveInstanceState or saveHierarchyState and restoring it if necessary. I have also tried using ViewStub as the docs recommend using it for instances where a view may or may not be needed, but it doesn't properly restore its state automatically.

    Has anyone dealt with the type of behavior before? An app that does an extremely good job at this is Sync for Reddit, it will remember which image in a gallery you left off of even after you left the post, I'd imagine there's quite a bit of complexity and actual state being saved to disk to achieve that behavior though.

    Here's some code if you're interested in what I've done currently.

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

    androidx.concurrent.futures

    Posted: 29 Mar 2019 10:37 PM PDT

    My emulator just shows a white screen and I dont know what the issue is

    Posted: 30 Mar 2019 10:01 AM PDT

    My emulator is just showing a white screen. There are no clear issues within the code.

    I don't where to start trying to fix it. The logcat says:

    2019. 03-29 17:16:59.385 6510-6541/mmu.ac.postdata E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da 2019. 03-29 17:16:59.385 6510-6541/mmu.ac.postdata E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da 

    I've looked up the error and cannot find any viable solution.

    Here is my code:

    public class MainActivity extends AppCompatActivity {

    @Override

    protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

    StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy);

    final EditText name = (EditText) findViewById(R.id.editText);

    final EditText email = (EditText) findViewById(R.id.editText2);

    Button button = (Button) findViewById(R.id.button);

    final HashMap<String, String> params = new HashMap<>();

    button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { params.put("name", name.getText().toString()); params.put("email", email.getText().toString()); String url = "https://10.0.2.2:8005/"; performPostCall(url, params); } });

    }

    public String performPostCall (String requestURL, HashMap<String, String> postDataParams) {

    URL url;

    String response = " "; try { url = new URL(requestURL);

    //Create the connection object HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setReadTimeout(15000); conn.setConnectTimeout(15000); conn.setRequestMethod("POST"); conn.setDoInput(true); conn.setDoInput(true);

    //Write/send/POST data to the connection using stream and buffered writer OutputStream os = conn.getOutputStream(); BufferedWriter writer = new BufferedWriter (new OutputStreamWriter(os, "UTF-8"));

    //Write/send/POST key/value data (url encoded) to the server writer.write(getPostDataString(postDataParams));

    //clear the writer writer.flush(); writer.close();

    //close output stream os.close();

    //get the server response code to determine what to do next (i.e success/error) int responseCode = conn.getResponseCode(); System.out.println("responseCode = " + responseCode);

    if (responseCode == HttpsURLConnection.HTTP_OK) {

    Toast.makeText(this, "contact saved :)", Toast.LENGTH_LONG).show();

    String line; BufferedReader br = new BufferedReader( new InputStreamReader(conn.getInputStream()));

    while((line = br.readLine()) !=null) {

    response+=line;

    } } else{ Toast.makeText(this, "Error failed to save contact :(", Toast.LENGTH_LONG).show(); response = ""; } } catch (Exception e) { e.printStackTrace(); } System.out.println("response = " + response); return response; }

    //this method converts a hashmap to a URL query string of key/value pairs

    // (eg, : name=kaleem&job=tutor&...)

    private String getPostDataString(HashMap<String, String> params) throws UnsupportedEncodingException { StringBuilder result = new StringBuilder(); boolean first = true; for (Map.Entry<String, String> entry : params.entrySet()) { if (first) first = false; else result.append("&");

    result.append(URLEncoder.encode(entry.getKey(), "UTF-8")); result.append("="); result.append(URLEncoder.encode(entry.getValue(), "UTF-8")); }

    return result.toString();

    } }

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

    DevWidget - Tools to ease your Android development

    Posted: 30 Mar 2019 08:57 AM PDT

    why is sqlite used as android's database engine?

    Posted: 29 Mar 2019 06:42 PM PDT

    Full text search in sqlite is utter crap. I can understand for historical reasons why sqlite was used, but nowadays with your quad-core up to octo-core processors, it's powerful enough to run something more powerful, so why doesn't Android use something like mariadb? Are there plans to upgrade the db engine?

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

    Can you store application context in static class? Repository + MVVM

    Posted: 30 Mar 2019 01:27 AM PDT

    Hello, I am trying to follow MVVM design pattern + Repository. I don't use Dagger for DI, because we are building a library and using Dagger2 in a library, would create tons of problems for application, which use Dagger ourselves. Also, with clean architecture it is not that difficult to build DI itself.

    Right now, I am facing a problem that I am using AndroidViewModel instead of ViewModel, because I need application context in most of ViewModels. Can I create a save application context from an activity inside of static Repository class? That way I could inject Repository into ViewModel, which would have access to an application context itself.

    I have read that it is safe to store application context inside of static class, without leaking it, because static class survives application lifecycle, same as application context. Please correct me if I am wrong.

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

    IMEI Status API ... Why ?

    Posted: 30 Mar 2019 05:03 AM PDT

    Why is it impossible to get a free open API to check if an IMEI is blocked or if the phone is officially unlocked ?
    All I found was either a reCaptcha protected manual lookup or a paid for service.

    Why ?

    I would think that this info should be available freely to the best interest of users, operators and Cellphone makers.

    Any idea if there is a way to pull these two basic data points ? Maybe even more, like manufacturer and phone model ?

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

    EIN for selling apps through Google Play Store

    Posted: 29 Mar 2019 08:11 PM PDT

    Any thoughts about whether it's good to declare a business name and get an EIN when selling Android apps? This is the first year I've gotten an 1099-misc for income from in-app purchases, but I didn't get a 1099-sa for the ads I show (didn't hit the threshold). So I'm wondering whether I should keep it simple (and maybe slightly more off the grid) by using my name and SSN or go all in with a proper business name and EIN.

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

    Most of my users unable to update app

    Posted: 29 Mar 2019 09:31 PM PDT

    I received feedback from many of my app users that they were unable to install the latest update.

    Everytime the update they receive an error saying "Couldn't update app. Error Code 910" . Searching the web for this code shows that the problem could be in Google play app itself. Recommeded those suggested solution (which is to clear cache and data of the Google play store app) to users, but doesn't seem to fix the problem.

    Close to half of my users are unable to install the update. Has anyone here faced this issue?

    submitted by /u/DontForgetTo-Breathe
    [link] [comments]

    Remote views does not initialise the image view with an image.

    Posted: 29 Mar 2019 07:36 PM PDT

    I am learning Android, and I am stuck trying to solve a problem which I don't know how to resolve. I am trying to build a custom notification that has an image view, and text view. The image view shows an icon, while the text view shows some user friendly message

    Reduced Layout xml

    <RelativeLayout android:id="@+id/notification_action_error" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:layout_above="@+id/notification_action_list" android:visibility="visible"> <ImageView android:id="@+id/notification_action_error_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:contentDescription="@string/generic_error" android:src="@drawable/ic_error" /> <TextView android:id="@+id/notification_action_error_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:gravity="center_horizontal" android:paddingTop="8dp" android:textAlignment="gravity" android:textSize="16sp" android:text="@string/generic_error" android:textStyle="bold"/> </RelativeLayout>

    Code in the Custom view ``` NotificationCompat.Builder notificationBuilder = . . . . // code to initialize the builder RemoteViews rootView = new RemoteView(context.getPackageName(), R.layout.notification);

    String errorMessage = . . . . // Fetch error message from the system.

    if (!TextUtils.isEmpty(errorMessage) { rootView.setViewVisibility(R.id.notification_action_error, View.VISIBLE); rootView.setImageViewResource(R.id.notification_action_error_icon, R.drawable.ic_error); rootView.setTextViewText(R.id.notification_action_error_text, errorMessage); } else { rootView.setViewVisibility(R.id.notification_action_error, View.GONE); } notificationBuilder.setCustomBigContentView(rootView); ``` However, I don't see the message icon on the notification. This is what I see

    I have tried defining the android drawable source for a a text view, but nothing seems to be working. I would appreciate any assistance.

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

    [Android Library] A SharedPreferences helper library written in kotlin to save and fetch the values easily.

    Posted: 30 Mar 2019 10:01 AM PDT

    How to verify my adsense account's address without pin?

    Posted: 30 Mar 2019 08:18 AM PDT

    I created console on my sister's name, because someone else used my ID card to create his account. I paid 27$ to create my this account(sister ID card) through my personal bank card(my name). Now, i want to verify my adsense account. How to do it.

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

    How to get images of albums from MediaStore in android?

    Posted: 30 Mar 2019 02:15 AM PDT

    Hi, I write music app aplication and I wanna get the list of songs. Therefore, I get a title, an artist name, data and I wanna get an image. I wrote the code(the link below) where I wanted to get the images but I got nothing. Can u help me?

    https://hastebin.com/ehidowalag.cs

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

    Game loop for Turn-Based games

    Posted: 30 Mar 2019 01:18 AM PDT

    Hi everyone!

    I'm trying to develop a turn-based card game as a side project, and I can't find any articles or tips as to where and how to implement the "game loop".

    Somewhere in the application, there should be a loop of sorts to iterate over all the players (human players or AI that I can implement) and I can't figure out where and how to implement it.

    I know it doesn't have to be a straight out "while" loop, it can be a service which pops up when each turn is over or something like that.

    I'm also aware of the google game services but since this is a side project I'd rather not pay for the api since I don't plan to publish it or anything like that.

    Any links or tips would be useful.

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

    Getting JSON data from an API and showing in a list view.

    Posted: 30 Mar 2019 02:59 AM PDT

    Does anyone have some good links to tutorials? I'm really stuck on an assignment.

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

    What's a good replacement for the log viewing capabilities of Android Device Monitor?

    Posted: 29 Mar 2019 08:54 PM PDT

    It's been a while since I've done android development, and previously the Android Device Monitor used to be really great at viewing logs after deploying to device. You could search, filter by tags and color code the output. Now that monitor is removed, what's a good alternative?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel