44972

Many many issues, eclipse, android MediaPlayer, etc

Question:

I've recently started android programming, and I'm extremely frustrated to say the least with a lot of things that to me seem simple but are totally holding me back from making any progress. The first of which is the "my first app" hello world that I started a tutorial from <a href="http://developer.android.com/training/basics/firstapp/creating-project.html" rel="nofollow">http://developer.android.com/training/basics/firstapp/creating-project.html</a> This tutorial worked fine when I was originally looking into android a while ago. Then when I came back after learning a bunch of java this program will no longer work unless I change the target-sdk to version 10 (I found that solution after extensive searching on this site).

Then I moved on to starting tutorials by thenewboston

All of these work fine as long as I didn't use any new targetsdkversion, so I'm wondering what happened that everywhere I go looking for tutorials I can't find anything that will actually work on the current ADT(4.4W and L are what my eclipse automatically set up) and eclipse (indigo). I'll also get issues saying lint isn't working, or trouble with android SDK content loader when I'm not even doing anything.

I've also found snippets of code example on the developer website that I linked earlier that don't work when implemented either

So, am I missing something, is that just old documentation, or is something up with eclipse and ADT? I'm just so frustrated that everything wants to bug out on me when I'm just trying to follow simple introductory tutorials and I don't even know where to turn for tutorials that I can trust to work..

edit:removed code because it wasn't needed.

Answer1:

To not get blocked What you can do is continue to set "targetVersion as '19'" instead of setting it to 20 or so. Ensure that you've downloaded API19 through SDK Manager and create the AVDs with that targetSDK version for checking you apps.

That way you can proceed ahead with your coding and later when things get resolved by google for API20...you can always comeback to that new version. This way you can follow 'TheNewBoston' and start coding in Android.

I also recommend 'Slidenerd' tutorials over youtube as well for the beginner.

BTW, I've also selected 'Blank Activity / Empty Activity" during the project creation with API19 and been able to move ahead with my coding.

The Google Bug thread about this latest version issue can be tracked here : <a href="https://code.google.com/p/android/issues/detail?id=72419" rel="nofollow">The google bug</a>

Answer2:

As a beginning developer, I suggest you use API 19. It has been out for a while and is more stable than L or Google Wear.

Recommend

  • get removable sd card path in android
  • Not cropping the selected area
  • Automating the generation of preformated text in Rmarkdown using R
  • data.table remove rows based on lag value by group
  • Managing big amount of data (around 400Mb)
  • row-wise first/last occurrences from column series in data.table
  • Android Galaxy S Phone - ADB Debug Bridge Trouble on Mac OSX
  • Execution failed for task : 'app.transformClassesWithDesugarForDebug'. after importing pro
  • R: Calculate SD in each row over a selection of columns after removing minimum and maximum
  • How to use Android's AppCompat theming application-wide?
  • Dependency commons-logging:commons-logging:1.2 is ignored for debug as it may be conflicting with th
  • sed - removing last comma from listed value after doing a replace
  • Select Earliest Order for a set of tests in a daterange SQL
  • Moved coordinates of the scene when DOM element with renderer is not at the top of the screen
  • how to delete a file's on uninstall the android application? [duplicate]
  • How to activate JS data-filter when page loads?
  • Haskell permutation library function - please clarify?
  • Save and retrieve an image file in LibGDX
  • Custom Keyboard or to create own keyboard
  • Android application not restoring state when installed from .apk, works fine from eclipse
  • c++ search a vector for element first seen position
  • Spring Integration Bridge with poller not working as expected for JMS
  • Is there any purpose for h2-h6 headings in HTML5?
  • Geom_jitter colour based on values
  • How to repeat sections of a SQL query across UNIONs? (DRY in SQL)
  • Facebook iOS SDK Not Calling Completion Handler
  • Repository Browser Only - \"Repository moved permanently to… please relocate”
  • pillow imaging ImportError
  • iOS: Detect app start via notification press
  • Play WS (2.2.1): post/put large request
  • Record samples being played with OpenAL
  • Typescript - Unable to get 'import' statement to function
  • How to access EntityManager inside Entity class in EJB3
  • All Classes Conforming to Protocol Inherit Default Implementation
  • formatting the colorbar ticklabels with SymLogNorm normalization in matplotlib
  • What is the “return” in scheme?
  • vba code to select only visible cells in specific column except heading
  • Websockets service method fails during R startup
  • Python: how to group similar lists together in a list of lists?
  • Understanding cpu registers