[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
Mav <marius.venter@gmail.com>: Nov 27 01:22AM -0800

I am developing an app for the MyGica ATV582 TV box.
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?
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
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

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.
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,
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:
If you want to do stuff in response to location changes while your app is
not active, use this:
On Mon, Nov 24, 2014 at 2:29 PM, Tony Pitman <tony@shatalmic.com> wrote:
> They pass in a parameter to that HandlerThread called
> 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

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.
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,
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?
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
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>
> 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
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.