Search android

153299 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
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
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
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
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
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?
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
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
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 - 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
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
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
2

votes
1

answer

Android: Conflict between Android SDK and Facebook for Android app

I have an app that uses the Facebook Android SDK. All works well (Facebook login, Like functionality) until I installed the Facebook for Android 3rd party application. Without the 3rd party app, I get the WebView when choosing to login to Facebook. But with the Facebook app installed, user gets dire...
Shane Oliver
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
11

votes
2

answer

What android target should I develop for? Android 4.4W or android 4.4L or android 4.4 kitkat?

Recently I have downloaded latest patches to eclipse and android SDK and now I'm really confused in the matter of developing my application... If I want to create a game on phones, tablets etc should I still choose the newest target like android 4.4W or should I choose Android 4.4L or maybe the earl...
Savail
5

votes
1

answer

Android Studio - Build an Android project with Android library which depends on another Android Library

I need to build using Gradle an Android project which depends on an Android Library project A, which depends on another Android Library project B. So far I have the following: Android project: build.gradle: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.bui...
TacB0sS
2

votes
1

answer

Library for android, using android jar

I want to make a library which uses SharedPreferences. Now to do so I'd need to have android.jar available to me. But, as my project will never run stand-alone, I highly doubt making it a full-blown android application will be the right way to go. Right now I've got the following build.gradle: apply...
Daniël van den Berg
1

votes
2

answer

Android android-support-v4.jar missmatch

When i create a new project into the eclipse i got the following error. [2015-02-01 19:34:09 - test] Found 2 versions of android-support-v4.jar in the dependency list, [2015-02-01 19:34:09 - test] but not all the versions are identical (check is based on SHA-1 only at this time). [2015-02-01 19:34:0...
Bhaumik Shah
5

votes
1

answer

Android Calendar integration in Android OS 4

I use the undocumented API's for adding calendar event for Android OS 2.2. Now Android OS 4 is out, naturally the API's I used don't work! I looked at the Android SDK regarding the calendar api's in level 14 but I'd not able to found a clue how to use this in my project that I have created using And...
Rahul
0

votes
1

answer

Android App crash only on Android 6

I have create a small application but this crash only on Android 6 on this line of code create by android studio in first activity drawer: setContentView(R.layout.activity_home); Error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.application/com.application.Home}: android....
51

votes
1

answer

Undo [android-wear] -> [android] tag synonym

According to How can I dispute a tag synonym? this is the proper place to ask, "as long as we make a good argument". :) Not too long ago (I didn't notice when) android-wear seems to have been marked as a synonym of android. I think this is mistaken, for the following reasons: Android Wear is a disti...
matiash
4

votes
1

answer

Android SyncAdapter without Authentication vs. Android Service

I don't wish to use authentication with my sync adaptor Since I plan to use it for syncing twitter public timeline for a search query. Shall I use SyncAdapter or any ordinary Service?
Taranfx
2

votes
0

answer

Android - Invoke activity using reflection in android

Is there any way to invoke an activity using reflection. I have an activity in my library project(.jar/dex), it is possible to launch the library project activity from my parent application.
Packiaraj
3

votes
2

answer

Emulate Android Phone on Android Tablet

I wonder if there is some kind of tool to emulate Android handys on an android tablet. I would like to use it for developing games for android platforms and to check size and resolution issues. Of course there are different simulators running on PC, but it would be helpful to simulate the behaviour...
Typ127
2

votes
0

answer

Own Android Theme doesn't work in Android

I have a problem with creating my own theme. In Eclipse the project looks fine, it even looks as it should in Graphical Layout preview, when I open my .xml with layout. I've tried on several devices with Android, also with virtual. The effect is the same, the app looks like it is using the default T...
shtas