Re: [SailfishDevel] IAP api

2017-03-28 Thread szopin
You can now set sdl_hint_qtwayland_content_orientation and window_flags:
https://hg.libsdl.org/SDL/rev/63c2c6c8762c95d62aa4125cf5adda77ae9d9b79
So swipes will work correctly if you render in landscape, not sure if that will 
be enough for harbour though

On Tuesday, 28 March 2017, Iosif Hamlatzis wrote:
> The code from github (https://github.com/lanurmi/sailfish-minimal-sdl )
> says it doesn't use OpenGL and also it uses SDL_CreateRenderer
> 
> Does it work in both modes (landscape and portrait)? What if you want to
> use OpenGL and do your own rendering, what then regarding both modes?
> 
> Under Android the landscape/portrait mode is derived from the manifest
> file. Under iOS there is a similar technology were you set the properties
> of the window and also you can pass hint to SDL2 (according to
> documentation only available for iOS). Similarly you can set the window
> rotation for other (now dead) OSs like webOS, BlackBerry (both BB10 and
> PlayBook)
> 
> What about the SailfishOS?
> 
> 
> Virus-free.
> www.avast.com
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Iosif Hamlatzis
The code from github (https://github.com/lanurmi/sailfish-minimal-sdl )
says it doesn't use OpenGL and also it uses SDL_CreateRenderer

Does it work in both modes (landscape and portrait)? What if you want to
use OpenGL and do your own rendering, what then regarding both modes?

Under Android the landscape/portrait mode is derived from the manifest
file. Under iOS there is a similar technology were you set the properties
of the window and also you can pass hint to SDL2 (according to
documentation only available for iOS). Similarly you can set the window
rotation for other (now dead) OSs like webOS, BlackBerry (both BB10 and
PlayBook)

What about the SailfishOS?


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Iosif Hamlatzis
thnx

waiting for the latest version of the OS & SDK to come to the rest of us
and not just for early adopters and I will try my code again


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Martin Kolman

Tue, 28 Mar 2017 10:38:48 + Iosif Hamlatzis:
Only in theory you can use SDL2 because there is a bug and they 
haven't fixed it.
I think I have seen some fixes for SDL2 being mentioned in the release 
notes of one of the recent releases. But not sure if it fixes the issues 
you mention or if it was unrelated. In any case I recommend to recheck 
with latest Sailfish OS version if the issues still persist (unless you 
have already done that).


The bug I mention is that you cannot have landscape mode and if you 
create a game/app in portrait mode but you render the scene 90 degrees 
so that it looks like it's landscape then they will not accept it in 
the market.


I've tried sending them several games, all rejected for this reason. I 
have informed them of the landscape bug and it was they who suggested 
the rotated rendering. I modified my code and submitted my games but 
again they rejected the games.


Also using the SDL2 library it consumes more power when in background 
than using QML so it was another reason they rejected the games.


Last I think there is difference between the Jolla and Jolla C device. 
For some reason rendering on the simulator for either device works 
using SDL2/SDL2_image, but on the actual device this combination works 
on Jolla but under Jolla C I was told it doesn't render anything just 
displays black background.


As I don't have access to Jolla C device I cannot test/debug on the 
actual device to find the bug

--
Sent from Gmail Mobile


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Iosif Hamlatzis
Only in theory you can use SDL2 because there is a bug and they haven't
fixed it. The bug I mention is that you cannot have landscape mode and if
you create a game/app in portrait mode but you render the scene 90 degrees
so that it looks like it's landscape then they will not accept it in the
market.

I've tried sending them several games, all rejected for this reason. I have
informed them of the landscape bug and it was they who suggested the
rotated rendering. I modified my code and submitted my games but again they
rejected the games.

Also using the SDL2 library it consumes more power when in background than
using QML so it was another reason they rejected the games.

Last I think there is difference between the Jolla and Jolla C device. For
some reason rendering on the simulator for either device works using
SDL2/SDL2_image, but on the actual device this combination works on Jolla
but under Jolla C I was told it doesn't render anything just displays black
background.

As I don't have access to Jolla C device I cannot test/debug on the actual
device to find the bug
-- 
Sent from Gmail Mobile
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Андрей Кожевников
You can start with https://github.com/lanurmi/sailfish-minimal-sdl and then
google for SailfishOS SDL sources yourself.

2017-03-28 13:20 GMT+03:00 tung tran :

> Have any example project that i can reference ?
> Thanks,
> Tung
>
> 2017-03-28 17:18 GMT+07:00 Андрей Кожевников :
>
>> yes you can use c++ SDL2 whatever
>>
>> 2017-03-28 13:09 GMT+03:00 tung tran :
>>
>>>
>>> For native Sailfish OS, could i use c++ code instead of QML?
>>> How to use OpenGL in native Sailfish OS?
>>>
>>> Best Thanks,
>>> Tung
>>>
>>> 2017-03-28 16:59 GMT+07:00 Андрей Кожевников :
>>>
 Oh you mean you developing android application ...

 Unfortunately this mailing list is mostly for native Sailfish OS
 development.

 I don't know process of approving Android applications in Jolla Harbour
 for different devices, but you can use Android API Level 16 for Jolla 1
 device, and API 19 for all other officially supported devices.

 2017-03-28 12:50 GMT+03:00 tung tran :

> Hi,
> Currently, i submit my android application to harbour and it working
> fine.
> So, if i use that android api, will it working in Sailfish OS?
>
> Regards,
> Tung
>
> 2017-03-28 16:45 GMT+07:00 Андрей Кожевников :
>
>> Sailfish OS is not supporting any android APIs, because it's
>> different operating system. You can learn more about developing for
>> Sailfish OS at: https://sailfishos.org/wiki/SailfishOS
>>
>> 28 мар. 2017 г. 12:41 пользователь "tung tran" 
>> написал:
>>
>>> Hello,
>>>  I try to build the In-App Purchase. I have to open the url in web
>>> browser. could i use below api in sailfish os
>>>
>>>
>>> Intent browserIntent = new Intent(Intent.ACTION_VIEW, 
>>> Uri.parse("http://www.google.com;));
>>> startActivity(browserIntent);
>>>
>>> Regards,
>>>
>>> Ps: can i find what android api is supported  in sailfish os in 
>>> somewhere?
>>>
>>> Thanks
>>>
>>> Tung
>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> shos.org
>


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
 shos.org

>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread tung tran
Have any example project that i can reference ?
Thanks,
Tung

2017-03-28 17:18 GMT+07:00 Андрей Кожевников :

> yes you can use c++ SDL2 whatever
>
> 2017-03-28 13:09 GMT+03:00 tung tran :
>
>>
>> For native Sailfish OS, could i use c++ code instead of QML?
>> How to use OpenGL in native Sailfish OS?
>>
>> Best Thanks,
>> Tung
>>
>> 2017-03-28 16:59 GMT+07:00 Андрей Кожевников :
>>
>>> Oh you mean you developing android application ...
>>>
>>> Unfortunately this mailing list is mostly for native Sailfish OS
>>> development.
>>>
>>> I don't know process of approving Android applications in Jolla Harbour
>>> for different devices, but you can use Android API Level 16 for Jolla 1
>>> device, and API 19 for all other officially supported devices.
>>>
>>> 2017-03-28 12:50 GMT+03:00 tung tran :
>>>
 Hi,
 Currently, i submit my android application to harbour and it working
 fine.
 So, if i use that android api, will it working in Sailfish OS?

 Regards,
 Tung

 2017-03-28 16:45 GMT+07:00 Андрей Кожевников :

> Sailfish OS is not supporting any android APIs, because it's different
> operating system. You can learn more about developing for Sailfish OS at:
> https://sailfishos.org/wiki/SailfishOS
>
> 28 мар. 2017 г. 12:41 пользователь "tung tran" 
> написал:
>
>> Hello,
>>  I try to build the In-App Purchase. I have to open the url in web
>> browser. could i use below api in sailfish os
>>
>>
>> Intent browserIntent = new Intent(Intent.ACTION_VIEW, 
>> Uri.parse("http://www.google.com;));
>> startActivity(browserIntent);
>>
>> Regards,
>>
>> Ps: can i find what android api is supported  in sailfish os in 
>> somewhere?
>>
>> Thanks
>>
>> Tung
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> shos.org
>


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
 shos.org

>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Андрей Кожевников
yes you can use c++ SDL2 whatever

2017-03-28 13:09 GMT+03:00 tung tran :

>
> For native Sailfish OS, could i use c++ code instead of QML?
> How to use OpenGL in native Sailfish OS?
>
> Best Thanks,
> Tung
>
> 2017-03-28 16:59 GMT+07:00 Андрей Кожевников :
>
>> Oh you mean you developing android application ...
>>
>> Unfortunately this mailing list is mostly for native Sailfish OS
>> development.
>>
>> I don't know process of approving Android applications in Jolla Harbour
>> for different devices, but you can use Android API Level 16 for Jolla 1
>> device, and API 19 for all other officially supported devices.
>>
>> 2017-03-28 12:50 GMT+03:00 tung tran :
>>
>>> Hi,
>>> Currently, i submit my android application to harbour and it working
>>> fine.
>>> So, if i use that android api, will it working in Sailfish OS?
>>>
>>> Regards,
>>> Tung
>>>
>>> 2017-03-28 16:45 GMT+07:00 Андрей Кожевников :
>>>
 Sailfish OS is not supporting any android APIs, because it's different
 operating system. You can learn more about developing for Sailfish OS at:
 https://sailfishos.org/wiki/SailfishOS

 28 мар. 2017 г. 12:41 пользователь "tung tran" 
 написал:

> Hello,
>  I try to build the In-App Purchase. I have to open the url in web
> browser. could i use below api in sailfish os
>
>
> Intent browserIntent = new Intent(Intent.ACTION_VIEW, 
> Uri.parse("http://www.google.com;));
> startActivity(browserIntent);
>
> Regards,
>
> Ps: can i find what android api is supported  in sailfish os in somewhere?
>
> Thanks
>
> Tung
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> shos.org
>

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
 shos.org

>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread tung tran
For native Sailfish OS, could i use c++ code instead of QML?
How to use OpenGL in native Sailfish OS?

Best Thanks,
Tung

2017-03-28 16:59 GMT+07:00 Андрей Кожевников :

> Oh you mean you developing android application ...
>
> Unfortunately this mailing list is mostly for native Sailfish OS
> development.
>
> I don't know process of approving Android applications in Jolla Harbour
> for different devices, but you can use Android API Level 16 for Jolla 1
> device, and API 19 for all other officially supported devices.
>
> 2017-03-28 12:50 GMT+03:00 tung tran :
>
>> Hi,
>> Currently, i submit my android application to harbour and it working fine.
>> So, if i use that android api, will it working in Sailfish OS?
>>
>> Regards,
>> Tung
>>
>> 2017-03-28 16:45 GMT+07:00 Андрей Кожевников :
>>
>>> Sailfish OS is not supporting any android APIs, because it's different
>>> operating system. You can learn more about developing for Sailfish OS at:
>>> https://sailfishos.org/wiki/SailfishOS
>>>
>>> 28 мар. 2017 г. 12:41 пользователь "tung tran" 
>>> написал:
>>>
 Hello,
  I try to build the In-App Purchase. I have to open the url in web
 browser. could i use below api in sailfish os


 Intent browserIntent = new Intent(Intent.ACTION_VIEW, 
 Uri.parse("http://www.google.com;));
 startActivity(browserIntent);

 Regards,

 Ps: can i find what android api is supported  in sailfish os in somewhere?

 Thanks

 Tung


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
 shos.org

>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread tung tran
You mean i can use that api for opening the browser in sailfish OS?


2017-03-28 16:55 GMT+07:00 Kaj-Michael Lang :

> On Tue, 2017-03-28 at 16:50 +0700, tung tran wrote:
> > Currently, i submit my android application to harbour and it working
> > fine.
> > So, if i use that android api, will it working in Sailfish OS?
>
> Jolla does not provide IAP and Android apps can't use any google
> services Android APIs.
>
> But opening a browser should work just fine.
>
> --
> Kaj-Michael Lang 
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Андрей Кожевников
Oh you mean you developing android application ...

Unfortunately this mailing list is mostly for native Sailfish OS
development.

I don't know process of approving Android applications in Jolla Harbour for
different devices, but you can use Android API Level 16 for Jolla 1 device,
and API 19 for all other officially supported devices.

2017-03-28 12:50 GMT+03:00 tung tran :

> Hi,
> Currently, i submit my android application to harbour and it working fine.
> So, if i use that android api, will it working in Sailfish OS?
>
> Regards,
> Tung
>
> 2017-03-28 16:45 GMT+07:00 Андрей Кожевников :
>
>> Sailfish OS is not supporting any android APIs, because it's different
>> operating system. You can learn more about developing for Sailfish OS at:
>> https://sailfishos.org/wiki/SailfishOS
>>
>> 28 мар. 2017 г. 12:41 пользователь "tung tran" 
>> написал:
>>
>>> Hello,
>>>  I try to build the In-App Purchase. I have to open the url in web
>>> browser. could i use below api in sailfish os
>>>
>>>
>>> Intent browserIntent = new Intent(Intent.ACTION_VIEW, 
>>> Uri.parse("http://www.google.com;));
>>> startActivity(browserIntent);
>>>
>>> Regards,
>>>
>>> Ps: can i find what android api is supported  in sailfish os in somewhere?
>>>
>>> Thanks
>>>
>>> Tung
>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Kaj-Michael Lang
On Tue, 2017-03-28 at 16:50 +0700, tung tran wrote:
> Currently, i submit my android application to harbour and it working
> fine.
> So, if i use that android api, will it working in Sailfish OS?

Jolla does not provide IAP and Android apps can't use any google
services Android APIs.

But opening a browser should work just fine.

-- 
Kaj-Michael Lang 

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread tung tran
Hi,
Currently, i submit my android application to harbour and it working fine.
So, if i use that android api, will it working in Sailfish OS?

Regards,
Tung

2017-03-28 16:45 GMT+07:00 Андрей Кожевников :

> Sailfish OS is not supporting any android APIs, because it's different
> operating system. You can learn more about developing for Sailfish OS at:
> https://sailfishos.org/wiki/SailfishOS
>
> 28 мар. 2017 г. 12:41 пользователь "tung tran" 
> написал:
>
>> Hello,
>>  I try to build the In-App Purchase. I have to open the url in web
>> browser. could i use below api in sailfish os
>>
>>
>> Intent browserIntent = new Intent(Intent.ACTION_VIEW, 
>> Uri.parse("http://www.google.com;));
>> startActivity(browserIntent);
>>
>> Regards,
>>
>> Ps: can i find what android api is supported  in sailfish os in somewhere?
>>
>> Thanks
>>
>> Tung
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] IAP api

2017-03-28 Thread Андрей Кожевников
Sailfish OS is not supporting any android APIs, because it's different
operating system. You can learn more about developing for Sailfish OS at:
https://sailfishos.org/wiki/SailfishOS

28 мар. 2017 г. 12:41 пользователь "tung tran"  написал:

> Hello,
>  I try to build the In-App Purchase. I have to open the url in web
> browser. could i use below api in sailfish os
>
>
> Intent browserIntent = new Intent(Intent.ACTION_VIEW, 
> Uri.parse("http://www.google.com;));
> startActivity(browserIntent);
>
> Regards,
>
> Ps: can i find what android api is supported  in sailfish os in somewhere?
>
> Thanks
>
> Tung
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org