This is a migrated thread and some comments may be shown as answers.

Radautocomplete control consuming more space in xamarin forms

9 Answers 177 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Prakash
Top achievements
Rank 1
Prakash asked on 16 Aug 2017, 02:32 PM

I am using Telerik.UI.for.Xamarin.Lite.Trial package for my application to implement Radautocomplete control.In my xamarin forms project I am using only radautocomplete control not  any other controls .I generated apk having the size of 26.9 Mb.It is too large without implementing any other controls.I tried with all package(Telerik.UI.for.Xamarin.Lite.Trial,Telerik.UI.for.Xamarin.Input.Trial,Telerik.UI.for.Xamarin.Trial) which are greater than 30Mb.

Can you please suggest me to reduce the size of Apk to 10Mb 

whether I need to use different packages.??

 

Thanks,

Manasa

9 Answers, 1 is accepted

Sort by
0
Prakash
Top achievements
Rank 1
answered on 17 Aug 2017, 06:32 AM

Telerik team please answer me .I am waiting for your reply.

Thanks,

Manasa

0
mo
Top achievements
Rank 1
answered on 19 Aug 2017, 07:17 AM

i think this is something related to xamarin forms

try to uninstall all your plugins and you will find that your app size is more than 10MB by default 

0
Stefan Nenchev
Telerik team
answered on 21 Aug 2017, 11:00 AM
Hi Prakash,

Indeed, as Mo has explained, you will notice that if you try to deploy the most basic Xamarin Forms application it will exceed 10mb. It would be expected that when you add the Telerik libraries the size becomes even bigger. Using the Lite packages would be the best approach at your end and the size of the application in Android dropped to around 26mb at my end. Unfortunately, at this point, there is no way to further lower it. However, if we come up with an idea how to achieve this, we will definitely consider implementing it.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
manasa
Top achievements
Rank 1
answered on 22 Aug 2017, 12:49 PM

Thanks for the reply.

I used Telerik.UI.for.Xamarin.Lite.Trial package.But I am not able to access Telerik.xamarinforms namespace in MainActivity class

([assembly: ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.Android.AutoCompleteRenderer))]).

So that I am not able to use Lite Package.

Please help me.

Thanks,

manasa

0
Lance | Manager Technical Support
Telerik team
answered on 22 Aug 2017, 08:07 PM
Hi Manasa,

As of UI for Xamarin Q2 2017, you do not need to manually declare the renderers anymore, Feel free to remove that from MainActivity.cs, iOS's AppDelegate.cs and UWP's MainPage.xaml.cs. Additionally, you no longer need to call TelerikForms.Init() either, you can safe remove that from each of those locations as well.

However, the error you're seeing may be signalling a more fundamental issue, it is likely occurring because you do not have all the dependencies installed. Please see here for all the requirements for the RadAutoComplete control.

It sounds like you many have only installed the DataControls.Lite by itself. As seen in the documentation link I provide above, you also need Telerik.XamarinForms.Input, too (if you want the light version, it would be Input.Lite)


Alternatively, you can install only the Telerik.UI.for.Xamarin.Lite which will add the required dependencies for you. Here's a screenshot of the NuGet Package Manager with that package installed:




Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
manasa
Top achievements
Rank 1
answered on 23 Aug 2017, 10:52 AM

Telerik team Thanks for the reply.

I am using  UI for Xamarin Q2 2017 instesd of UI for Xamarin Q2 2017.Please find the below screenshot.

I am using Telerik.UI.for.Xamarin.Input.Lite package for below scenarios.

1.If I use FormsApplicationActivity class for inheriting MAinActivity.cs without using any renderer autocomplete is working fine.But here I cannot use toolbar.I need to use tool bar.

2.If I use FormsAppCompatActivity for inheriting MainActivity.cs Autocomplete is not working.

Thanks,

Manasa

 

 

0
Stefan Nenchev
Telerik team
answered on 28 Aug 2017, 08:09 AM
Hello Manasa,

A customer recently reported the same exception and he managed to resolve it by restarting the emulator and choose the option to "Wipe user data". After these steps, the application was running properly on Android. Can you try this as well? Have you tested whether the exception is thrown on an actual device?

Have a great week.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
manasa
Top achievements
Rank 1
answered on 29 Aug 2017, 11:08 AM

Hello Team,

I am not using emulator to run the app.I am testing my application in device with nougat android it displays exception only for FormsAppCompatActivity class in MainActivity class with Telerik.UI.for.Xamarin.Input.Lite.Trial package.

Please suggest me how to solve this issue.

Thanks,

Manasa

 

0
Stefan Nenchev
Telerik team
answered on 01 Sep 2017, 06:10 AM
Hi Manasa,

Please provide a sample application so we can have a look at the issue and try to reproduce it from our side. Eventually, we can provide more information. I suggest you check the Android Samples application, which can be found in the Examples folder of your local Telerik UI for Xamarin installation as well.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AutoComplete
Asked by
Prakash
Top achievements
Rank 1
Answers by
Prakash
Top achievements
Rank 1
mo
Top achievements
Rank 1
Stefan Nenchev
Telerik team
manasa
Top achievements
Rank 1
Lance | Manager Technical Support
Telerik team
Share this question
or