Google wydał C/C++ SDK dla Androida
- Dodano: 26 June 2009
- Wprowadził: Goofy
- Komentarze: 82
Tak oto Google Android staje się kolejną “poważną” platformą mobilną obok Symbiana, dającą programistom możliwość pisania programów w C i C++.
Dotychczas jedynym językiem, w którym można było pisać aplikację pod Androida była Java. Na szczęście Google zdecydował się dorzucić programistom nową zabawkę do piaskownicy – NDK (Native Development Kit).
To wydanie NDK zawiera biblioteki: języka C, funkcji matematycznych, kompresji Zlib, interfejsu JNI, podsystemu logowania Androida oraz okrojony zestaw nagłówków dla C++.
SDK jest dostępna dla Windowsa (XP 32bit, Vista 32/64bit), Linuksa (32/64bit) i Mac OS X (Intel).
Więcej informacji: http://android-developers.blogspot.com/2...ase-1.html
Znalazłeś literówkę? Zgłoś ją używając formularza!
Jeśli uważasz, że ten nius jest nieobiektywny, przedstawia nieprawdziwe wydarzenie, jest spamem lub nie spełnia standardów serwisu, napisz raport.
Niusy na podobny temat:
Komentarze są prywatnymi opiniami dodających je osób. Prosimy o zachowanie kultury wypowiedzi. Komentarze obraźliwe oraz obniżające poziom serwisu będą usuwane. Więcej w regulaminie komentowania.
82 komentarzy
Wszystkie autorskie niusy w serwisie publikowane są na licencji Creative Commons Uznanie autorstwa 2.5 Polska.
No i piknie. Ale swój ROM dla G1 i tak zrobię.
No proszę, w końcu jest sens w ogóle inwestować w androida. A ja się bałem że to będzie marketingowy szoł na miarę apple, gdzie sprzedają coś co było już dawno jako nowość.
Pytanie czy toolchain jest na tyle standardowy i kompletny by bez bólu portować tam programy? Jak z biblioteką graficzną – androidowe cuś, czy jest dostęp do czystego opengl/sdl/qt/cokolwiek-normalnego ?
Ściągnąłem sobie z ciekawości to sdk. Struktura plików nagłówkowych do C wygląda na pierwszy rzut oka identycznie jak na pecetowym linuksie, więc wnioskuje, że większość funkcji i wywołań systemowych będzie dostępnych.
Z tego co widzę póki co da się tylko bezproblemowo portować programy konsolowe
Może Google zrobi na złość Nokii i przeportuje GTK+
Co do OpenGL, doczytałem, że planują dodać implementację OpenGL ES
A co się nokii od tego złego stanie, wszak ona sama używa GTK+.
Teraz to pewnie Qt
Qt jak już pisałem uważane jest przez nokie za uniwersalną platformę do różnych systemów. Nikt nie planuje jej przez najbliższe 2 lata włączać jako natywną ani do maemo, ani do symbiana.
Jak ktoś poszukuje analogii to odpowiem Windows Forms.
Odnośnie Qt w Symbianie http://www.newlc.com/en/qt-replace-s60-2011 oraz http://blog.symbian.org/2009/03/12/introducing-th…
Przydało by sie Qt na androida ale to raczej nie możliwe.
Jeśli przystosują wyświetlanie widgetów do androidowego WM (jest X11, FB, to pewnie da się i to zrobić) i stworza odpowiednie klasy w Javie to nie ma problemu, pytanie tylko po co skoro obecne rozwiazanie jest dużo prostsze, szybsze i potrzebuje mniej zasobów…
Po to, że Qt jest bardziej przenośne niż ta java z androida.
I przy okazji, z tego powodu, dubluje większość funkcjonalności udostępnianych przez systemy na które jest portowane wprowadzając dodatkowy narzut. Rozumiem, że nie musi mieć to takiego dużego znaczenia w przypadku zwykłych pecetów, ale w smartphone'ach to raczej duże marnotrawstwo zasobów.
OpenGL ES 1.0 jest w Androidzie od początku. Ciekawe jak szybko pojawi się 2.0, bo to dosc duza zmiana, i bez wsparcia sprzetowego raczej nie da rady.
Co pomysłów z GTK+ i Qt to proponuje się wczytać w to do czego NDK zostało stworzone, a mianowicie do _wspomagania_ _istniejącego_ _rozwiązania_ natywnym kodem, czyli nadal podstawą jest Java i obecne API programistyczne, a jeśli gdzieś trzeba z jakiegoś powodu zrobić wstawkę w C/C++ czy ostatecznie assemblerze to wtedy używa się NDK.
Google wyraźnie pisze, że stworzony kod w C niekoniecznie musi działać szybciej niż jego implementacja Javowa, o ile rzeczywiście nie jest to jakaś sekcja krytyczna lub wąskie gardło.
@groszek: natywny SDL i natywne programy są już od dawna – fakt że trzeba mieć zmieniony soft, ale jest ;]. O tym, że google pracowało nad natywnym rozwiązaniem wiadomo było od dawna – teraz wygląda to tak, że i w programie natywnym udostępniasz inferface przez jni i w javie/dalviku dajesz native przed nazwą pliku i ładujesz bibliotekę natywną.
Co do opengl es etc. to zapewne tak bo w androidzie jest to zwykła natywna biblioteka, a android właśnie korzysta z niej przez jni. QT możliwe że ktoś napisze, ale w chwili obecnej nie będzie działać ponieważ android nie korzysta z X11.
Qt w Maku i Windowsie jakoś używa X11… a jest.
@mario: na Windowsie i MacOS używa X11? Człowieku nie pal tyle! Na każdej platformie używa natywnych bibliotek, a na androida póki co nie powstała natywna impementacja i nokia jej raczej nie zrobi – bardziej prawdopodobne więc że będzie się to odbywało tak jak teraz że na złamanym sofcie będzie się instalowało środowisko razem z X11 i łączyło się lokalnie przez vnc – jednak w oficjalnym sofcie nie skorzystasz z X11 a zatem i z QT.
Ehhh.. miało być: "Qt w Maku i Windowsie jakoś nie używa X11… a jest."
pijaczku: pierdzielisz jak potluczony… lepiej nie wypowiadaj sie w tematach w ktorych masz tylko wiedze teoretyczna.
qt spokojnie dziala na framebufferze, tak wiec od reki uruchomisz to i pod softem od googli, choc bez wykorzystania androdida…
@jelloneku uruchom framebuffer na androidzie w telefonie (w orginalnym sofcie) to czapka z głowy.
Hmmm… Chyba pozostało nam czekać na pierwsze wirusy… A po nich pewnie antywirusy…
Pythona prosimy, przynajmniej w dopieszczonym ASE, choć pełne wsparcie też byłoby miłe… a później Qt everywhere i PyQt4
Serio lubisz pisać w PyQT? Bo wiesz są lepsze rozwiązania
Jakie i w czym?
Oczywiście myślałem o jedyny właściwym GTK+! ;]
@sprae: to był żart? Myślałem, że przyczepisz się pythona, który ma wady lub podasz inną dobrą biblioteke widgetów jak wxWidgets, ale gtk+ i to "jedyny właściwy"? To musi być żart lub słaba orientacja (programujesz?).
a już myślałem że wxWidgets albo tk
pyQT jest przede wszystkim świetnym narzędziem do tworzenia makiet. W kilkanaście minut można stworzyć funkcjonalne GUI i zobacz jak się zachowuje w praktyce!
Możesz też użyć QtCreatora do stworzenia takiej makiety w dużo szybszym czasie
QtCreator ma integrację z Qt Designer – czego się używa do tworzenia GUI
więc na jedno wychodzi.
Przepraszam, ale próbowałem odpowiedzieć wam już 2 razy w jakiś rozbudowany sposób i za każdym razem nie przeszła odpowiedź.
przeciez python juz jest – nawet SeC- sprawdzal ostatnio na G1
bywalbys czesciej na #python-pl bys wiedzial
Mam rozumieć, że stworzenie programu dla Androida w C/C++ z wykorzystaniem OpenGL ES (dostępnego w androidowej Javie) nie będzie możliwe skoro API systemowe nie będzie dostępne z poziomu C/C++?
Zawsze lepiej mieć jedno API więcej na platformie, niż go nie mieć. Nie zmienia to jednak faktu, że C++ nie nadaje się do implementacji wielu ciekawych rzeczy, które można osiągnąć za pomocą API dostępnego z poziomu Javy. I nie będą one nigdy dostępne, ponieważ taka jest charakterystyka C++.
Przykładowo, implementowanie jakiejś aplikacji z użyciem Qt to strzał w stopę: taki program nie będzie się w pełni integrował z platformą, która gwarantuje zarządzanie procesami i interfejsem w celu oszczędzania energii czy integracji z innymi, już zainstalowanymi aplikacjami. I nigdy taka funkcjonalność nie będzie dostępna z poziomu C++ – ono się do tego nie nadaje, a ewentualna próba imlpementacji takich mechanizmów byłaby zbyt kosztowa i długotrwała.
Naucz się kiedyś C++, ale tak dobrze… Łączenie z STLem i Boostem. Wtedy pogadamy co się da, a czego nie w C++.
Jedyna przewaga Javy jaką widzę to multiplatformowość bez potrzeby rekompilacji kodu.
Rozplenili się Javowcy, oj rozplenili…
mammoth account you’ve accept
I am impressed, I must say. Really hardly ever do I encounter a blog site that’s the two educative and entertaining, and allow me to inform you, you’ve hit the nail about the head. Your imagined is exceptional; the issue is one thing that not adequate individuals are speaking intelligently about. I’m really blissful that I stumbled all through this in my hunt for an individual issue referring to this
One other thing I would like to convey is that instead of trying to suit all your online degree courses on times that you finish work (as most people are tired when they come home), try to obtain most of your classes on the week-ends and only one or two courses on weekdays, even if it means a little time away from your saturday and sunday. This pays off because on the weekends, you will be much more rested as well as concentrated in school work. Thanks a lot for the different guidelines I have realized from your site.
considerable book you’ve hog
One other issue issue is video games are usually serious as the name indicated with the principal focus on understanding rather than amusement. Although, it comes with an entertainment feature to keep children engaged, each and every game is usually designed to work with a specific skill set or curriculum, such as instructional math or technology. Thanks for your write-up.
Hey there, I think your website might be having browser compatibility issues. When I look at your blog site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, terrific blog!
While I tend to side with the post I sincerely believe that car insurance has become too complex for the average car insurance policy holder. Just like any serious purchase however you must perform due diligence and research the car insurance companies before you purchase.
I believe that avoiding prepared foods could be the first step to lose weight. They could taste good, but ready-made foods have got very little vitamins and minerals, making you eat more simply to have enough energy to get through the day. When you are constantly consuming these foods, moving over to whole grain products and other complex carbohydrates will assist you to have more energy while taking in less. Good blog post.
While I tend to side with the post I strongly believe that car insurance has become too complex for the average car insurance policy holder. Just like any important purchase however you must perform due diligence and research the insurance companies before you purchase.
There is noticeably a bundle to learn about this. I assume you made certain nice factors in options also.
Greetings! This is my 1st comment here so I just wanted to give a quick shout out and tell you I really enjoy reading your posts. Can you suggest any other blogs/websites/forums that go over the same topics? Appreciate it!
I enjoy this site!
Very cool, some wonderful points! I appreciate you making this post available, the rest of the site is also well done. I hope you have a wonderful day.
Visiting your blog helped me to get what I was looking for.
Salutation, perhaps this is not on topic but anyhow, I have been browsing about your web site and it looks truly tidy. impassioned about your activity. I’m building a new web log and hard put to make it appear great, and provide really good content. I have discovered a lot on your site and I look forward to more updates and will be coming back.
One thing I’d like to say is the fact before obtaining more laptop or computer memory, look into the machine within which it could be installed. When the machine will be running Windows XP, for instance, the particular memory ceiling is 3.25GB. Installing above this would purely constitute just a waste. Make sure one’s mother board can handle an upgrade amount, as well. Thanks for your blog post.
Getting Wii Homebrew will let you to safely unlock the console, download lots and much Wii games, have admission to Nintendo 64 and SEGA Genesis emulators, several other things.
Just as every organ in the body, our skin ages – undoubtedly faster if stress is about the equation.
As long you know men are like children, you realize all the things!
I¡¯m delighted that I’ve observed this weblog. Finally something not a junk, which we undergo extremely frequently. The website is lovingly serviced and stored as much as date. So it should be, thanks for sharing this with us.
I discovered , your current blog site on the search engines and also inspect a few of earlier articles or blog posts. Maintain in the awesome manage. I really additional up your RSS feed towards the Google News Audience. Looking toward browsing more on your part after!…
I normally don’t leave blog comments but your writing forced me to, wonderful work.
Many thanks for posting this, It?s just what I was researching for on bing. I?d a lot relatively hear opinions from an individual, slightly than an organization internet web page, that?s why I like blogs so significantly. Many thanks!
Cool
Great site here. Many websites like this cover subjects that can’t be found in print. I don’t know how we got on 10 years ago with just print media.
You seem to understand where you’re originating from, and i totally agree.
I’d must test with you here. Which is not one thing I normally do! I get pleasure from studying a put up that can make individuals think. Additionally, thanks for permitting me to remark!
This is actually a real pretty valuable read through with luck, Will need to admit you most likely are 1 in the perfect people I just ever in your life observed.Many thanks posting this beneficial post.
loved what you are doing with the blog man if you are looking for ill clothes come check out Hm Clothing
very nice publish, i certainly love this website, carry on it
Highly rated post. I be taught something completely new on totally different blogs everyday. Deciding on one . stimulating to read the paper content material from different writers and be taught a bit something from their website. I’d like to apply sure of this content material on my blog you’re mind. Natually I’ll give a hyperlink here we’re at your web-site. Admire your sharing.
Beneficial
Amazing blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog jump out. Please let me know where you got your theme. Appreciate itcoach outlet
Thanks for taking the time to debate this, I feel strongly about it and love studying more on this topic. If possible, as you gain experience, would you mind updating your weblog with further info? It is extremely useful for me.
I purchased my car or truck 3 months ago which includes a personal loan. I decided recently that I want to go with something newer is actually lower miles.
I like this internet site because so much useful stuff on here : D.
Search engine optimization wants a very good search engine optimizer plan. Just one of these methods could make a big distinction in your sites position and firm your web site brings you.
Now you’ve gotten your new web site and you’re keen to begin making some gross sales! However, how can you make sales in the event you shouldn’t have excessive volumes of holiday makers to your website?
A lot of thanks for all of your efforts on this web page. Kim take interest in doing research and it’s easy to understand why. My spouse and i know all concerning the powerful form you offer good guides through your website and even boost response from other ones on the idea then our child is truly learning a whole lot. Have fun with the rest of the new year. You’re the one carrying out a great job.
British Sovereigns are highly valed due to their historical and cultural character. Collectors love sovereigns plus they can have tremendous numismatic value as a result of their history and rarity.
Spot on with this write-up, I truly think this website needs much more consideration. I’ll probably be again to read much more, thanks for that info.
Congratulations on possessing certainly considered one of probably the most subtle blogs Ive arrive throughout in some time! Its simply wonderful how much you’ll be capable of contemplate away from a thing mainly merely due to how visually gorgeous it is. Youve place collectively an ideal blog web site house –great graphics, films, layout. That is actually a must-see website!
That is since I use a lot of to not be left behind.
Online triumph commences with a great domain name. At Domain.com, we generate it simple and inexpensive to get the domain name you want, fast. We present all main Top Level Domains (TLDs) and over 25 Region Program code Top Stage Domains (ccTLDs). Every domain name registration comes with the after domain name instruments:
Thanks bro
I’ve recently began a blog, the data you present on this web site has helped me tremendously. Thanks for all of your time & work.
I’ve recently began a blog, the information you provide on this web site has helped me tremendously. Thanks for your entire time & work.
My sister suggested I might like this website. She was totally right. This post truly made my day. You cannot imagine just how much time I had spent for this info! Thanks!