[android-developers] Re: How to optimize image polling on the network for a gridview inside a view pager

2014-02-18 Thread VenomVendor
Use
* Android-Universal-Image-Loader 
https://github.com/nostra13/Android-Universal-Image-Loader forget the 
rest.*I am using it for my several projects including heavy images that has 
to be loaded from drawables, this handles downloading, caching, memory  
loading into UI in runtime.



On Wednesday, 19 February 2014 05:04:02 UTC+5:30, Tom Yu wrote:

 I am creating a security app that displays pages of security footage as a 
 gridview of images. I am polling the network for updates to the footage and 
 if so, I'll update the backing object and call 
 'adapter.notifyDataSetChanged()'.

 You can imaging that the data set changes quite frequently. As such, user 
 interaction will suffer like swiping between pages and scrolling through a 
 page. 

 I am using a FragmentPagerAdapter.

 I want to get this as smooth as nice to use as possible. Any insight or 
 suggestions on how to solve this problem is greatly appreciated.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Displaying Google Map Android API V2 in fragment

2013-12-16 Thread VenomVendor
Black screen, 
1. Your are not adding mapv2 correctly.  Visit 
http://venomvendor.blogspot.com/2013/04/getting-started-with-google-mapv2-for.html
2. If you are getting Maps for the first time  not getting another time, 
i.e after switching between fragments, your are encountering this bug. 
http://code.google.com/p/gmaps-api-issues/issues/detail?id=4639
https://code.google.com/p/gmaps-api-issues/issues/detail?id=4659
http://stackoverflow.com/q/18533433/1008278

If it;s case 2, then you have something wrong in your code, cox, am getting 
maps when i switch between fragments.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Displaying Google Map Android API V2 in fragment

2013-12-14 Thread VenomVendor
Hi, 
I have done same task, adding Map inside fragment, where fragment is placed 
inside ViewPager.

public class Map extends Fragment {

 /** The view. */
 private static View view;

 /** The g map. */
 private static GoogleMap gMap;

 /** The bangalore. */
 private final LatLng BANGALORE = new LatLng(12.971689, 77.594504);

 /** The zoom. */
 private float zoom = 11.0f;

 @Override
 public View onCreateView(LayoutInflater inflater, ViewGroup container,
 Bundle savedInstanceState) {
 if (container == null) {
 return null;
 }

 if (view != null) {
 ViewGroup parent = (ViewGroup) view.getParent();
 if (parent != null)
 parent.removeView(view);
 }
 try {
 view = inflater.inflate(R.layout.map, container, false);
 setUpMapIfNeeded();
 } catch (InflateException e) {
 // Log.wtf(S*, e.getMessage());
 }
 return view;
 }

 @Override
 public void onViewCreated(View view, Bundle savedInstanceState) {
 gMap = null;
 if (gMap != null)
 setUpMap();

 if (gMap == null) {
 gMap = ((SupportMapFragment) 
 this.getActivity().getSupportFragmentManager()
 .findFragmentById(R.id.mapd)).getMap();
 if (gMap != null)
 setUpMap();
 }
 }

 /* Sets up the map if it is possible to do so */
 public void setUpMapIfNeeded() {

 if (gMap == null) {
 gMap = ((SupportMapFragment) 
 getActivity().getSupportFragmentManager()
 .findFragmentById(R.id.mapd)).getMap();
 if (gMap != null)
 setUpMap();
 }
 }

 /**
  * This is where we can add markers or lines, add listeners or move the
  * camera.
  * p
  * This should only be called once and when we are sure that {@link 
 #gMap}
  * is not null.
  */
 private void setUpMap() {
 gMap.addMarker(new MarkerOptions().position(BANGALORE).title(My 
 Home)
 .snippet(Home Address));
 gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(BANGALORE, 
 zoom));
 }

 /
  * The mapfragment's id must be removed from the FragmentManager or 
 else if
  * the same it is passed on the next time then app will crash
  /
 // @Override
 // public void onDestroyView() {
 // super.onDestroyView();
 // FragmentManager fm = getActivity().getSupportFragmentManager();
 // Fragment fragment = (fm.findFragmentById(R.id.mapd));
 // FragmentTransaction ft = fm.beginTransaction();
 // ft.remove(fragment);
 // ft.commit();
 // }
 }



On Thursday, 5 December 2013 14:04:28 UTC+5:30, surabhi jain wrote:

 Hi All,

 I have problem in showing Google map (API V2) in fragment.

 I am using ViewPager, inside that I have created my layout and also 
 displaying map.

 I have created Map dynamically using SupportMapFragment.

 I have 3 pager (Fragment), all 3 fragments will showing map.

 When I switch to 1st fragment to 2nd fragment at that time map is not 
 displaying in my 2nd fragment layout. Showing black screen. :(   



 -- 
 Thanks  Regards
 Surabhi Jain
  

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Displaying Google Map Android API V2 in fragment

2013-12-14 Thread VenomVendor

 17:08 (1 minute ago) 
 Hi, 
I have done same task, adding Map inside fragment, where fragment is placed 
inside ViewPager.

public class Map extends Fragment {

/** The view. */
private static View view;

/** The g map. */
private static GoogleMap gMap;

/** The bangalore. */
private final LatLng BANGALORE = new LatLng(12.971689, 77.594504);

/** The zoom. */
private float zoom = 11.0f;

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
if (container == null) {
return null;
}

if (view != null) {
ViewGroup parent = (ViewGroup) view.getParent();
if (parent != null)
parent.removeView(view);
}
try {
view = inflater.inflate(R.layout.map, container, false);
setUpMapIfNeeded();
} catch (InflateException e) {
// Log.wtf(S*, e.getMessage());
}
return view;
}

@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
gMap = null;
if (gMap != null)
setUpMap();

if (gMap == null) {
gMap = ((SupportMapFragment) this.getActivity().

 getSupportFragmentManager()
 .findFragmentById(R.id.mapd)).getMap();
 if (gMap != null)
 setUpMap();
 }
 }

 /* Sets up the map if it is possible to do so */
 public void setUpMapIfNeeded() {

 if (gMap == null) {
 gMap = ((SupportMapFragment) 
 getActivity().getSupportFragmentManager()
 .findFragmentById(R.id.mapd)).getMap();
 if (gMap != null)
 setUpMap();
 }
 }

 /**
  * This is where we can add markers or lines, add listeners or move the
  * camera.
  * This should only be called once and when we are sure that {@link 
 #gMap}
  * is not null.
  */
 private void setUpMap() {
 gMap.addMarker(new MarkerOptions().position(BANGALORE).title(My 
 Home)
 .snippet(Home Address));
 gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(BANGALORE, 
 zoom));
 }

 /
  * The mapfragment's id must be removed from the FragmentManager or 
 else if
  * the same it is passed on the next time then app will crash
  /
 // @Override
 // public void onDestroyView() {
 // super.onDestroyView();
 // FragmentManager fm = getActivity().getSupportFragmentManager();
 // Fragment fragment = (fm.findFragmentById(R.id.mapd));
 // FragmentTransaction ft = fm.beginTransaction();
 // ft.remove(fragment);
 // ft.commit();
 // }
 }



In the above code, uncomment  *onDestroyView() *only if necessary. 
manytimes destroying after saving, will crash. but it's  upto you.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-14 Thread VenomVendor
You have to use 
*START_STICKY*http://developer.android.com/reference/android/app/Service.html#START_STICKYwhich
 is a sticky service, also add flag *FLAG_FROM_BACKGROUND 
http://developer.android.com/reference/android/content/Intent.html#FLAG_FROM_BACKGROUND*while
 starting your service. when you use START_STICKY make sure you do not 
pass any data via intent, since your app/activity is killed, but you can 
re-start the service. 
Ex : you need to read the values from Sensors and do operations. all the 
values are generated within the service only.

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// We want this service to continue running until it is explicitly 
stopped, so return sticky.
return START_STICKY;
}


you have to call *stopService(); 
http://developer.android.com/reference/android/content/Context.html#stopService%28android.content.Intent%29*manually
 to kill the service, else you will use huge memory.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Displaying Google Map Android API V2 in fragment

2013-12-11 Thread VenomVendor
Have you solved it, if not.
1. Null the Map. 
2. Destroy the fragment overriding in onDestroy method. 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Open popup window on the upper part of list view

2013-09-24 Thread VenomVendor
Visit http://stackoverflow.com/a/3619450/1008278
You are trying to use quickaction


On Tuesday, 24 September 2013 00:48:39 UTC+5:30, Amit Mangal wrote:

 Hi there
 I am having a list view inside my activity. Each row in list view having 
 one button. I want to open a popup window when button clicked on the row.

 I can open popup window but i dont know how to open that popup window on 
 the same row where button is pressed. Popup window width and height 
 shouldbe same as row width and height

 Any idea ?


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: help me to get android Map key

2013-06-22 Thread VenomVendor
This should help you 
http://venomvendor.blogspot.in/2013/04/generating-api-key-for-google-mapsv2.html

On Friday, 21 June 2013 21:15:18 UTC+5:30, mansur wrote:

 Hi,
  
 I am trying get android google Map key, where II have followed all the 
 steps that mentioned 
 herehttps://developers.google.com/maps/documentation/android/start. During 
 the step: Creating an API Project when I tried to ON for *Google Maps 
 Android API v2,* the service for 'Google Maps Android API Terms of 
 Servicehttps://developers.google.com/maps/terms.', is 
 not displaying the* terms and conditions page* for me.
  
 Note: I am trying to generate the debug certificate fingerprint and use it 
 in my app for testing purpose.
 ** 
 *Kindly help me to get google android key for testing purpose*
 ** 
 Thanks and Regards,
 Mansursab 


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Maps api key v1?

2013-04-22 Thread VenomVendor
There is no other way, than porting to MapsV2. 
If you find any difficulty in anypart of MapsV2, We as a developer will 
support you to the best.
I suggest you to post in the same thread rather than creating new thread.
Before you Post, Search in 
StackOverflowhttp://stackoverflow.com/questions/tagged/android-maps-v2


*To start with MapsV2.*

Here are few links to start with MapsV2   Getting Started with Google 
MapsV2http://venomvendor.blogspot.in/2013/04/getting-started-with-google-mapv2-for.html
To create a custom overlay with custom typeface, I suggest you to see this 
 Using Custom Typeface in Maps V2http://stackoverflow.com/q/15668430/1008278
If you want any help, let us know, Sharing is Caring.

My Android Apps-(Rate  
Reviewhttps://play.google.com/store/apps/developer?id=VenomVendor
)

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: publish app in google play with password requeriment

2013-04-22 Thread VenomVendor
Currently it's not possible, to restrict your apps being downloaded by 
User, 
Restriction is based only on Countries, API Level  Screen Dimensions.
API Level  Screen Dimensions are to be mentioned in *AndroidManifest.xml*
Restricting to Specific Countries can be set in GooglePlay *Developer 
Console.*

Alternatively you can host your  APK file in the cloud or your own server 
 use password to download.
Once the APK is downloaded, your users might re-host in filesharing site, 
which you cannot restrict. That's what is happening with paid apps.
Explain your exact requirement, what is need for restricting your App to 
particular users.?

My Android Apps-(Rate  
Reviewhttps://play.google.com/store/apps/developer?id=VenomVendor
)

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Maps api key v1?

2013-04-21 Thread VenomVendor
It's easy you need not worry, even i had the same kind of thinking.
*Check out my app in which i have used 
MapsV2https://play.google.com/store/apps/details?id=veevee.kfc
*
when i ported, i felt much easier, you have to try this.

http://venomvendor.blogspot.in/2013/04/generating-api-key-for-google-mapsv2.html

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: supporting Google Maps Android API v2 on 2.3+

2013-04-11 Thread VenomVendor
   Your app might crash if your device does not have latest Google Play 
Services
*You can see the details tutorial here,* 
* *Getting Started with Google MapV2 for Android 
Appshttp://venomvendor.blogspot.com/2013/04/getting-started-with-google-mapv2-for.html
On Wednesday, 10 April 2013 03:39:56 UTC+5:30, John Merlino wrote:

 I wrote my application using Google Maps Android api v2, but when 
 trying to run the app on gingerbread, for example, it says the app is 
 not supported. What's the quickest way to support older devices with 
 google maps android api v2? 


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Zooming with Google Maps Android API v2

2013-04-06 Thread VenomVendor
Change mMap.getUiSettings().setZoomControlsEnabled(false);
to 
mMap.getUiSettings().setZoomControlsEnabled(true);

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: ADT Issues in Eclipse

2012-08-20 Thread VenomVendor
Check this link 
http://venomvendor.blogspot.in/2012/05/installing-android-plugin-in-eclipse.html#Offline

-- 
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] Re: ADT Issues in Eclipse

2012-08-20 Thread VenomVendor
Can you Uninstall NDK  try once, 
if not am sure you have a copy of Original Eclipse, Start form first again 
as in the above link.

-- 
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] Re: Offline SDK installation

2012-03-22 Thread VenomVendor

Might be Late Reply, Very late reply, but surely will help u, Check out 
this Link Offline Installation of Android 
SDK'shttp://venomvendor.blogspot.in/2012/03/how-to-download-install-android-sdk.html

-- 
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] Re: Offline SDK installation

2012-03-22 Thread VenomVendor
Might be Late Reply, Very late reply, but surely will help u, Check out 
this Link Offline Installation of Android 
SDK'shttp://venomvendor.blogspot.in/2012/03/how-to-download-install-android-sdk.html

-- 
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] Re: single_apk_On_multiple_devices

2012-01-01 Thread VenomVendor
Remove images from the Folder drawable-mdpi, drawable-ldpi,
 Just put High Definition images in drawable-hdpi.
i wld suggest u to test the APK file directly in the Tab,
if u dont have, atleast configure the emulator Properly

-- 
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