Search android

203252 results
3

votes
2

answer

Android Style Syntax @android vs android

What is the difference between @style/MyActionBar And @style/MyActionBar Notice the difference in the parent syntax of using @android:style/ vs just using android:. I have already seen What's the difference between “?android:” and “@android:” in an android layout xml file? but note that my e...
Adam Johns
1

votes
3

answer

Android fragments for Android

Up until recently, I've been using Activities for most of my Android apps. While diving into Fragments, it seems that Fragments are meant for larger screens like tablets and less so for smartphones because Fragments are mostly used to add views dynamically to parts of the UI when it is needed. Is th...
AndroidDev
1

votes
4

answer

Android + Groovy + Android Annotation

i'm playing with android and android-annotiations, and why not play with groovy too... maybe to much :D AndroidAnnotations, with help of APT (Android Processing Tools) generate helper class, that can be use in source code, and this source code compile before APT create... Groovy its a great language...
accreativos
0

votes
1

answer

Stream video android-android

I would like to stream a video between two android devices (android-android). There wouldn't be any server, so the streaming has to be direct between devices. Devices would be in the same network so they could communicate via WiFi. I've tried using MediaRecorder - MediaPlayer via sockets, but I've r...
Stonek
3

votes
1

answer

HTML android in android

I want to develop an editor which can make the text bold, italics and underline and create an equivalent HTML for it. I have somethhing like this in my mind: When the user clicks on save, I should get HTML data. For example , if user writes:Hello World then I should get Hello World What are my optio...
Mr_Hmp
0

votes
0

answer

Android in Android Studio

I am beginner and trying to use a 'system image' in my Android Studio to run my first App. But I am facing with this error message : Cannot launch AVD in emulator. Output: emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored. emulator: ERROR:...
Hessam
37

votes
5

answer

Android TabLayout Android Design

I'm trying to get the new TabLayout in the android design library working. I'm following this post: http://android-developers.blogspot.com/2015/05/android-design-support-library.html and the documentation: http://developer.android.com/reference/android/support/design/widget/TabLayout.html And have...
TWilly
4

votes
2

answer

Webrtc Android to Android?

Im a bit confused, Ive only seen examples from android to pc or vice versa. I need to make an android app that connects from two phones(android) for video chat. I was wondering, I know it might be a silly question, but can you do that with webrtc? Do you know any good tutorials that explains it or s...
Mijail
2

votes
0

answer

Android-studio Android emulator Error

When I run emulator under Android studio I have error in logcat view can you explain where is a problem in this log : android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection [email protected]2f5...
Skynet
3

votes
2

answer

Android NoClassDefFoundError on android 4.4.2

When I try to run my app on Android 4.4.2 it is giving me this error: E/AndroidRuntime: FATAL EXCEPTION: main Process: my.package, PID: 24775 java.lang.NoClassDefFoundError: my/package/models/Transaction at java.lang.Class.getDeclaredFields(Native Method) at java.lang.Class.getDeclaredFields(Class.j...
tm13
2

votes
1

answer

Android Admob android Manifest error

I am trying to put ads into my Android application, but I'm getting a weird error. My app launches with this in the Manifest file. But it shows an error in the emulator saying 'You must have AdActivity declared in the AndroidManifest.xml with configChanges.' Whenever I add this to the Manifest file...
Mich
2

votes
0

answer

difference between @android and @*android

I've been given a few xml layout files made by another group of developers, one thing concerns me is that they used a mix of @android and @*android in their files, like @android:style/Theme @*android:style/Theme Their xml layout files seem to be working fine at the moment, but I am curious about the...
Craig Zheng
3

votes
4

answer

Android to Android TCP Connection

All of the documentation, examples and questions I've seen so far on TCP connections with Android have been between an Android device and a computer. As unreliable as wireless can be, is it possible to make a client-server TCP connection between Android devices over WiFi, and if so, how? Edit: I gue...
kurifu
5

votes
1

answer

Android-vision OCR; Android-vision

Have gone through the Android OCR vision sample on github link https://codelabs.developers.google.com/codelabs/mobile-vision-ocr/index.html?index=..%2F..%2Findex#0 How can you automatically identify and pick numbers of a credit card without struggling to tap on it. The current receiveDetection meth...
Job M
3

votes
2

answer

Android LruCache in Android 1.6+

I need to use LruCache (a api from Android 3.1) in Android 1.6+ I use Android Support Library v4 that has support to LruCache (Acording with this manual http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html#memory-cache ) but the problem is that i get the NoClassDefNotFoundError...
Aracem
1

votes
2

answer

Android scrollindicators style / color android

android:scrollIndicators='top|bottom' does provide scroll indicators, but they are barely visible at all. Screenshot of barely visible Scrollindicators What theme/style color are they using, or how can I assign a custom color?
seaforester
0

votes
1

answer

Android KeyStore, Eclipse -> Android Studio

I am stuck in a problem. I developed an Android app back in 2014, and now I am updated it. I imported the project in Android Studio and it worked just fine. But after development when I am trying to sign the app, it just kept saying password is incorrect or keystore has been tampered with. In ecl...
Max
6

votes
2

answer

Android vs android-sdk-mac_86

Why have I got two Android directories on my Mac? Both are under ~/Library. One is Android (which contains a 9.4GB sdk folder) and the other is android-sdk-mac_86 (which contains a 1.7GB system-images folder and a 1.7GB add-ons folder). What's the difference and can I delete one of them?
Snowcrash
4

votes
1

answer

Android WebView login on Android

I have built app that display asp pages using WebView but some of the page want the authentication (Username ,Password ) to login I want my application to auto login to this page using Username and Password from my Application This is my code: public class eadvantage extends Activity { /** Called...
FARES
1

votes
1

answer

Android service background Android Oreo

in my Android project i've created an custom clock widget with a service which contains an instance of Broadcast Reciever and an intent filter. The Broadcast Reciever provides the update of the widget every time arrives the ACTION_TIME_TICK. This is working perfectly when set targetSdkVersion to 25,...
deno750
2

votes
4

answer

Android build.gradle fail Android studio

I program with Android Studio. Error message: Error:Execution failed for task ':app:dexRelease'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 2 And my b...
mistermm
4

votes
1

answer

Android: Android Support Annotations “RestrictTo”

I was understanding the android support annotations in which i came across '@RestrictTo' annotation; Which explains the different scopes developer can define. Can anyone explain in detail with some example how to use these annotations? Any leads will be appreciated!
Pavan
1

votes
1

answer

Exporting Android Library - Android Studio

I created an Android Library in Android studio. I now want to make it available for others to use it. It uses Google Play Services and a drawable (drawable isnt necessary). My issue is I can only find reading on importing libraries, not exporting them. I want to make this library downloadable. Does...
Keith
1

votes
1

answer

Android Manifest.xml file Error : Android

Im having a issue with Android Manifest.xml and i have no idea what causing this. actionBarSherlock library is correctly added but still im getting this error ' error: Error: No resource found that matches the given name (at 'theme' with value '@style/ Theme.Sherlock.ForceOverflow') '. I have tri...
programmer one
5

votes
4

answer

developing for android on android

I want to be able to develop and immediately run android apps on my device. I've played with sl4a and a bluetooth keyboard, but the app and ide weren't designed for what I want to do with them. what are my options? clarification: I want a mobile dev env that doesn't involve any computer (other than...
drfloob
4

votes
2

answer

HTML5 Android App - Android Marketplace

We are about to build a new company Android app and would like to code using HTML5, CSS3 and Jquery and then compile with PhoneGap. We want to do it this was as we already have strong skill-sets available in these areas. I wonder if anyone could advise whether this would cause any issues in getting...
Dancer
2

votes
1

answer

Android Emulator or Android Phone

I hope you're all good. I am working on an android application project and I mostly use android emulator for testing the application. Android Emulator takes too much time for application loading and since I am working on the design I have to run the application after a few seconds again and again. B...
Rookie
21

votes
6

answer

Android Libraries in Android Studio

Has anyone figured/found out how Android libraries are intended to work in Android studio? I have not been able to find any documentation on this yet (the documentation on the Android Developer Site is incredibly bare-boned), and I observe that depending on how I create the library project, I get co...
Michael A.
1

votes
1

answer

Android accelerometer and Android versions

since Android 3.0 the android.hardware.SensorManager.getRotationMatrix method result has to be remaped to work as on previous Android versions. I use the next code: android.hardware.SensorManager.getRotationMatrix(newm, null, mAccelerometerValues, mMagneticValues); if( sdk >= 11){ //Honeycomb androi...
sgallego
1

votes
2

answer

Android: jUnit Test Android Library

I am trying to test a library developed by me through jUnit, but I'm having some problems. This library requires an activity to be instantiated. However, following the tutorial (http://www.vogella.com/articles/JUnit/article.html), I can not instantiate the object because I dont have the activity. Y...
busterkika
1

votes
1

answer

Android - Assertj Android - Run error

I´m trying to run assertj-android but it send an error. (it runs fine with junit 4) My Dependencies: dependencies { testCompile 'junit:junit:4.12' androidTestCompile ('com.squareup.assertj:assertj-android:1.0.0'){ exclude group:'com.android.support', module:'support-annotations' } } My Build type:...
Caipivara
1

votes
1

answer

android broadcast receiver android 4

because i cant post my question to this thread Android - SMS Broadcast receiver, i have to do it that way. Does anybody know why this broadcast receiver isnt working on android 4? Ive tested it with 2.3.7 and it was working, but now with the android 4 update nothing happens :-/.
pyran1208
2

votes
1

answer

Compiling for Android on Android

This is more of a theoretical questions, one which I may not have thought through properly, but is it POSSIBLE to compile an Android app ON an Android device? As in, write up the sourcecode on the device, compile, test and deploy it, without having to use an other OS for any part of the process?
1

votes
1

answer

Use Android objects outside Android

In a Java project I am using a class that is in an Android project and uses an android View object. When I try and use that class in the non-android project I get a no class found error at runtime. How can I import android.widget.view.View into a non-android project? Can I add it to my project build...
Flynn
1

votes
0

answer

Android emulator on android studio

i have a problem with Android Studio 3.1 and his emulator. If i emulate the Marshmallow version or a version a higher version of 5.0 the emulator works fine. if i try to emulate Lollipop or a older version of android the emulator stuck: in kit-kat and jelly bean the button power of emulator don't r...
Nicolo' Dovico
1

votes
2

answer

Android Cardboard: Unity or Android

I'm a brand new in Android VR, and I would like to ask for your advice. So I've just got to this link: https://developers.google.com/cardboard/android/ because I would like to start developing Android VR. My question is: Shall I use and learn the Android SDK or shall I use the Unity for developing A...
Karoly
1

votes
2

answer

Android NDK - Undefined reference to Android::Mutex, Android::AudioTrack

I'm getting strange undefined references at link time for Android::Mutex and Android::AudioTrack used by a project I have taken over. Does anyone have any ideas? There is no Android static library to include is there? SharedLibrary : **jni.so /Users/kevin/Desktop/player2/videoplayer/videoplayer/obj...
Kevin Parker
1

votes
3

answer

Will Android app developed on Android 4.1 run Android 2.3.2?

Today I started observing some new kind of error which does not allow me to create a new Android application in Eclipse. It says 'Update Tools', Your tools installation appears to be out of date. This wizard depends on templates distributed with the Android SDK Tools....' I have android 2.2 API 8 wh...
ChanChow
3

votes
0

answer

PreferenceActivity Change In Android 6.0 (Android M, Android Marshmallow)

I have several activities that use custom layouts for a preference activity. The style is as follows. public class SettingsActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_setting...
Justin
3

votes
0

answer

android -Launch custom android application from android browser

I've a link like this in my application : http://mywebsite.com/pr-5 I want to do something when user opens this link in browser , my application runs and open the data with the id of 5 . as you can see, I send the id at the end of my url , I want to get the id and shows the data in my app . To do so...
mohamad bagheri