B4A Library ICOSWorldForecast 3.50

lonleystar

Well-Known Member
Licensed User
Longtime User
Ok. I only asking becouse i tried so many times to run on my project created with New Basic4android. You did a great job. Thanx a lot.

Best regards
Hi djpero, i just install Android 4.1.2 from cyanogem and run the demo work fine to me

Please have a look the Attached Thumbnails.


best regard

G.Salvi
 

djpero

Member
Licensed User
Longtime User
Yes, your demo working. Please start New project with Basic4android 2.22, then you Will See that targetsdk in manifest is 14 and result are not correct.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Yes, your demo working. Please start New project with Basic4android 2.22, then you Will See that targetsdk in manifest is 14 and result are not correct.
Hi djpero, this is my Androidmanifest.xml

****************************************

<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="giuseppe.salvi.icosworldforecast2"
android:versionCode="20"
android:versionName="2.0"
android:installLocation="internalOnly">

<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application
android:icon="@drawable/icon"
android:label="ICOSWorldForecast2">
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".main"
android:label="ICOSWorldForecast2"
android:screenOrientation="unspecified">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".forecast2"
android:label="ICOSWorldForecast2"
android:screenOrientation="unspecified">
</activity>
</application>
</manifest>

**************************************************

best regard

G.Salvi
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Yes, your demo working. Please start New project with Basic4android 2.22, then you Will See that targetsdk in manifest is 14 and result are not correct.
Hi djpero, till i faind why give this error. Please be patient, go in manifest editor and cancel android:targetSdkVersion="14"

best regard

G.Salvi
 

djpero

Member
Licensed User
Longtime User
I does that already, i wrote that when is removed working fine but GUI of old Android versions are not so nice like in ICS .
I'm patiend Just noticing little bug...

Thnx a lot
 

lonleystar

Well-Known Member
Licensed User
Longtime User
I does that already, i wrote that when is removed working fine but GUI of old Android versions are not so nice like in ICS .
I'm patiend Just noticing little bug...

Thnx a lot
Hi djpero, yes, I know, I'm working to find out whats wrong i'm building a demo with eclipse to find out whats wrong. Please be patient.

best regard

G.Salvi
 

warwound

Expert
Licensed User
Longtime User

lonleystar

Well-Known Member
Licensed User
Longtime User

warwound

Expert
Licensed User
Longtime User
Click Quick Links at the top right of this page > Edit Signature.

There you can customise your forum signature - and when you create a new post you have the checkbox option to choose 'Show your signature' on each post before you submit it.

I've unchecked it for this post.

Martin.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi Martin, Thank you very much for your help.


best regard

G.Salvi
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi djpero, yes, I know, I'm working to find out whats wrong i'm building a demo with eclipse to find out whats wrong. Please be patient.

best regard

G.Salvi
Hi djpero, i fix it so download again the library and dont forget to rename from .zip to .rar


best regard

G.Salvi
 

djpero

Member
Licensed User
Longtime User
Thnx lonleystar,

now is working fine.
 

salmander

Active Member
Licensed User
Longtime User
Can I not use this in a service? I want the service to download all the weather info.
 

salmander

Active Member
Licensed User
Longtime User
Hello lonleystar,

I used "Dim weather As ICOSWorldForecast" in Process Globals of a Service. And it gave me an error saying, its an activity object and cannot be declared in process globals. Basically I am using ICOSWorldForecast in a service.

cheers
 

lonleystar

Well-Known Member
Licensed User
Longtime User
hi salmander, i'll fix it this afternoon, thank you to be patient.

best regard

G.Salvi
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Thank you.
hi salmander, i try to fix it but if u use get weather by CityName() or LanLong(). it's ok u can put it in Process_Globals but u'll not be able to use any more GetList() for this i'll let it lake that for to day. please let me anderstand how can i fix it also for you too.


best regard


G.Salvi
 

mkvidyashankar

Active Member
Licensed User
Longtime User
Observed this bug

Thanks for the Library

I try to get the weather of London city,I selected it from the .Getlist in which the city name is "London,City of London,Greater London, United Kingdom" when I select this I got the error. But for other cities it is working fine. The log is here



main_populate_weather (B4A line: 924)
image_w.Bitmap=mfor.CCIcon
java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1651)
at com.giuseppe.salvi.icos.library.weather.ICOSWorldForecastWrapper.getCCIcon(ICOSWorldForecastWrapper.java:698)
at com.uknews1.main._populate_weather(main.java:2763)
at com.uknews1.main._button_location_click(main.java:1439)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:165)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:153)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:149)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:55)
at android.view.View.performClick(View.java:2538)
at android.view.View$PerformClick.run(View.java:9152)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
java.lang.StringIndexOutOfBoundsException
** Service (widgetservice) Start **
Starting Job: Quotes
** Service (httputilsservice) Create **
** Service (httputilsservice) Start **
Number of quotes: 301
** Service (httputilsservice) Destroy **
** Activity (main) Pause, UserClosed = false **

Is there any bug in the Library
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…