[android-developers] Re: Wii Balance Board and Android (already paired) - how to get Data

2016-03-02 Thread gjs
Hi,

Just search a bit and you'll 
find https://play.google.com/store/apps/details?id=eu.paulburton.fitscales 
and https://github.com/paulburton/fitscales

Regards

On Wednesday, March 2, 2016 at 8:26:26 PM UTC+11, Dirk Bellstaedt wrote:
>
> Hello,
>  i want to use Wii Balance Board with my Android Device, i already paired 
> it with my Device ( rooted Custom Rom, but i don't know how, it just worked 
> ;) ),
>  but now i don't know how to grab the RawData of the InputDevice? Is there 
> any way to get it?
> Best Regards
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/740e842b-c4be-4875-aab9-d508bf81ead1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Voice Search within Activity

2016-03-02 Thread J Decker
so the TV can be hacked and turn on the mic to spy? :)
can you do a user action with a remote?

On Wed, Mar 2, 2016 at 11:27 PM, gabon  wrote:
> I am working on an app for Android TV. Is it possible to detect the mic
> input (Voice Search) and process it within the activity? I can see there is
> RecognizerIntent.ACTION_RECOGNIZE_SPEECH but this needs to be triggered on
> user input.
> I would like the trigger to be instead the Android TV Mic.
>
> Thanks, chr
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/49ea7f49-5dc5-46c5-b8a1-8aace2668640%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAA2GJqUDBLEa4ofdZo2pq7SwmOmonZ3CeZB9%3DpUe0%2BzL-cixcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Voice Search within Activity

2016-03-02 Thread gabon
I am working on an app for Android TV. Is it possible to detect the mic 
input (Voice Search) and process it within the activity? I can see there 
is RecognizerIntent.ACTION_RECOGNIZE_SPEECH but this needs to be triggered 
on user input.
I would like the trigger to be instead the Android TV Mic.

Thanks, chr

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/49ea7f49-5dc5-46c5-b8a1-8aace2668640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: GPS Issue with Android Marshmallow

2016-03-02 Thread gjs
Hi,

re : Could you check this app (http://app.trekken.com.br) to see if it 
works? It should start automatically and record your trip while you are 
driving. 

No sorry, I actually develop my own GPS related app(s) and one of these 
already provides the same / similar functionality & is working ok with 
Android 6 on various devices. (On the Play store it already say - Attention: 
Trekken is not fully supported by the Android 6.0 / Marshmallow.)

re: ...Until Android 6, FusedLocation worked pretty good, giving low 
accuracy and speed.

Personally I think FusedLocation sux so I won't use it. My opinion about 
this was hardened when using the Google PIxel C tablet which actually 
'tricks' app's into thinking it has support for 'High Accuracy' Location 
but in fact this device has no GPS receiver at all (WTF it lies!!!) For the 
Pixel C (my app) will connect to & use an external Bluetooth GPS receiver 
instead...

re: Regarding the NMEA 0183, I read over the Internet that some 
manufactures define its own codes. Is it a problem with android? Would you 
have to take into account different manufactures codes to parse NMEA 
sentences ?

No it is not a problem you just use the few (standard) NMEA sentences such 
$GPRMC, $GPGGA, $GPGSA, $GPGSV (&/or their $GN equivalents) to extract the 
relevant location details (and convert accordingly) and usually just ignore 
any others NMEA sentences that might be specific to particular GPS receiver 
chips. There used to be some older Android devices that did not return any 
data via the NMEA listener interface - 
http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
 but 
most seem to these day, well except for the Pixel C tablet.

re: I'm sorry, I meant "high accuracy and speed values (getSpeed returning 
values different than 0)" in my previous email.

ok

Regards

On Wednesday, March 2, 2016 at 8:16:35 AM UTC+11, Rodrigo Saad wrote:
>
> Hello Gary,
>
> Thank you for your reply. 
>
>>
>> I checked https://code.google.com/p/android/issues/detail?id=190376 and 
>> also tested with Nexus 5 running Android V6.0.1 (that's the device most 
>> mentioned in the ticket) and GPS is working ok for me on the Nexus 5. GPS 
>> is also working ok for me with Android V6 on Nexus 5X, 6, 6P, 7 & 9. 
>>
>
> Could you check this app (http://app.trekken.com.br) to see if it works? 
> It should start automatically and record your trip while you are driving. 
>
>
>> However I don't use the Location API class much and where possible prefer 
>> to use the lower level NMEA listener interface - 
>> http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
>>
>
> I believe you are right, it is a FusedLocationApi bug related. I will make 
> some tests with the GPS_Provider to check it out. Until Android 6, 
> FusedLocation worked pretty good, giving low accuracy and speed.  The app I 
> mentioned before uses FusedLocation and it is not working anymore. 
>
>
>> You could use the NMEA listener interface as a temporary work around and 
>> create your own Location objects from the lower level NMEA data (this works 
>> fine, I also do this when using external Bluetooth GPS receivers with 
>> Android devices - converting GPS NMEA data back into Location objects, you 
>> just need to do the relevant data conversions between the different 
>> measurement units...)
>>
>
> Regarding the NMEA 0183, I read over the Internet that some manufactures 
> define its own codes. Is it a problem with android? Would you have to take 
> into account different manufactures codes to parse NMEA sentences ? 
>  
> Cheers,
>
> Rodrigo
>
>
>> Regards
>>
>>
>>
>> On Tuesday, March 1, 2016 at 1:39:35 AM UTC+11, Rodrigo Saad wrote:
>>>
>>> Hello,
>>>
>>> We are experiencing problems with GPS in almost all smartphones (Nexus, 
>>> Mogo-G 2nd, Moto-G 3nd, Moto-X) with Android 6 (Marshmallow). In our case, 
>>> it does not acquire a good accuracy and, consequently, it does not return 
>>> the speed anymore (location.getSpeed). There is an open ticket but without 
>>> any update from google since last December (
>>> https://code.google.com/p/android/issues/detail?id=190376). 
>>>
>>> Anyone else having the same problem? Any advice to solve it, at least 
>>> temporarily? 
>>>
>>> Cheers,
>>>
>>> Rodrigo Saad
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/android-developers/2He1mUMH6lc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> android-developers+unsubscr...@googlegroups.com .
>> To post to this group, send email to android-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> 

[android-developers] [Android TV]How to capture SSL traffic on emulator

2016-03-02 Thread m.s
I want to capture SSL traffic in the following rules.
Could you tell me how to do it?

1. Android Studio
2. Android TV project
3. Emulator created by AVD Manager
4. Fidder or Burp

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1c41ddf4-1bfd-4303-88c7-2a3aab3bec2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Google Maps Android GPS App

2016-03-02 Thread Simon Leen
Hi gjs, Thanks for the reply but without trying to sound rude that doesn't 
really help much in answering my question.
I've been looking up way points, the Directions API and more but the 
problem is I can't anything that will get me on the right track.
Regards 

On Thursday, March 3, 2016 at 6:40:30 AM UTC, gjs wrote:
>
> Hi
>
> You can probably do this by also using the various maps API eg
>
> https://developers.google.com/maps/documentation/directions/intro#Waypoints
>
> Regards
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/79d4d5a6-f2fd-4244-b192-b1804b66ce6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Image adquisicion app

2016-03-02 Thread gjs
Read http://developer.android.com/training/camera/cameradirect.html

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b83c3209-ba44-4081-af2e-f8fc82c177f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google Maps Android GPS App

2016-03-02 Thread gjs
Hi

You can probably do this by also using the various maps API eg

https://developers.google.com/maps/documentation/directions/intro#Waypoints

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/512efecb-d387-4b28-b37a-efde1ee3a13a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Why Drive Quick start sample always showing Authenticate

2016-03-02 Thread Villonava Anand


down votefavorite 


I am new to Android, Now i need to integrate my app with Google Drive i 
have search google a lot, i have got Drive quick start sample from git hub (
https://github.com/googledrive/android-quickstart) but while i am running 
it is always showing Mail authentication Dialog. please help me.

And also i have tried Quick start guide but i have failed in that also 
always showing 400 error or 403 error

Thanks in Advance

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5b70e94b-4077-45d0-b9d5-10e02a46df70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] onCharacteristicRead in Bluetooth Low energy Return null

2016-03-02 Thread Rakesh Jiyani
 Hello,

  We are facing one issue when reading characteristics from remote BLE 
device.

  This issue happen in Android OS 5.0 and above.

  Points are below to generate issue :

  1> Make one peripheral device with one service and one characteristics.
  2> Characteristics will have only read permission. Now set the value of 
this characteristics with more than 20 characters i.e. 20 bytes.
  3> Now let peripheral device broadcast itself with one service and one 
characteristics.
  4> Now launch any BLE scanner app from market  and connect with this 
peripheral device.
  5> Once successfully connected with peripheral device just try to read 
characteristics. 
  6> In this case it will not show any data and when debugging the app it 
show that it returns null data.
  7> The above same case not working in the Android OS 5.0 and above. 
  8> Same case working in android 4.4.
  
 So there is something change in Android OS 5.0 and above that internally 
disable readblob() request that can read data having more that 20 
characters.

   We are seeking some help to solve this issue.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f1f51d52-5c2d-4827-94c0-f1cd905e89f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android VirtualDisplay.release() not releasing the display

2016-03-02 Thread Abbas Ali
I'm using android MediaProjection for taking screenshot. The projection 
needs to be stopped after taking screenshot and virtual display should be 
released but VirtualDisplay.release() is not releasing the display. Here is 
the code to create display.

startActivityForResult(mProjectionManager.createScreenCaptureIntent(), 
REQUEST_CODE);
@Overrideprotected void onActivityResult(int requestCode, int resultCode, 
Intent data) {
if (requestCode == REQUEST_CODE) {

sMediaProjection = mProjectionManager.getMediaProjection(resultCode, 
data);

// display metrics
DisplayMetrics metrics = getResources().getDisplayMetrics();
mDensity = metrics.densityDpi;
mDisplay = getWindowManager().getDefaultDisplay();
Point size = new Point();
mDisplay.getSize(size);
mWidth = size.x;
mHeight = size.y;

// register media projection stop callback
sMediaProjection.registerCallback(new MediaProjectionStopCallback(), 
mHandler);

// register orientation change callback
mOrientationChangeCallback = new OrientationChangeCallback(this);
if (mOrientationChangeCallback.canDetectOrientation()) {
mOrientationChangeCallback.enable();
}


// start capture reader
mImageReader = ImageReader.newInstance(mWidth, mHeight, 
PixelFormat.RGBA_, 1);
mVirtualDisplay = sMediaProjection.createVirtualDisplay(SCREENCAP_NAME, 
mWidth, mHeight, mDensity, VIRTUAL_DISPLAY_FLAGS, mImageReader.getSurface(), 
null, mHandler);
mImageReader.setOnImageAvailableListener(new ImageAvailableListener(), 
mHandler);
}}

To stop the projection, I call sMediaProjection.stop(); and here is my 
MediaProjectionStopCallback implementation.

private class MediaProjectionStopCallback extends MediaProjection.Callback {
@Override
public void onStop() {
Log.e("ScreenCapture", "stopping projection.");
mHandler.post(new Runnable() {
@Override
public void run() {
if (mVirtualDisplay != null) {
mVirtualDisplay.release();
Log.e("Virtual Display", "Released");
}
if (mImageReader != null)
mImageReader.setOnImageAvailableListener(null, null);
if (mOrientationChangeCallback != null)
mOrientationChangeCallback.disable();

sMediaProjection.unregisterCallback(MediaProjectionStopCallback.this);

DisplayManager disp = (DisplayManager) 
getSystemService(DISPLAY_SERVICE);
Display[] allDisplays = 
disp.getDisplays(DisplayManager.DISPLAY_CATEGORY_PRESENTATION);
Log.e(TAG + "-Display", "Display Count  " + allDisplays.length);
for (Display dl : allDisplays) {
Log.e(TAG + "-Display", "Display name: " + dl.getName() + " 
Display id: " + dl.getDisplayId());
}
}
});

//Toast.makeText(getApplicationContext(), "Projection Stopped", 
Toast.LENGTH_SHORT).show();
}}

This is the logcat.

03-02 14:52:55.9258264-8732/codistan.pk.squeeze_me E/ScreenCapture﹕ 
stopping projection.03-02 14:52:55.9258264-8732/codistan.pk.squeeze_me 
E/Virtual Display﹕ Released03-02 14:52:55.925
8264-8732/codistan.pk.squeeze_me 
E/codistan.pk.squeeze_me.ScreenCaptureActivity-Display﹕ Display Count  103-02 
14:52:55.9358264-8732/codistan.pk.squeeze_me 
E/codistan.pk.squeeze_me.ScreenCaptureActivity-Display﹕ Display name: screencap 
Display id: 1

I have double checked, the above onStop method is properly called as can be 
seen in the logcat. After releasing the display in onStop when I check the 
available displays, the virtual display is still listed as an available 
display. It affects the phone display and graphics and I can't play any 
video and the issue remains even after uninstalling the app untill I 
restart the phone. I have checked this link Android virtual display release 
does not remove display 
,
 
posted this on stackoverflow Android VirtualDisplay.release() not releasing 
the display 

 and 
searched a lot but found nothing helpful. Your help is highly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 

[android-developers] App already published onto Google Play but unable to use Google Voice Actions

2016-03-02 Thread jackson95
I am unable to successfully use the Google System Voice Actions "Search in 
App" (com.google.android.gms.actions.SEARCH_ACTION) on an app that I have 
already published onto Google Play (Private Channel) and downloaded onto my 
phone.

The intent with the query extra from the search action is to be passed on 
to MainActivity after matching the intent filter.

Before publishing the app, I have already tested the app using the adb 
command below which works perfectly:

adb shell am start -a "com.google.android.gms.actions.SEARCH_ACTION" --es 
query "[query]" -n "com.testapp/.MainActivity"

Below is my Android manifest which contains the intent filters:

http://schemas.android.com/apk/res/android;
package="com.testapp" >
















































Are my intent filters required for Google Voice Actions set up correctly, 
and if so, why did using Google App to search for keywords within my app 
not work?

Or are there any other considerations such as (some personal guesses only): 
time needed for Google App to "cache/process" app contents/intent filters 
etc., the app name and search keywords not being "unique" enough, or the 
fact that the app being distributed onto a Private Channel instead?

Hoping for anyone who has successfully implemented Google Voice Actions 
before to share and provide some input.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fc69c628-adbe-44d4-ac93-bed385107f57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: ImageView not showing

2016-03-02 Thread Elijah Smith
I don't have that as an option. I want to store that layout in a variable,
and the only R.id thing I could use is R.id.class. There is no option for
R.id.activity_menu_on_loadup.

What should I do instead?

On Wed, Mar 2, 2016 at 10:02 AM, Justin Anderson 
wrote:

> "RelativeLayout layout = (RelativeLayout) this.findViewById(R.layout.
> activity_menu_on_loadup);"
>
> findViewById requires an id resource... not a layout resource.  That means
> what you pass in to findViewById should look like this: R.id.my_view_id
>
> On Tue, Mar 1, 2016 at 8:05 PM Elijah Smith <
> elijah.matthew.sm...@gmail.com> wrote:
>
>> I added the imageview to the layout, but accessing the layout has an
>> underline in Intellij. It says: "Expected resource of the type int". I
>> don't call this an error because it doesn't seem to actually be causing
>> one, but I am confused as to what it wants me to do.
>>
>> RelativeLayout layout = (RelativeLayout) 
>> this.findViewById(R.layout.activity_menu_on_loadup);
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/3e9b6bae-f57c-471f-a7aa-14a69274fa3a%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/Rm8qQI40t0g/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CAOq06s9Q7jUiFBZT7UPXAAt8idd4C0TUqYS_F-naApgeDg6DrQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAMrVo49gN9uBH7mdWnA2omtbmUHR-5jFvYpdh97-dwKY%3DfXq5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google Maps Android GPS App

2016-03-02 Thread Simon Leen
I am working on an Android Running App and currently trying to implement a 
user chosen distance route. 
I have been looking with a few weeks and cant seem to find anything that 
can help. 
I have user location and updates working but the problem is I don't want to 
set a defined destination. 
I would like to be able to input a chosen distance be it 5 km and have a 
route/multiple routes displayed with the destination being the end of the 
distance.
Any help would be greatly appreciated.
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/20a09ef4-d72f-48d7-8811-8b4d9db0eb4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to get Push Notification from Facebook Page-Feed

2016-03-02 Thread TreKing
On Sat, Feb 27, 2016 at 6:25 AM, Mark van Limburg  wrote:

> I have noticed that i am supposed to work with a callback url so that
> Facebook updates the url with their latest data.
> But that does not explain to me how i can get a push notification to the
> application and updates the user that a new post has been made and then
> shows into the "Page Feed" activity.
>

1 - Create a server
2 - Configure Google Cloud Messaging
3 - Set up your server to detect updates to the feed by whatever mechanism
Facebook provides
4 - Send a push notification to registered clients from your server


> Is there anyone who can guide me in the right direction?
>

http://developer.android.com/distribute/engage/gcm.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScggJPdvtVpdX08RJ1%3DFh5pz2B-%3DtkeDGOJ_J7jm9cFgTvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Can i place AdMob in APK?

2016-03-02 Thread TreKing
On Fri, Feb 26, 2016 at 6:58 PM, vgn  wrote:

> Hi! i have APK without ads, and i want to put Admob ads... what i can do?
> i *cant *edit this APK from inside...
>

If you can't edit this APK, it implies you don't own it, which begs the
question of why you want to add ads to it ... ?


> Can i put ads "above"? from outside?
>

No.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgiJSzWyD_GgVv8oCHwFud6uPP%2BT5tfe-FeV9Xg2LVQ9Zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Developing events application on android with user functionality(urgent)

2016-03-02 Thread TreKing
On Sat, Feb 27, 2016 at 8:45 AM, choy edmund  wrote:

> I have basically create a interface on register,login, edit profile and
> logout interface using android studio but I do not know how to relates the
> codes for each interface using a user class and specify a admin and user
> role in java. The other problem I encounter is I do not know how to send
> data to the list view and apply the basic concept of create, retrieve,
> update and delete the events. Selecting only the events being created by a
> specific user to view others event but they can apply the basic crud
> concept on their own events.
>

http://developer.android.com/training/index.html


> Please do reply as soon as possible as I have to finish this assignment by
> tmr night.
>

We're not here to do your freaking homework for you.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgiFt8X8wXLoU4Wxe_hfp98%3DBVJGT25m6AU%3DpDU5Fj2__g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Archiving / Deleting an Ad

2016-03-02 Thread TreKing
On Wed, Mar 2, 2016 at 1:45 PM, Kidus Elias  wrote:

> What will happen if I archived the ad unit via admob? Will the ad in my
> app disappear?


This sounds like a question for the AdMob group / forum / support / help
line.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgjDObpGmZSLL5Y-CQ%2BuTaPnWpOGKN6F71h8grmduB-7bQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android assets download at runtime

2016-03-02 Thread TreKing
On Wed, Mar 2, 2016 at 2:23 PM, varun naganathan <
varunnaganathan...@gmail.com> wrote:

> Could someone suggest a way to do this?
>

http://developer.android.com/google/play/expansion-files.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgg9M3m3WeUeKPqKzjw6gf7vQ-O5%3DMxY4O0y6U312qUUZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google Play Game Service : Multiplayer App Testing

2016-03-02 Thread Patinya Petcharit
I'm making a Multiplayer game using Google Play Game Service for 
connection. I'm at the point where I need to test connection between 
devices and it seem like I need a different account for each device.

I tried create new Google Account, but Google force me to verify account 
with a phone number that had not been used to verify another account. I 
only have one phone number.

The question is: How developer test their apps in this situation ? Do they 
have multiple phone number just for verify account ? (need to afford 
multiple phone bills just to keep it active ?)

Thank You

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/281f959f-ceb3-4871-904e-c811b141b02c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android assets download at runtime

2016-03-02 Thread varun naganathan
Hi,
So basically i want to reduce the size of an apk , by shipping a reduced 
version of the apk and then downloading the app assets like 
fonts,dictionaries at runtime when the application requires it.
Could someone suggest a way to do this?
Is an ASync task the way to proceed?
Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b3b7efe9-084f-4346-949a-32672cbe7b49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: in-app biliing purchase flow with promo code return empty payload, why?

2016-03-02 Thread Henrik Lindqvist
I've tried to get an answer to the same problem:
http://stackoverflow.com/questions/35381104/promo-codes-breaks-remote-server-verification


On Wednesday, February 10, 2016 at 9:39:04 PM UTC+1, Frédéric Ravetier 
wrote:
>
> Hi, 
>
> I code in ap billing in my application. Everything works fine except when 
> I use a promo code in the app. Google returns an empty payload, even if I 
> send an ID. Then when I chick if the ID is equal to payload I reject the 
> transaction.
>
> Why ? 
>
> Thank you for your help!
>
> Regards,
> Fred
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/bcf6336a-9060-4b18-b755-45e88f03875a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Advice - news app

2016-03-02 Thread TreKing
On Sat, Feb 27, 2016 at 12:38 PM, Adrian Ivasku 
wrote:

> I am trying to make a news app that would read news from a particular web
> page... I have done this with Jsoup library but it is very slow... on a
> fast phone with good internet connection it takes for 3-6 seconds to load a
> page... and I have optimized the code that gets the Document object from a
> page...
>

1 - Identify the bottleneck. JSoup has convenience methods for getting a
resource off the network and parsing in one go. What if you do them
separately? What's the slowest point there? The parsing or network fetch?

2 - Use Volley to fetch the data and compare that to the time it take JSOUP
to fetch the data (excluding the parsing). Which is faster?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgh67SzZAExc2e_Qg%2BVUy8sqh_i2dEW4ww83DhWYzqA84A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Archiving / Deleting an Ad

2016-03-02 Thread Kidus Elias
I don't want any my ad to show in my app. My first attempt was to update 
the entire app do remove the ads, butfor I was unable to update the app 
since I lost the private key used to sign that build :( Is there anyway to 
disable my ad showing via admob? 

What will happen if I archived the ad unit via admob? Will the ad in my app 
disappear? 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/336a27d5-5085-4791-945b-2ff9ab4804fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] android cordova (hybrid) push notification badge count

2016-03-02 Thread TreKing
On Sat, Feb 27, 2016 at 11:16 PM, yeo yong Lau  wrote:

> i am using hybrid development not native.
>

Good luck with that.


> do you know how to increase the badge count on the app icon?
>

No, mainly because I don't know what "increase the badge count on the app
icon" means. Badging icons is an iOS concept and not something normally
done on Android. I'm not aware of an official method to do so, though
third-party launchers seem to support such functionality.


> and use cordova build android application development before?
>

I have not used cordova, no.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgihs5qONqd7J6oi4AdNSj9AX%3D8ZxaCkcVyKm5m6mT40-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Weight ingored when i append text in text view

2016-03-02 Thread Данила Горшков
 The android studio shows it.

>
> 
>
But on my phone i got this



I used android:weightSum and android:layout_weight in linear layout to make 
height it constant, but it takes too much space

(Sorry for my bad english)
 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1ffd4a0f-8ffc-4c0b-8fb6-50648c715673%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Weight ingored when i append text in text view

2016-03-02 Thread Justin Anderson
We would be happy to help you out... provided you give us more
information.  Saying layout_weight isn't working properly and posting a
huge layout file is nowhere near enough information.

Maybe explain what you are expecting to happen, and what is actually
happening?  Some screenshots or other diagrams might be useful too.  From a
quick glance at your layout file, you are probably nesting layouts too much
and overcomplicating your UI.  But I'm not going to dig through your whole
layout file and try to guess what the problem is.

On Wed, Mar 2, 2016 at 12:09 PM Данила Горшков  wrote:

> here my xml:
>
> 
> http://schemas.android.com/apk/res/android;
>  xmlns:tools="http://schemas.android.com/tools;
>  android:layout_width="match_parent"
>  android:layout_height="match_parent"
>  android:paddingBottom="@dimen/activity_vertical_margin"
>  android:paddingLeft="@dimen/activity_horizontal_margin"
>  android:paddingRight="@dimen/activity_horizontal_margin"
>  android:paddingTop="@dimen/activity_vertical_margin"
>  tools:context="com.zonkgeeks.zoiduppers.zackzoid.AnalysActivity"
>  >
>
>android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="match_parent"
>  android:weightSum="2">
>
>android:orientation="horizontal"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1"
>  android:weightSum="2"
>  android:id="@+id/linearLayout"
>  android:baselineAligned="false">
>
>android:id="@+id/analys_lt"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_lt"
>  android:id="@+id/textView7"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsUI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>
>android:id="@+id/analys_rt"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_rt"
>  android:id="@+id/textView8"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsUNI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>  
>
>android:orientation="horizontal"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1"
>  android:weightSum="2"
>  android:baselineAligned="false">
>
>android:id="@+id/analys_lb"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_lb"
>  android:id="@+id/textView9"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsNUI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>
>android:id="@+id/analys_rb"
>  android:orientation="vertical"
>  android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:layout_weight="1">
>
>android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/name_column_rb"
>  android:id="@+id/textView10"
>  android:textSize="@dimen/important_text"
>  android:layout_gravity="center_horizontal" />
>
>android:layout_width="match_parent"
>  android:layout_height="wrap_content"
>  android:textAppearance="?android:attr/textAppearanceMedium"
>  android:text="@string/empty_name_event"
>  android:id="@+id/eventsNUNI"
>  android:textSize="@dimen/simple_text"
>  android:scrollbars="vertical"/>
>  
>
>  
>
>  
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.

Re: [android-developers] Every new activity creates activity_***.xml and content_***.xml

2016-03-02 Thread TreKing
On Wed, Mar 2, 2016 at 7:37 AM, joby  wrote:

> I am new to Android development.
>

Welcome.


> When I am trying to create a new activity, it always ends in 3 files.
> 1)  .java
> 2) activity_.xml
> 3) content_.xml
>
> I just wonder why it is creating two layout xml files?.
>

Because that's how the Android Studio developers chose to implement the new
activity wizard.


> By this post, what I am trying to find is...
>
> Is that the supposed way it should be created with two xml files for every
> new activity?,
> or just one activity_***.xml for the main and then separate
> content_***.xml for each additional activities?.
>

That's apparently the suggestion from the tool. What they're doing is
separating what amounts to boilerplate of the new CoordinatorLayout and
AppBarLayout with the actual layout content that is specific to your app.

An advantage to this is that the "shell" of the activity is consistent
across device screen sizes (same toolbar and FAB, for example) while the
main content can vary if you provide a different layout file for a
different screen size.

This is just one way of doing things and you are free to include your main
content directly in the main layout file or not if it makes sense for your
app.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgg-nSjo2WgJ51uJj%2BM7g4Quhajt817r9hD20-c0VTLmPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Weight ingored when i append text in text view

2016-03-02 Thread Данила Горшков
here my xml:


http://schemas.android.com/apk/res/android;
 xmlns:tools="http://schemas.android.com/tools;
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:paddingBottom="@dimen/activity_vertical_margin"
 android:paddingLeft="@dimen/activity_horizontal_margin"
 android:paddingRight="@dimen/activity_horizontal_margin"
 android:paddingTop="@dimen/activity_vertical_margin"
 tools:context="com.zonkgeeks.zoiduppers.zackzoid.AnalysActivity"
 >

 

 

 

 

 
 

 

 

 
 
 

 

 

 

 
 

 

 

 
 

 

 


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3cdb70fa-21da-427d-95ac-77ee2f620a9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] I want to create a transparent navigation drawer over the texture view where texture view will contain the live camera scene.

2016-03-02 Thread umashankar thakur
I have implemented the solution provided in this stackoverflow question 
http://stackoverflow.com/questions/16332064/how-to-create-transparent-activity-in-android
But the problem is that at a time only 1 activity was working properly out 
of main camera activity and that transparent activity.

On Wednesday, 2 March 2016 21:02:54 UTC+5:30, MagouyaWare wrote:
>
> "I have been struggling with this since last week but without any luck."
>
> What have you tried so far?
>
> On Wed, Mar 2, 2016 at 9:15 AM umashankar thakur  > wrote:
>
>> I am using texture view for showing live content of camera.
>> I need to draw that semi transparent white colored border or outline (I 
>> don't know what to call it exactly) and on top of that a navigation drawer 
>> is to be added.
>> I have been struggling with this since last week but without any luck. 
>> Any help would be kindly appreciated.
>>
>> like Layar UI.
>>
>>
>> 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> To post to this group, send email to android-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/6a67c693-6ae7-465d-b6c7-134915312bfa%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/067e45a1-6f3c-429b-baa4-5c1680476a49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to list bluetooth songs from a paired phone to infotainment system

2016-03-02 Thread Jibin Najeeb
Please help regarding the query.
Im working on an infotainment project which is operating in Android OS. The 
device is connected with a bluetooth phone.

:-Now i want to get the list of songs from the connected phone. Also i need 
to get its metadata, coverart and should be able to play a song by 
selecting an item from the list.

:-I already tried to use the BluetoothAvrcpController.java libraries. From 
this I'm able to interact with current song(play,pause,metadata retrival, 
skip track etx). But it seems impossible to get coverart and list of songs.

:-I would greatly appreciate any help from you. Really got stuck into these 
for  weeks



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3b247395-be0d-4f9e-b27d-5854c4ab64cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Make a Broadcast receiver receive broadcasts after force closing.

2016-03-02 Thread Justin Anderson
Hmm... ok, that eliminates the main thought I had as to the cause of the
problem.  Have you seen this?
http://stackoverflow.com/a/9240705/249412

On Wed, Mar 2, 2016 at 9:10 AM Narendran Anil  wrote:

> Yes. It is a separate class. Registered in the manifest. See, it work when
>>> the app is closed. But when you close the app from the Recent apps (as in
>>> there is no instance of the app running), then the broadcast receiver stops
>>> receiving broadcasts.
>>
>>
> On Wednesday, March 2, 2016 at 8:32:02 PM UTC+5:30, MagouyaWare wrote:
>
>> How are you creating your broadcast receiver?  Is it a separate class and
>> defined in the manifest? Or is it created and registered in an activity?
>>
>> On Wed, Mar 2, 2016 at 2:49 AM Narendran Anil  wrote:
>>
> Hello,
>>>
>>> I am working on an app that will show a pop up on call end. It works
>>> fine with a broadcast receiver but if the user force closes the app, the
>>> broadcast receiver stop s working (as it should) and herein lies my
>>> problem. My app's main functionality is to give the user a screen after the
>>> call ends so he can select an action he requires. This pop up appears only
>>> for certain numbers that he chooses so it is not a hassle in any way.
>>>
>>> I know that TrueCaller pop up will appear on receiving an incoming call
>>> even if the app is forced stopped. How do they achieve this? Do they use a
>>> special Broadcast Receiver?
>>> Can I make my app work by using some other method?
>>>
>>> PS - I am here because of this article (
>>> http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/)
>>> led me here.
>>>
>>> I hope you guys help me out. Thank you.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-developers+unsubscr...@googlegroups.com.
>>>
>> To post to this group, send email to android-d...@googlegroups.com.
>>
>>
>>> Visit this group at https://groups.google.com/group/android-developers.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/android-developers/14a64231-8141-48cf-a1c0-8f521eec305c%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/d820939c-1baa-45ef-b8ce-b502a43606e6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s-aZ1ezPXkLCQi9wo9_SyaObEfNyQQk6N6LAQtDBG-ySA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] I want to create a transparent navigation drawer over the texture view where texture view will contain the live camera scene.

2016-03-02 Thread Justin Anderson
"I have been struggling with this since last week but without any luck."

What have you tried so far?

On Wed, Mar 2, 2016 at 9:15 AM umashankar thakur 
wrote:

> I am using texture view for showing live content of camera.
> I need to draw that semi transparent white colored border or outline (I
> don't know what to call it exactly) and on top of that a navigation drawer
> is to be added.
> I have been struggling with this since last week but without any luck. Any
> help would be kindly appreciated.
>
> like Layar UI.
>
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/6a67c693-6ae7-465d-b6c7-134915312bfa%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s-X6jDDb5G320LFm-1YvfFp8Grpx1NRCrerndYWaxze6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Make a Broadcast receiver receive broadcasts after force closing.

2016-03-02 Thread Narendran Anil

>
> Yes. It is a separate class. Registered in the manifest. See, it work when 
>> the app is closed. But when you close the app from the Recent apps (as in 
>> there is no instance of the app running), then the broadcast receiver stops 
>> receiving broadcasts.  
>
>
On Wednesday, March 2, 2016 at 8:32:02 PM UTC+5:30, MagouyaWare wrote:
>
> How are you creating your broadcast receiver?  Is it a separate class and 
> defined in the manifest? Or is it created and registered in an activity?
>
> On Wed, Mar 2, 2016 at 2:49 AM Narendran Anil  > wrote:
>
>> Hello, 
>>
>> I am working on an app that will show a pop up on call end. It works fine 
>> with a broadcast receiver but if the user force closes the app, the 
>> broadcast receiver stop s working (as it should) and herein lies my 
>> problem. My app's main functionality is to give the user a screen after the 
>> call ends so he can select an action he requires. This pop up appears only 
>> for certain numbers that he chooses so it is not a hassle in any way. 
>>
>> I know that TrueCaller pop up will appear on receiving an incoming call 
>> even if the app is forced stopped. How do they achieve this? Do they use a 
>> special Broadcast Receiver? 
>> Can I make my app work by using some other method? 
>>
>> PS - I am here because of this article (
>> http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/)
>>  
>> led me here.
>>
>> I hope you guys help me out. Thank you.   
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> To post to this group, send email to android-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/14a64231-8141-48cf-a1c0-8f521eec305c%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d820939c-1baa-45ef-b8ce-b502a43606e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] I want to create a transparent navigation drawer over the texture view where texture view will contain the live camera scene.

2016-03-02 Thread umashankar thakur
I am using texture view for showing live content of camera.
I need to draw that semi transparent white colored border or outline (I 
don't know what to call it exactly) and on top of that a navigation drawer 
is to be added.
I have been struggling with this since last week but without any luck. Any 
help would be kindly appreciated.

like Layar UI.



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6a67c693-6ae7-465d-b6c7-134915312bfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: ImageView not showing

2016-03-02 Thread Justin Anderson
"RelativeLayout layout = (RelativeLayout) this.findViewById(R.layout.
activity_menu_on_loadup);"

findViewById requires an id resource... not a layout resource.  That means
what you pass in to findViewById should look like this: R.id.my_view_id

On Tue, Mar 1, 2016 at 8:05 PM Elijah Smith 
wrote:

> I added the imageview to the layout, but accessing the layout has an
> underline in Intellij. It says: "Expected resource of the type int". I
> don't call this an error because it doesn't seem to actually be causing
> one, but I am confused as to what it wants me to do.
>
> RelativeLayout layout = (RelativeLayout) 
> this.findViewById(R.layout.activity_menu_on_loadup);
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/3e9b6bae-f57c-471f-a7aa-14a69274fa3a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s9Q7jUiFBZT7UPXAAt8idd4C0TUqYS_F-naApgeDg6DrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Image adquisicion app

2016-03-02 Thread Justin Anderson
Try again...

On Tue, Mar 1, 2016 at 7:04 PM developer 
wrote:

> i need acquire image and have control on the flashlight to turn on or turn
> off while i see image of the camera.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/e2bf15bf-8950-4c09-8d96-bf690233d153%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s-Cg0kscxM6MAYWsEX37V31C5WeRYOm-7ARP-BvLRgLHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Notification App Android Studio

2016-03-02 Thread Justin Anderson
The difference is that Android Wear devices are always connected to a
device via bluetooth.  To do what you are wanting to do, you would need to
either establish a bluetooth connection and send data via the connection
yourself or send the data up to some web server that you maintain and then
do a push notification to your other device.

In both scenarios though, you aren't going to be able to make use of
NotificationCompat to handle the interaction between the two devices like
you do with Android Wear devices.  You're going to have to manually write
all that stuff yourself.

On Tue, Mar 1, 2016 at 9:53 PM Danielle Anderson  wrote:

> I am trying to create an application that receives text messages from my
> mobile phone and then displays them on another device such as a tablet.
> Just curious if anyone has any recommendations on where/how to start? The
> android developer site has a lot of information show how to implement this
> on a wearable device using NotificationCompat.Builder but I am not sure if
> this applies to handheld devices as well.  Any help would be appreciated!
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/a08f1174-89ca-429b-bd5e-6af865fa2ef4%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s85%3DzpOyqzq%3Dw%2BEuxQNTvrszEQRRnmjFXKSLgjb0QN-Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] One big json call or multiple per activity calls for json?

2016-03-02 Thread Justin Anderson
I think the best practice depends on the requirements for the app and there
isn't a globally acceptable answer to that.  Obviously you don't want to
have an overly "chatty" app, but depending on how much data you need and
how often some of that data is used, you may not want to get it all up
front.  You want to find a good balance between having too many network
calls and UI response time.  If it takes a long time to wait for the data
to download then the experience is not going to be a good one for the user.

Also, this is not really an Android question... just saying. :-)

On Tue, Mar 1, 2016 at 11:11 PM sardar khan 
wrote:

> i think good practice is to load all data first time and save it.
>
> On Tue, Mar 1, 2016 at 8:34 PM, Marcel Molenaar 
> wrote:
>
>> Hello,
>>
>> What is good practice?
>>
>> I consider to do one call to my serverside json file at the first
>> activity of my app and get all my data at once.
>>
>> My college prefers to split it up into separate json calls in each
>> activity so only data for that specific activity will be requested.
>>
>> Which approach is the best?
>>
>> Regards,
>>
>> Marcel Molenaar
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/c384f425-f8d3-485a-9b6a-03cac353cf7b%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CABHzXAR4ryw_8toBdNUOLVJ4nXmi1VZFdNMu%3DNweyrNQk7ZJ7w%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s-HwuQ0QMX4gaMs0KsFa1TOTO7gOb49c%2BDdvxYdHycV%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Make a Broadcast receiver receive broadcasts after force closing.

2016-03-02 Thread Justin Anderson
How are you creating your broadcast receiver?  Is it a separate class and
defined in the manifest? Or is it created and registered in an activity?

On Wed, Mar 2, 2016 at 2:49 AM Narendran Anil  wrote:

> Hello,
>
> I am working on an app that will show a pop up on call end. It works fine
> with a broadcast receiver but if the user force closes the app, the
> broadcast receiver stop s working (as it should) and herein lies my
> problem. My app's main functionality is to give the user a screen after the
> call ends so he can select an action he requires. This pop up appears only
> for certain numbers that he chooses so it is not a hassle in any way.
>
> I know that TrueCaller pop up will appear on receiving an incoming call
> even if the app is forced stopped. How do they achieve this? Do they use a
> special Broadcast Receiver?
> Can I make my app work by using some other method?
>
> PS - I am here because of this article (
> http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/)
> led me here.
>
> I hope you guys help me out. Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/14a64231-8141-48cf-a1c0-8f521eec305c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s_FyTM%3D%2B%3DHMvEARoFoFoOKcKdnWa6CmhF_x_dzdjP6EEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Every new activity creates activity_***.xml and content_***.xml

2016-03-02 Thread joby
Hi,

I am new to Android development.

When I am trying to create a new activity, it always ends in 3 files.
1)  .java
2) activity_.xml
3) content_.xml

I just wonder why it is creating two layout xml files?.

By this post, what I am trying to find is... 

Is that the supposed way it should be created with two xml files for every 
new activity?, 
or just one activity_***.xml for the main and then separate content_***.xml 
for each additional activities?.

All my googling ends in pages that explaining what these files are and how 
these are getting created in a simple first android application.

My question is to know about those two xml files only if a developer 
creates second or more activities...


Hope, my question is clear.

Even though all sort of answers you think that will help to answer this 
question are welcome.

Please try to short your answer, like 'why it is', or 'how it is'  cause 
those are much easier to understand, and we can raise the next question if 
we need more clarification.

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/aa7fa728-e5df-4272-902c-24e858ce7e00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: GPS Issue with Android Marshmallow

2016-03-02 Thread Rodrigo Saad
Hello,

I'm sorry, I meant "high accuracy and speed values (getSpeed returning
values different than 0)" in my previous email.

>
> I believe you are right, it is a FusedLocationApi bug related. I will make
> some tests with the GPS_Provider to check it out. Until Android 6,
> FusedLocation worked pretty good, giving low accuracy and speed.  The app I
> mentioned before uses FusedLocation and it is not working anymore.
>
>
Cheers,

Rodrigo


On Tue, Mar 1, 2016 at 5:08 PM, Rodrigo Saad  wrote:

> Hello Gary,
>
> Thank you for your reply.
>
>>
>> I checked https://code.google.com/p/android/issues/detail?id=190376 and
>> also tested with Nexus 5 running Android V6.0.1 (that's the device most
>> mentioned in the ticket) and GPS is working ok for me on the Nexus 5. GPS
>> is also working ok for me with Android V6 on Nexus 5X, 6, 6P, 7 & 9.
>>
>
> Could you check this app (http://app.trekken.com.br) to see if it works?
> It should start automatically and record your trip while you are driving.
>
>
>> However I don't use the Location API class much and where possible prefer
>> to use the lower level NMEA listener interface -
>> http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html
>>
>
> I believe you are right, it is a FusedLocationApi bug related. I will make
> some tests with the GPS_Provider to check it out. Until Android 6,
> FusedLocation worked pretty good, giving low accuracy and speed.  The app I
> mentioned before uses FusedLocation and it is not working anymore.
>
>
>> You could use the NMEA listener interface as a temporary work around and
>> create your own Location objects from the lower level NMEA data (this works
>> fine, I also do this when using external Bluetooth GPS receivers with
>> Android devices - converting GPS NMEA data back into Location objects, you
>> just need to do the relevant data conversions between the different
>> measurement units...)
>>
>
> Regarding the NMEA 0183, I read over the Internet that some manufactures
> define its own codes. Is it a problem with android? Would you have to take
> into account different manufactures codes to parse NMEA sentences ?
>
> Cheers,
>
> Rodrigo
>
>
>> Regards
>>
>>
>>
>> On Tuesday, March 1, 2016 at 1:39:35 AM UTC+11, Rodrigo Saad wrote:
>>>
>>> Hello,
>>>
>>> We are experiencing problems with GPS in almost all smartphones (Nexus,
>>> Mogo-G 2nd, Moto-G 3nd, Moto-X) with Android 6 (Marshmallow). In our case,
>>> it does not acquire a good accuracy and, consequently, it does not return
>>> the speed anymore (location.getSpeed). There is an open ticket but without
>>> any update from google since last December (
>>> https://code.google.com/p/android/issues/detail?id=190376).
>>>
>>> Anyone else having the same problem? Any advice to solve it, at least
>>> temporarily?
>>>
>>> Cheers,
>>>
>>> Rodrigo Saad
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/android-developers/2He1mUMH6lc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/dbf62523-d8ed-4926-9f1a-dbc83195d9fc%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANzvxAHDS3PoSYdY7VyWuqonH-_J5ARXRWDV-4WC4N_a8mecyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: softKeyboard's next button not taking focus to the next edit text

2016-03-02 Thread Arslan Ali Awan
will u tell me , how did u make it explicitly i cant figured it out

On Wednesday, September 1, 2010 at 4:01:41 PM UTC+5, shashidhar wrote:
>
> Hi,
>   In My code I have an alter window in which I take a mac address as 
> input. For this I have created 6 Edit texts to accept mac address. Now my 
> problem is When I am in first edit text and click on "next" button in soft 
> keyboard it does not take the focus to the next available edittext. I have 
> set the next focus down id for Each of the Edit text to be its next Edit 
> text. But still its not working. Please Help me. 
>
> I am posting the code here.
> _
> *main.xml*
> *__*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * xmlns:android="http://schemas.android.com/apk/res/android 
> "
>  android:orientation="vertical"android:layout_width="fill_parent"
>  android:layout_height="fill_parent">  android:layout_width="fill_parent"
>  android:layout_height="wrap_content"  android:text="@string/hello"   
>  /> ="wrap_content"  android:layout_height="wrap_content"  
> android:text="Click Me" /> 
> __Activity 
> File___ 
> public class Test extends Activity {/** Called when the activity is 
> first created. */ private Button b; @Overridepublic void 
> onCreate(Bundle savedInstanceState) {
>  super.onCreate(savedInstanceState);setContentView(R.layout.main); 
> b = (Button) findViewById(R.id.button);   
>  b.setOnClickListener(new OnClickListener(){ public void onClick(View v) { 
> AlertDialog.Builder alert = new AlertDialog.Builder(v.getContext()); 
> alert.setTitle("Dialog"); alert.setMessage("Enter MAC"); // Set an EditText 
> view to get user input  final EditText input1 = new 
> EditText(v.getContext()); final EditText input2 = new 
> EditText(v.getContext()); final EditText input3 = new 
> EditText(v.getContext()); final EditText input4 = new 
> EditText(v.getContext()); final EditText input5 = new 
> EditText(v.getContext()); final EditText input6 = new 
> EditText(v.getContext()); input1.setNextFocusDownId(input2.getId()); 
> input2.setNextFocusDownId(input3.getId()); 
> input3.setNextFocusDownId(input4.getId()); 
> input4.setNextFocusDownId(input5.getId()); 
> input5.setNextFocusDownId(input6.getId()); input1.setImeOptions(5); 
> input2.setImeOptions(5); input3.setImeOptions(5); input4.setImeOptions(5); 
> input5.setImeOptions(5); input6.setImeOptions(6); final TextView tv1 = new 
> TextView(v.getContext()); tv1.setText(":"); tv1.setTextSize(15); final 
> TextView tv2 = new TextView(v.getContext()); tv2.setText(":"); final 
> TextView tv3 = new TextView(v.getContext()); tv3.setText(":"); final 
> TextView tv4 = new TextView(v.getContext()); tv4.setText(":"); final 
> TextView tv5 = new TextView(v.getContext()); tv5.setText(":"); final 
> TextView tv6 = new TextView(v.getContext()); final TextView emptytv = new 
> TextView(v.getContext()); emptytv.setText("  "); emptytv.setWidth(2); 
> InputFilter[] FilterArray = new InputFilter[1]; FilterArray[0] = new 
> InputFilter.LengthFilter(2); input1.setFilters(FilterArray); 
> input2.setFilters(FilterArray); input3.setFilters(FilterArray); 
> input4.setFilters(FilterArray); input5.setFilters(FilterArray); 
> input6.setFilters(FilterArray); int width = 40; input1.setWidth(width); 
> input2.setWidth(width); input3.setWidth(width); input4.setWidth(width); 
> input5.setWidth(width); input6.setWidth(width); input1.setSingleLine(true); 
> input1.setSingleLine(true); input2.setSingleLine(true); 
> input3.setSingleLine(true); input4.setSingleLine(true); 
> input5.setSingleLine(true); input6.setSingleLine(true); int inputTextSize = 
> 15; input1.setTextSize(inputTextSize); input2.setTextSize(inputTextSize); 
> input3.setTextSize(inputTextSize); input4.setTextSize(inputTextSize); 
> input5.setTextSize(inputTextSize); input6.setTextSize(inputTextSize); final 
> LinearLayout ll = new LinearLayout(v.getContext()); ll.addView(emptytv); 
> ll.addView(input1); ll.addView(tv1); ll.addView(input2); ll.addView(tv2); 
> ll.addView(input3); ll.addView(tv3); ll.addView(input4); ll.addView(tv4); 
> ll.addView(input5); ll.addView(tv5); ll.addView(input6); ll.addView(tv6); 
> alert.setView(ll); alert.setPositiveButton("Save", new 
> DialogInterface.OnClickListener() { public void onClick(DialogInterface 
> dialog, int whichButton) { InputMethodManager imm = 
> (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); 
> imm.hideSoftInputFromWindow(input1.getWindowToken(), 0); String value1 = 
> input1.getText().toString().trim(); String value2 = 
> input2.getText().toString().trim(); String value3 = 
> input3.getText().toString().trim(); 

[android-developers] Wii Balance Board and Android (already paired) - how to get Data

2016-03-02 Thread Dirk Bellstaedt
Hello,
 i want to use Wii Balance Board with my Android Device, i already paired 
it with my Device ( rooted Custom Rom, but i don't know how, it just worked 
;) ),
 but now i don't know how to grab the RawData of the InputDevice? Is there 
any way to get it?
Best Regards


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/0fece391-1847-4bee-b0c2-da78753c9c03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Wii Balance Board and Android (already paired) - how to get Data

2016-03-02 Thread Dirk Bellstaedt
Hello,
 i want to use Wii Balance Board with my Android Device, i already paired 
it with my Device ( rooted Custom Rom, but i don't know how, it just worked 
;) ),
 but now i don't know how to grab the RawData of the InputDevice? Is there 
any way to get it?
Best Regards


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3f438401-3e38-45ff-a92f-bc435b4eeddb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Make a Broadcast receiver receive broadcasts after force closing.

2016-03-02 Thread Narendran Anil
Hello, 

I am working on an app that will show a pop up on call end. It works fine 
with a broadcast receiver but if the user force closes the app, the 
broadcast receiver stop s working (as it should) and herein lies my 
problem. My app's main functionality is to give the user a screen after the 
call ends so he can select an action he requires. This pop up appears only 
for certain numbers that he chooses so it is not a hassle in any way. 

I know that TrueCaller pop up will appear on receiving an incoming call 
even if the app is forced stopped. How do they achieve this? Do they use a 
special Broadcast Receiver? 
Can I make my app work by using some other method? 

PS - I am here because of this article 
(http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/) 
led me here.

I hope you guys help me out. Thank you.   

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/14a64231-8141-48cf-a1c0-8f521eec305c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android TV - WebGL in WebView

2016-03-02 Thread gabon
It turned out that WebGL issues were only available in the emulator. On the 
device the content runs correctly, only thing I missed was enabling 
JavaScript!

Best, chr

On Wednesday, March 2, 2016 at 12:05:19 AM UTC, gabon wrote:
>
> Trying to run WebGL content on a WebView. Emulator is API 21, TV is 
> Marshmallow.
>
> In both cases the content doesn't show. On the emulator I get the 
> following error:
>
> W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa3d40400, 
> error=EGL_SUCCESS
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0b44
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0bd0
> E/eglCodecCommon:  ERROR unknown type 0x0 (glSizeof,72)
> E/eglCodecCommon:  ERROR unknown type 0x0 (glSizeof,72)
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0b44
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0bd0
> E/chromium: [ERROR:buffer_manager.cc(313)] 
> [.Parent-Compositor-0xa44be900]GL ERROR :GL_INVALID_OPERATION : 
> glBufferData: <- error from previous GL command
> etc...
>
> Wondering if I should try to use a different WebView engine (e.g. 
> Crosswalk, not sure yet their tools work on Mac) or if this is a problem 
> with the Javascript library I am using.
>
> Thanks for any help!
>
>
> chr
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/76b3b2c3-e6f2-4540-a90f-3d3e612c7d1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android TV - WebGL in WebView

2016-03-02 Thread gabon
Ok WebGL is not enabled in the default WebView. Tried crosswalk and I get 
an error when running it :S

Any idea what would be the best WebGL enabled WebView around?

Thanks,
christian

On Wednesday, March 2, 2016 at 12:05:19 AM UTC, gabon wrote:
>
> Trying to run WebGL content on a WebView. Emulator is API 21, TV is 
> Marshmallow.
>
> In both cases the content doesn't show. On the emulator I get the 
> following error:
>
> W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa3d40400, 
> error=EGL_SUCCESS
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0b44
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0bd0
> E/eglCodecCommon:  ERROR unknown type 0x0 (glSizeof,72)
> E/eglCodecCommon:  ERROR unknown type 0x0 (glSizeof,72)
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0b44
> E/eglCodecCommon: glUtilsParamSize: unknow param 0x0bd0
> E/chromium: [ERROR:buffer_manager.cc(313)] 
> [.Parent-Compositor-0xa44be900]GL ERROR :GL_INVALID_OPERATION : 
> glBufferData: <- error from previous GL command
> etc...
>
> Wondering if I should try to use a different WebView engine (e.g. 
> Crosswalk, not sure yet their tools work on Mac) or if this is a problem 
> with the Javascript library I am using.
>
> Thanks for any help!
>
>
> chr
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d4ccc498-c198-481a-9a7c-50814d36be6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.