[android-developers] Digest for android-developers@googlegroups.com - 1 update in 1 topic

Comments: (0)
andrew_esh <andrew.c.esh@gmail.com>: Aug 31 11:26AM -0700

I took a look at android::Region::createTJunctionFreeRegion here:
 
http://androidxref.com/4.4.4_r1/xref/frameworks/native/libs/ui/Region.cpp#185
 
I would look at the region being passed in to there. I wonder if some of
the arrows you're rendering are not valid regions by the time they reach
this function.
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 - 1 update in 1 topic

Comments: (0)
Avetik Kazhoyan <kazhoyan@gmail.com>: Aug 30 04:33PM -0700

Hi!
 
I'm having this strange crash somewhere in native code. It happens much
more frequently when drawing very small Path objects (I'm drawing little
arrows). My app runs on Android 4+, so can't tell about previous OS
versions.
 
Couldn't find anything about it, so please have a look, at a backtrace:
#00 pc 00007354 /system/lib/libui.so
#01 pc 00007485 /system/lib/libui.so
(android::Region::createTJunctionFreeRegion(android::Region const&)+90)
#02 pc 0001bb13 /system/lib/libhwui.so
#03 pc 0001b2d1 /system/lib/libhwui.so
#04 pc 0001df1b /system/lib/libhwui.so
#05 pc 0001e079 /system/lib/libhwui.so
#06 pc 0006c299 /system/lib/libandroid_runtime.so
#07 pc 00020bcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#08 pc 00051927 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int
const*, JValue*, Method const*, Thread*)+398)
#09 pc 0002a060 /system/lib/libdvm.so
#10 pc 00031510 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#11 pc 0002eba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*,
JValue*)+184)
#12 pc 00064159 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method
const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
#13 pc 0006c18f /system/lib/libdvm.so
#14 pc 0002a060 /system/lib/libdvm.so
#15 pc 00031510 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#16 pc 0002eba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*,
JValue*)+184)
#17 pc 00063e75 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method
const*, Object*, bool, JValue*, std::__va_list)+336)
#18 pc 0004d457 /system/lib/libdvm.so
#19 pc 00051f0f /system/lib/libandroid_runtime.so
#20 pc 000534a3 /system/lib/libandroid_runtime.so
(android::AndroidRuntime::start(char const*, char const*)+354)
#21 pc 0000105b /system/bin/app_process
#22 pc 0000e4f3 /system/lib/libc.so (__libc_init+50)
#23 pc 00000d7c /system/bin/app_process
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 - 6 updates in 4 topics

Comments: (0)
Justin Anderson <magouyaware@gmail.com>: Aug 29 12:25AM -0600


> If i launch Inner main fragment 2 and i tap on anther next tab. when i
> came back to the Home Tab, the Inner main fragment 2 is not visible and
> it goes to the Home Tab automatically.
 
It sounds like you have a bug. To fix it, you should probably put some
breakpoints in your fragment's lifecycle callbacks and figure out why you
are getting unexpected bhavior.
 
Finally i fixed that issue using this code,
> android:label="@string/title_activity_operation" >
> </activity>
 
> This is a very common approach to "fixing" errors, but it is generally a
very very very bad idea. Unless you know what you are doing, you do not
want to be using the configChanges attribute.
 
But the problem is, i want to set deference layout with orientation change
> (portrait/landscape) for a inner fragment in the main fragment. But It's
> not working and orientation listener is not working in an inner fragment.
 
I'm not sure I fully understand what you are trying to say here... But
what I think you are saying is that you have two layout files (one in
res/layout and one in res/layout-land) but when you rotate the device the
layout doesn't get reloaded. Is that correct? If so, I refer to my comment
above... specifying configChanges for an activity is generally a very very
very bad thing to do, unless you really know what you are doing.
 
Your configChanges line above tells Android to ignore orientation events...
So naturally, when you rotate the device, it ignores the fact that the
orienation changed and the layout doesn't get reloaded. Remove that line,
and then your layouts should magically work on device rotation. But...
that will then bring back the other but you mentioned... so you will need
to start doing some debugging to figure out why you are getting unexpected
behavior.
 
Already I've created two deference XML layouts (layout-large-land and
> layout-land)for a single inner fragment. But the device when rotate UI not
> change. How can i solve this issue.
 
See above... Also, as an FYI, if you provide some code of how you are
loading the fragments, you might get some better info on how to solve your
problem.
 
 
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
 
 
On Thu, Aug 28, 2014 at 10:45 PM, askl <amalskr@gmail.com> wrote:
 
askl <amalskr@gmail.com>: Aug 29 12:23AM -0700

Thanks Justin for your reply.
 
Yes you got my issue. But not totally. As you said that, in fragment layout
is not change when device rotation. I had to add
 
android:configChanges
 
 
line in manifest file. Mainly in my application has 3 tabs and first tab
has two inner fragment. So please help me to get orientation event in inner
fragment in First tab. If i remove that manifest code line, when device
rotation inner fragment will be goes back, That mean automatically reload
main fragment when rotation.
 
Thnx
 
 
 
 
On Friday, 29 August 2014 11:59:52 UTC+5:30, MagouyaWare wrote:
Justin Anderson <magouyaware@gmail.com>: Aug 29 11:42PM -0600

As I said before...
 
Also, as an FYI, if you provide some code of how you are loading the
> fragments, you might get some better info on how to solve your problem.
 
You are not going to get any help without showing us some code for how you
are managing your fragments...
 
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
 
 
On Fri, Aug 29, 2014 at 1:23 AM, askl <amalskr@gmail.com> wrote:
 
Eddie <branchweb74@gmail.com>: Aug 29 06:47AM -0700

Hi,
 
I have recently included android wear support in my app but when I went to
publish it today I was made aware my earlier version would be archived. My
earlier version was targeting api 16 to include as many devices as
possible.
 
I was hoping if a user doesn't have the latest devices capable of running
my updated android wear version then they would get the earlier version I
have published.
 
What is the correct procedure to enable this to happen please?
 
Regards
Hiko <hikosaisoku@gmail.com>: Aug 29 04:21AM -0700

Hello,
 
I have been searched for this solution on the web for a half day.
but, i could not find the way to solve it.
 
I could find the way to convert FROM DSA.
but, to know for me is opposite than this.
 
could you please let me know if you find out this.
 
i appreciate that you can paste the sample code, or the website URL that
code is described.
 
 
Thank you,
 
Regards,
Hiko
Patrick <patrick.godeau@gmail.com>: Aug 29 02:31AM -0700

Hello Madison,
Thanks for the suggestion. I've already tried this project, but most of the
time, the video doesn't play and I have an error...
Still looking for a working solution.
 
Le jeudi 28 août 2014 19:16:57 UTC+2, Madison Koenig a écrit :
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 - 5 updates in 5 topics

Comments: (0)
Omkar <omkard@gmail.com>: Aug 28 10:55PM -0700

Hi All,
I am working on a App where functionality is when ever User goes out of the
app and comes back it should ask him login details, so when ever user kicks
himself out of app, by pressing home button or multi-task button or start
other app on my app, then my app should automatically logoff/logout user
and when he comes back ask for credentials.
 
To check backgrounded state of app I tried using
ActivityManager.getRecentTasks(1); and check if topactivity package is
other than my app package and if yes then I assumed app is backgrounded,
This works good till Kitkat/OS L where google has deprecated
ActivityManager.getRecentTasks method for privacy purpose.
 
Second solution we implemented was to use ComponentCallbacks2 and check
onTrimMemory(int level) for level = TRIM_MEMORY_UI_HIDDEN. This worked in
almost all cases, but one. onTrimMemory Component call back is registered
for Application class.
 
When call to Activity finish() happens onTrimMemory call back will not be
triggered. Say I have activity A and B, Activity A starts Activity B, Now I
complete some work in Activity B and call finish() on B, From time when
finish() on B is called till Activity A's onStart/onResume will be called,
in this timeframe if user press home buttom/ multitask button and goes out
of the app, onTrimMemory is not called and it is not possible to know if
app was backgrounded, because of this we can not logoff session. So if user
gets out of app in that timeframe and goes back he will get same session
back.
 
Second case we detect same behavior is, if we call finish() in activity B's
onPause() and user press home/multitask button or start other app from
notification area then because of this finish() call in onPause, we are not
getting onTrimMemory call back.
 
There should be some standard api/call back to check if app is
backgrounded, if not, apis like onTrimMemory should be consistent with
their call backs. Kindly help.
askl <amalskr@gmail.com>: Aug 28 09:45PM -0700

I've a Project Android Tab Pager with Fragments. And there're two inner
fragments in Main fragment.
 
- Home Tab (Fragment)
- Inner main fragment 1
- Inner main fragment 2
- Next Tab 1 (Fragment)
- Next Tab 2 (Fragment)
 
If i launch Inner main fragment 2 and i tap on anther next tab. when i came
back to the Home Tab, the Inner main fragment 2 is not visible and it goes
to the Home Tab automatically. Finally i fixed that issue using this code,
 
<activity
android:name=".HomeActivity"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_operation" >
</activity>
 
But the problem is, i want to set deference layout with orientation change
(portrait/landscape) for a inner fragment in the main fragment. But It's
not working and orientation listener is not working in an inner fragment.
 
Already I've created two deference XML layouts (layout-large-land and
layout-land)for a single inner fragment. But the device when rotate UI not
change. How can i solve this issue.
underthesun <ywid062@gmail.com>: Aug 28 08:59PM -0700

Is there a reason why InputMethodService's onCreateInputView() is called
twice when the user switches to landscape from portrait? Is there a way to
disable this?
 
It's causing an issue in my GLSurfaceView-based SoftKeyboard. Somehow,
GLSurfaceView does not want to render after being removed from the view
previously. Somehow onLayout and onMeasure is called, but not the rendering
code. It seems that somehow InputMethodService managed to stop the
GLSurfaceView thread, and I'll have to hack around this somehow.
 
However, this shouldn't have happened because onCreateInputView is supposed
to only be called once, as per the API description:
 
"This will be called once, when the input area is first displayed. You can
return null to have no input area; the default implementation returns
null." (from
http://developer.android.com/reference/android/inputmethodservice/InputMethodService.html#onCreateInputView()
)
 
Can anybody help me, or point me to the right direction?
 
I've been told the chances are that I'll have to delve into the source code
myself (having nightmares on that) or pray that someone from Google
replies. Is that the reality of Android development?
Andrew <andrew.dahm@gmail.com>: Aug 28 12:14PM -0700

I am a developer trying to use the alpha testing functionality on the
Developer Console.
 
 
I have added my work email to a Google Group which I then added to the
alpha testing list for the app. I invited myself, approved everything,
etc. I visited the Google Play store on my device and downloaded the alpha
version. This confirms everything is working since the alpha version is
higher than the most recently published version.
 
 
I have since then pushed several new versions to alpha testing. When I
visit the Google Play store on my Android device, the Google Play store
correctly tells me the current version of the app is the newest alpha
testing version.
 
 
However, my Android device currently has a version of the app several
versions prior to the most current version (it is still at the original
alpha testing version I downloaded), and will not download the most current
version. The Google Play store only provides me with options to uninstall
and open. Again, the Google Play store correctly shows the current version
of the app to be the newest alpha version, which is several versions higher
than the version on my device.
 
 
The same issue is happening to a couple of other users I've added to alpha
testing.
 
 
I have done the following:
 
 
- Made sure Download Manager was turned on
 
- Made sure I had enough storage
 
- Tried restarting the device
 
- Cleared the Google Play Store app's cache & data
 
- Checked for system updates
 
- Confirmed that the versionCode has been incremented
 
- Confirmed the app supports my device and version of Android
 
 
I could probably uninstall the app and reinstall the app to get the newer
version, but this is not useful for myself or my other testers. My app has
been used several years by some people. It synchronizes data with our
website, and, for these users, they would have quite a bit of data to
download again.
 
 
Nexus S
 
Android 4.1.2
 
 
Thanks for your help.
Madison Koenig <pedlar88@gmail.com>: Aug 28 10:16AM -0700

Hello Patrick,
 
You can try and use Android YouTube Player, a Open Source project for
playing YouTube videos in the native Android Media Player (VideoView). This
will give you a high quality video URL to the direct source of the video.
 
https://code.google.com/p/android-youtube-player/
 
It is however no longer maintained, but the code is functional and easily
understandable if changes need to be made.
 
-Madison
 
On Friday, August 22, 2014 7:43:45 AM UTC-5, Patrick 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 - 2 updates in 2 topics

Comments: (0)
Shaha <shamim@hasnath.net>: Aug 27 10:36PM -0700

Hi all,
 
I was trying to make a standalone c++ version of the Android Keyboard's
(LatinIME) dictionary suggestions.
I was trying this for several days but unfortunately without success.
 
I used "gingerbread" version of the native code
(https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+/gingerbread-mr4-release/native/).
Here the "count" variable always returns 0. I tried printing first 100
characters of "buffer" (in my code) and "mDict" (from dictionary.h)
after initalization, they shows different values. I'm not sure where I'm
doing wrong.
 
I have attached the ".dict" file (it works in android keyboard).
 
It would be great If someone could point me in the right direction.
 
Thanks in advance.
 
 
Here's my code:
 
#include <iostream>
#include <fstream>
#include <iterator>
#include <vector>
#include "dictionary.h"
 
using namespace latinime;
using namespace std;
 
 
static int FULL_WORD_FREQ_MULTIPLIER = 2;
static int TYPED_LETTER_MULTIPLIER = 2;
static int MAX_WORD_LENGTH = 48;
static int MAX_ALTERNATIVES = 16;
static int MAX_WORDS = 18;
 
 
static int getSuggestions(void *dict, int *inputCodes, int arraySize, char
*outputChars, int *frequencies, int maxWLen, int maxWords,
int maxAlt, int skipPos, int *nextLetterArray,
int nextLettersSize){
Dictionary *dictionary = (Dictionary*) dict;

if (dictionary == NULL) return 0;

printf("after not null\n");

int count = dictionary->getSuggestions(inputCodes, arraySize, (unsigned
short*) outputChars,
frequencies, maxWLen, maxWords,
maxAlt, skipPos, nextLetterArray,
nextLettersSize);

return count;
}
 
 
int main(int argc, const char * argv[]) {

std::ifstream file("/path/to/main.dict", ios::binary);

file.seekg(0, std::ios::end);
std::streamsize size = file.tellg();
file.seekg(0, std::ios::beg);

char *buffer = new char[size];

if (file.read(buffer, size)){
printf("\nworked\n");
}


char *output = new char[MAX_WORD_LENGTH * MAX_WORDS];

for (int i=0; i<MAX_WORD_LENGTH * MAX_WORDS; i++){
output[i] = (char)0;
}
 
// input = "hi"

int *mInputCodes = new int[MAX_WORD_LENGTH * MAX_ALTERNATIVES];
for (int i=0; i<MAX_WORD_LENGTH * MAX_ALTERNATIVES; i++){
mInputCodes[i] = -1;
}
 

int *mFrequencies = new int[MAX_WORDS];
for (int i=0; i<MAX_WORDS; i++){
mFrequencies[i] = 0;
}

for(int i=0; i<2; i++){
mInputCodes[i*MAX_ALTERNATIVES] = 72 + i;
}

Dictionary *dict = new Dictionary(buffer, TYPED_LETTER_MULTIPLIER,
FULL_WORD_FREQ_MULTIPLIER);

int count = getSuggestions(&dict, mInputCodes, 2, output,
mFrequencies, MAX_WORD_LENGTH,
MAX_WORDS, MAX_ALTERNATIVES, -1, NULL, 0);


return 0;
}
Seshu <s.seshu143@gmail.com>: Aug 27 11:40AM -0700

Hi All,
I am cropping my image which is selected from my gallery or captured from
my device is getting exception and i am using moto g as well as moto e i.e.,
 
!!! FAILED BINDER TRANSACTION !!!
Exception in new application when starting activity
net.londatiga.android/.MainActivity
android.os.TransactionTooLargeException
at android.os.BinderProxy.transact(Native Method)
at
android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:758)
at
com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1007)
at
com.android.server.am.ActivityStackSupervisor.attachApplicationLocked(ActivityStackSupervisor.java:412)
at
com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:5104)
at
com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:5178)
at
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:405)
at
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2140)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
Force removing ActivityRecord{42d72cf0 u0
net.londatiga.android/.MainActivity t470}: app died, no saved state
Calling a method in the system process without a qualified user:
android.app.ContextImpl.sendBroadcast:1252
android.content.ContextWrapper.sendBroadcast:365
com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76
com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53
com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114
 
if any body knows then please let me know.
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 - 4 updates in 4 topics

Comments: (0)
igor ganapolsky <eazyigz@gmail.com>: Aug 26 07:49AM -0700

But process.exitValue() doesn't actually destroy the process.
 
On Thursday, July 5, 2012 4:43:36 PM UTC-4, elliotn wrote:
Mukesh Srivastav <mukichamps@gmail.com>: Aug 26 06:14PM +0530

Hello Patrick,
 
Sorry on late reply... last couple of years back i was working on the same
and able to play the Youtube video without using API's.
 
here is the thing.
 
First convert the Youtube video with the RTSP url and with the Android
build in player you can play it.
 
Yes,i agree the video quality is poor, but we can check that.
 
 
 
--
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.
jb <janburse@fastmail.fm>: Aug 26 02:05AM -0700

Dear All,
 
I am testing some code on a sony xperia z2 tablet. I am having
some problems with the sony software keyboard. Its not calling
onEditorAction().
 
I don't think its a problem with my code. Since when I switch the
keyboard, to for example the hackers keyboard app, my code
receives onEditorAction() calls.
 
What the sony software keyboad does is the following: When pressing
enter, it just inserts the newline in the multi-line text field of my app.
But it does not invoke onEditorAction().
 
Is there some special trick to instruct the sony xperia software
keyboard to call onEditorAction()? Some hidden ime options?
Or some other route like an InputChannel?
 
Best Regards
 
P.S.: For onKey the android doc says: "Do not assume a software
input method has to be key-based; .. there is no way to reliably
catch soft input key presses." Is there a similar no guarantee
for editor actions?
Jan Burse <janburse@fastmail.fm>: Aug 26 10:58AM +0200

Dear All,
 
I am testing some code on a sony xperia z2 tablet. I am having some
problems with the sony software keyboard. Its not calling onEditorAction().
 
I don't think its a problem with my code. Since when I switch the
keyboard, to for example the hackers keyboard app, my code receives
onEditorAction() calls.
 
What the sony software keyboad does is the following: When pressing
enter, it just inserts the newline in the multi-line text field of my
app. But it does not invoke onEditorAction().
 
Is there some special trick to instruct the sony xperia software
keyboard to call onEditorAction()? Some hidden ime options? Or some
other route like an InputChannel?
 
Best Regards
 
P.S.: For onKey the android doc says: "Do not assume a software input
method has to be key-based; .. there is no way to reliably catch soft
input key presses." Is there a similar no guarantee for editor actions?
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 - 6 updates in 4 topics

Comments: (0)
Nathan <nathan.d.mellor@gmail.com>: Aug 25 04:51PM -0700

Can anyone confirm whether Mobile and Wear apps find each other based on
their package name?
 
It seems that one to many or many to one relationships are impossible.
 
Nathan
 
On Friday, August 22, 2014 12:24:10 PM UTC-7, Nathan wrote:
luca <luca.frammolini@gmail.com>: Aug 25 10:52AM -0700

I am totally new to in app billing. Reading the android documentation, it
seems that using a remote server to make signature verification is the best
thing to do:
 
> Implementing the verification process on a server makes it difficult
> for attackers to break the verification process by reverse engineering
> your .apk file.
 
Anyway, suppose that a feature, bundled with the app but locked, can be
unlocked via iab.
Why using a remote server makes iab more secure, in this case? If someone,
by reverse engineering, modify the apk and republish it on the internet
with
all the checks to the server fixed, having a remote server will not help.
On the other hand, if the purchased content is uploaded by the remote
server,
it does.
luca <luca.frammolini@gmail.com>: Aug 25 10:54AM -0700

I am totally new to in app billing. Reading the android documentation, it
seems that using a remote server to make signature verification is the best
thing to do:
 
> Implementing the verification process on a server makes it difficult
> for attackers to break the verification process by reverse engineering
> your .apk file.
 
Anyway, suppose that a feature, bundled with the app but locked, can be
unlocked via iab.
Why using a remote server makes iab more secure, in this case? If someone,
by reverse engineering, modify the apk and republish it on the internet
with
all the checks to the server fixed, having a remote server will not help.
On the other hand, if the purchased content is uploaded by the remote
server,
it does.
Patrick <patrick.godeau@gmail.com>: Aug 25 03:22AM -0700

Since Google owns both Youtube and Android, I can't believe it's so
difficult to put a Youtube video in an Android app...
Mukesh Srivastav <mukichamps@gmail.com>: Aug 25 05:21PM +0530

Hello Patrick,
 
There are two ways to acheive this.
 
first using the google Android Youtube Api.
 
https://developers.google.com/youtube/android/player/
 
or
 
if you are good in rtsp protocol then you can stream the videos of the
youtube.
 
 
 
 
 
 
--
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.
Patrick <patrick.godeau@gmail.com>: Aug 25 05:40AM -0700

Hello Mukesh,
As I stated in my first post, I cannot use the Youtube API, because it
requires the Youtube app installed, and I want to distribute my app on
platforms where it's not installed (Amazon, Blackberry...).
I've found how to stream from Youtube in RTSP, but the video quality is
very bad, unless I missed something.
The solution with WebView is almost working, except on Android 2.x as I
explained.
So I still need a solution that works in all cases.
Thanks,
Patrick
 
Le lundi 25 août 2014 14:01:40 UTC+2, Mukesh Srivastav a écrit :
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 - 1 update in 1 topic

Comments: (0)
Terry <terboel@gmail.com>: Aug 24 01:16AM -0700

According to Google's new Policy Guidelines & Practices regarding Spyware &
Phishing (see
https://support.google.com/googleplay/android-developer/answer/4450973),
apps are forbidden (and will be removed) if they
 
a) collect information (such as location or behaviour) without the user's
knowledge or permission
 
b) are presented to users as spying or secret surveillance solution (but
what about those which are presented as something else, but have the same
features, which can still be used for spying purposes?)
 
c) track a user, and hide this functionality, e.g. by using an icon which
does NOT clearly identify the app, or which does NOT show a full-time
persistent notification
 
d) are not allowed used in countries for which there are targeted.
 
As far as I understand, only section d) should cause all secret (video and
audio) recording apps to be removed (as audio recording is illegal in many
countries and states).
 
And all apps that send the GPS location, etc from a device – in particular
if its icon does not clearly indicate its intention – or if it does not
show a clear notification – should be removed. That covers most "Family
Location" and "Anti Theft" apps.
 
As it seems that there still are thousands of apps on the Play store that
violate these provisions – even apps that have been downloaded more than a
million times - should we take these policies seriously, or are they just
used by Google when they decide to remove an app they don't "like"?
 
Any comments? What should we take seriously?
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 - 1 update in 1 topic

Comments: (0)
Satya Komatineni <satya.komatineni@gmail.com>: Aug 23 11:13AM -0400

I have gone through StackOverflow etc.
 
I ran into the Beryl library etc.
 
Do you know if Beryl library is still active on google code?
 
Does anyone have strong recommendations on this subject
 
Appreciate your thoughts
Satya
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 - 5 updates in 5 topics

Comments: (0)
Nathan <nathan.d.mellor@gmail.com>: Aug 22 12:24PM -0700

Just barely looking at the communication protocols for Android Wear and
needed to clarify something before I go too far down the road.
 
Is the communication only intended between a mobile app and its
corresponding Wear app?
 
Or could there be a one to many or many to one relationship?
 
Looking at the documentation, I don't see the part where you specify which
app you are talking to.
 
I think it is unlikely that every wear app gets every message from every
mobile app, or vice versa.
 
So I would assume that a wearables apk must be installed from inside the
mobile app sdk to be paired with it
 
and there is no chance, say, for the free and paid version of an app to
both communicate with the same wearable app.
 
In any case, what is the mechanism by which the apps know who their peer
app is? Is it by using the exact same package name or by some other
mechanism?
 
Nathan
Nathan <nathan.d.mellor@gmail.com>: Aug 22 11:55AM -0700

I'm new to Android Studio and Gradle projects. I don't know what all the
files mean.
 
Is there a concise guide for which files/foldes should *not* be in source
control (ie SVN or Git)?
Or even better, some SVN or Git ignore or other settings which enforce
that.
 
A contractor just put a project into SVN for me, put too much there, and
frankly, it's a disaster.
 
I would like him to fix it, but would like to give him good guidance.
 
Nathan
Patrick <patrick.godeau@gmail.com>: Aug 22 05:43AM -0700

Hello,
I'm trying to play a Youtube video embedded in my app layout.
I thought it would be easy, but apparently it's not (for me).
I tried with VideoView and a RTSP link but the quality is too bad.
I also tried with a WebView but it doesn't work on some Android versions.
I'd like to support Android 2.x if possible.
On Android 2.3, I have player buttons but the video does not start.
On Android 2.1, when I tap the play button, I have a message "An error
occurred, please try again later."
I also want to support platforms without the Youtube app (like Amazon,
Blackberry...) so the Youtube Android Player API is not an option for me.
Please help... Thanks in advance!
 
Here is my code:
 
public class YoutubeActivity extends Activity {
private WebView webView;
public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
webView = new WebView (this);
setContentView (webView);
webView.getSettings ().setJavaScriptEnabled (true);
webView.setWebChromeClient (new WebChromeClient ());
webView.setWebViewClient (new WebViewClient () {
public boolean shouldOverrideUrlLoading (WebView view, String url) {
view.loadUrl (url);
return true;
}
});
if (Build.VERSION.SDK_INT < 8) {
webView.getSettings ().setPluginsEnabled (true);
}
else {
webView.getSettings ().setPluginState (PluginState.ON);
}
webView.loadUrl ("http://youtube.com/embed/sNUNB6CMnE8?rel=0");
}
protected void onPause () {
super.onPause ();
webView.loadUrl ("about:blank");
}
}
"Ralph Bergmann | the4thFloor.eu" <ralph@the4thfloor.eu>: Aug 22 11:51AM +0200

Am 21.08.14 um 19:14 schrieb Rahul Raja:
> Hey
> Is there a good app or method by which i can make a screencast for one of my
> Android application?
 
http://developer.android.com/tools/help/adb.html#screenrecord
luca <luca.frammolini@gmail.com>: Aug 22 02:26AM -0700

Hi,
 
offline advertising is worthless from the viewpoint of earning something
for obvious reasons, but one could always show
a banner or something similar to an interstitial of some other app he/she
owns, even if they become non-clickable.
The reason to do that is that, even if there is no internet connection, the
user experience will continue to be the same
as when there is an internet connection. If the model of business of an app
is free+ad and paid-ad (that is, there is the
free version which shows ads and there is a paid version free of ads and
possibly with some other features), the free
version should always presents some type of "ad interruption". Otherwise
the user could always go offline to use
the app without the annoying ads (*annoying for the user but vital for the
developer*).
 
Could this practice be a problem for google?
What do you think?
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 - 4 updates in 3 topics

Comments: (0)
Steve Gabrilowitz <steveg1701@gmail.com>: Aug 21 01:58PM -0400

I have a couple of projects that use the same library project all set up
nicely in Eclipse. Now I import the library project into Android Studio
and then import the projects that use it, but each time the import process
created a COPY of the library which is not what I want. What file(s) do I
have to edit in order to get the application projects to use the original
library project instead of a copy?
Rahul Raja <rahul.110392@gmail.com>: Aug 21 10:14AM -0700

Hey
Is there a good app or method by which i can make a screencast for one of my
Android application?
I googled but only found some paid apps which also requires the phone to be
rooted. I dont know whether they will work even after purchasing their pro
version.
 
https://play.google.com/store/apps/details?id=com.iwobanas.screenrecorder.pro&hl=en
 
This crashes on starting.
Mihai Badea <rumburake@gmail.com>: Aug 21 03:37AM -0700

Thank you. But I was looking for a solution to work on 3.1 - 4.4 (Where
Ethernet is).
At the moment 100% of the users of my app are on 2.3 - 4.4 and I got a few
"1 star" for lacking Ethernet support.
I don't foresee many people switching to Android L soon to use this API :-)
 
On Friday, August 15, 2014 2:16:49 AM UTC+1, Robert Greenwalt wrote:
"Sérgio Faria" <sergio91pt@gmail.com>: Aug 21 01:09PM +0100

If you're willing to go the JNI route, here are some pointers:
 
http://man7.org/linux/man-pages/man3/getifaddrs.3.html
https://github.com/kmackay/android-ifaddrs
https://stackoverflow.com/questions/4951257/using-c-code-to-get-same-info-as-ifconfig
 
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.