• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, April 17, 2018

    Help! I’m an iOS developer who needs to quickly learn Android Android Dev

    Help! I’m an iOS developer who needs to quickly learn Android Android Dev


    Help! I’m an iOS developer who needs to quickly learn Android

    Posted: 17 Apr 2018 01:09 PM PDT

    Next week, I start on a new Agile team as the Android developer. I have 5 years of experience with iOS, but I only know the very basics of Android. I have a list of topics to research, but I'm hoping to find efficient ways for my existing knowledge to transfer to this platform. What are some gotchas, must-knows, patterns, etc that I will run into that differ from iOS?

    I hope this is an appropriate post for this sub. Thank you for your help!

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

    25 new Android libraries, projects and tools worthy to check in Spring 2018

    Posted: 16 Apr 2018 11:19 PM PDT

    made my first android library

    Posted: 17 Apr 2018 09:38 AM PDT

    Custom Compile Time Error

    Posted: 17 Apr 2018 11:18 AM PDT

    In my app there are many screens , and each screen has distinct screenIds. There are many developers too, contributing the app. I have faced a issue many times that developers forget to attach screen id . There is a method in base activity where we have to assign screen id , i have made that method abstract but people forget to write in it , leaving it empty . Is there a way through which it can be ensured that every screen (Activity here) gets a screenId if the abstract method is empty there will be compile time error or at min there will be a error in apk generation. Thanks for time .

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

    Finite State Machines + Android + Kotlin = Good Times

    Posted: 17 Apr 2018 05:35 AM PDT

    Create Android app with free music

    Posted: 17 Apr 2018 11:03 AM PDT

    Hello,

    I wonder, how can one create an Android app with free online music? I can see a lot of apps like this in Play Store. Some of them are using SoundCloud API. But SoundCloud disabled registration for new apps. Could you please help me to solve the problem: where can I get music for free to make it possible for users to listen online?

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

    App suspended for violating spam policy?

    Posted: 17 Apr 2018 09:16 AM PDT

    Just got notification that my app was suspended for violating the spam policy, as were most other apps with the same purpose. My app and the others are a guide app for the game PUBG. The only thing I found that could trigger this is I have a chrome custom tab which has a map website embedded, which I received permission from the owner to use.

    I have filled an appeal with the approval I received. Does anyone have any other ideas on why almost all the guide apps were suspended? Makes me think the algorithm kinda fudged up big time.

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

    Is there a widely used pdf editing library for Android?

    Posted: 17 Apr 2018 07:19 AM PDT

    My app lets users view pdfs, but I also want to let users draw on the pdf and save those drawings as ink annotations to the pdf document. I'd like to find something like PDFKit on iOS, but Android's PdfDocument class seems to be the best there is.

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

    From Fabric to Firebase - on the road with GDPR

    Posted: 17 Apr 2018 02:52 AM PDT

    IntelliJ IDEA is faster than Android Studio 3.0

    Posted: 17 Apr 2018 04:01 PM PDT

    Hi, After struggling with lags during the android development on my mac with 16GB, I started searching on internet about if Android Studio has a problem or it's time to format my MacOS. So I found that a lot of people have the same problem. From 3.0 version and after, Android Studio takes a lot of memory without a reason, and I found that someone said that IntelliJ IDEA is faster, so I tried it and..Wow! IntelliJ IDEA takes smaller amount of RAM and build code a lot of faster. Guys you have to try it, might be you find difficult to connected Android SDK with it, but if you have it already installed from Android Studio, you'll be ok without a problem.

    TL;DR: Android Studio (3.0 version and after) takes a lot of RAM and it's lagging, IntelliJ IDEA is way faster.

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

    How to play MP3 from InputStream?

    Posted: 17 Apr 2018 03:46 PM PDT

    What would be the most strait forward way to play MP3 from an InputStream? I've searched all over the web but couldn't find some snippet of code to see how to accomplish that, let alone a working example. What I ended up doing was extracting the wav files and play them with an AudioTrack through an InputStream, but all audio files play with a click sound at the beginning and the end, and some random artifacts too. The reason I need to play those files from an InputStream is that they are compressed and encrypted, and I want play them on the fly without copying them to the file system.

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

    Hints for Beginners Navigating Around New Code

    Posted: 17 Apr 2018 02:53 PM PDT

    The best tool for creating app graphics?

    Posted: 17 Apr 2018 02:16 PM PDT

    Does anyone have any recommendations for a tool that can be used well for creating Android app graphics and icons?

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

    Code Review 2.0 and final error help before publishing

    Posted: 17 Apr 2018 01:56 PM PDT

    EDIT: Working on formatting

     

    TL;DR: Retrofit occasionally (and seemingly randomly) will return zero results crashing my application. Also, trying to become an android developer, would appreciate any code review help :)

     

    Github: https://github.com/zajimavy/Utah-Magic-Events

    Example JSON URL: https://maps.googleapis.com/maps/api/geocode/json?&address=Game%20Haven%20Tooele,%20762%20N%20Main%20St,%20Tooele,%20UT%2084074,%20USA

       

    I currently have an event detail activity, from there a user can click the address and it will be load with a marker on google maps. For some reason, the app will crash and this is the error I get:

     --------- beginning of crash 04-17 20:43:17.382 2337-2337/com.rjstockinger.android.mtg E/AndroidRuntime: FATAL EXCEPTION: main Process: com.rjstockinger.android.mtg, PID: 2337 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.get(ArrayList.java:437) at com.rjstockinger.android.mtg.MapsActivity$1.onResponse(MapsActivity.java:78) at retrofit.ExecutorCallAdapterFactory$ExecutorCallback$1.run(ExecutorCallAdapterFactory.java:86) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 

         

    here's the relevant code function. It's called in onLocationChanged within onMapReady and if 1) the app already has map permissions or 2) the user allowed access to the map for the first time.

    I get the crash whether permissions are already granted or just granted for the first time.

    The event detail page may work fine and then upon going back, viewing other events then coming back to the first event detail it will no longer work and crash.

     

    This is line 78 referenced in the error:

    com.rjstockinger.android.mtg.POJO.Location location = response.body().getResults().get(0).getGeometry().getLocation(); 

     

     public void centerMapOnLocation() { Intent intent = getIntent(); storeAddress = intent.getStringExtra("address"); //Log.i("Address", storeAddress); title = intent.getStringExtra("title"); Retrofit retrofit = new Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build(); RetrofitMaps apiService = retrofit.create(RetrofitMaps.class); Call<Example> call = apiService.getStore(storeAddress); call.enqueue(new Callback<Example>() { @Override public void onResponse(Response<Example> response, Retrofit retrofit) { int i = 0; if(response.isSuccess()) { /*while(response.body().getResults().size() == 0) { Log.i("counter", Integer.toString(i)); i++; }*/ //Log.i("Address", storeAddress); com.rjstockinger.android.mtg.POJO.Location location = response.body().getResults().get(0).getGeometry().getLocation(); //Log.i("Address", location.toString()); latitude = location.getLat(); longitude = location.getLng(); storeLocation = new LatLng(latitude, longitude); mMap.clear(); mMap.addMarker(new MarkerOptions().position(storeLocation).title(title)).showInfoWindow(); mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(storeLocation, 12)); } else { Toast.makeText(MapsActivity.this, "Address not found", Toast.LENGTH_SHORT).show(); //Log.i("ADDRESS", "FAILED RESPONSE"); } } @Override public void onFailure(Throwable t) { t.printStackTrace(); } }); } 

     

    Any help as to why response.body().getResults().size() == 0 or general code review feedback is appreciated.

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

    How to make AndroidStudio Lint indicate truly unused resources in "unused resources" report?

    Posted: 17 Apr 2018 01:33 AM PDT

    By default, this Lint check also reports many resources which are actually used which means that using "remove all unused resources" option is not really an option.

    Therefore, all reported issues should be reviewed one-by-one. This is really tedious on projects of considerable size, and close to impossible on big projects that did not clean the resources periodically.

    Is there a way to make this report more accurate and useful? In general, do you have any tips in context of resources cleanup?

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

    App monetizing network which is GDPR compliant with contract between me and network?

    Posted: 17 Apr 2018 11:51 AM PDT

    I'm already using AdMob, but I want to have a fallback solution since AdMob is still not GDPR compliant yet. That means that you don't know what personal data AdMob is using, how it is processed and so on. They promised an update, but the deadline of GDPR is in 5 weeks, so I don't want to rely on their promises and think about a fallback solution. I doubt that any other ads network is much further than Google, but maybe anyone has already read anything about it.

    So is there any Ad Network which is GDPR compliant (does not save "cookies" or other user data or where I can control it) and where the contract is between me and the network? The last part means that I must not have the contract(s) with the advertisers itself but with the network. I'm not sure which ads network it was, but long ago, I read the terms and conditions of any ads network which promised huge monetizing revenue, but you didn't have a contract with the ads network company itself (like you have with AdMob), but with each advertisers. And when you have 50 advertisers, you have 50 contracts. If they are in different countries, you would need to know the tax rules of each of these countries - have fun then! With AdMob it's always Google Ireland. You get paid from exactly one company and have a contract with them only.

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

    Company Google Play Account

    Posted: 17 Apr 2018 11:31 AM PDT

    Does anyone have any resources or instructions on how to setup a Google play account for a company? I am not sure if it is just a regular Google account, or if there is something special I have to do.

    Thanks!

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

    Free Android Development PDF Book

    Posted: 16 Apr 2018 05:28 PM PDT

    In-app billing - native implementation or library?

    Posted: 16 Apr 2018 04:41 PM PDT

    I consider adding IAP purchase in my next app, however I remember reading many complaints that native solution from developer.android.com is real pain in the ass.

    Has this changed lately, or still better go with some library?

    I will have just one SKU - unlock pro features, so nothing overly complicated, what do you recommend in that case?

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

    Help figuring out how to implement idea

    Posted: 16 Apr 2018 09:02 PM PDT

    So the goal of my project is to have a sensor array that detects how close your phone is to a particular sensor within a range of about 5-10 feet. When in range, the Android app does something, like play a piece of music for example. More importantly, I am trying to think of a relatively easy way to implement range detection for short ranges, and what sensors I could use. GPS will not work for numerous reasons. If anyone has idea how this might be done, please lend me your creativity! Thank you tons!

    submitted by /u/SL-Gremory-
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel