• Breaking News

    Sunday, January 19, 2020

    Android Dev - Everything you need to know about Memory Leaks in Android.

    Android Dev - Everything you need to know about Memory Leaks in Android.


    Everything you need to know about Memory Leaks in Android.

    Posted: 19 Jan 2020 01:41 AM PST

    Split layout into subfolder in Android Studio

    Posted: 18 Jan 2020 11:41 PM PST

    Android Interview Topics

    Posted: 18 Jan 2020 11:53 AM PST

    I created a gist with some notes about topics that might come up during an Android Interview. I hope this is useful to someone.

    https://gist.github.com/lawloretienne/5bcef05ee9247021cbb43d6d0995772c

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

    Policy violation won't allow me to submit updates

    Posted: 19 Jan 2020 04:59 AM PST

    Hi there, i have an app on PlayStore called Dokkan Cards which is a database of cards from a game called "Dragon Ball Z Dokkan Battle" on Google Play.

    After trying to submit a small update that fixed some major crash issues, i was notified by Google Play that due to a Policy Violation my update had been rejected. This is the first time something like this has happened to me and i was so astonished by the lack of any information whatsoever on what i had done wrong. There was simply no info on what i did wrong in order to fix it. Long story short, after a couple of emails and a few days later they replied to me and informed me that my app implies an affiliation with the Dragon Ball franchise in its store listing.

    That sounds like a logical issue since i did have the words "Dragon Ball" in my app's description (but no affiliation or anything of that sorts) and maybe the images were not suitable either(maybe because they were displaying images from the game within my app). Having removed those images and text and describing shortly in the app's description that i am in no way affiliated with third parties and any copyrighted content belongs to them as described in my app's copyright disclaimer, I submitted another update with those changes.

    No matter what changes i make, the store listing updates keep getting rejected. Does anybody have any idea what the issue could be? Could it be the name ? However, the word "Dokkan" is also used by many other applications and i don't think it's trademarked. I'd really appreciate some perspective on my app's store listing. Am i somehow implying an affiliation with anyone?

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

    Intel Haxm installation failed.

    Posted: 19 Jan 2020 07:48 AM PST

    Hi. I'm sorry if this isn't the right sub. But i didnt know where else to go.

    I have installed Android Studio step by step following a video. It was installed but i couldn't run the helloworld project due to no virtual device.

    I did the required steps to install a virtual device. Chose Nexus 5. But then on the side it said i had to download the emulator. Did that. Then it said i had to download Haxm installer.

    Now when i try installing the haxm. It always fails. The error says " This computer does not support Intel Virtualization Technology ".

    So i looked on how to solve that. Everywhere people said you have to disable Hyper V under windows features.

    And when i go to do that. There is no Hyper V in the list.

    I use a Dell pc with AMD processor. Windows 10.

    Any help would be appreciated, thank you.

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

    User Experience following Precondition failure

    Posted: 19 Jan 2020 07:37 AM PST

    I'm defensively programming by adding preconditions in my business logic. I test the condition, log some info, the throw an AssertionException. All good so far.

    Precondition failures shouldn't happen often but when they do the user experience isn't very good. I think I'd like to:

    • Display a message that something went wrong
    • Perhaps have a dialog asking them what they were doing at the time
    • In some cases, finish() the activity rather than crashing the app

    It seems that that throwing an exception still is the way to go, as I need to stop the original code executing. But it seems awkward to catch the exception and do the above. The code will have been called from with my activity, but it could be from one of many onClick handlers, or onResume, or somewhere else.

    Putting Try-Catch in all of those would work as far as I can see, but seems very messy. What other approaches could I consider?

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

    Pokedex with Jetpack Compose

    Posted: 18 Jan 2020 06:28 PM PST

    SuperSU, phh's su, Koush's su, ChainsDD's su, and KingRoot are all no longer available on Play Store.

    Posted: 18 Jan 2020 11:01 PM PST

    Backing up a user's Room database

    Posted: 19 Jan 2020 05:43 AM PST

    What's the best approach for backing up a user's Room database onto their own Google Drive account?

    Ideally, I'd like to create an encrypted zip file containing all the data and metadata (including schema versioning).

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

    Making money from Android app

    Posted: 19 Jan 2020 04:55 AM PST

    Hi ,I'm planning to make an app but I'm not sure how I can make money from app. Is there any advise how to maximise ?

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

    Question for webview

    Posted: 18 Jan 2020 09:35 PM PST

    Any alterantives to make articles looking on an android app withou using webview? I know you can use custom html file and pass javascript through the loadurl method , also i know the textview support some html tags to make paragraphs divs etc. does any body knows of any other alternatives.

    Thank you

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

    This was the best place I could think to get help for this. What are these icons and how do I get rid of them? Been like that for weeks now.

    Posted: 19 Jan 2020 05:18 AM PST

    Is there any point in me learning kotlin (yet)?

    Posted: 19 Jan 2020 05:04 AM PST

    Hi,

    I have been trying to teach myself Java for the past few months coming from a background of mainly using python for small data projects (I am not a developer).

    I feel relatively comfortable with java now although I am not naive and understand there is so so so much more for me to learn and program more and more with java in order to further my skills.

    As a consequence I decided I wanted to start a small project for myself and the end goal was to make an android app for myself (I think it would be awesome to have an app on my phone that I made!).

    However it seems like all the tutorials out there are based in kotlin, a language that I have no experience in and given that android dev seems to have moved (is moving?) quickly all the old java stuff seems outdated and not easy to follow.

    This led me to think that I might be better trying to get used to kotlin syntax before trying to create an app however I am wary of keep shifting my focus as I worry I won't get any depth and I will just keep learning the basis syntax and how to define classes etc but not actually do anything I want to do (i.e. build an app).

    As I am feeling quite out of my league and there is an abundance of advice on the internet (some of which is contradictory) I thought I would take to reddit for advice!

    Please androiddevs let me know your thoughts,

    regards

    iki.

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

    As a noob indie developer, how do you deal with things outside of your area of expertise?

    Posted: 18 Jan 2020 10:30 PM PST

    I'm planning to release another app, but as someone who is starting out, one thing I've definitely noticed is how 'insufficient' I am to release a good quality app.

    I've just studied most about coding, but when it comes to an app, there's so much involved like design and marketing. When I released my first app, it was a bit of a struggle even trying to draw out my own app icon. It feels like I need to know and be good at everything if I want to release an app by myself.

    So how do other indie developers deal with this?

    I know for design I could learn a bit from material design. But one big missing piece is me learning photo editing software and other things like inkscape.

    Currently, I want to make an app to help you tie knots (for those going out there in the wilderness with possibly no internet connection) but it's so hard to find good royalty free instruction images that I should probably try to create some myself.

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

    Fork of a game

    Posted: 18 Jan 2020 09:26 PM PST

    I have been working on this game for the past few weeks, it is a well known one which is called 2048. I ported a not so recent project from github and made it a bit different. It's not published yet but planning to do that really soon

    https://github.com/brookmg/2048

    Feedback and comments are highly appreciated

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

    Android emulator causing issues with arm images

    Posted: 18 Jan 2020 09:19 PM PST

    Hi,

    I'm not sure if I'm doing something wrong, but whenever I try to boot an arm images I always get "Process system isn't responding". I'm using an armeabi-v7a Api level 25 image. Did anyone face that problem with the recent emulator versions?

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

    New to app dev - best way to program ability to select / highlight complex shapes in image? Looking to build a clickable map like the image

    Posted: 18 Jan 2020 11:42 AM PST

    How to showcase my Android app as my portfolio

    Posted: 18 Jan 2020 08:07 PM PST

    Hello guys,

    I just finished creating my first Android app and although it came out nicely and I'm happy to be finishing it, I'm not too proud of it and of course it's a bit amateurish.

    I would like to show it as part of my portfolio. My only option is to upload it to Google Play store?

    Thanks!

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

    I'm wanting to try to claim a ROM bounty. How should I begin?

    Posted: 19 Jan 2020 12:27 AM PST

    Hi all

    To be brief, there's a bounty posted for a stable ROM and TWRP for a Chinese gaming phone that was released globally.

    From what I've gathered there are two current ROMs that exist with stable features inside of each so I'm thinking of merging the two.

    Any tools you all might recommend for decompressing "update.zip" files/testing/building?

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

    Xamarin vs (Xcode and Android Studio)

    Posted: 18 Jan 2020 01:25 PM PST

    Hello

    I am planning in building a mobile app. I need it to run both on IOS and Android.

    I have some java and c# knowledge.

    Should I develop a cross-platform app with xamarin (or any other framework) or build 2 apps with xcode and android studio ?

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

    MVVM observables with Retrofit sanity check

    Posted: 18 Jan 2020 04:10 PM PST

    Took me a while, but I eventually was able to automatically update a label through .observe().

    Yet it feels... strange? I'm quite new to Android development, but have a background with Xamarin Forms. Feels weird to say it, but the MVVM flow seems way more natural and simplified in Xamarin.

    Which, of course, probably means I'm doing something wrong with my structure.

    The application fetches Magic cards from an API, getting the name from a TextEdit and displaying how many cards were found in a label. Simple stuff.

    Activity:

     public class MainActivity extends AppCompatActivity { private MainViewModel viewModel; private EditText cardNameInput; private Button searchButton; private TextView result; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); cardNameInput = findViewById(R.id.teste_editText); searchButton = findViewById(R.id.teste_button); result = findViewById(R.id.teste_label); viewModel = ViewModelProviders.of(this).get(MainViewModel.class); viewModel.getCardsFound().observe(this, cardsFound -> { if (cardsFound != null) { result.setText("Cartas encontradas: " + cardsFound.getTotalCards()); } }); searchButton.setOnClickListener(this::onClick); } private void onClick(View v) { viewModel.getCardsByName(cardNameInput.getText().toString()); } } 

    ViewModel:

    public class MainViewModel extends ViewModel { private MutableLiveData<CardSearch> cardsFound = CardsRepository.getInstance().getCardsFoundLiveData(); public LiveData<CardSearch> getCardsFound() { return cardsFound; } public void getCardsByName(String cardName) { cardsFound.postValue(CardsRepository.getInstance().fetchCardsByName(cardName).getValue()); } 

    Repository:

    public class CardsRepository { private static CardsRepository cardsRepository; private Retrofit cardClient; private CardsRepository() { cardClient = CardClient.getClient(); } public synchronized static CardsRepository getInstance() { if (cardsRepository == null) cardsRepository = new CardsRepository(); return cardsRepository; } private MutableLiveData<CardSearch> cardsFoundLiveData = new MutableLiveData<>(); public MutableLiveData<CardSearch> getCardsFoundLiveData() { return cardsFoundLiveData; } public MutableLiveData<CardSearch> fetchCardsByName(String cardName) { Call<CardSearch> call = cardClient.create(CardService.class).searchCardByName(cardName); call.enqueue(new Callback<CardSearch>() { @Override public void onResponse(@NotNull Call<CardSearch> call, @NotNull Response<CardSearch> response) { if (response.isSuccessful()) { cardsFoundLiveData.postValue(response.body()); } } @Override public void onFailure(@NotNull Call<CardSearch> call, @NotNull Throwable t) { Log.println(Log.ASSERT,"CardsRepository", "onFailure: Failed to fetch cards."); } }); return cardsFoundLiveData; } } 

    So, I guess my question is: is this correct?

    In Xamarin this same binding would be much simpler, which is why I'm wondering.

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

    Help for a new developer

    Posted: 18 Jan 2020 04:02 PM PST

    Hello guys, i need to develop an app, i only have experience developing with Unity before, already launched an app to the PlayStore.

    My app is for salesman, it needs to have a way to record the details of the sale to a database, give metrics of the sales of each salesman, and in the future give gps information of each salesman.

    Im trying Android Developer Studio, but i find it to be a bit complicated, could you guys recomend me resources for learning and a good developer platform? Im more of a designer myself, with little coding experience, my best fields of experience are Java and Python.

    Thank you in advance, the most usefull comments might recibe a little something ;)

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

    Expanding a view and scrolling with it

    Posted: 18 Jan 2020 03:45 PM PST

    I've been grappling with this and haven't found a clean and smooth implementation to accomplish it. Say you have a bunch of items in a list which all expand/collapse when tapped. Right now, whenever you expand an item, the scroll position stays the same while the content is pushed downward. That's fine until you get to the very last item in the list, where it'd be nicer if tapping on the item caused it to expand "upward" i.e. if the content would scroll into view while expanding. Whether I'm using a LinearLayout in a NestedScrollView or a items in a RecyclerView, is there a good way to keep the expanding content on the last item in sight while it expands?

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

    No comments:

    Post a Comment