Code Monkey home page Code Monkey logo

adevintaspain / leku Goto Github PK

View Code? Open in Web Editor NEW
754.0 754.0 175.0 14.19 MB

:earth_africa: Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.

Home Page: https://adevintaspain.github.io/Leku/

License: Apache License 2.0

Shell 0.56% Kotlin 99.44%
android android-library event-tracking geo-search geolocation geolocation-api google google-maps hacktoberfest kotlin kotlin-library library location location-picker maps multi-language place-picker placepicker rtl search-by-voice

leku's People

Contributors

ahaverty avatar albertvilacalvo avatar alorma avatar artjimlop avatar braisgabin avatar chihung93 avatar cristiangm avatar davidftrujillo avatar denysnovoa avatar devbalo93 avatar efraespada avatar etorralbo avatar ferranpons avatar galadril avatar gvsharma avatar huikaihoo avatar jffiorillo avatar marcserrascmspain avatar muhammad-naderi avatar nucliweb avatar null45 avatar regulosarmiento avatar rocboronat avatar romadespub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leku's Issues

Filter address

Applies once #56 is merged:

With new autocomplete, it should be great if we can have a way of filter the provided addresses

ClassNotFoundException

Description

Some classes dependencies did't find: pl.charmas.android.reactivelocation2.ReactiveLocationProvider.

Info Required

  • Which version of the library do you actually use?
    Leku: 3.6.1
    PlayServices: 11.6.0

  • places

  • location

  • Do you have the localization permission granted?
    yes

  • Are you sending parameters to the activity through the bundle?

val intent = LocationPickerActivity.Builder()
                .withLocation(LocationPreference.locationLatitude.toDouble(), LocationPreference.locationLongitude.toDouble())
                .withGeolocApiKey(activity?.getString(R.string.google_geo_api_key))
                .withSearchZone("pt_BR")
                .withSatelliteViewHidden()
                .build(activity)
        activity?.startActivityForResult(intent, Constants.IntentCodes.LOCATION_PICKER)
  • Android monitor shows any log related to the library when the error is shown?
E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: br.com.samples.location, PID: 5030
                  java.lang.NoClassDefFoundError: Failed resolution of: Lpl/charmas/android/reactivelocation2/ReactiveLocationProvider;
                      at com.schibstedspain.leku.LocationPickerActivity.setUpMainVariables(LocationPickerActivity.java:166)
                      at com.schibstedspain.leku.LocationPickerActivity.onCreate(LocationPickerActivity.java:140)
                      at android.app.Activity.performCreate(Activity.java:6679)
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
                      at android.app.ActivityThread.-wrap12(ActivityThread.java)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:154)
                      at android.app.ActivityThread.main(ActivityThread.java:6119)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
                   Caused by: java.lang.ClassNotFoundException: Didn't find class "pl.charmas.android.reactivelocation2.ReactiveLocationProvider" on path: DexPathList[[zip file "/data/app/br.com.samples.location-2/base.apk", zip file "/data/app/br.com.samples.location-2/split_lib_dependencies_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_0_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_1_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_2_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_3_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_4_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_5_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_6_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_7_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_8_apk.apk", zip file "/data/app/br.com.samples.location-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/br.com.samples.location-2/lib/x86, /data/app/br.com.samples.location-2/base.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_dependencies_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_0_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_1_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_2_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_3_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_4_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_5_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_6_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_7_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_8_apk.apk!/lib/x86, /data/app/br.com.samples.location-2/split_lib_slice_9_apk.apk!/lib/x86, /system/lib, /vendor/lib]]
                      at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                      at com.schibstedspain.leku.LocationPickerActivity.setUpMainVariables(LocationPickerActivity.java:166) 
                      at com.schibstedspain.leku.LocationPickerActivity.onCreate(LocationPickerActivity.java:140) 
                      at android.app.Activity.performCreate(Activity.java:6679) 
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618) 
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
                      at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 
                      at android.os.Handler.dispatchMessage(Handler.java:102) 
                      at android.os.Looper.loop(Looper.java:154) 
                      at android.app.ActivityThread.main(ActivityThread.java:6119) 
                      at java.lang.reflect.Method.invoke(Native Method) 
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 
W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:0
E/GoogleCertificates: Failed to load com.google.android.gms.googlecertificates
                      pt: No acceptable module found. Local version is 0 and remote version is 0.
                          at com.google.android.gms.dynamite.DynamiteModule.a(:com.google.android.gms.DynamiteModulesB@11743470:11)
                          at hx.a(:com.google.android.gms.DynamiteModulesB@11743470:12)
                          at hx.a(:com.google.android.gms.DynamiteModulesB@11743470:31)
                          at hx.b(:com.google.android.gms.DynamiteModulesB@11743470:30)
                          at ii.a(:com.google.android.gms.DynamiteModulesB@11743470:35)
                          at ii.a(:com.google.android.gms.DynamiteModulesB@11743470:20)
                          at com.google.maps.api.android.lib6.impl.ew.a(:com.google.android.gms.DynamiteModulesB@11743470:141)
                          at com.google.maps.api.android.lib6.impl.fc.run(:com.google.android.gms.DynamiteModulesB@11743470:27)
                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                          at java.lang.Thread.run(Thread.java:761)

Location Search via Text Input

Description

Hey, amazing lib!
If you search for a location via the Text Input the marker is set correctly to the new location but the "Check button" disappears. It reappears again if the user clicks onto the map.
It would be great if you could check this out. Thank You!

Info Required

  • Which version of the library do you actually use?
    3.4.0
  • Do you have the localization permission granted?
    Yes
  • Are you sending parameters to the activity through the bundle?
    No
  • Could you describe what are the actions do you make to raise that error?
    see Description
  • Android monitor shows any log related to the library when the error is shown?
    Nothing
  • Any other thing that could help me to reproduce the error?
    "Bug" occurs on Android 7.0

Screenshots

screenshot_20170703-125835

Fab is not positioned correctelly

At first time It's good but when i move the tracker to another place
the FAB looks like this

screenshot 2f e2 80 8f 2f - -

Hope you fix it ASAP
Many Thanks.
(Samsung Galaxy S6)

Search Api

Hi sir,
firstly, this is a great lib that i need. Because i need for user to pick freely the position on map, and not like google placepicker that only limits to a place (can't move pin position when search).

But the problem is, the search function seems not showing the good results like place picker does.
It has so limited results. Is there any way to improve so the search is like on place picker?

Thanks

Proguard Help

It would be great to know what to put in proguard rules, I've tried putting these:
-dontwarn com.schibstedspain.leku.**
-dontwarn rx.internal.util.unsafe.**

It's not working.

Thanks in advance.

Please include timezone...

When I select Place it returns Latitude, Longitude, Address, etc
But it is necessary to get timezone by selecting any place from google map..
If you include timezoneId it will be more beneficial for me and other peoples who uses your library...
Please reply...
One more thing,.. how can I get CountryName from FullAddress?
.....................................
Finally I get timezone via latitude and longitude by using google API

Permission really mandatory?

As described on the readme":

android.permission.WRITE_EXTERNAL_STORAGE Allows the API to cache map tile data in the device's external storage area.

Is this really needed??

My app only uses the maps for the location picker.. which they setup maybe once.
So can't this location picker also run without caching?

Conflicting dependecies

Please, update sdk tools versions to latest version 26 or exclude com.android.support libs from yoour project, because I can't use this module with my apps target sdk = 26;
Gradle build error code:
`Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:design:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.`

Requesting location permissions

v3.1.0

I'm using Leku as a fallback to allow users to select their location if it wasn't found or if they deny location permissions in a previous activity.

Right now my flow is:
MyActivityNeedingLocationExample.java

if permissions granted: use location/fused and continue without Leku
if permissions denied: start Leku

It seems that Leku always ask for permissions on start. I couldn't see any documentation on preventing this. It would be great if that was possible, or if anyone knows whether a PR to fix would need a lot of changes? Thanks

Crash 3.2.0 to 3.4.1

After I upgraded the version of this library from 3.2.0 to 3.4.1 the application shows me following types of bugs in Applications onpause Method in every activity:

java.lang.AbstractMethodError: abstract method "void com.google.android.gms.internal.zzaac$zza.zzas(boolean)"
at com.google.android.gms.internal.zzaac.zzas(Unknown Source)
at com.google.android.gms.internal.zzaac.onTrimMemory(Unknown Source)
at android.app.Application.onTrimMemory(Application.java:134)
at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:4632)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1676)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
08-08 15:24:35.075 818-878/? E/WifiConfigStore: updateConfiguration freq=2412 BSSID=6c:19:8f:c8:87:88 RSSI=-51 "TopOfStack Link3 2.4"WPA_PSK

ENABLE/DISABLE SATELLITE VIEW NOT WORKING

Description

intent.putExtra(LocationPickerActivity.ENABLE_SATELLITE_VIEW, false);
parameter not working in bundle passing

Info Required

  • Which version of the library do you actually use?
    3.1.0
  • Do you have the localization permission granted?
    YES
  • Are you sending parameters to the activity through the bundle?
    YES
  • Could you describe what are the actions do you make to raise that error?
    LocationPickerActivity.ENABLE_SATELLITE_VIEW not found while library import.
  • Android monitor shows any log related to the library when the error is shown?
    Editor show the error that variable not found.
  • Any other thing that could help me to reproduce the error?

Screenshots

image

Can't customize colors...

can_change_color

i've seen the resource "ic_gps_lime.png", and i can't change color.

style.xml

<style name="Base.Theme.F4M" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">#3F51B5</item>
    <item name="colorPrimaryDark">#303F9F</item>
    <item name="colorAccent">#498dfb</item>
</style>

manifest.xml







facing the same issue of #48

#48

Am facing with same issue with Activity!
java.lang.NoSuchMethodError: No static method create(Lrx/Observable$OnSubscribe;)Lrx/Observable; in class Lrx/Observable; or its super classes (declaration of 'rx.Observable' appears in /data/data/in.pnplabs.babyonboard/files/instant-run/dex/slice-slice_6-classes.dex)
Let me know the solution!

OnActivity result always returns RESULT_OK.

Hi, thanks for this library, I'm having a problem:

When I press the back arrow or the phisical back button, onActivity result is detecting RESULT_OK, why?

Thanks in advance

Crash

Instructions unclear. dick stuck in freezer

java.lang.NoSuchMethodError: No static method zzb(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; in class Lcom/google/android/gms/common/internal/zzab; or its super classes (declaration of 'com.google.android.gms.common.internal.zzab' appears in /data/app/mypackagename-2/base.apk) at com.google.android.gms.maps.model.CameraPosition.<init>(Unknown Source) at com.google.android.gms.maps.model.CameraPosition.<init>(Unknown Source) at com.google.android.gms.maps.model.CameraPosition$Builder.build(Unknown Source) at com.google.android.gms.maps.model.CameraPosition.createFromAttributes(Unknown Source) at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source) at com.google.android.gms.maps.SupportMapFragment.onInflate(Unknown Source) at android.support.v4.app.Fragment.onInflate(Fragment.java:1174) at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2414) at android.support.v4.app.FragmentController.onCreateView(FragmentController.java:120) at android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:376) at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:33) at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:75) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:733) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.schibstedspain.leku.LocationPickerActivity.onCreate(LocationPickerActivity.java:112) at android.app.Activity.performCreate(Activity.java:5975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:147) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5264) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:695)

I followed the steps on main page. Is this happens because I try to start it from a fragment? Thx

edit: About that google-services stuff. I got this line at the bottom of my gradle file :
apply plugin: 'com.google.gms.google-services'

classpath 'com.google.gms:google-services:3.0.0' // and this is in the other gradle file. Called project-level gradle file I think.

that was needed for firebase setup

The address / location is not found.

Description

At some phones, they are not able to select a location. Also the address is not found.
See screenshots, the same address works on different phones.

Info Required

  • Which version of the library do you actually use?
    3.1.0

  • Do you have the localization permission granted?
    yes

  • Are you sending parameters to the activity through the bundle?
    yes, it works on most of the phones

  • Could you describe what are the actions do you make to raise that error?
    It doesn't work on a zte axon 7 with android 7.1.

Screenshots

ffac5a280ac1291fa8c7f33c2dda58ef
12e7698199d7bafdb266506056534ca9

Unable to start activity

hello thanks for your work it's very cool :)

I have a problems when i click on my button i have an error :

java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.wildcodeschool.hobbyhobbo/com.schibstedspain.leku.LocationPickerActivity}: android.view.InflateException: Binary XML file line #53: Error inflating class android.support.design.widget.FloatingActionButton

my code :

Manifest :

`

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<uses-feature android:name="android.hardware.location.network" android:required="false" />
<uses-feature android:name="android.hardware.location.gps" android:required="false"  />


<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version"
        />

    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="@string/google_maps_key"
        />

    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>



    <activity
        android:name="com.schibstedspain.leku.LocationPickerActivity"
        android:label="@string/title_activity_location_picker"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar"
        android:windowSoftInputMode="adjustPan"
        android:parentActivityName=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.SEARCH" />
        </intent-filter>
        <meta-data android:name="android.app.searchable"
            android:resource="@xml/searchable" />
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value=".MainActivity" />
    </activity>
</application>

`

MainActivity :

`
import android.content.Intent;
import android.location.Address;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.schibstedspain.leku.LocationPicker;
import com.schibstedspain.leku.LocationPickerActivity;
import com.schibstedspain.leku.tracker.LocationPickerTracker;
import com.schibstedspain.leku.tracker.TrackEvents;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Button goMarker = (Button) findViewById(R.id.button2);

    goMarker.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Intent intent = new Intent(MainActivity.this, LocationPickerActivity.class);
            startActivityForResult(intent, 1);
        }
    });
    initializeLocationPickerTracker();
}

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {

    if (requestCode == 1) {
        if(resultCode == RESULT_OK){
            double latitude = data.getDoubleExtra(LocationPickerActivity.LATITUDE, 0);
            Log.d("LATITUDE****", String.valueOf(latitude));
            double longitude = data.getDoubleExtra(LocationPickerActivity.LONGITUDE, 0);
            Log.d("LONGITUDE****", String.valueOf(longitude));
            String address = data.getStringExtra(LocationPickerActivity.LOCATION_ADDRESS);
            Log.d("ADDRESS****", String.valueOf(address));
            String postalcode = data.getStringExtra(LocationPickerActivity.ZIPCODE);
            Log.d("POSTALCODE****", String.valueOf(postalcode));
            Bundle bundle = data.getBundleExtra(LocationPickerActivity.TRANSITION_BUNDLE);
            Log.d("BUNDLE TEXT****", bundle.getString("test"));
            Address fullAddress = data.getParcelableExtra(LocationPickerActivity.ADDRESS);
            Log.d("FULL ADDRESS****", fullAddress.toString());
        }
        if (resultCode == RESULT_CANCELED) {
            //Write your code if there's no result
        }
    }
}

private void initializeLocationPickerTracker() {
    LocationPicker.setTracker(new LocationPickerTracker() {
        @Override
        public void onEventTracked(TrackEvents event) {
            Toast.makeText(MainActivity.this, "Event: " + event.getEventName(), Toast.LENGTH_SHORT)
                    .show();
        }
    });
}

}
`

I have add dependencies, Google map api key

Can you tell me what is wrong please ?
Thank's you so mutch and sorry for my english ahah

java.lang.NoSuchMethodError: No static method com_schibstedspain_leku_LocationPicker...

Description

using jack compiler, when trying to start LocationPickerActivity getting
java.lang.NoSuchMethodError: No static method com_schibstedspain_leku_LocationPicker$$Lambda$1_lambda$static$0(Lcom/schibstedspain/leku/tracker/TrackEvents;)V in class Lcom/schibstedspain/leku/LocationPicker; or its super classes (declaration of 'com.schibstedspain.leku.LocationPicker' appears

  • Which version of the library do you actually use?
    v3.0.0

  • Do you have the localization permission granted?
    yes

  • Are you sending parameters to the activity through the bundle?
    no

  • Could you describe what are the actions do you make to raise that error?
    starting LocationPickerActivity

  • Android monitor shows any log related to the library when the error is shown?

 java.lang.NoSuchMethodError: No static method com_schibstedspain_leku_LocationPicker$$Lambda$1_lambda$static$0(Lcom/schibstedspain/leku/tracker/TrackEvents;)V in class Lcom/schibstedspain/leku/LocationPicker; or its super classes (declaration of 'com.schibstedspain.leku.LocationPicker' appears in /data/app/in.co.c24customer-1/base.apk)
                                                                       at com.schibstedspain.leku.LocationPicker$$Lambda$1.onEventTracked(Unknown Source)
                                                                       at com.schibstedspain.leku.LocationPickerActivity.setTracking(LocationPickerActivity.java:142)
                                                                       at com.schibstedspain.leku.LocationPickerActivity.onCreate(LocationPickerActivity.java:132)
                                                                       at android.app.Activity.performCreate(Activity.java:6679)
                                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
                                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
                                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
                                                                       at android.app.ActivityThread.-wrap12(ActivityThread.java)
                                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
                                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                       at android.os.Looper.loop(Looper.java:154)
                                                                       at android.app.ActivityThread.main(ActivityThread.java:6119)
                                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Bug in Background

I upgraded your library from 3.2.0 to 3.4.4

problem is that when I run the app then the app crashes after some times later in background thread.

But When I uninstall the app and install again then it's ok.

I updated my apps to google play store..

Those persons who upgraded my apps from playstore all of them are fallen the same problem... Not for fresh Installers..

Huge Bug Report: Please fix it...

java.lang.AbstractMethodError:
at com.google.android.gms.internal.zzaac.zzas (Unknown Source)
at com.google.android.gms.internal.zzaac.onTrimMemory (Unknown Source)
at android.app.Application.onTrimMemory (Application.java:152)
at android.app.ActivityThread.handleTrimMemory (ActivityThread.java:5702)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1977)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:145)
at android.app.ActivityThread.main (ActivityThread.java:6934)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199)

Option to disable voice search (enhancement)

Description

Option into the Builder to disable voice search

**and another option to disable the Coordinates box, and only to show the result box when the address is selected (valid address)

Info Required

  • Which version of the library do you actually use?

    compile 'com.schibstedspain.android:leku:3.4.3'

  • Do you have the localization permission granted?

Yes!

  • Are you sending parameters to the activity through the bundle?

With builder and sending the intent to the activity.

  • Could you describe what are the actions do you make to raise that error?

Is not an error, more like an enhancement.

  • Android monitor shows any log related to the library when the error is shown?

Is not an error, more like an enhancement.

  • Any other thing that could help me to reproduce the error?

Is not an error, more like an enhancement.

Confirm Location Button missing

Hello, I get the error message as a Toast: "Something went wrong. Please try again." This equals the string key "load_location_error". I can start the intent. I can press the "GPS"-FAB to move to my current location. I can write into the Search bar and speak into the microphone. But: I don't have the Confirmation-FAB to actually get the chosen location and return to my previous activity. When typing into the Search bar, on every key press a new "Something went wrong. Please try again." spawns, as well as after finishing a voice input. If it put this into the intent:
intent.putExtra(LocationPickerActivity.BACK_PRESSED_RETURN_OK, true);
And I press back, it does NOT return OK, but instead RESULT_CANCELED.

My Google Developer Console shows the incoming requests for "Google Maps Android API", without any errors.

Important parts of my AndroidMainfest.xml:

            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version"/>
        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="@string/google_maps_key"/>
        <activity
            android:name="com.schibstedspain.leku.LocationPickerActivity"
            android:label="@string/title_activity_location_picker"
            android:parentActivityName=".view.activity.PreInfoActivity"
            android:theme="@style/AppTheme"
            android:windowSoftInputMode="adjustPan">
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <meta-data
                android:name="android.app.searchable"
                android:resource="@xml/searchable"/>
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".view.activity.PreInfoActivity"/>
        </activity>

My module-level build.gradle:

    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
repositories {
    maven { url 'https://maven.fabric.io/public' }
    jcenter()
}
android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'
    defaultConfig {
        applicationId "my.application.name.id"
        vectorDrawables.useSupportLibrary = true
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            debuggable true
        }
    }
}
dependencies {
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.google.android.gms:play-services-auth:10.0.1'
    compile 'com.android.support:design:25.1.0'
    compile 'com.android.support:support-v4:25.1.0'
    compile 'com.android.support:cardview-v7:25.1.0'
    compile 'com.android.support:gridlayout-v7:25.1.0'
    compile 'com.android.support:support-vector-drawable:25.1.0'
    compile 'com.android.support:animated-vector-drawable:25.1.0'
    compile 'com.android.support:percent:25.1.0'
    compile 'com.google.code.gson:gson:2.6.2'
    compile 'com.squareup.retrofit2:retrofit:2.1.0'
    compile 'com.squareup.retrofit2:converter-gson:2.1.0'
    compile 'com.schibstedspain.android:leku:3.0.0' 
    [...]
}
apply plugin: 'com.google.gms.google-services'

Screenshot:
leku-screencap

Devices: LG G3 (API 21) as well as Nexus 5X API 25 Emulator.

Also, I don't really get how SEARCH_ZONE works exactly. If I don't pass it as an Extra, is this equal to a global search zone? And what exactly does the search zone do? I want the user to be able to choose a location globally.

I hope it is just a stupid, obvious mistake.

List place or address from my country by search, not showing

Hello, I'm from indonesia. I use this library for my apps. But i get something bugs. List place or address from my country by search, not showing. I type "Pamulang", this is place name in my country, but now show.

This is my code:
LocationPickerActivity.Builder pick = new LocationPickerActivity.Builder()
.withGeolocApiKey(getString(R.string.google_maps_key))
.withStreetHidden()
.withCityHidden()
.withSearchZone("es_ES")
.withZipCodeHidden()
.withSatelliteViewHidden();

so how to solve it ? thanks

Same problem as #61, but with cloned repo

Hi! I'm trying to use this library and have the same problem that the issue #61 (can't select a position, can't search)

I cloned this repo, thinking that maybe I'm doing something wrong in my app, but I have the same problem in the repo app, where I just modify the GoogleMap API_KEY.

I have a Samsung Grand Prime... What can be the problem?

Thanks!

The `Done` button not showing in small screen

Hi,
My app is need to install on the small screen size device.
But when I open picker activity, the Done button not showing.
It there any parameter to set Done button position ?
leku

And another problem is the buttons color are always gray.

Thanks,

Info Required

  • Which version of the library do you actually use?
    3.4.0
  • Do you have the localization permission granted?
    no
  • Are you sending parameters to the activity through the bundle?
    N
  • Could you describe what are the actions do you make to raise that error?
    N
  • Android monitor shows any log related to the library when the error is shown?
    N
  • Any other thing that could help me to reproduce the error?
    N

Screenshots

Search View not working properly.

Hi, I'm from India. I used your library and it is working pretty awesome. But the problem is that the search view isn't working properly. It only shows some results. I have also set the search zone to India but still no luck. Well it is not that important to my application so I was thinking of removing it. Is there any way to remove it?

onDestroy is calling by startActivityForResult

Description

onDestroy is calling by startActivityForResult, how to avoid calling OnDestroy

Info Required

  • Which version of the library do you actually use?
    3.4.5

  • Do you have the localization permission granted?
    Yes

  • Are you sending parameters to the activity through the bundle?
    No

  • Could you describe what are the actions do you make to raise that error?

  • Android monitor shows any log related to the library when the error is shown?

Any other thing that could help me to reproduce the error?

Screenshots

LocationPickerActivity.SEARCH_ZONE not working!!!

I want to show the LocationPickerActivity to only display place searches and location results within UAE. I tried to set SEARCH ZONE as mentioned below.

Intent placePickerIntent = new Intent(this, LocationPickerActivity.class);
placePickerIntent.putExtra(LocationPickerActivity.SEARCH_ZONE, "ar_AE");
placePickerIntent.putExtra(LocationPickerActivity.BACK_PRESSED_RETURN_OK, true);
startActivityForResult(placePickerIntent, PLACE_PICKER_REQUEST);

But is not working. Instead of showing the results within UAE, t is showing the rresults from all around. Please help.

Search button

Please add custom button for apply text search.
Some blonde girls not known about default search button on keyboard.

Google play services 9.6.1

I have a problem when compiling my project. After updating all my google dependencies to 9.6.1, an error is shown:

All com.google.android.gms libraries must use the exact same version. (9.6.1)

I think this is caused because Leku uses maps:9.4.0

Is there any solution without needing to update Leku library?

Thanks in advance

Reduce method counts

Hello There, Could you please make a separate builds for the library? the soon i add it to my project, i got

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

by analysing the library in Methods Count
it says that it has 38540 methods the library itself has 433 and 16 dependency, if you could make two separate builds a one with Rx, lambda & one without them to reduce the method count that had be great.

Thanks

Locale support PRs not working for locales not existing in java.util.Locale

Description

The recent PRs for locale support don't appear to be working. It looks like we are trying to create Locale object's from country codes and then later querying the locale.getCountry()
However, this will only work for countries listed in java.util.Locale (Which is a very small amount).
For example, when I followed the latest PR format to add support for Ireland (IE), LocationPickerActivity.retrieveLocationFromZone() creates new Locale("IE") but then later queries locale.getCountry() in CountryLocaleRect.getLowerLeftFromZone() which actually returns null

I'm going to personally go with a hack workaround for now, but I feel like we should come up with a better solution for locales? Surely some library is already doing this (getting lat/lng bounds) for the majority of countries?

screen shot 2017-08-19 at 00 05 47

Info Required

  • Which version of the library do you actually use?
    v3.4.3

Build failing when I use this library

Description

Gradle error:
app:transformDexArchiveWithExternalLibsDexMergerForDebug

Info Required

  • Which version of the library do you actually use?
    6.4.5
  • Do you have the localization permission granted?
    Not relevant
  • Are you sending parameters to the activity through the bundle?
    Not relevant
  • Could you describe what are the actions do you make to raise that error?
    Just add the library
  • Android monitor shows any log related to the library when the error is shown?
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
  • Any other thing that could help me to reproduce the error?
    Android Studio 3.0
    Gradle 4.3

Screenshots

View transition names

In order to make transitions between activities, views should contain android:transitionName properties.

It should be great to have Leku activity views with this field.

Example:

2 FAB buttons
Street name
City name
Postal Code
Search bar
Info layout
Map (?)

Point to my location when just accepted the location permission dialog

Right now, if the phone has the location permission, it points to your location. But, if it doesn't have it, it prompts the user for that permission. If the user accepts it, it doesn't point to the user's location automagically, but the user has to tap the "my location" button.

That's not a big issue but something to improve :·)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.