[android-developers] Digest for android-developers@googlegroups.com - 9 updates in 5 topics

Comments: (0)
Manfred Moser <mosabua@gmail.com>: Nov 28 01:59PM -0800

Hi all!
 
Just a quick heads up that the Android Maven Plugin with full aar support
and host of other features has been released.
 
http://www.simpligility.com/2014/11/android-maven-plugin-4-0-0-ships/
 
manfred
Denis Ivanov <polyfrag@gmail.com>: Nov 28 10:49AM -0800

<https://lh3.googleusercontent.com/--x2TKiZoJRo/VHjDxFnuY9I/AAAAAAAAAJw/tHS9FxRSi0c/s1600/titlebarbg.png>
Forgot the image
Denis Ivanov <polyfrag@gmail.com>: Nov 28 10:49AM -0800

I'm customizing the holo theme my android 4.2.1 phone.
 
I put this image in /res/drawable/
 
And in /res/values-v11/styles.xml I put
 
<resources>
 
> </resources>
 
Is this correct? I don't see the title bar color changed to blue.
Denis Ivanov <polyfrag@gmail.com>: Nov 28 10:33AM -0800

This styling guide says that this will work for android 3.0+ (API level 11).
For Android 3.0 and higher only
 
When supporting Android 3.0 and higher only, you can define the action
bar's background like this:
 
res/values/themes.xml
 
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActionBarTheme"
parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
 
<!-- ActionBar styles -->
<style name="MyActionBar"
parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/actionbar_background</item>
</style>
</resources>
 
 
https://developer.android.com/training/basics/actionbar/styling.html
 
 
However I set my min sdk level to 11 and put that code in
values-v11/styles.xml and it gives me the error:
 
@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse requires API level
14 (current min is 11).
 
Why isn't this working? I want to customize the title bar colors, along
with everything else. How do I do it for Android 3.0+ and above?
Denis Ivanov <polyfrag@gmail.com>: Nov 28 10:39AM -0800

Nvm, I can use Widget.Holo.Light.ActionBar
 
On Friday, November 28, 2014 10:33:59 AM UTC-8, Denis Ivanov wrote:
Denis Ivanov <polyfrag@gmail.com>: Nov 28 10:39AM -0800

Nvm, I can use Widget.Holo.Light.ActionBar
Nathan <nathan.d.mellor@gmail.com>: Nov 28 10:04AM -0800

I was glad to find this article and especially liked the promise of it.
 
https://developer.android.com/training/articles/wear-location-detection.html
 
"However, when you request location data in a wearable app, you don't have
to worry about where the location data originates; the system retrieves the
location updates using the most power-efficient method."
 
So I've implemented it.
 
Only one problem.
 
It don't work.
 
A colleague claims to have received location in an emulator with some
effort.
 
Nothing happens in a Gear Live. I've set breakpoints.
RequestLocationUpdates is called.
onLocationChanged is never called. Ever.
In fact, it appears that the ResultCallBack passed in
requestLocationUpdates is never called.
 
The only thing that does happen is if I request high accuracy is it crashes
java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION
permission to request PRIORITY_HIGH_ACCURACY locations.
 
Even though
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
is clearly in the manifest after manifest tag and before application tag
 
Nathan
Nathan <nathan.d.mellor@gmail.com>: Nov 28 10:31AM -0800

In addition, getLastLocation() is always null.
 
If I don't use High Accuracy, it does not crash, but I also never receive
updates.
 
Why are *fictional* articles being posted to developer.android.com.
 
Nathan
 
On Friday, November 28, 2014 10:04:40 AM UTC-8, Nathan wrote:
gjs <garyjamessilva@gmail.com>: Nov 28 04:30AM -0800

http://www.mygica.ca/forum/viewforum.php?f=71
 
Try their forum ?
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 2 updates in 2 topics

Comments: (0)
saex <elpablosaez@gmail.com>: Nov 27 08:01AM -0800

I have an app that has a header in the top portion of the app. Below the
header it is a linearlayout that has a scrollview. Inside the scrollview I
have a linearlayout with some scrollviews on it.
 
I can scroll the scrollview fine if the videos are not playing, but if the
videos are playing, the videos overlaps the header of the app in an
incredible android layout bug.
 
Can this be solved?
 
VideoViews stopped (works fine):
 
[image: enter image description here]
 
Scrolling down and videoviews playing (wrong behaviour):
 
[image: enter image description here]
android <http://stackoverflow.com/questions/tagged/android> android-layout
<http://stackoverflow.com/questions/tagged/android-layout> scrollview
<http://stackoverflow.com/questions/tagged/scrollview> videoview
<http://stackoverflow.com/questions/tagged/videoview> android-videoview
<http://stackoverflow.com/questions/tagged/android-videoview>
Mav <marius.venter@gmail.com>: Nov 27 01:22AM -0800

Hi
 
I am developing an app for the MyGica ATV582 TV box.
 
http://www.mygica.ca/tv_boxes.php?name=mygica-atv-582
 
This device does not have any usb slave ports, only 2 USB host ports,
ethernet, wifi and hdmi.
 
Is there any way I can connect to the device using adb to debug my
application if the device is not rooted?
 
Thanks
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 3 updates in 2 topics

Comments: (0)
Leith Bade <leith@leithalweapon.geek.nz>: Nov 26 01:48AM -0800

I have a bunch of dex warning generated by an Apache Commons dependency
like this:
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.beanutils.BeanMap$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
 
I would like to set an option in my build.gradle file to disable them.
 
How do I do this?
Jonathan S <xfsunoles@gmail.com>: Nov 26 11:09AM -0800

Apache Commons dependency using Java 6 format. You compiled it under Java 7.
 
On Wednesday, November 26, 2014 4:48:16 AM UTC-5, Leith Bade wrote:
gjs <garyjamessilva@gmail.com>: Nov 25 11:44PM -0800

Hi,
 
For -
 
1. Check if GPS is supported & if LocationManger is disabled, if so prompt
the user to re-enable it, be kind & take them directly to the applicable
Android->Setting screen to do this. (See 4 also).
 
2. Where possible I ignore LocationManager & use the raw GPS NMEA
data, http://developer.android.com/reference/android/location/LocationManager.html#addNmeaListener(android.location.GpsStatus.NmeaListener)
but be aware some older devices don't support this such as Motorola Defy+
 
3. Date & Time from GPS is UTC unless you localise it, (but see 2.)
 
4. I guess this may happen, perhaps that is related to 1, or the device
does not have onboard GPS receiver (eg HP Slate 7 tablet) - then offer to
connect to an external Bluetooth GPS receiver & use that instead.
 
5. That is never an issue if you 'key' the lat lon data with GPS date/time
stamps, if duplicate lat lon is an issue in some upload then your server
app logic is probably incorrect.
 
Regards
 
 
 
On Tuesday, November 25, 2014 9:30:52 PM UTC+11, Mukesh Srivastav wrote:
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 9 updates in 7 topics

Comments: (0)
Doug Gordon <gordonwd@gmail.com>: Nov 25 05:18AM -0800

Yes, and that's what's so frustrating, Kastya. The breakpoints appear to
indicate that everything is working, as does the fact that it responds to a
swipe. For example, if I start it off by calling ViewPager with
setCurrentItem(3), my instantiateItem is called with position=3, followed
by position==2 and 4 (the views to either side). When swiping to go to the
right, destroyItem is called with position=2 and instantiateItem position=5
as expected. isViewFromObject is called numerous times and I correctly
return true or false. Since the data in the adapter never changes,
getItemPosition always returns POSITION_UNCHANGED per the specs.
 
I feel like there is something I'm missing that is failing to make my views
"visible", or else there is some undocumented "feature" since they do not
provide much info for using the base PagerAdapter (all the samples are
using FragmentPagerAdapter or FragmentStatePagerAdapter. I am now
considering changing over to use fragments instead of simple views since I
know that works even though to me it seems less efficient in this case.
 
Thanks for your response in any case!
 
-- Doug
 
 
On Monday, November 24, 2014 5:09:31 PM UTC-5, Kostya Vasilyev wrote:
Oleksii Bieliaiev <abel.the.first@gmail.com>: Nov 25 03:08AM -0800

Hey guys,
 
let's imagine we have an app with a service and an activity inside. Both
components live in a same process, our service is started (in terms of
Android) and a user does some interaction with an activity. Eventually our
app goes to background. My question is, whether is it possible, under
certain conditions (low memory, timeout, etc), that Android "kills" our
started service separately, without killing entire process?
 
Thank you,
Alex
TreKing <trekingapp@gmail.com>: Nov 25 12:33AM -0600

> I would enter the geofence area I had set up and the app did not trigger
> what I wanted it to do. I would go to the app and it looked like it was
> starting all over.
 
 
A little late to this party, but ...
 
If you're after geo-fencing, see here:
http://developer.android.com/training/location/geofencing.html
 
If you want to do stuff in response to location changes while your app is
not active, use this:
http://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates%28long,%20float,%20android.location.Criteria,%20android.app.PendingIntent%29
 
On Mon, Nov 24, 2014 at 2:29 PM, Tony Pitman <tony@shatalmic.com> wrote:
 
> They pass in a parameter to that HandlerThread called
> Process.THREAD_PRIORITY_BACKGROUND.
> Is this different than using the startForeground that now fixed my issue?
 
Yes, the thread priority is for the system to manage and schedule threads.
This relates to* time and frequency allocation* for threads to run.
 
startForeground is specifically to mark a Service object as being important
to a user's experience, such that the system will favor it when memory gets
tight. The system will kill other components (background services,
Activities no longer visible, etc) before killing a foreground service.
This relates to *memory allocation* for system resources.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
gjs <garyjamessilva@gmail.com>: Nov 25 12:28AM -0800

Hi,
 
re - I am holding the home button and the list of apps comes up and I swipe
away my app to kill it. This is what others have mentioned above. I don't
know if this is samsung only or not. Maybe this method is supposed to kill
all running services and processes of the app and is not a good way to test.
 
Ok I think you are referring to the rectangular 'Recent Apps' button, not
the Home button, but I get what you mean about swiping to close a recent
Activity from that list.
 
And yes, what Treking said about StartForeground.
 
Regards
 
On Tuesday, November 25, 2014 7:29:07 AM UTC+11, Tony Pitman wrote:
Mukesh Srivastav <mukichamps@gmail.com>: Nov 25 03:51PM +0530

Party is not over.... you might find the issue like....
 
1. Though the GPS and Network is disable, The Location manger returns
Network provider and returns the invalid/long distance lat and long data.
 
2.Sometimes, though you put your tablet/application in one place, the
Network/GPS Provider will return the lat longs of the different location.
 
3.Though you mention the distance and time, the Network provider return the
data of Asia pacific.
 
4.At a times, you might also get the locationmanager object as null, though
it work the full day but it fails at one point.
 
5.and also, what is the logic you have put to avoid the duplicate lat and
long to be uploaded.
 
I had the situation earlier and i have shared you my experience.
 
 
 
 
--
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.
Markus <markus.taubek@gmail.com>: Nov 25 01:19AM -0800

Hi guys,
 
I have a ListFragment where I load a Cursor through a Loader in
onCreateLoader(int i, Bundle bundle).
If I click on a ListItem then I replace the Fragment to another Fragment
"DetailsPageSlider" and set as argument position and count.
In my FragmentStateAdapter in getItem(int position) I create my Details
Fragment which needs the database _id as argument.
So now I have to match the "position" in getItem with the database _id!
 
How I could solve that problem?
 
1) Should I load exactly the same cursor for my FragmentStatePagerAdapter
to get the database _id through the position.
 
2) Or Is it possible to use the same Cursor in my ListFragment and also in
my FragmentStatePagerAdapter?
 
3) Or any other ideas?
 
greets
Markus
Surabhi Jain <surabhi17.jain@gmail.com>: Nov 25 12:45PM +0530

Hi I have set targetSdkVersion = 21 but it is not showing native date
picker dialog on HTC device whose android version is 4.0.3
 
When I will run same apk on S4 whose android version is 4.4.2, it works
fine.
 
Thanks & Regards
Surabhi Jain
 
 
 
--
Thanks & Regards
Surabhi Jain
TreKing <trekingapp@gmail.com>: Nov 25 12:11AM -0600

On Mon, Nov 24, 2014 at 4:53 AM, Arun Kumar K <arunkumar.k@npcompete.net>
wrote:
 
> Some times its fully uploaded and some times the app will be crashed.
 
 
Debug your app to determine where it is crashing.
 
 
> I am getting below log
 
 
If your app crashes, there should be more than 5 lines in the log. And they
should have some of your app's class names in there somewhere. This is not
the correct log.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
TreKing <trekingapp@gmail.com>: Nov 25 12:08AM -0600


> I haven't subclassed Preference class.
 
> Is that what I have to do?
 
Yes. Have a look at
 
http://developer.android.com/reference/android/preference/Preference.html#setWidgetLayoutResource%28int%29
http://developer.android.com/reference/android/preference/Preference.html#onBindView%28android.view.View%29
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 17 updates in 7 topics

Comments: (0)
Surabhi Jain <surabhi17.jain@gmail.com>: Nov 24 05:24PM +0530

Hi, my issue solved on Nexus S and Nexus 4 using device default theme but
It has not been resolved on HTC devices, I have HTC one and HTC Desire C
devices.
 
Do you have any idea about HTC devices? Why it will not show device native
date picker dialog?
 
I have set minSdkVersion = 5 and target sdk version not yet set.
 
 
--
Thanks & Regards
Surabhi Jain
TreKing <trekingapp@gmail.com>: Nov 24 11:57PM -0600

On Mon, Nov 24, 2014 at 5:54 AM, Surabhi Jain <surabhi17.jain@gmail.com>
wrote:
 
> I have set minSdkVersion = 5 and target sdk version not yet set.
 
 
You should target the highest version you've tested and support. Since it's
not set, it defaults to your min, which is 5, which is fairly ridiculous.
Your min really shouldn't be anything less than 10 these days, unless
there's a good reason to support such a low level. Set your target to
something high (like 19 or 21) and see what happens.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
sweety fx <fxsweety@gmail.com>: Nov 24 07:54AM -0800

I have a fragment placed in a View Pager.
I need to do translate animation of a view once the fragment is launched.
The animation works if I click on the view(for which I have added animation
to on click listener) but onCreateView I try to do the animation, it
doesn't happen.
What can I do to make the animation work once the fragment is launched
MathieuB <blanchmh@gmail.com>: Nov 24 07:26PM -0800

onActivityCreated()
Nathan <nathan.d.mellor@gmail.com>: Nov 24 02:20PM -0800

Android 5.0 is coming out to my customers (not to me yet), and so of course
I have to filter through any claims that feature X is broken and when are
you going to support Android 5.0.
 
Some are claiming that Compass is broken or GPS is broken.
 
There are always a few that have those problems any way, so I am not
assuming that it is something to do with Android 5.0
 
Nothing here tells me that GPS or compass sensors should be broken.
http://developer.android.com/about/versions/android-5.0-changes.html
 
 
Nathan
Doug Gordon <gordonwd@gmail.com>: Nov 24 04:22PM -0500

I have a fragment in which I want to display a number of similar pages
using ViewPager. For some reason I thought that it would be simpler to
extend the base PagerAdapter to feed views to the ViewPager. My custom
PageAdapter implements instantiateItem by inflating a layout, populating
its widgets, and then calling addView against the container view. The
containing ViewPager is the view that I return from the onCreateView
method of the fragment.
 
The problem is that this is working from a paging point of view, but the
screen remains blank. By setting breakpoints, I find that when I swipe
across the (blank) screen, my PagerAdapter is called as expected
(instantiateView, destroyView, etc.) to return the next/previous view,
but nothing is shown -- only the background of the ViewPager. Examining
the ViewPager at the breakpoint, the expected instantiated views are in
its array of child views.
 
Any clues on where to look? I've implemented a FragmentPagerAdapter
elsewhere with no issues, but this does seem like it would be easier,
especially since these views have no controls on them (just data).
 
Doug Gordon
GHCS Software
Kostya Vasilyev <kmansoft@gmail.com>: Nov 25 02:02AM +0400

Did you properly implement the adapter's isViewFromObject?
 
How about getItemPosition?
 
-- K
 
nirm <nirmiron@gmail.com>: Nov 24 12:08AM -0800

Try running it in a different process:
android:processThe name of the process where the service is to run.
Normally, all components of an application run in the default process
created for the application. It has the same name as the application
package. The <application>
<http://developer.android.com/guide/topics/manifest/application-element.html>
element's process
<http://developer.android.com/guide/topics/manifest/application-element.html#proc> attribute
can set a different default for all components. But component can override
the default with its own process attribute, allowing you to spread your
application across multiple processes.
 
If the name assigned to this attribute begins with a colon (':'), a new
process, private to the application, is created when it's needed and the
service runs in that process. If the process name begins with a lowercase
character, the service will run in a global process of that name, provided
that it has permission to do so. This allows components in different
applications to share a process, reducing resource usage.
 
Nir
 
On Sunday, November 23, 2014 8:44:45 AM UTC+2, Tony Pitman wrote:
gjs <garyjamessilva@gmail.com>: Nov 24 12:13AM -0800

Hi,
 
What do you mean by -
 
..."I test this by holding down the home button and killing my app" ?
 
If I start an app, then press & hold down the Home button, the app that was
running is sent to the background (not killed) & the only option that
appears is a circle that pops up to run Google Now - if I then swipe
upwards. There is no option to kill any apps via the Home button
interaction you described as far as I know, I tested this on (stock) Nexus
5 with Android 5 as well as Sony Xperia 2 with Android 4.4 phone devices.
 
The only (stock) standard way I know to kill apps is via Android
Settings->Apps->Downloaded->(select App)->Press 'Force stop' button.
 
I'd suggest you try in the service manifest entry android:exported=true if
that is ok for your app. Other things to try are android:process & also
make sure you are using startForeground(..) & stopForeground(.) calls in
your service or it will be killed by the OS after a period of time and
finally you probably need to use a wake lock to keep the CPU running when
the display is turned off. I use these settings to get a GPS (background)
Service to continue to run ok indefinitely after the uses exits my app or
presses the home button or turns the screen off. (But be warned that these
actions can deplete the device battery fairly quickly which many users do
not like).
 
The user can still always kill the app & background service even when the
app is stopped / service in the background via Android
Settings->Apps->Downloaded->(select App)->Press 'Force stop', there is
nothing your app can do to avoid this...
 
Regards
 
 
 
 
 
 
On Sunday, November 23, 2014 5:44:45 PM UTC+11, Tony Pitman wrote:
Mark Phillips <mark@phillipsmarketing.biz>: Nov 24 07:08AM -0700

On my Samsung Galaxy 4 phone from T-Mobile, I can hold down the home button
and get a list of running apps. I can kill each one individually with a
swipe, and there is a trashcan icon at the bottom of the screen that will
kill all the apps running. I use this feature to extend my battery time
when the batter is getting low. It may be a special Samsung app that does
this.
 
Mark
 
Mukesh Srivastav <mukichamps@gmail.com>: Nov 24 08:17PM +0530

As my understanding here, the service was stopped some where in the code
and hence it is behaving like that.
 
On Mon, Nov 24, 2014 at 7:38 PM, Mark Phillips <mark@phillipsmarketing.biz>
wrote:
 
 
--
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.
Tony Pitman <tony@shatalmic.com>: Nov 24 07:17AM -0800

Thank you everyone for the replies. Here are my responses:
 
I am holding the home button and the list of apps comes up and I swipe away
my app to kill it. This is what others have mentioned above. I don't know
if this is samsung only or not. Maybe this method is supposed to kill all
running services and processes of the app and is not a good way to test.
 
I tried giving the service a different process. I tried 2 things. First I
just added the android:process tag to my service. I gave it a name with the
':' in front so it would be private to my app.
 
This did not change anything. The service still dies when I kill the app.
The other thing I noticed is when I go to the Settings -> Application
Manager -> Running I see my app. If I tap on it to see what it is doing I
get the following sections / information:
 
Active App:
MyApp
1 process and 1 service
 
Services:
MyService
Start by application
 
Processes:
MyApp
com.mycompany.myappspace:MyService
 
Main process in use.
 
So I decided to try adding the android:process section to the main
application entry in the xml as well. I gave it a different name just in
case. I called it MyApp instead of MyService. This did not make any
difference. The information shown in the settings panel were the same.
 
So am I to assume that the service is running in the same process as the
app so that when I kill the app using the method above that is why the
service is also dying? Is killing the app that way the wrong way to test?
 
The whole reason I am doing this is because originally I just put my gps
stuff inside the app itself. I would start my app and then many hours later
I would enter the geofence area I had set up and the app did not trigger
what I wanted it to do. I would go to the app and it looked like it was
starting all over.
 
Maybe I should just start my app and let it run for several hours and see
if the service keeps going.
 
Thanks for all the help.
 
On Monday, November 24, 2014 7:58:36 AM UTC-7, Mukesh Srivastav wrote:
Tony Pitman <tony@shatalmic.com>: Nov 24 12:29PM -0800

It looks like calling startForeground was the key. I am still not able to
kill the app using the method mentioned above, but at least now when I let
the app sit for a long period of time the GPS notifications keep coming
into the service even when it looks like the app has been shut down by the
OS for lack of use.
 
I do have another related question. When I did my service I was following
the example of a service on the google dev site. This is the link to what I
followed:
 
http://developer.android.com/guide/components/services.html
 
You will notice about the middle of the page there is the example code that
I followed and then modified. They use a HandlerThread to create the Looper
that gets used in the mServiceHandler thread to process the actual work.
 
They pass in a parameter to that HandlerThread called
Process.THREAD_PRIORITY_BACKGROUND.
 
Is this different than using the startForeground that now fixed my issue? I
left that HandlerThread the way it was and it now works with the
startForeground.
 
Thanks!
 
On Monday, November 24, 2014 8:17:18 AM UTC-7, Tony Pitman wrote:
dashman <erjdriver@gmail.com>: Nov 24 09:35AM -0800

I think the problem is the JRE.
 
Which one do I need.
Jonathan S <xfsunoles@gmail.com>: Nov 24 10:29AM -0800

JRE = Java Runtime Enviorment
JDK = Java Development Kit
 
I think you need to get the latest version of JDK 7
 
On Monday, November 24, 2014 12:35:34 PM UTC-5, dashman wrote:
dashman <erjdriver@gmail.com>: Nov 24 11:37AM -0800

Installed JRE 7 and works fine.
 
Thanks.
 
 
On Monday, November 24, 2014 1:29:49 PM UTC-5, Jonathan S wrote:
Arun Kumar K <arunkumar.k@npcompete.net>: Nov 24 04:23PM +0530

HI guys,
 
 
I am using intent service to upload some data to server. Some times its
fully uploaded and some times the app will be crashed. I am getting below
log
 
11-24 14:59:12.198: E/(9367): Device driver API match
11-24 14:59:12.198: E/(9367): Device driver API version: 23
11-24 14:59:12.198: E/(9367): User space API version: 23
11-24 14:59:12.198: E/(9367): mali: REVISION=Linux-r3p2-01rel3
BUILD_DATE=Wed Oct 9 21:05:57 KST 2013
11-24 15:03:39.659: A/libc(9367): Fatal signal 6 (SIGABRT) at 0x000008b8
(code=0), thread 9367
 
Please help me
 
--
*Regards*
*Arun*
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 3 updates in 3 topics

Comments: (0)
dashman <erjdriver@gmail.com>: Nov 23 10:22AM -0800

How can I set the system default styles for the title and summary elements
of a custom preference - in xml.
 
Looked all over the styles.xml - couldn't find it.
 
<TextView
android:id="@+android:id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
style="?????"
/>
 
Like to make it look like the system default title and summary line.
dashman <erjdriver@gmail.com>: Nov 23 05:49AM -0800

I created a layout and attached to a preference
 
<Preference
android:key="key"
android:layout="@layout/image_preference"
/>
 
That displays correctly - title, sub-title w/ a imagebutton to the right.
 
The layout's root is a LinearLayout w/ an id of "@+android:id/widget_frame"
 
 
The problem is now the preference's onclick is not getting triggered.
 
Also - i'd like to get a callback from the imagebutton.
 
I haven't subclassed Preference class.
 
Is that what I have to do?
Tony Pitman <tony@shatalmic.com>: Nov 22 10:44PM -0800

I am writing an app that needs to get gps location information in the
background. I created a class derived from Service to do this. I copied the
example on the Android developer site about making a background service. It
uses the ServiceHandler thread to do the work.
 
I use location manager and set up the receiving of updates.
 
I have my main activity create the service using the normal way like this:
 
Intent intent = new Intent(_context, MyService.class);
_context.startService(intent);
 
Inside my service I create the location manager and start getting location
updates.
 
This works great so far. I am doing this as a service because I want my
service to receive updates even if my application is shut down. I test this
by holding down the home button and killing my app.
 
The problem is that as soon as I kill my app the service stops getting
updates. The service does not go away, as far as I can tell, it just quits
receiving GPS updates.
 
As long as I leave the app running, even in the background, the service
keeps getting the GPS updates.
 
Can someone tell me how to continue to get GPS updates in my service even
if the app that started it gets killed?
 
I have some settings in my AndroidManifest.xml that might be affecting it.
I have the service set up so it is not exported and has permissions. I do
this because I don't want other applications to use my service. Could these
be affecting it?
 
Here is my service entry in the xml:
 
<service android:name="com.mycompany.mypackage.MyService"
android:permission="com.mycompany.MY_SERVICE" android:exported="false" />
 
Just after that outside of the application tag I have this:
 
<permission android:name="com.mycompany. MY_SERVICE"/>
<uses-permission android:name="com.mycompany. MY_SERVICE" />
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 3 updates in 3 topics

Comments: (0)
dashman <erjdriver@gmail.com>: Nov 22 05:40PM -0800

I've got a Preference (not a sub-class) in a settings page...
 
Like to add an imagebutton on the right side.
 
How can I do that?
TreKing <trekingapp@gmail.com>: Nov 22 02:39PM -0600


> How can I center text in pre api 17.
 
 
http://developer.android.com/reference/android/view/Gravity.html#CENTER_HORIZONTAL
 
You can do * gravity=CENTER_HORIZONTAL* and *layout_width=MATCH_PARENT*,
where the text is centered within the TextView bounds, something like:
 
|| TEXT ||
 
Or *layout_gravity=CENTER_HORIZONTAL* and *layout_width=WRAP_CONTENT*,
where the TextView is centered within its parent's bounds, something like:
 
| |TEXT| |
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
dashman <erjdriver@gmail.com>: Nov 22 11:27AM -0800

How can I change the background color of icon notifications.
 
That is - the circular icon that's displayed when the
notification panel is opened.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 8 updates in 6 topics

Comments: (0)
crem <bernd.warmuth@gmail.com>: Nov 21 01:09AM -0800

According to the docs you can use the android:windowSoftInputMode Flag in
the manifest xml file.
See: http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft
 
I guess this is what you want?
 
On Friday, November 21, 2014 2:03:05 AM UTC+1, dashman wrote:
dashman <erjdriver@gmail.com>: Nov 21 07:03PM -0800

Thanks.
dashman <erjdriver@gmail.com>: Nov 21 05:10PM -0800

How can I center text in pre api 17.
 
Both for TextView and EditText.
 
In my XML for the above elements, I have
 
android:textAlignment="center"
 
and ok it doesn't work for pre api 17 - but any reason
why it should not work automatically in api 17+ devices.
 
Unless the compiler removes it.
twiggle <twigbranch@gmail.com>: Nov 21 12:35PM -0800

Still struggling with this. Any ideas?
 
On Sunday, November 2, 2014 10:27:19 PM UTC-8, twiggle wrote:
LiTTle <littleprog@gmail.com>: Nov 21 05:40AM -0800

Why when I use setSelector method it returns neither Camera activities nor
Gallery Activities.I have the following code:
 
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
 
Intent camera= new Intent("android.media.action.IMAGE_CAPTURE");
 
Intent gallery = new Intent();
gallery.setAction(android.content.Intent.ACTION_VIEW);
gallery.setType("image/*");
gallery.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
camera.setSelector(gallery);
 
startActivity(camera);}
 
According to Android's reference API "*If the selector is set, it will be
used when trying to find entities that can handle the Intent, instead of
the main contents of the Intent.*"
 
I thought that I will get a dialog that opens the gallery instead of
camera. But, instead of these I got a dialog that returns arbitrary
applications/activities, such as *Call Settings*, *Network Settings*, *SIM
Toolkit*, etc.
 
When I remove the camera.setSelector(gallery); method everything works like
a charm, but when I use camera.setSelector(gallery); method it returns
neither Camera activities nor Gallery Activities.
Could somebody explain me why I got a dialog with these arbitrary
activities instead of appropriate?
 
I don't want to remove the camera.setSelector(gallery); because I am trying
to understand how it works!
Markus <markus.wiederkehr@gmail.com>: Nov 21 01:30AM -0800

My only WebView is an AdView so this has to be ad-related.
 
This happened on a Nexus 7 (2012) still at Android 4.2.2.
 
java.lang.NullPointerException
at
android.webkit.ZoomManager.setupZoomOverviewWidth(ZoomManager.java:1087)
at android.webkit.ZoomManager.onNewPicture(ZoomManager.java:1028)
at android.webkit.WebViewClassic.setNewPicture(WebViewClassic.java:7986)
at
android.webkit.WebViewClassic$PrivateHandler.handleMessage(WebViewClassic.java:7327)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
 
(I am reporting this here because I could not find a category for AdMob in
the issue tracker.)
Markus <markus.wiederkehr@gmail.com>: Nov 21 02:46AM -0800

Sorry, this should have gone to AdMob Ads Developers...
 
On Friday, November 21, 2014 10:30:24 AM UTC+1, Markus wrote:
crem <bernd.warmuth@gmail.com>: Nov 21 12:40AM -0800

Hi & thank you for your reply,
 
Your approach is basically the same as mine with a few differences.
Because the Android *MediaRecorder *is not very flexible I decided to use
OpenCV (more specifically JavaCV, which comes bundled with ffmpeg) for
frame recording. Keeping all the sensor data in memory is no option for me,
because I have to deal with a much higher sampling rate than 1 /sec which
results in much more amount of data over time. I also take into
consideration the *delay* between hitting the *start recording* button and
the timestamp when recording actually happens.
 
There is obviously more advanced ways of doing this
 
 
This was my question, because I think your/our approach does work well when
sampling rate isn't that high, but with higher sampling rates I am afraid
it will become too fuzzy.
 
On Thursday, November 20, 2014 8:50:24 AM UTC+1, gjs wrote:
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.