[android-developers] googlemap lite mode in mapview not working in marshmallow

2016-08-26 Thread Pradeep Kumar Reddy


=> I'm using following MapView in my layout:-





=> I have the following code in onCreateView() of fragment:-

---

MapsInitializer.initialize(this.getActivity());
mapView = (MapView) view.findViewById(R.id.map);
mapView.onCreate(savedInstanceState);
mapView.getMapAsync(this);
mapView.setClickable(false);


=> And i also have the following code in the fragment class :-



@Override
public void onPause() {
super.onPause();
mapView.onPause();
}

@Override
public void onDestroy() {
super.onDestroy();
mapView.onDestroy();
}

@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
mapView.onSaveInstanceState(outState);
}

@Override
public void onLowMemory() {
super.onLowMemory();
mapView.onLowMemory();
}

@Override
public void onResume() {
super.onResume();
mapView.onResume();
}

@Override
public void onDestroyView() {
super.onDestroyView();
}

@Override
public void onMapReady(GoogleMap googleMap) {
map = googleMap;
if (ActivityCompat.checkSelfPermission(getContext(), 
android.Manifest.permission.ACCESS_FINE_LOCATION) != 
PackageManager.PERMISSION_GRANTED && 
ActivityCompat.checkSelfPermission(getContext(), 
android.Manifest.permission.ACCESS_COARSE_LOCATION) != 
PackageManager.PERMISSION_GRANTED) {
// TODO: Consider calling
//ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
//   public void onRequestPermissionsResult(int requestCode, String[] 
permissions,
//  int[] grantResults)
// to handle the case where the user grants the permission. See the 
documentation
// for ActivityCompat#requestPermissions for more details.
return;
}
map.setMapType(GoogleMap.MAP_TYPE_NORMAL);
LocationManager locationManager = (LocationManager) 
getContext().getSystemService(Context.LOCATION_SERVICE);
Location lastLocation = 
locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
LatLng latLng = new LatLng(lastLocation.getLatitude(), 
lastLocation.getLongitude());
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));
map.addMarker(new MarkerOptions().position(latLng).title("City Coordinator 
location at 
login").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW)));
map.getUiSettings().setMapToolbarEnabled(false);
}


This code is working in moto e2 phone with lollipop android, but not 
working in moto g3 phone with marshmallow android. In marshmallow, map is 
not loading at all in googlemap lite mode. If i remove this attribute( 
map:liteMode="true") in mapview, map is loading but marker is not present.

-- 
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/30a54694-c963-4a8b-b1a6-e4e13cfa92a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] how to increase the size of icon inside floating action button ?

2016-08-12 Thread Pradeep Kumar Reddy
how to increase the size of icon inside floating action button  
I'm trying to put plus icon inside floating action button. I have tried 
with 48dp, 72dp, 96dp icons, but still the icon is looking too small.

-- 
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/91aafcbb-e8c4-4152-8f64-37e5ae04844b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] how to properly handle recycling of views in grid view

2016-08-01 Thread Pradeep Kumar Reddy

I'm trying to create a custom gallery using grid view.

gridView recycling of views is creating problem. if i select an image and 
scroll down, some other images are selected.  how to solve this problem. 
how to properly handle recycling of views and restore the state of existing 
views when the gridView is recycling views.

-- 
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/240712c0-50b5-43ff-91bf-036949625de3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Gingerbread BroadcastReceiver Issue

2012-07-10 Thread Pradeep Kumar
I am using service and onStartCommand returning 
START_STICKY.
 
I have also register some broadcast receiver in onStartCommand. It is 
working fine in all mobiles. On Samsung mobile it stop working around after 
30 minute. Android calling only onCreate in 30-40 minute duration but not 
calling onStartCommand. After stop working when i am trying to stop service 
then application giving me exception. as no broadcast receiver found. 
Mobile setting screen showing that service is running. Please suggest how i 
will resolve it.



On Thursday, March 3, 2011 12:23:00 AM UTC+5:30, MagouyaWare wrote:
>
> I have an app that uses the notification bar in a similar way but I 
> provided a setting in preferences that they can use to turn off the 
> notification.
>
> On Wed, Mar 2, 2011 at 11:48 AM, rich friedel wrote:
>
>> To be fair, I obviously do not know for a fact that HTC devices 
>> are intentionally ignoring the startForeground() method. Here are the bug 
>> reports though so y'all decide... 
>> http://code.google.com/p/android/issues/detail?id=9663 && 
>> http://code.google.com/p/android/issues/detail?id=9682
>>
>> As for the status bar icon persistently showing while the app is running, 
>> I do this because my app runs silently in the background and auto-responds 
>> to text messages therefore I use the icon as a quick visual cue to let the 
>> user know it is in fact running. Otherwise I fear they would forget it is 
>> running and blame my app for auto-responding when they "think" it shouldn't 
>> be. Also, it only shows a short message when the user explicitly starts the 
>> service and then shows another short message upon sending the 
>> auto-response. In the notification drop down area I have an ongoing 
>> notification. Apart from error messages that is pretty much it.
>>
>> If this is incorrect usage of the status bar icon and notification that 
>> is fine and I'll conform to whatever y'all suggest, however I really cannot 
>> think of a better way of doing it.
>>  
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Need Help :: Typical Requirement on MonkeyRunner

2011-11-10 Thread PRADEEP KUMAR
Hi

We are having typical requirement using monkeyrunner. As of now we are
using python to access monkeyrunner to automate our testing. Now the
Client is expecting us to do some WEB GUI created by javascript,HTML5
and CSS3 should access monkeyrunner based on the button clicks on the
WEB GUI. Is there any possiblitiy to access monkeyrunner using
javascript or any other way to implement the web interface for
monkeyrunner. Please i am new to android and monkey i am basically a
web developer. If any anything wrong on the concept view please reply
that also so that we can discuss with our client about the
possibility.

Thanks in advance for your reply.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] REQ: Webmethods Developer (F2F interview in Chicago)

2011-04-15 Thread pradeep kumar
Hello Partners,

Please go through the following requirement I have with my client and let me
know if you have any suitable resume.

*Title: *Webmethods Developer
*Location: *Chicago, IL (*LOCALS ONLY*, *need In-Person Interview*)
*Duration: *6 months
*Rate: *market
*Description:
*

I need a webmethods Developer for JPMC in Chicago.  They must interview in
person

 Must have experience with webMethods 7.1
- Must have 5+ years using webMethods Developer
- Must have 3+ years using webMethods Websphere MQ adpater
- Must have 3+ years using webMethods Trading Networks
- Must have 3+ years exposing flow services as SOAP-Messaging web services
in webMethods Developer
- webMethods 8 experience a plus
* Please respond asap with the suitable resume.
*

Regards,



*Pradeep*

Sage IT, Inc.

Ph: 972-996-0650 Ext: 324 |Fax: 214-619-2034

pradeep.pagad...@sageitinc.com| 
www.sageitinc.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en