[android-developers] Strange webView problem

2016-03-14 Thread Adrian Ivasku
Hello, I have a string that I load to a WebViev.

String test1 = "[/quote_content]   [/quote]Ipak, fotografije 
gradilišta pokazuju da se na kulama radi, " +
"ali da još uvek zgrade nisu “nikle iz zemlje”. U toku su radovi na 
postavljanju šipova, zato što se gradi na " +
"nestabilnom zemljištu, pored reke. Kako i koliko će ovi nepredviđeni 
radovi uticati na cenu gradnje, naravno " +
"da nije poznato.
 " +
"" +
"http://www.istinomer.rs/pictures/slike/400431194109842.jpg\; alt=\"*\">" +
"   " +
"Gradilište prve dve stambene zgrade u kompleksu 
\"Beograd na vodi\", 8. 3. 2016. / Foto: Istinomer" +
"  " +
"" +
"" +
"   http://www.istinomer.rs/pictures/slike/178219378925860.jpg\; alt=\"*\">" +
"   " +
"Beograd na vodi, 8. 3. 2016. / Foto: 
Istinomer" +
" Evo sad će, samo što nije. " +
"Ovim rečima mogu se opisati sve nerealne izjave o rokovima koje su 
naši političari davali i probijali u vezi sa izgradnjom stambenog " +
"kompleksa u Savskom amfiteatru. Sudeći prema fotografijama, obećanje 
premijera Vučića takođe je nerealno i dobija ocenu “neispunjeno”." +
" " +
"Istinomer je u http://www.istinomer.rs/pregled_clanaka/36/163/Beograd-na-vodi\; 
title=\"\" target=\"_blank\">" +
"više navrata pisao i o brojnim nepravilnostima koje prate ovaj 
projekat. Primer koji dobro ilustruje čitav posao oko" +
" “Beograda na vodi” jeste netransparentno poslovanje promotivnog 
štanda, odnosno restorana “Savanova” koji je smešten na" +
" rekonstruisanom delu Savskog šetališta. Dozvolu za gradnju promotivni 
štand od 670 m2 dobio je za samo 24 sata, iako" +
" zakonski propisi ne poznaju privremene objekte ove veličine. Na isti, 
javnosti nepoznat, način u tom objektu, porodica Kesić, " +
"otvorila je svoj restoran. Tako je promotivni štand državnog projekta 
postao privatni restoran." +
" Opširnije u video prilogu." +
"" +
"";


And I load it with:

webView = (WebView) inflatedView.findViewById(R.id.webView);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadDataWithBaseURL("http://www.test.com;, test1, "text/html", "utf-8", 
null);

Everything works like this... even the Iframe loads properly...

But when I load it with 

String test2 = "[/quote_content] [/quote]Ipak, fotografije gradilišta 
pokazuju da se na kulama radi, ali da još uvek zgrade nisu “nikle iz 
zemlje”. U toku su radovi na postavljanju šipova, zato što se gradi na 
nestabilnom zemljištu, pored reke. Kako i koliko će ovi nepredviđeni radovi 
uticati na cenu gradnje, naravno da nije poznato.  http://www.istinomer.rs/pictures/slike/400431194109842.jpg\; 
alt=\"*\">  Gradilište prve dve stambene zgrade 
u kompleksu \"Beograd na vodi\", 8. 3. 2016. / Foto: Istinomer 
   http://www.istinomer.rs/pictures/slike/178219378925860.jpg\; 
alt=\"*\">  Beograd na vodi, 8. 3. 2016. / 
Foto: Istinomer Evo sad će, samo što nije. Ovim rečima mogu se 
opisati sve nerealne izjave o rokovima koje su naši političari davali i 
probijali u vezi sa izgradnjom stambenog kompleksa u Savskom amfiteatru. 
Sudeći prema fotografijama, obećanje premijera Vučića takođe je nerealno i 
dobija ocenu “neispunjeno”. Istinomer je u http://www.istinomer.rs/pregled_clanaka/36/163/Beograd-na-vodi\; 
title=\"\" target=\"_blank\">više navrata pisao i o brojnim 
nepravilnostima koje prate ovaj projekat. Primer koji dobro ilustruje čitav 
posao oko “Beograda na vodi” jeste netransparentno poslovanje promotivnog 
štanda, odnosno restorana “Savanova” koji je smešten na rekonstruisanom 
delu Savskog šetališta. Dozvolu za gradnju promotivni štand od 670 m2 dobio 
je za samo 24 sata, iako zakonski propisi ne poznaju privremene objekte ove 
veličine. Na isti, javnosti nepoznat, način u tom objektu, porodica Kesić, 
otvorila je svoj restoran. Tako je promotivni štand državnog projekta 
postao privatni restoran. Opširnije u video prilogu."

No images are loaded... html tags are not decoded and only text is seen.

At the test1 string , I tried also to "split" it randomly with "+" sign and 
always works! But when I feed the string "automatically", it does not.

What could be the problem?



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 

[android-developers] Re: Publishing Question

2016-03-13 Thread Adrian Ivasku

I don`t think so... It is copyrighted...

On Sunday, March 13, 2016 at 2:36:20 PM UTC+1, Itay T wrote:
>
> Uhm??

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a0b72a84-71e5-46a9-8653-3f29484ad8ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Advice - news app

2016-02-27 Thread Adrian Ivasku
Hello,

I am trying to make a news app that would read news from a particular web 
page... I have done this with Jsoup library but it is very slow... on a 
fast phone with good internet connection it takes for 3-6 seconds to load a 
page... and I have optimized the code that gets the Document object from a 
page...

I have read today about volley library, which is apparently ultra fast and 
ideal for this kind of tasks... I have been reading and looking at volley 
examples... but I fail to see the point... Could anyone explain some more, 
with example situation why should I use volley?

Can anyone give me advice in which direction should I go to make this news 
app, should I use volley ? or even if possible volley with jsoup in 
general. What libraries should I use? 


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/0e1d0a46-a1f6-4647-a315-ce849c93c6ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Use gradle variable in java (Android Studio)

2016-01-27 Thread Adrian Ivasku
I have in my gradle file something like :

String packageName = com.test.free


 Now I want this String packageName to use in my java class.

Is it possible? How can I transfer this String from gradle to java ?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b8ad5316-69d3-45a7-afb0-446d7a4aa772%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android studio inherit class from external module

2016-01-12 Thread Adrian Ivasku
I have established that if I extend a class from a module that does NOT 
contain NDK code, it works fine. I can extend an abstract class in my main 
module app, but only when I try to extend the module that contains c++ and 
Java code it does not. The module builds ok, but it doesn`t work as a 
dependency. Pure Java module works with pure Java main module app, only if 
it contains NDK code it cannot be extended.

Do you have experience with NDK and Android Studio? Any idea what could be 
the problem ?

On Sunday, January 10, 2016 at 9:14:10 PM UTC+1, niks wrote:
>
> Hi Adrian,
>
> I will look into your issue. But from what I read, really quickly, from 
> your stakeoverflow post I saw that it works fine in eclipse.
>
> I can tell you this from my experience:
>
> I program in both eclipse and android studio but I prefer eclipse. The 
> reason is that android studio caused me issues similar to the one you are 
> currently facing.
> IF it works for you in eclipse - and from what I saw - you are 
> respectively comfortable in working in the eclipse environment - 
>
> hence, stick with eclipse to complete your app.
>
> I am pretty much sure that once you package your app in eclipse it will 
> run without issues - something that you should also check on an actual 
> device before uploading; although I strongly believe that you will have no 
> problems. 
>
> Keep me updated of how things proceed. And yes I will try to look into the 
> issue - but I do not promise anything, ok?
>
> Τη Κυριακή, 10 Ιανουαρίου 2016 - 9:22:31 μ.μ. UTC+2, ο χρήστης Adrian 
> Ivasku έγραψε:
>>
>> Hello everybody, I have a strange question about inheritance from classes 
>> that are from diferent modules. I have posted the question here:
>>
>>  
>> http://stackoverflow.com/questions/34698454/android-studio-inherit-class-from-external-module
>>
>> If anybody has any idea or advice, please share.
>>
>> Greetings
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c090e013-eb90-43d8-8ef3-c0228d7c66d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android studio inherit class from external module

2016-01-12 Thread Adrian Ivasku
I have established that if I extend a class from a module that does NOT 
contain NDK code, it works fine. I can extend an abstract class in my main 
module app, but only when I try to extend the module that contains c++ and 
Java code it does not. The module builds ok, but it doesn`t work as a 
dependency.

Do you have experience with NDK and Android Studio? Any idea what could be 
the problem ?

On Sunday, January 10, 2016 at 9:14:10 PM UTC+1, niks wrote:
>
> Hi Adrian,
>
> I will look into your issue. But from what I read, really quickly, from 
> your stakeoverflow post I saw that it works fine in eclipse.
>
> I can tell you this from my experience:
>
> I program in both eclipse and android studio but I prefer eclipse. The 
> reason is that android studio caused me issues similar to the one you are 
> currently facing.
> IF it works for you in eclipse - and from what I saw - you are 
> respectively comfortable in working in the eclipse environment - 
>
> hence, stick with eclipse to complete your app.
>
> I am pretty much sure that once you package your app in eclipse it will 
> run without issues - something that you should also check on an actual 
> device before uploading; although I strongly believe that you will have no 
> problems. 
>
> Keep me updated of how things proceed. And yes I will try to look into the 
> issue - but I do not promise anything, ok?
>
> Τη Κυριακή, 10 Ιανουαρίου 2016 - 9:22:31 μ.μ. UTC+2, ο χρήστης Adrian 
> Ivasku έγραψε:
>>
>> Hello everybody, I have a strange question about inheritance from classes 
>> that are from diferent modules. I have posted the question here:
>>
>>  
>> http://stackoverflow.com/questions/34698454/android-studio-inherit-class-from-external-module
>>
>> If anybody has any idea or advice, please share.
>>
>> Greetings
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/41463f1b-07ed-4f4c-b84d-5630af5db49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Andriod error

2016-01-10 Thread Adrian Ivasku
I usually get this error when I have an error in my gradle file. Did you 
check the gradle file for any errors? I recently converted some projects 
from Eclipse to Android Studio and you need to write all the gradle files, 
or atleast fix them. The error is 99% in one of your gradle files.

On Sunday, January 10, 2016 at 2:06:11 PM UTC+1, Usha Rani wrote:
>
> I had converted a project from eclipse to andriod studio.When i tried to 
> run the project in andriod studioiam getting the below error 
> message...Please let me know how to solve this error
>
>
> Error:Execution failed for task ':preDexDebug'.
> > com.android.ide.common.process.ProcessException: 
> org.gradle.process.internal.ExecException: Process 'command 'C:\Program 
> Files\Java\jdk1.8.0_20\bin\java.exe'' finished with non-zero exit value 1
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/36769a9e-53ef-4b31-98e0-e88cd5aa4404%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android studio inherit class from external module

2016-01-10 Thread Adrian Ivasku
Hello everybody, I have a strange question about inheritance from classes 
that are from diferent modules. I have posted the question here:

 
http://stackoverflow.com/questions/34698454/android-studio-inherit-class-from-external-module

If anybody has any idea or advice, please share.

Greetings

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3606ea18-58df-4778-9873-a706bc50aac2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Andriod error

2016-01-10 Thread Adrian Ivasku
I usually get this error when I have an error in my gradle file. Did you 
check the gradle file for any errors?

On Sunday, January 10, 2016 at 2:06:11 PM UTC+1, Usha Rani wrote:
>
> I had converted a project from eclipse to andriod studio.When i tried to 
> run the project in andriod studioiam getting the below error 
> message...Please let me know how to solve this error
>
>
> Error:Execution failed for task ':preDexDebug'.
> > com.android.ide.common.process.ProcessException: 
> org.gradle.process.internal.ExecException: Process 'command 'C:\Program 
> Files\Java\jdk1.8.0_20\bin\java.exe'' finished with non-zero exit value 1
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6c0864c2-c5ba-40e5-8d54-4cf8ab119693%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: First app not working

2016-01-10 Thread Adrian Ivasku
I think you are trying to use the Android NDK (native) and you made an 
error in your gradle file. You need to either configure the gradle file 
with right configuration for android.ndk or force it to search the 
Android.mk file and read the configuration and the files to compile from 
there.

On Sunday, January 10, 2016 at 12:08:35 AM UTC+1, Ricardo Morales wrote:
>
> So I tried doing the first app tutorial from the web, the one that sends 
> text to one activity to another.
> But I think i really suck at this.
>
> Here is my logcat:
>
> 01-09 17:04:47.471 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: Not 
> late-enabling CheckJNI (already on)
> 01-09 17:04:47.481 1633-1633/com.example.ricki.myfirstapp E/Trace: error 
> opening trace file: No such file or directory (2)
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to find class referenced in signature (Landroid/view/SearchEvent;)
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.view.Window$Callback.onSearchRequested, 
> referenced from method 
> android.support.v7.view.WindowCallbackWrapper.onSearchRequested
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve interface method 17964: 
> Landroid/view/Window$Callback;.onSearchRequested 
> (Landroid/view/SearchEvent;)Z
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x72 at 0x0002
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method 
> android.view.Window$Callback.onWindowStartingActionMode, referenced from 
> method 
> android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve interface method 17968: 
> Landroid/view/Window$Callback;.onWindowStartingActionMode 
> (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x72 at 0x0002
> 01-09 17:04:47.521 1633-1637/com.example.ricki.myfirstapp E/jdwp: Failed 
> sending reply to debugger: Broken pipe
> 01-09 17:04:47.521 1633-1637/com.example.ricki.myfirstapp D/dalvikvm: 
> Debugger has detached; object registry had 1 entries
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.view.ViewGroup.onRtlPropertiesChanged, 
> referenced from method 
> android.support.v7.widget.Toolbar.onRtlPropertiesChanged
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve virtual method 17860: 
> Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x6f at 0x0007
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method 
> android.content.res.TypedArray.getChangingConfigurations, referenced from 
> method android.support.v7.widget.TintTypedArray.getChangingConfigurations
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve virtual method 422: 
> Landroid/content/res/TypedArray;.getChangingConfigurations ()I
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x6e at 0x0002
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.content.res.TypedArray.getType, referenced 
> from method android.support.v7.widget.TintTypedArray.getType
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve virtual method 444: 
> Landroid/content/res/TypedArray;.getType (I)I
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x6e at 0x0002
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.widget.LinearLayout$LayoutParams., 
> referenced from method 
> android.support.design.widget.AppBarLayout$LayoutParams.
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve direct method 18480: 
> Landroid/widget/LinearLayout$LayoutParams;. 
> (Landroid/widget/LinearLayout$LayoutParams;)V
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x70 at 0x
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.widget.LinearLayout$LayoutParams., 
> referenced from method 
> android.support.design.widget.AppBarLayout$LayoutParams.
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve direct method 18480: 
> Landroid/widget/LinearLayout$LayoutParams;. 
> (Landroid/widget/LinearLayout$LayoutParams;)V
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> 

[android-developers] Re: Android studio inherit class from external module

2016-01-10 Thread Adrian Ivasku
Please check it when you can. I would appreciate any advice because I stuck 
without any ideas how to solve this. 

I have this project in Eclipse and it works fine (development and 
deployment), but I need my project in Android Studio because I must use a 
library that is an AAR extension. Also I want to move to Android Studio 
because the Eclipse support is depreciated for a while now. Plus I want to 
learn the gradle build system and start using the Studio because it appears 
to be the next standard in the industry for Android dev.

I have fixed the NDK support and multiDex :), I am just left with this 
problem.

If you think it would help, I can provide more screen-shoots or information.

Thank you.

Greetings.

On Sunday, January 10, 2016 at 9:14:10 PM UTC+1, niks wrote:
>
> Hi Adrian,
>
> I will look into your issue. But from what I read, really quickly, from 
> your stakeoverflow post I saw that it works fine in eclipse.
>
> I can tell you this from my experience:
>
> I program in both eclipse and android studio but I prefer eclipse. The 
> reason is that android studio caused me issues similar to the one you are 
> currently facing.
> IF it works for you in eclipse - and from what I saw - you are 
> respectively comfortable in working in the eclipse environment - 
>
> hence, stick with eclipse to complete your app.
>
> I am pretty much sure that once you package your app in eclipse it will 
> run without issues - something that you should also check on an actual 
> device before uploading; although I strongly believe that you will have no 
> problems. 
>
> Keep me updated of how things proceed. And yes I will try to look into the 
> issue - but I do not promise anything, ok?
>
> Τη Κυριακή, 10 Ιανουαρίου 2016 - 9:22:31 μ.μ. UTC+2, ο χρήστης Adrian 
> Ivasku έγραψε:
>>
>> Hello everybody, I have a strange question about inheritance from classes 
>> that are from diferent modules. I have posted the question here:
>>
>>  
>> http://stackoverflow.com/questions/34698454/android-studio-inherit-class-from-external-module
>>
>> If anybody has any idea or advice, please share.
>>
>> Greetings
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a1f529cf-dca0-4678-8f5d-7d6e71b79934%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: First app not working

2016-01-10 Thread Adrian Ivasku
>From the log, I think you are trying to use the Android NDK (native) and 
you made an error in your gradle file. You need to either configure the 
gradle file with right configuration for android.ndk or force it to search 
the Android.mk file and read the configuration and the files to compile 
from there.

If that is not the case, if you are trying to build standard Android SDK, 
then you are probably using the from gradle plugin. Look at your 
build.gradle to see what plugin are you using.

eg:

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.4.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}


This is if you want to use the experimental plugin to write Native 
apps/games, if you wish to use the standard plugin just change the 
classpath value to the correct gradle version you are using.
On Sunday, January 10, 2016 at 12:08:35 AM UTC+1, Ricardo Morales wrote:
>
> So I tried doing the first app tutorial from the web, the one that sends 
> text to one activity to another.
> But I think i really suck at this.
>
> Here is my logcat:
>
> 01-09 17:04:47.471 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: Not 
> late-enabling CheckJNI (already on)
> 01-09 17:04:47.481 1633-1633/com.example.ricki.myfirstapp E/Trace: error 
> opening trace file: No such file or directory (2)
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to find class referenced in signature (Landroid/view/SearchEvent;)
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.view.Window$Callback.onSearchRequested, 
> referenced from method 
> android.support.v7.view.WindowCallbackWrapper.onSearchRequested
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve interface method 17964: 
> Landroid/view/Window$Callback;.onSearchRequested 
> (Landroid/view/SearchEvent;)Z
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x72 at 0x0002
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method 
> android.view.Window$Callback.onWindowStartingActionMode, referenced from 
> method 
> android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve interface method 17968: 
> Landroid/view/Window$Callback;.onWindowStartingActionMode 
> (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
> 01-09 17:04:47.501 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x72 at 0x0002
> 01-09 17:04:47.521 1633-1637/com.example.ricki.myfirstapp E/jdwp: Failed 
> sending reply to debugger: Broken pipe
> 01-09 17:04:47.521 1633-1637/com.example.ricki.myfirstapp D/dalvikvm: 
> Debugger has detached; object registry had 1 entries
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.view.ViewGroup.onRtlPropertiesChanged, 
> referenced from method 
> android.support.v7.widget.Toolbar.onRtlPropertiesChanged
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve virtual method 17860: 
> Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x6f at 0x0007
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method 
> android.content.res.TypedArray.getChangingConfigurations, referenced from 
> method android.support.v7.widget.TintTypedArray.getChangingConfigurations
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve virtual method 422: 
> Landroid/content/res/TypedArray;.getChangingConfigurations ()I
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x6e at 0x0002
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.content.res.TypedArray.getType, referenced 
> from method android.support.v7.widget.TintTypedArray.getType
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve virtual method 444: 
> Landroid/content/res/TypedArray;.getType (I)I
> 01-09 17:04:47.541 1633-1633/com.example.ricki.myfirstapp D/dalvikvm: VFY: 
> replacing opcode 0x6e at 0x0002
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp I/dalvikvm: 
> Could not find method android.widget.LinearLayout$LayoutParams., 
> referenced from method 
> android.support.design.widget.AppBarLayout$LayoutParams.
> 01-09 17:04:47.551 1633-1633/com.example.ricki.myfirstapp W/dalvikvm: VFY: 
> unable to resolve direct method 18480: 
> 

[android-developers] Re: Build fails when trying to launch my app

2016-01-10 Thread Adrian Ivasku
You need to enable multiDex

On Sunday, January 10, 2016 at 12:00:57 AM UTC+1, Alain Bonnefoy wrote:
>
> Hello,
>
> I want to use ftp access within my app, so I tried different solution such 
> as apache common-net-3.4, ivy2.4.0 or even Chilkat 9.5.0.
>
> In every case, I can build my app successfully but when I try to run or 
> debug it, build fails with this error:
>
> Executing tasks: [:app:assembleDebug]
>
> Configuration on demand is an incubating feature.
> :MapsForgeForOsmdroid:compileLint
> :MapsForgeForOsmdroid:copyReleaseLint UP-TO-DATE
> :MapsForgeForOsmdroid:preBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preReleaseBuild UP-TO-DATE
> :MapsForgeForOsmdroid:checkReleaseManifest
> :MapsForgeForOsmdroid:preDebugAndroidTestBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preDebugBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preDebugUnitTestBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preReleaseUnitTestBuild UP-TO-DATE
> :MapsForgeForOsmdroid:prepareComAndroidSupportAppcompatV72311Library 
> UP-TO-DATE
> :MapsForgeForOsmdroid:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
> :MapsForgeForOsmdroid:prepareOrgOsmdroidOsmdroidAndroid501Library UP-TO-DATE
> :MapsForgeForOsmdroid:prepareReleaseDependencies
> :MapsForgeForOsmdroid:compileReleaseAidl UP-TO-DATE
> :MapsForgeForOsmdroid:compileReleaseRenderscript UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseBuildConfig UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseAssets UP-TO-DATE
> :MapsForgeForOsmdroid:mergeReleaseAssets UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseResValues UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:mergeReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:processReleaseManifest UP-TO-DATE
> :MapsForgeForOsmdroid:processReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseSources UP-TO-DATE
> :MapsForgeForOsmdroid:processReleaseJavaRes UP-TO-DATE
> :MapsForgeForOsmdroid:compileReleaseJavaWithJavac UP-TO-DATE
> :MapsForgeForOsmdroid:extractReleaseAnnotations UP-TO-DATE
> :MapsForgeForOsmdroid:mergeReleaseProguardFiles UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseJar UP-TO-DATE
> :MapsForgeForOsmdroid:compileReleaseNdk UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseJniLibs UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseLocalJar UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseRenderscript UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:bundleRelease UP-TO-DATE
> :app:preBuild UP-TO-DATE
> :app:preDebugBuild UP-TO-DATE
> :app:checkDebugManifest
> :app:preReleaseBuild UP-TO-DATE
> :googleplayservices_lib:compileJava UP-TO-DATE
> :googleplayservices_lib:processResources UP-TO-DATE
> :googleplayservices_lib:classes UP-TO-DATE
> :googleplayservices_lib:jar UP-TO-DATE
> :app:prepare2ndGuideMapsForgeForOsmdroidUnspecifiedLibrary UP-TO-DATE
> :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
> :app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
> :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServices840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAds840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAuth840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesBase840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesCast840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesDrive840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesFitness840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesGames840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesGcm840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesLocation840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesMaps840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesNearby840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesPlus840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesVision840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesWallet840Library UP-TO-DATE
> :app:prepareComGoogleAnd
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and 

[android-developers] Re: Build fails when trying to launch my app

2016-01-10 Thread Adrian Ivasku
You need to enable multiDex because the number of your metdots exced the 
65536.

On Sunday, January 10, 2016 at 12:00:57 AM UTC+1, Alain Bonnefoy wrote:
>
> Hello,
>
> I want to use ftp access within my app, so I tried different solution such 
> as apache common-net-3.4, ivy2.4.0 or even Chilkat 9.5.0.
>
> In every case, I can build my app successfully but when I try to run or 
> debug it, build fails with this error:
>
> Executing tasks: [:app:assembleDebug]
>
> Configuration on demand is an incubating feature.
> :MapsForgeForOsmdroid:compileLint
> :MapsForgeForOsmdroid:copyReleaseLint UP-TO-DATE
> :MapsForgeForOsmdroid:preBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preReleaseBuild UP-TO-DATE
> :MapsForgeForOsmdroid:checkReleaseManifest
> :MapsForgeForOsmdroid:preDebugAndroidTestBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preDebugBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preDebugUnitTestBuild UP-TO-DATE
> :MapsForgeForOsmdroid:preReleaseUnitTestBuild UP-TO-DATE
> :MapsForgeForOsmdroid:prepareComAndroidSupportAppcompatV72311Library 
> UP-TO-DATE
> :MapsForgeForOsmdroid:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
> :MapsForgeForOsmdroid:prepareOrgOsmdroidOsmdroidAndroid501Library UP-TO-DATE
> :MapsForgeForOsmdroid:prepareReleaseDependencies
> :MapsForgeForOsmdroid:compileReleaseAidl UP-TO-DATE
> :MapsForgeForOsmdroid:compileReleaseRenderscript UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseBuildConfig UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseAssets UP-TO-DATE
> :MapsForgeForOsmdroid:mergeReleaseAssets UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseResValues UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:mergeReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:processReleaseManifest UP-TO-DATE
> :MapsForgeForOsmdroid:processReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:generateReleaseSources UP-TO-DATE
> :MapsForgeForOsmdroid:processReleaseJavaRes UP-TO-DATE
> :MapsForgeForOsmdroid:compileReleaseJavaWithJavac UP-TO-DATE
> :MapsForgeForOsmdroid:extractReleaseAnnotations UP-TO-DATE
> :MapsForgeForOsmdroid:mergeReleaseProguardFiles UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseJar UP-TO-DATE
> :MapsForgeForOsmdroid:compileReleaseNdk UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseJniLibs UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseLocalJar UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseRenderscript UP-TO-DATE
> :MapsForgeForOsmdroid:packageReleaseResources UP-TO-DATE
> :MapsForgeForOsmdroid:bundleRelease UP-TO-DATE
> :app:preBuild UP-TO-DATE
> :app:preDebugBuild UP-TO-DATE
> :app:checkDebugManifest
> :app:preReleaseBuild UP-TO-DATE
> :googleplayservices_lib:compileJava UP-TO-DATE
> :googleplayservices_lib:processResources UP-TO-DATE
> :googleplayservices_lib:classes UP-TO-DATE
> :googleplayservices_lib:jar UP-TO-DATE
> :app:prepare2ndGuideMapsForgeForOsmdroidUnspecifiedLibrary UP-TO-DATE
> :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
> :app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
> :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServices840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAds840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesAuth840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesBase840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesCast840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesDrive840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesFitness840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesGames840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesGcm840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesLocation840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesMaps840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesNearby840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesPlus840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesVision840Library UP-TO-DATE
> :app:prepareComGoogleAndroidGmsPlayServicesWallet840Library UP-TO-DATE
> :app:prepareComGoogleAnd
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"Android 

[android-developers] Re: Andriod error

2016-01-10 Thread Adrian Ivasku
 :). 

Sorry to post this here, but I see that you are active on the forum, if you 
have the time please check this:

https://groups.google.com/forum/#!topic/android-developers/MherhAVbOdE

Any advice would help, I am stuck with this for 2 weeks and going crazy :)

On Sunday, January 10, 2016 at 8:33:00 PM UTC+1, niks wrote:
>
> Adrian, what you stated is my suspicion as well; that is why I wanted to 
> see at his dependencies ;-)
>
> Τη Κυριακή, 10 Ιανουαρίου 2016 - 9:29:25 μ.μ. UTC+2, ο χρήστης Adrian 
> Ivasku έγραψε:
>>
>> I usually get this error when I have an error in my gradle file. Did you 
>> check the gradle file for any errors? I recently converted some projects 
>> from Eclipse to Android Studio and you need to write all the gradle files, 
>> or atleast fix them. The error is 99% in one of your gradle files.
>>
>> On Sunday, January 10, 2016 at 2:06:11 PM UTC+1, Usha Rani wrote:
>>>
>>> I had converted a project from eclipse to andriod studio.When i tried to 
>>> run the project in andriod studioiam getting the below error 
>>> message...Please let me know how to solve this error
>>>
>>>
>>> Error:Execution failed for task ':preDexDebug'.
>>> > com.android.ide.common.process.ProcessException: 
>>> org.gradle.process.internal.ExecException: Process 'command 'C:\Program 
>>> Files\Java\jdk1.8.0_20\bin\java.exe'' finished with non-zero exit value 1
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/07922ea7-c13c-494e-bcd3-0b88b610cbc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.