Questions tagged [android-studio-2.0]

Android Studio is the official IDE for Android application development. In version 2.0 it is based on IntelliJ 14.

Android Studio is the official IDE for Android application development, based on IntelliJ IDEA. On top of the capabilities you expect from IntelliJ, Android Studio offers:

  • Flexible Gradle-based build system
  • Build variants and multiple apk file generation
  • Code templates to help you build common app features
  • Rich layout editor with support for drag and drop theme editing
  • lint tools to catch performance, usability, version compatibility, and other problems
  • ProGuard and app-signing capabilities
  • Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine
  • And much more

Reference: https://developer.android.com/tools/studio/index.html

In version 2.0 it is based on IntelliJ 14.

347 questions
0
votes
2 answers

Why am I getting this error in Android Studio on SearchView and OnQueryTextListener?

I have been trying to build a searchable interface in this app for a while, and I've been using a lot of the Android developer guides to help, but I recently ran into this error to do with SearchView and OnQueryTextListener that I do not know how to…
grassss
  • 199
  • 1
  • 1
  • 15
0
votes
1 answer

How open file PDF exclusively with Adobe reader?

in my method viewPDF(), how can i write code to open PDF exclusively with Adobe reader and not with other PDF app? Thanks in advance!
ZAO
  • 5
  • 5
0
votes
1 answer

How to delegate class into an Async Task instance?

I could write postAsync = new PostAsync(); postAsync.delegate = this; outside the setOnClickListener which will work smoothly, but I need to write it within setOnClickListener. public class Sign_inFragment extends Fragment…
0
votes
1 answer

Add JavaML library to Android Project

I'm new to Android, even new to Java. I'm also new to SO, so I can't post more than 2 links, sorry :/. I need to use a LibSVM object contained in JavaML library (java-ml.sourceforge.net), and every time I want to use it, I import libsvm.LibSVM(no…
Mariuslp
  • 153
  • 8
0
votes
1 answer

How to get data automatically from MySQL to Android without clicking a button?

I want the result of a barcode scan to automatically get data from MySQL without clicking a button again. This is my code for the button being clicked to get the data from MySQL. How do I get the same data without clicking the button again? public…
0
votes
1 answer

How to decrease the memory consumption of Android Studio AVD emulator?

I am using android studio 2.0 in windows 8.1 , the memory consumption size is always about 2G even if I have specified 64M VM heap,200M RAM and 200 Internal Storage in ADB configuration How can I decrease the memory consumption ? note: The version…
0
votes
1 answer

Fragment with list not displayed as it should

I created a fragment with a list on one column and I'd like it to be displayed this way : But when I run my app it's displayed this way : When I created this fragment, android studio generated two xml files. This one is fragment_item.xml : And…
antoinv10
  • 189
  • 2
  • 12
0
votes
0 answers

"HttpConnectionParams.setConnectionParams" Does not work in my android studio

HttpConnectionParams.setConnectionParams Why this function does not work in my android studio. Source Code: https://i.stack.imgur.com/0VJE8.png
0
votes
3 answers

Android java.lang.NoClassDefFoundError for class in my project

I am getting below error on initializing the NavigationDrawerRecyclerViewAdapter. Now class com.mypackage.app.NavigationDrawerRecyclerViewAdapter exists and it is public and its constructor is public as well. 1: thread exiting with uncaught…
0
votes
3 answers

App is getting OOM when going to and fro from one activity to other Multiple time

I have an simplest app. in which there is no heavy programming going on. I Have 2 activities and I am going to and fro from one activity to another for Example I am going to Activity2 from Activity1 and then Back to Activity1 from Activity2. By…
Coas Mckey
  • 701
  • 1
  • 13
  • 39
0
votes
1 answer

java.lang.IncompatibleClassChangeError SectionsPagerAdapter issue with import from eclipse

I have imported my code from eclipse to android studio 2.0 but when I am trying to access an specific function with SectionsPagerAdapter doesnt work. this is the exception: 05-07 19:45:34.113 12102-12102/com.xxx.xactivity E/AndroidRuntime: FATAL…
Slinker
  • 379
  • 1
  • 4
  • 14
0
votes
1 answer

How can I send notification emails from prase to my users

I want to send notification email from parse to my users but I have spent too much time in it. Alas! I can't find path. Please anybody guide me how can I do it.
nabia saroosh
  • 399
  • 1
  • 14
  • 36
0
votes
1 answer

Instant run does not work with layout-21

Here is a case that instant run in AS is not working: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { toolbar.setElevation(visible ? getResources().getDimension(R.dimen.elevation_toolbar) : 0); } else { View toolbarShadow =…
0
votes
1 answer

Android WebView crashes trying to play .mp4 video via

We have Android Studio 2.0 installed. Using android studio 2.0 we have created new application. Inside that application we added WebView. We try to open our webpage inside webview. Our webpage contains following video tag: