vinitvikash | 22 Sep 12:46 2014
Picon

Get Complete detail when tapping on icon which is on Android Google Map

I want Institute, Company, Business name along with it's address when I tap on icon which is on Google Map.

Example :- On Google Map Application, when be will tap on icon then it will show complete detail and address for that icon.

Find three images. There when I tap on "HealthCare Global Enterprise Ltd." icon then it gives complete address with Hospital name on top of the screen.

I am using Geocoder to get address for particular latitude-longitude. I am getting street, country, pincode etc but not able to get institute, company, business name.

Here Hospital Name : HealthCare Global Enterprise Ltd.

Code :-

private String getCompleteAddressString(double LATITUDE, double LONGITUDE) { String strAdd = ""; Geocoder geocoder = new Geocoder(this, Locale.getDefault()); StringBuilder strReturnedAddress = null; try { List<Address> addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 1); if (addresses != null) { System.out.println("Address Size ->>: " + addresses.size()); System.out.println("Address 0th Position ->>: " + addresses.get(0)); Address returnedAddress = addresses.get(0); strReturnedAddress = new StringBuilder(""); for (int i = 0; i < returnedAddress.getMaxAddressLineIndex(); i++) { strReturnedAddress.append(returnedAddress.getAddressLine(i)).append("\n"); System.out.println("*****************************"); System.out.println("Admin Area: ->> " + returnedAddress.getAdminArea()); System.out.println("Country Code: ->> " + returnedAddress.getCountryCode()); System.out.println("Country Name: ->> " + returnedAddress.getCountryName()); System.out.println("Feature Name: ->> " + returnedAddress.getFeatureName()); System.out.println("Admin Area: ->> " + returnedAddress.getLatitude()); System.out.println("Latitude: ->> " + returnedAddress.getLocality()); System.out.println("Longitude: ->> " + returnedAddress.getLongitude()); System.out.println("Max Address Line Index: ->> " + returnedAddress.getMaxAddressLineIndex()); System.out.println("Phone: ->> " + returnedAddress.getPhone()); System.out.println("PostalCode: ->> " + returnedAddress.getPostalCode()); System.out.println("Premises: ->> " + returnedAddress.getPremises()); System.out.println("SubAdminArea: ->> " + returnedAddress.getSubAdminArea()); System.out.println("SubLocality: ->> " + returnedAddress.getSubLocality()); System.out.println("SubThoroughfare: ->> " + returnedAddress.getSubThoroughfare()); System.out.println("Thoroughfare: ->> " + returnedAddress.getThoroughfare()); System.out.println("Url: ->> " + returnedAddress.getUrl()); System.out.println("*****************************"); } strAdd = strReturnedAddress.toString(); Log.w("My Current loction address", "" + strReturnedAddress.toString()); } else { Log.w("My Current loction address", "No Address returned!"); } } catch (Exception e) { strReturnedAddress.append("Address Not Avilable"); strAdd = strReturnedAddress.toString(); } return strAdd; }



--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
nemi chhimpa | 20 Sep 18:06 2014
Picon

thumbnail image of image in gallery

hi,
i want to load images from folder in gallery. but i am facing problem in finding a thumbnail of a image. 
Thanks.

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
vitthal khatpe | 20 Sep 09:18 2014
Picon

To implement Donation functionality using paypal natively

I want to implement the Donation functionality using Paypal for a android application which is generating donation for a cause. There are three options to implement 

1) Using Native SDK 

2) Using webview 

3) Redirect to webpage on browser

If i go with the first option, then it is possible to replace the button (Buy a Thing) with label 'Donate' shown in sample application of Paypal Paypal sample app for integrating SDK in native app



As i am using the donation option in native app instead of In App Purchase. In this case, Will Google suspend my application from Google play store?.

If above case is true, In that case, do i have to go with the second option (WebView) OR this webview option is also not possible as it is also the part of native application.

And Hence i have to redirect a user to the browser for a donation if above options are not true.

Please let me know the correct option.

Thanks in Advance.




--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
s_ali | 20 Sep 08:37 2014
Picon

Is it possible to intercept taps on android?

I want to create a service that will run in background. Whenever user tap Contacts/Address book, the service should be able to recognize it and displays a message or whatever. How can I do this?

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dan Cha | 20 Sep 04:06 2014
Picon

How to make buttons within horizontal scrollview the width of the screen

I have following layout, I would like to make it so that my 3 buttons each display individually on the page.

Basically since I only have 3 buttons I would like it so when I select / click one, that button is centered and expands the width of the page
then the other buttons show slightly so the user understands that there is more to see if they scroll ..

I found this example online of how mine looks, but would like to see if its possible to make it as described.

Found example:

What I would like it to look like:

Can my layout be changed to accomplish this look?

Here is my current layout:


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="fill_parent"

    android:layout_height="fill_parent"

    android:orientation="vertical" >

 

    <HorizontalScrollView

        android:id=" <at> +id/horizontalScrollView1"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_marginTop="10dp">

 

        <LinearLayout

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:orientation="horizontal" >

           

                <Button

                             style=" <at> style/btnBlackTextOrange"

                             android:id=" <at> +id/btnPending"

                             android:layout_width="0px"

                             android:layout_weight="1"

                             android:text=" <at> string/pending"

                             android:layout_marginLeft="15dp"

                             android:paddingLeft="15dp"

                             android:paddingRight="15dp"/>

               

                <Button

                             style=" <at> style/btnBlackTextOrange"

                             android:id=" <at> +id/btnPurchaseOrders"

                             android:layout_width="0px"

                             android:layout_weight="1"

                             android:text=" <at> string/purchaseorders"

                             android:layout_marginLeft="15dp"

                             android:paddingLeft="15dp"

                             android:paddingRight="15dp" />

               

                <Button

                             style=" <at> style/btnBlackTextOrange"

                             android:id=" <at> +id/btnMasterPartList"

                             android:layout_width="0px"

                             android:layout_weight="1"

                             android:text=" <at> string/masterparts"

                             android:layout_marginLeft="15dp"

                             android:layout_marginRight="15dp"

                             android:paddingLeft="15dp"

                             android:paddingRight="15dp" />               

                

        </LinearLayout>

    </HorizontalScrollView>

    <ListView

        android:id=" <at> +id/listView1"

        android:layout_width="fill_parent"

        android:layout_height="fill_parent" >

    </ListView>

</LinearLayout>

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ted Hopp | 19 Sep 20:53 2014
Picon

Enhancing Google Play developer console to allow third-party developer access

Google Play seems to be set up under the assumption that the developer of an app is also the publisher. This is not always the case and, as described below, it causes us (and, I suspect, many others) a lot of time and aggravation. I'm interested in feedback on whether others have encountered these problems and, if so, how they deal with them, and whether an enhancement of some kind to Google Play might help. (I have a suggestion at the end.)

We develop and publish a number of apps and we are also developing apps for a business partner to be published by our partner on Google Play. Our partner, for obvious reasons, does not want to share their logon credentials for Google Play with us, so our work flow as we test the app (licensing, in-app purchases) prior to publication is very inefficient. We have two choices:
  1. Publish a copy of the app, under a different package name, in the alpha channel of our own developer console;
  2. Ship the app to our partner to publish in their alpha channel, set us up as testers, and then coordinate with them during testing.
The problem with the first approach is that our own account will eventually become cluttered with garbage apps that were never intended for publishing. It used to be that we could simply save the app as a draft and when we were finished testing, we could remove all traces of it. No more.

There are many difficulties with the second approach. Our partner is not a developer, so all the developer documentation is rather hard for them to navigate and absorb. We need to provide them pointers to specific sections of the documentation. Sometimes we need to interact with them in real time, particularly for setting test responses and canceling test purchases. Such interactions are necessarily inefficient. As it happens, our partner is seven time zones away from us, so real-time interaction is particularly difficult to schedule (and costly, as well).

I think Google Play could be enhanced to address these issues. One possibility would be for an account owner to be able to grant to third parties limited access rights to the developer account to perform specific operations for specific apps. For instance, our partner could grant us rights to upload draft APKs for one app, publish them to the app's alpha and beta channels only, and set test responses, but not allow us to set test accounts, publish to the production channel or to see any developer console information about their other apps. Perhaps they could also allow us to manually cancel test purchases (which would require access to a subset of their Google Wallet merchant account). The granularity and scope of the privileges that could be granted in this way would need to be carefully designed.

What do others think?

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
pedr0 | 19 Sep 18:09 2014
Picon

Bluetooth devices connected list - getConnectedDevices()

I am developing an application which runs on a API 18 device.

This snippet of code gives me back a empty list :

public static boolean isBTMouseAttached(Context context)                                                                                                                                                                                
   
{                                                                                                                                                                                                                                        
           
Log.i("Mumble", "isBTMouseAttached");                                                                                                                                                                                            
           
BluetoothManager mBluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);                                                                                                                    
           
for (BluetoothDevice item : mBluetoothManager.getConnectedDevices(BluetoothProfile.GATT))                                                                                                                                        
           
{                                                                                                                                                                                                                                
               
Log.i("Mumble", "Name : " + item.getName());                                                                                                                                                                                
               
if (deviceIsExternalMouse(item))                                                                                                                                                                                            
                       
return true;                                                                                                                                                                                                        
           
}                                                                                                                                                                                                                                
           
return false;                                                                                                                                                                                                                    
   
}  

Someone has any idea about why ?

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ber4444 | 19 Sep 17:36 2014
Picon

Android Studio bricked by latest update

The title says it all. It gave me a popup about some plist file conflict during the update process, now Studio cannot be started any more.

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Fabrizio Bartolomucci | 19 Sep 16:10 2014
Picon

Replacing GCMBaseIntentService for remote notifications while switching to Android Studio

I switched my project from Eclipse to Android Studio and found library GCMBaseIntentService to be no longer supported. What else might be used for the task possibly saving the work on the php backend? It is very hard to find the way in the tutorials about the issue as I am afraid the new support is also called GCM and most examples are based on Eclipse.

This is the piece of code I need to replace:

   
    package com.example.taxiprofessional;
   
   
import android.app.Notification;
   
import android.app.NotificationManager;
   
import android.app.PendingIntent;
   
import android.content.Context;
   
import android.content.Intent;
   
import android.util.Log;
   
   
import com.google.android.gcm.GCMBaseIntentService;
   
   
import static com.example.taxiprofessional.CommonUtilities.SENDER_ID;
   
import static com.example.taxiprofessional.CommonUtilities.displayMessage;
   
   
public class GCMIntentService extends GCMBaseIntentService {
   
   
private static final String TAG = "GCMIntentService";
   
     
public GCMIntentService() {
         
super(SENDER_ID);
     
}
   
     
/**
      * Method called on device registered
      **/

     
<at> Override
     
protected void onRegistered(Context context, String registrationId) {
         
Log.i(TAG, "Device registered: regId = " + registrationId);
         displayMessage
(context, "Your device registred with GCM");
         
AccountInformation info=AccountInformation.sharedInstance();
         
ServerUtilities.register(context, info.email, info.password, registrationId);
     
}
   
     
/**
      * Method called on device un registred
      * */

     
<at> Override
     
protected void onUnregistered(Context context, String registrationId) {
         
Log.i(TAG, "Device unregistered");
         displayMessage
(context, getString(R.string.gcm_unregistered));
         
ServerUtilities.unregister(context, registrationId);
     
}
   
     
/**
      * Method called on Receiving a new message
      * */

     
<at> Override
     
protected void onMessage(Context context, Intent intent) {
         
Log.i(TAG, "Received message");
         
String message = intent.getExtras().getString("price");
         
         displayMessage
(context, message);
         
// notifies user
         generateNotification
(context, message);
     
}
   
     
/**
      * Method called on receiving a deleted message
      * */

     
<at> Override
     
protected void onDeletedMessages(Context context, int total) {
         
Log.i(TAG, "Received deleted messages notification");
         
String message = getString(R.string.gcm_deleted, total);
         displayMessage
(context, message);
         
// notifies user
         generateNotification
(context, message);
     
}
   
     
/**
      * Method called on Error
      * */

     
<at> Override
     
public void onError(Context context, String errorId) {
         
Log.i(TAG, "Received error: " + errorId);
         displayMessage
(context, getString(R.string.gcm_error, errorId));
     
}
   
     
<at> Override
     
protected boolean onRecoverableError(Context context, String errorId) {
         
// log message
         
Log.i(TAG, "Received recoverable error: " + errorId);
         displayMessage
(context, getString(R.string.gcm_recoverable_error,
                 errorId
));
         
return super.onRecoverableError(context, errorId);
     
}
   
     
/**
      * Issues a notification to inform the user that server has sent a message.
      */

     
private static void generateNotification(Context context, String message) {
         
int icon = R.drawable.taxi_profi;
         
long when = System.currentTimeMillis();
         
NotificationManager notificationManager = (NotificationManager)
                 context
.getSystemService(Context.NOTIFICATION_SERVICE);
         
Notification notification = new Notification(icon, message, when);
         
         
String title = context.getString(R.string.app_name);
         
         
Intent notificationIntent = new Intent(context, Dashboard.class);
         
// set intent so it does not start a new activity
         notificationIntent
.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
                 
Intent.FLAG_ACTIVITY_SINGLE_TOP);
         
PendingIntent intent =
                 
PendingIntent.getActivity(context, 0, notificationIntent, 0);
         notification
.setLatestEventInfo(context, title, message, intent);
         notification
.flags |= Notification.FLAG_AUTO_CANCEL;
         
         
// Play default notification sound
         notification
.defaults |= Notification.DEFAULT_SOUND;
         
         
// Vibrate if vibrate is enabled
         notification
.defaults |= Notification.DEFAULT_VIBRATE;
         notificationManager
.notify(0, notification);      
   
     
}
   
   
}


Thanks, Fabrizio

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nathan | 18 Sep 21:31 2014
Picon

Apps uninstalling themselves?

All of a sudden I have a  rash of people telling me that my app is uninstalling itself immediately after installing. Is there some new Google Play problem?

There's the usual one where they assume I can see their screen and remotely access their device.
Why does it keep uninstalling?

But some with more information - one blaming Samsung.
After the app is done installing, it immediately uninstalls and a message
pops up that says "BC Navigator was uninstalled on my device. To use BC
Navigator you must install it on your mobile device." Why does it keep
doing this?

One is blaming Samsung - which is possible. I do use Samsung SDk for the purposes of communicating with Gear 2.
I'm sure it's a Samsung issue. I set the phone's permissions and the Gear
software permissions to authorize 3rd party apps. Your app installs and I
get a notice which I click agree. Then another popup says it's Uninstaller
the program!?!? I've tried it several times.


Nathan

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MathieuB | 18 Sep 20:45 2014
Picon

Gradle Android Studio Github repo dependacy

Hello,

Does anyone have an idea if it's possible to use a github repo as a dependancy, without maven. 

We are currently starting a new project and would like to import a private custom library to our project. We would like to just add the dependancy to the github repo of that custom library, not have to publish to maven central (at least for the moment).

Thanks!

--
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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane