The image textures are a series of .png files which are numbered.
First I read the "*.png" files stored in a particular directory using the method Directory.list_dir_begin() of the Directory class.
File name is obtained by using the Directory.get_next() method.
If the file name ends with ".png" then the file name is appended to an Array.
Then this array is used to set the texture property of Sprite node by calling the
load(file_name_array[n]).
The code with above setup works fine in computer.
But when exported to an apk file only files with ".png.import" extension are stored in the "assets" folder. From there those ".png.import" files point to some files with ".stex"
extension.
Even if I use "*.png.import " file names to point to the texture , texture are not loaded.
The sprite gets loaded in the mobile when I load each and every sprite
separately by using the load method without using the array.
var texture = load("res://An/Ch 1/01.png")
var ch:Sprite = Sprite.new()
ch.texture = texture
ch.position.x = 99
ch.position.y = 6
But when I use the array to load the texture , The array size itself is zero.
Because no file with ".png" extension is not loaded in to the array.