I am trying to load a page into a android app webview using an Android Studio Emulator(Nexus 5). However, the page is not loading correctly and is stuck at the loading screen. The page does require GeoLocation permissions however I have them already enabled. Below is my code and the XML for the app. MainActivity.java […]
[EDIT]: Thank you for all the meaningful answers, the problem is now solved, thank to your help. Similar issue: Android: I am unable to have ViewPager WRAP_CONTENT I’m trying to implement the UI of my app : I want a ListView with a ViewPager in each row. Here are my files : MainActivity.java package com.condi; […]
I can use equivalence of setTag(key) at my Android layout files as this: <EditText android:id=”@+id/passwordEdit” android:tag=”key” android:inputType=”textPassword”/> I would like to use equivalence of setTag(key, value) at my xml. Is it possible?
Im using an ant build file that has been generated by android. Our Android application requires a JAR file that lives inside the lib folder of our project, so I need to adjust the classpath that ant is using when it builds stuff. When I run: ant -lib lib debug the project builds just fine, […]
Let me start by acknowledging that I did find a similar question on here but there was only one answer and that answer did not apply in my situation, so… I am just now wading into Android and have come upon a sticking point. I am using Eclipse and have run into a problem trying […]
I have an app that should be supported on a huge number of devices, and yet when I upload it to Google Play, it says only 3 (out of 2263) are supported. My manifest looks like this (minus Activities): <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”MYPACKAGE” android:versionCode=”101″ android:versionName=”@string/app_version” > <uses-sdk android:minSdkVersion=”8″ android:targetSdkVersion=”15″ /> <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” /> <uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” /> […]
I’m trying to change the background color of a FramyLayout. The color is changing, but to the wrong one. However it is working fine if I do it through the XML. Here is my res/values/colors.xml code <?xml version=”1.0″ encoding=”utf-8″?> <resources> <color name=”grey”>#888888</color> <color name=”white”>#FFFFFF</color> <color name=”red”>#ffff3448</color> <color name=”green”>#ff408c3a</color> </resources> Here is how it looks like […]
Here is what I have achieved ? 3 different sections, 10 different items in each section. Here is the tutorial link I am following and below is the Screenshot: Trying to show different Views for each and every Section. Like: For Section 1 (layout_1.xml) For Section 2 (layout_2.xml) For Section 3 (layout_3.xml) But showing layout […]
I added a “pull to refresh” to my listView, i also wanted to add an empty view when the list is empty – Now i got this error. How can i make this work? if im positioning a view outside of the swipeRefresh and then add it as the emptyView it will work. So how […]
I’m trying to build an app with image buttons that work like the action bar but i can’t get them to show a tooltip on long press. <ImageButton android:id=”@+id/editUrgent” style=”?android:attr/borderlessButtonStyle” android:layout_width=”48dp” android:layout_height=”wrap_content” android:layout_centerVertical=”true” android:layout_toLeftOf=”@+id/editImportant” android:hint=”@string/hint_urgent” android:contentDescription=”@string/hint_urgent” android:text=”@string/hint_urgent” android:src=”@drawable/clock_light” /> android:contentDescription works for hovering(s-pen) but long press still does nothing.