[APP][DEV][WIP] DemiGod RPG for android - Android Software Development

Hello everyone,
This is my first thread on XDA, and also my first time using github. I have been learning java for android for ~3 years now, and feel there is still much to learn. As an all-time gamer, I would absolutely love to make one of my own.
I have recently started my 1st open-source project on github. I am still learning quite a bit, and am looking to create a retro-style, turn-based RPG for android. Any collaberators feel free to chime in, offer advice, bring new ideas to the table, etc...
This project is just beginning and the downloads may not be fully functional as of yet. Downloads serve mainly for testing purposes for now, but feel free to check it out. Please let me know what you think.
WORKING SO FAR:
* Stats and Inventory Databases
* Character creation (Choose name and class)
* Simple Battle mechanics
* Enemy Database
* Random enemy from database used in battles
* Level-ups
* Status Screen
* Viewing pre-populated Inventory (No using/exchanging items yet)
KNOWN ISSUES:
* Re-positioning Virual D-Pad when it's size is bigger than screen causes a force close
* D-Pad position gets skewed when re-sizing caused by it not accommodating for D-Pad Position setting
* Map's/Area's bounds are not set (Graphics still being worked on)
Storyline:
Unknowingly, you are a demigod. Half mortal, half god. Ever since your early teenage years, you have had "incidents" in which you never quite understood the nature of. Sudden outrages, blackouts, and waking up feeling completely exhausted.
The more the hero aged, the more frequent the uncontrollable events would occur. Finally the hero can't help but to believe it is some sort of witchcraft, cursed as a child. For this may not be completely false, the hero is soon to find out his true origins...
Github link: https://github.com/MattMatt0240/DemiGod
* Licensed under GNU GPL v3

Credits:
@nikwen (introducing the idea of open-source to me/ help in development threads)
@ADDICT.ANK (collaborator, helping hand)
@sak-venom1997 (collaborator, helping hand)
Please let me know if you're left out

FAQs/downloads/screenshots
Download:
* Alpha v0.02 (Preview/Testing)
* Alpha v0.01 (Preview/Testing)

MattMatt0240 said:
Credits:
@nikwen (introducing the idea of open-source to me/ help in development threads)
@ADDICT.ANK (collaberator, helping hand)
Please let me know if you're left out
Click to expand...
Click to collapse
Well great. Thanx bro you created the thread required
and pls reserve a couple of post row for later updating..
Lets go for it then.

As i developer i see firm reasons to join it
But few questions arise in my mind and it will be good for all if answered in the op
* What is the storyline for this game ?
* Under which lisense is this app available ? (Creative Commons ,GPL ..)
I suggests adding requests for things you want to add in the github repo
Sent from my GT-S5302 using Tapatalk 2

sak-venom1997 said:
As i developer i see firm reasons to join it
But few questions arise in my mind and it will be good for all if answered in the op
* What is the storyline for this game ?
* Under which lisense is this app available ? (Creative Commons ,GPL ..)
I suggests adding requests for things you want to add in the github repo
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for the suggestion. This is my first thread here on XDA, also my 1st time using github(or any repo for that matter).
Pretty much my 1st time taking my code anywhere else from my personal computer and sharing my code/ideas with anyone besides my wife (who could care less about all of it). I have been learning java/android all by myself for a while, and could use some help and/or insight from someone more experienced.
Welcome aboard :thumbup:
Noted to self thrice via tapatalk

MattMatt0240 said:
Credits:
@nikwen (introducing the idea of open-source to me/ help in development threads)
@ADDICT.ANK (collaborator, helping hand)
@sak-venom1997 (collaborator, helping hand)
Please let me know if you're left out
Click to expand...
Click to collapse
Haha. Thanks.
MattMatt0240 said:
Reserved for FAQs/downloads/screenshots
Click to expand...
Click to collapse
Wow, looks good. Is that a mockup or do you already have this working?

nikwen said:
Haha. Thanks.
Wow, looks good. Is that a mockup or do you already have this working?
Click to expand...
Click to collapse
I started working on this a while back (in a different project to learn from). Realized many of my errors in doing so, so started fresh. The screenshot is just a basic idea of how I want the gameplay to look like, and is not quite functional yet. I do all of the art myself (so far) but there are many aspects in which I'm not quite sure how to make work, such as inventory/shops, and maps.
If there's anything you see that you feel can be improved, please feel free to let me know
Thanks nikwen!
Noted to self thrice via tapatalk

Would you mind pushing the merged code to new branched and deleting the bin folder
These non essential files make the repo huge and people like me with slow internet have problems synchronising
Sent from my GT-S5302 using Tapatalk 2

sak-venom1997 said:
Would you mind pushing the merged code to new branched and deleting the bin folder
These non essential files make the repo huge and people like me with slow internet have problems synchronising
Sent from my GT-S5302 using Tapatalk 2
Click to expand...
Click to collapse
Yeah, I meant to do it sooner. Been busy the last few days, will do it soon. Should be done by the time you get on. I don't have much of a base yet, this is really just the start of an idea.
Noted to self thrice via tapatalk

Should be good now sak. I have slow internet as well, very slow unless I manage to find 4g at my house. I downsized the repo quite a bit, so it should be better for us all
Noted to self thrice via tapatalk

@sak-venom1997 I added a PreferenceActivity (settings) and made the D-Pad repositionable via those settings
If you get a chance, check it out and let me know what you think.
Noted to self thrice via tapatalk

MattMatt0240 said:
@sak-venom1997 I added a PreferenceActivity (settings) and made the D-Pad repositionable via those settings
If you get a chance, check it out and let me know what you think.
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
What's about posting apks here or on Github every now and then? I'd love to give it a try but I don't want to build it myself every time.

nikwen said:
What's about posting apks here or on Github every now and then? I'd love to give it a try but I don't want to build it myself every time.
Click to expand...
Click to collapse
Wow, still new to github, didn't know they had a release system I could do that and put a link in the O/P. Keep in mind that (at this point) it isn't necessarily playable, but at least everyone could get a feel for it and put up suggestions
Noted to self thrice via tapatalk

MattMatt0240 said:
Wow, still new to github, didn't know they had a release system I could do that and put a link in the O/P. Keep in mind that (at this point) it isn't necessarily playable, but at least everyone could get a feel for it and put up suggestions
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
Exactly.
So do it and lets gather the suggestions.
Sent from my LT26i using xda premium

nikwen said:
What's about posting apks here or on Github every now and then? I'd love to give it a try but I don't want to build it myself every time.
Click to expand...
Click to collapse
ADDICT.ANK said:
Exactly.
So do it and lets gather the suggestions.
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
Added download link to 3rd post. Constructive criticism is welcomed
Noted to self thrice via tapatalk

MattMatt0240 said:
Added download link to 3rd post. Constructive criticism is welcomed
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
Thanks.
Looks good. Crashes very often but it's good considering that it's in its infancy. :good:
Will the character turn around when he's moved?
For sure I'll follow the development.

nikwen said:
Thanks.
Looks good. Crashes very often but it's good considering that it's in its infancy. :good:
Will the character turn around when he's moved?
For sure I'll follow the development.
Click to expand...
Click to collapse
Yes, I just need to crack down on drawing up some sprites Lol. Crashes may be caused by not creating a character first, and possibly a few other things that will be put in order in final production.
I was thinking of having the user being presented with a "setup" screen where they will have to adjust the D-Pad position and size. There's a few bugs in there I think. All of the activities are placed on the title screen temporarily simply for ease of access during development.
Regardless, thanks for the feedback, and yes it is still very early. I'm trying, and learning a whole lot quite fast
Noted to self thrice via tapatalk

Just a little update:
I have been working on trying to find an organized mapping system and think I found a satisfying solution. Before it was all hard-coded in java files leaving it a mess to read, and an activity for every "map" area.
Now, the maps will all be written in XML with a number identifier, which corresponds to the appropriate tile, translated by a separate java class. I tried using JSON, but @nikwen made a valid point... XML is more versatile and easier to read/use, thanks bud!
The inventory database has the path to the corresponding asset icon for each item, making it possible to match "xItem" with its relative icon. I was thinking I should do the same for enemies (once they are drawn). Enemy images are 100x100 pixels, used in battles, whereas item icons are the standard 32x32 px.
I also started playing around with animations, and obviously have much to learn on it.
I'll update the OP with another download, not much progress but still a lot of changes. Anybody feel free to chime in.
Noted to self thrice via tapatalk

MattMatt0240 said:
Just a little update:
I have been working on trying to find an organized mapping system and think I found a satisfying solution. Before it was all hard-coded in java files leaving it a mess to read, and an activity for every "map" area.
Now, the maps will all be written in XML with a number identifier, which corresponds to the appropriate tile, translated by a separate java class. I tried using JSON, but @nikwen made a valid point... XML is more versatile and easier to read/use, thanks bud!
The inventory database has the path to the corresponding asset icon for each item, making it possible to match "xItem" with its relative icon. I was thinking I should do the same for enemies (once they are drawn). Enemy images are 100x100 pixels, used in battles, whereas item icons are the standard 32x32 px.
I also started playing around with animations, and obviously have much to learn on it.
I'll update the OP with another download, not much progress but still a lot of changes. Anybody feel free to chime in.
Noted to self thrice via tapatalk
Click to expand...
Click to collapse
Good progress.
Looking forward to more improvements.

Related

[REF] ICS User Experience Graphs (sentiment analysis)

I've decided to pull this project as it doesn't seem useful, or accurate! Feel free to pm if you have any ideas for me.
Where did the other benchmarks go?
All ICS ROM Benchmarks: this thread
Battery Drain Benchmarks: this thread
Kernel Features and Benchmarks: this thread
CPU Governors and I/O Schedulers: this thread
Power Saving Governors: this thread
Does SuperCharging work?: this thread
Methodology
I wrote a program in C++ with several routines:
1) copy all the thread's html all into one file
2) throw away all the html code
3) throw away anything from a quote
4) throw away any one letter words
5) throw away all punctuation except apostrophes/exclamation marks/question marks/periods/full-stops (also add a full-stop if it was missing at the end of a post)
Then the entire thread is uploaded in chunks of 400 words to an API http://www.alchemyapi.com/api/sentiment/
This returns a sentiment score for each 400 word chunk. It can be either positive or negative. Since most users are polite when they have a criticism, the scores tend to range from slightly negative to very positive.
[Q] What is 'sentiment analysis'?
[A] Find out more here: http://en.wikipedia.org/wiki/Sentiment_analysis
- - - quote "Computers can perform automated sentiment analysis of digital texts, using elements from machine learning such as latent semantic analysis, support vector machines, "bag of words" and Semantic Orientation — Pointwise Mutual Information..." sourced from the above link.
Each 400 word block gets a score usually ranging somewhere between slightly negative and very positive. Each score forms the basis of my raw data.
I currently show this data as several graphs, but I may strip away some. The most useful graph (remember, my background is mathematics education...) is a combination of the entire thread's average score plus the average for the most recent 10%. This helps to highlight threads that have a history of good sentiment as well as continuing good sentiment.
Notes
Initial attempt (for posterity): http://forum.xda-developers.com/showpost.php?p=24451874&postcount=712
I couldn't have done this without the support of a few people in particular: tchaari (who first informed me of this marvellous field of sentiment analysis); harbb for joking around with me (which got me thinking about doing it for real); and glennkaonang for feedback and moral support. Special thanks to original21 who inspired me to provide the most recent data separately.
Thanks to the XDA community in general, the developers, and a special shout out to others who have been supportive in my previous works: CyberGR, simms22, morfic, krarvind, wildestpixel, kong, Oodie, steve.garon, brainmaster, mathkid95, DaXmax, AndroidUser00110001, hope I didn't I forget anyone
Thanks to anyone past, present and future who has any constructive criticism, or just hits my thanks button! It keeps me going! Thanks to the moderators for keeping me in check... and to google/samsung for the toys
another bedalus special treat in store
I have been thinking, you should actually join the Recognized Contributor as you contributed alot...
Sent from my Nexus S using Tapatalk 2 Beta-5
DaXmax said:
I have been thinking, you should actually join the Recognized Contributor as you contributed alot...
Sent from my Nexus S using Tapatalk 2 Beta-5
Click to expand...
Click to collapse
+1
Nice to see that bedalus benchmarks are back
Very interesting work bedalus. The results in the spreadsheet are not always significant but it's a very good start that deserves many encouragements. I am thinking about if taking two words before and two words after each term can improve the readability of the results...
I have also another UX idea: coding some program that can evaluate (approximately) if a post is a positive feedback, negative feedback, a simple question or a simple answer. Then, a final average score is computed.
DaXmax said:
I have been thinking, you should actually join the Recognized Contributor as you contributed alot...
Click to expand...
Click to collapse
Thanks! I think I'm the most pleased with this one because it made me learn C++. I'm just wrapping my head around custom structs.
I've applied for the RC status. Don't know what the criteria are particularly, but I think I've produced some useful stuff. If I get it, I might order an XDA t-shirt, then my wife will be really concerned...
tchaari said:
+1
Nice to see that bedalus benchmarks are back
Very interesting work bedalus. The results in the spreadsheet are not always significant but it's a very good start that deserves many encouragements. I am thinking about if taking two words before and two words after each term can improve the readability of the results...
Click to expand...
Click to collapse
I'm one step ahead of you this time tchaari, the code for two words before and after is halfway there...
tchaari said:
I have also another UX idea: coding some program that can evaluate (approximately) if a post is a positive feedback, negative feedback, a simple question or a simple answer. Then, a final average score is computed.
Click to expand...
Click to collapse
Isn't that what your brain is for?
EDIT: I'm just adding the link you PM'd me so I can find it more easily: http://stackoverflow.com/questions/...-how-positive-or-negative-a-statement-text-is
UPDATE: Found the bug in my program that caused it to crash if there was only one page (with 50 posts per page) i.e. any young thread with less than 51 posts would fit on one page, and my program will only download the total number of pages -1 (it saves the last page for a new start page for when I update a thread). Fixed... now trying to get all the other threads.
bedalus said:
I'm one step ahead of you this time tchaari, the code for two words before and after is halfway there...
Click to expand...
Click to collapse
Not really surprised. You are the top benchmark specialist here
bedalus said:
Isn't that what your brain is for
Click to expand...
Click to collapse
Lol, that's true but we will all feel better if the machine can handle a little more computing and analysis from what our brains are cooking every day
You should really take a look on what's going on in the "natural language processing (NLP)" domain. If your program can be connected to some existing tools like [1] and [2], the results can be so interesting
[1] http://khassanali-nlp-research.blogspot.com/2008/01/nltk.html
[2] http://kmandcomputing.blogspot.com/2008/06/opinion-mining-with-rapidminer-quick.html
These are other refs on sentiment analysis and opinion mining from the NLP domain if someone is interested:
- http://en.wikipedia.org/wiki/Sentiment_analysis
- http://eprints.qut.edu.au/29301/1/c29301.pdf
Bedalus, you made us addicted to your benchmarks. If you close one more of your thread, I'll go on a hunger strike with Oodie
Wow ! This looks Promising
Let's see wht this gives us & yeah ! It was boring in NS forums without you . lol .
Welcome back sir
Sent from my Nexus S using XDA
Good to be back? At least I'm happy you are back!
Greetzz, jojoost.
Sent from my Nexus S using Tapatalk 2
Thanks for the kind words everyone! It's nice to be working on a thread again.
I got my program more stable. I found a more up to date version of wget for windows here by a guy called Oliver Krystal. It had the drivers built in.
I've removed the my program in the second post until I can locate the source of the instability. Last night I ran it and it managed to download most of the ROM threads, but crashed halfway through a long thread.
I'm going to tidy up the code and try and break it up into more manageable routines (most of the work is done in one long procedure at the moment, not very good practice... ) Then perhaps it'll be easier to debug.
When it's more stable I'll re-upload it.
@tchaari, maybe I do need to include some scoring algorithm, otherwise it's not really a benchmark is it! haha
Glad to see you back, bedalus.
This time you bring more headache to us having no experience at all in information technology with your testing methodology
Regarding improvements it needed, I think it's good enough already.
But the idea of that algorithm thing would make it more interesting, although it would bring more headache to me I guess
Sent from my Nexus S using xda premium
I changed a couple of things in the build, now it runs without crashing, so I re-uploaded the program to the second post (along with the spreadsheet).
The included 0threads.txt file currently includes all the 4.0.4 ROMs that were on my ROMs spreadsheet (didn't bother with 4.0.3s).
Any new ROMs I don't know about?
Does anyone want me to stick in any kernel threads? Theme threads? Threads from other phones?
STILL TO DO:
-Modify the program to update by starting to downloading threads at the point I last read
-See if I can implement a five word phrase
-See if I can find or create any language analysis program to score the phrases
bedalus said:
Thanks! I think I'm the most pleased with this one because it made me learn C++. I'm just wrapping my head around custom structs.
I've applied for the RC status. Don't know what the criteria are particularly, but I think I've produced some useful stuff. If I get it, I might order an XDA t-shirt, then my wife will be really concerned...
Click to expand...
Click to collapse
Lol. You contributed alot for the Nexus S development. Im sure the Senior Mod, will nominate you, if not, i will do it....
DaXmax said:
Lol. You contributed alot for the Nexus S development. Im sure the Senior Mod, will nominate you, if not, i will do it....
Click to expand...
Click to collapse
Cool! Thanks!
UPDATE: All 4.0.4 ROMs (that I currently know of) now in the spreadsheet. Just working on the index.
Another quality thread in the making I think!
Good to see you back I was getting worried when all your threads were closing.

[CM10.X] Developing Question !

Hey lovely community !:laugh:
so guys after the "fight" in the [DEV] thread about developing CM 10.x ...
The thread got closed ! So whats now ?
Will shaaaaan or any other DEV's going on working on this or not ?
I hope you get the the things in the right way ... :highfive:
LOVE YOU <3
Let's forget about CM for a while. Shaan from the first time is speaking for his Samsung Galaxy S Advance and he's got some problem too. Even if he success build the CM for his device, we need someone to port it into GS 3 Mini, so we're far from fully workng CM. So let's wait oliver and the other who really concern about our device GS 3 Mini.
Hey!
Sincerly from my opinion that "fight" was really child`ish. I didnt make a backgroung check on Mac and i dont care what he did in the past as long as he can make something viable for our phones. We can all be "condemned" for not folowing the GNU licence agrement at some point. Anyway its bad that we lost a DEV because some ppl have pride. Afaik the licence doesnt obligate anyone to share, it give you the right to share.
PS: English is not my native language so dont flame about my speling mistake.
PS2: This is just my opinion so take it as is.
Really upset to see that the devellopers where almost done with the first operationnelle version and now everything is gone due to personal ego's!
Unfortunatly I do not have developer skills
AW: [CM10.X] Developing Question !
ztandroid said:
Let's forget about CM for a while. Shaan from the first time is speaking for his Samsung Galaxy S Advance and he's got some problem too. Even if he success build the CM for his device, we need someone to port it into GS 3 Mini, so we're far from fully workng CM. So let's wait oliver and the other who really concern about our device GS 3 Mini.
Click to expand...
Click to collapse
I'm very unhappy to hear this but ok ...so we have to wait now
But I'm also an owner of the Galaxy Ace device and if I remember rightly there were a lot of Problems too with Maclaw ... but in anyways he is a good Dev.
Enjoy your week!
And sorry for my english ...
Sent from my GT-I8190 using xda app-developers app
Lol, it was kind of fun. But to bad we have no cm.
Sent from my GT-I8190 using xda premium
Search about Maclaw and GNU first, then judge..
Maclaw break the rules
Enviado desde mi GT-I9070 usando Tapatalk 2
robilaur said:
Hey!
Sincerly from my opinion that "fight" was really child`ish. I didnt make a backgroung check on Mac and i dont care what he did in the past as long as he can make something viable for our phones. We can all be "condemned" for not folowing the GNU licence agrement at some point. Anyway its bad that we lost a DEV because some ppl have pride. Afaik the licence doesnt obligate anyone to share, it give you the right to share.
PS: English is not my native language so dont flame about my speling mistake.
PS2: This is just my opinion so take it as is.
Click to expand...
Click to collapse
I respect your opinion, but GNU and GPL clearly state that you HAVE TO SHARE THE SOURCE!
I do not respond to tech support via PM
galdosS3mini said:
Really upset to see that the devellopers where almost done with the first operationnelle version and now everything is gone due to personal ego's!
Unfortunatly I do not have developer skills
Click to expand...
Click to collapse
Had maclaw given any proof to prove that he had a operational build? Screenshots or something?
I do not respond to tech support via PM
As a matter of fact he did on his webpage, but he removed it because the thread got closed meaning he's stopped the development.
Yes he had pictures with S3 mini booting CM 10 on his website.
Regarding the GNU-GPL licence...well after taking a closer look and reading carefuly i can say I was wrong and u was right. My appologies.
Anyway we could of given him some time .... maibe he whould of shared it. IDK.
Here is the passage from the GNU-GPL licence to make everything clear to everyone :
"When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights."
Best regards.
Benzonat0r said:
As a matter of fact he did on his webpage, but he removed it because the thread got closed meaning he's stopped the development.
Click to expand...
Click to collapse
Not pics about cm booting. Afaik, oliver made a booting cm.
Did he post pics of the stuff he said he fixed?
robilaur said:
Yes he had pictures with S3 mini booting CM 10 on his website.
Regarding the GNU-GPL licence...well after taking a closer look and reading carefuly i can say I was wrong and u was right. My appologies.
Anyway we could of given him some time .... maibe he whould of shared it. IDK.
Here is the passage from the GNU-GPL licence to make everything clear to everyone :
"When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights."
Best regards.
Click to expand...
Click to collapse
Well. He isn't new to xda. He should have followed the rules.
As i already said in the thread, i had no problems if he shared the source when he released the rom. But then, there was no use ot the thread!
If he didn't want to share the source before releasing the rom, he shouldn't have had made that thread in the first place. If he did create the thread, it means he was seeking attention.
Also, did he or did he not ask for donation, before even releasing a single build?
I have seen his ways. That's why i resented.
Also, if he is a real dev, such petty things shouldn't stop him from contributing to the community!
./rant
If you are reading this text, it means that i am too busy currently and won't be tendering any support questions via PM
./rant-end
leave it at that
thread was closed
we should do the same and move on
end of the day we should all be here for the same reason
to help out to improve and add functionality to our phones
don't let one bad apple ruin the whole bunch move on
Shaaan said:
Not pics about cm booting. Afaik, oliver made a booting cm.
Did he post pics of the stuff he said he fixed?
Click to expand...
Click to collapse
RIL (call/messages/3G) were fixed from the looks of it.
hi shaaan....i saw that you are from galaxy s advance (same hardware of galaxy s3 mini).....in this evening i will re-start develop from cm10 and stop kernel develop.....(hope that i don't must work)...tomorrow i have 4 days free and i will spend to develop cm10. As i can see Oliver did a great work so i will start from that sources and every change i will publish on his repository. anyway....can you start doing some modifies with your work? The point is this: maclaw after a first compilation had various things working SO he must did something really simple.....such as changing something in BoardConfig.mk. After searching some i founded that we are missing something in this file for RIL problems that can work for our devices (start from there it is the main problem for now). add these in your boardconfig and see if work ( i am at work now and i can't test )
# RIL
BOARD_MOBILEDATA_INTERFACE_NAME := "pdp0"
#SPECIFIED SECRIL(need this to work??/)
BOARD_USES_LIBSECRIL_STUB := true
Benzonat0r said:
As a matter of fact he did on his webpage, but he removed it because the thread got closed meaning he's stopped the development.
Click to expand...
Click to collapse
Well that was a very mature move. He cand allways open a new one and post a build if he wanted.
Sent from my GT-I8190 using xda app-developers app
lupohirp said:
hi shaaan....i saw that you are from galaxy s advance (same hardware of galaxy s3 mini).....in this evening i will re-start develop from cm10 and stop kernel develop.....(hope that i don't must work)...tomorrow i have 4 days free and i will spend to develop cm10. As i can see Oliver did a great work so i will start from that sources and every change i will publish on his repository. anyway....can you start doing some modifies with your work? The point is this: maclaw after a first compilation had various things working SO he must did something really simple.....such as changing something in BoardConfig.mk. After searching some i founded that we are missing something in this file for RIL problems that can work for our devices (start from there it is the main problem for now). add these in your boardconfig and see if work ( i am at work now and i can't test )
# RIL
BOARD_MOBILEDATA_INTERFACE_NAME := "pdp0"
#SPECIFIED SECRIL(need this to work??/)
BOARD_USES_LIBSECRIL_STUB := true
Click to expand...
Click to collapse
Hey lupohirp, I've just noticed your Acer Liquid repo! Do you still have that device? :laugh:
- sorry for the OT ^^"
lupohirp said:
hi shaaan....i saw that you are from galaxy s advance (same hardware of galaxy s3 mini).....in this evening i will re-start develop from cm10 and stop kernel develop.....(hope that i don't must work)...tomorrow i have 4 days free and i will spend to develop cm10. As i can see Oliver did a great work so i will start from that sources and every change i will publish on his repository. anyway....can you start doing some modifies with your work? The point is this: maclaw after a first compilation had various things working SO he must did something really simple.....such as changing something in BoardConfig.mk. After searching some i founded that we are missing something in this file for RIL problems that can work for our devices (start from there it is the main problem for now). add these in your boardconfig and see if work ( i am at work now and i can't test )
# RIL
BOARD_MOBILEDATA_INTERFACE_NAME := "pdp0"
#SPECIFIED SECRIL(need this to work??/)
BOARD_USES_LIBSECRIL_STUB := true
Click to expand...
Click to collapse
We have already fixed RIL in cm10.
Yes. The boardconfig values are needed for RIL to work.
./rant
If you are reading this text, it means that i am too busy currently and won't be tendering any support questions via PM
./rant-end
Pezmet said:
Well that was a very mature move. He cand allways open a new one and post a build if he wanted.
Sent from my GT-I8190 using xda app-developers app
Click to expand...
Click to collapse
Yeah very, It makes me sick to think how that guy operates, steals Oliver's sources, fixes a few things and wham!! Calls Oliver's surces his own.
lupohirp said:
hi shaaan....i saw that you are from galaxy s advance (same hardware of galaxy s3 mini).....in this evening i will re-start develop from cm10 and stop kernel develop.....(hope that i don't must work)...tomorrow i have 4 days free and i will spend to develop cm10. As i can see Oliver did a great work so i will start from that sources and every change i will publish on his repository. anyway....can you start doing some modifies with your work? The point is this: maclaw after a first compilation had various things working SO he must did something really simple.....such as changing something in BoardConfig.mk. After searching some i founded that we are missing something in this file for RIL problems that can work for our devices (start from there it is the main problem for now). add these in your boardconfig and see if work ( i am at work now and i can't test )
# RIL
BOARD_MOBILEDATA_INTERFACE_NAME := "pdp0"
#SPECIFIED SECRIL(need this to work??/)
BOARD_USES_LIBSECRIL_STUB := true
Click to expand...
Click to collapse
For S3 Mini? For real?
Benzonat0r said:
Yeah very, It makes me sick to think how that guy operates, steals Oliver's sources, fixes a few things and wham!! Calls Oliver's surces his own.
Click to expand...
Click to collapse
I am not saying that he did not use sources from oliver. But where is the proof that he did use them?
You cant be sure.
Sent from my GT-I8190 using xda premium

XDATV Noter

Introduction
Hey guys. I'm working on an Android application for XDATV. We've never really featured a fully functional application on XDATV before. I thought it was high time we did that.
Noter is a note taking application. It is a good representation of several basic Anrdoid APIs.
source & download
Subversion Repository: http://xda-adk.googlecode.com
Project Checkout: svn checkout http://xda-adk.googlecode.com/svn/trunk/EclipseProjects/xdatv-noter
Image of app: http://i50.tinypic.com/qs8ro8.png
App download: https://code.google.com/p/xda-adk/downloads/detail?name=XDATVNoter.apk
goals
Demonstrate proper coding style and development.
Introduce n00bs to app development.
Make an expandable single-class app which will have the ability to integrate into future projects.
Questions and Contributions
If you have a question, please ask. I am in no way, shape, or form an Android app development expert. I do java more than anything else, not so much with Android. If you've got something to contribute, please do! If you spot a problem in the code, then let me know and I'll give you credit on the SVN Commit.
I think this is an awesome idea. Many of the developers here don't know the Android framework but have worked with lots of C based languages, so picking up Java (if we need to) is not that big a deal. Hopefully this will be the kind of thing that we can follow and learn the OS and framework as we go along. I know it's ideal for me, being a 20 years Windows developer.
Archer said:
I think this is an awesome idea. Many of the developers here don't know the Android framework but have worked with lots of C based languages, so picking up Java (if we need to) is not that big a deal. Hopefully this will be the kind of thing that we can follow and learn the OS and framework as we go along. I know it's ideal for me, being a 20 years Windows developer.
Click to expand...
Click to collapse
Yeah! That's the idea. Once the video is released I will publish it in the OP as well. I hope its understandable. If not, that's why we have this thread available.
The onclick view thing is handy:good:
hi adam! In the title of the video you mentioned testing, which i missed a little in the video. what methods or tools do you use for unit testing and stuff?
I'm sorry to clog up this thread with a post about help, but I couldn't find a thread for the series for tutorials Adam released about a year ago.
At around 8:34 in part one (http://www.youtube.com/watch?list=P...=31cxmLN09ss&feature=player_detailpage#t=513s), Adam adds a button to his test-app thing. It will not let me do this. It shows a no symbol over my cursor when I drag it over the display. I selected the .xml through res and layout just like he did. Only different thing I can tell I am doing is using 4.0 API instead of 2.3.
I have no experience with coding or doing work with Android so I apologize for any common mistakes.
klownk said:
hi adam! In the title of the video you mentioned testing, which i missed a little in the video. what methods or tools do you use for unit testing and stuff?
Click to expand...
Click to collapse
Just the standard tools. A device and a device emulator.
hi der!
is their any file named "notes.txt" is created.? if yes where can i find it?
and yeah thank you!.. am just a beginner and this helped me a lot!
Edit :
i also added "WRITE_EXTERNAL_STORAGE" permission in android manifest!
but still cant find noter.txt file anywhere as mentions in MainActivity.java file!
please help!
1031Vulcan said:
I'm sorry to clog up this thread with a post about help, but I couldn't find a thread for the series for tutorials Adam released about a year ago.
At around 8:34 in part one (http://www.youtube.com/watch?list=P...=31cxmLN09ss&feature=player_detailpage#t=513s), Adam adds a button to his test-app thing. It will not let me do this. It shows a no symbol over my cursor when I drag it over the display. I selected the .xml through res and layout just like he did. Only different thing I can tell I am doing is using 4.0 API instead of 2.3.
I have no experience with coding or doing work with Android so I apologize for any common mistakes.
Click to expand...
Click to collapse
You have to drag it from the bar on the left. There are a set of controls over there which you can select and drag/drop.
ateeq72 said:
hi der!
is their any file named "notes.txt" is created.? if yes where can i find it?
and yeah thank you!.. am just a beginner and this helped me a lot!
Edit :
i also added "WRITE_EXTERNAL_STORAGE" permission in android manifest!
but still cant find noter.txt file anywhere as mentions in MainActivity.java file!
please help!
Click to expand...
Click to collapse
Its in /data/data/tv.xda.noter/files/notes.txt You need to be "Noter" or root to access this file.
Nice video, thanks!
Don't forget to close your output stream; probably more dangerous than forgetting to close an input stream if anything's buffered. Also it's maybe stylistic, but I much prefer Reader/Writer for textual data. If you like System.out style, you can do:
PrintWriter out = new PrintWriter(new OutputStreamWriter(openFileOutput(FILENAME, Context.MODE_APPEND)));
Really great job Adam. I'm going to watch a second time tint and build the app along with the video, you have some points that are helpful that I hadn't thought of before.
Edit:
Adam, I just watched and built along with the video. What action did you do at 15:24, I can see you did something called Refactor, but I'm not familiar with it. Can you explain what it does and why you did it? Thank you!!!
Sent from my Nexus 7 using xda premium
marty331 said:
Really great job Adam. I'm going to watch a second time tint and build the app along with the video, you have some points that are helpful that I hadn't thought of before.
Edit:
Adam, I just watched and built along with the video. What action did you do at 15:24, I can see you did something called Refactor, but I'm not familiar with it. Can you explain what it does and why you did it? Thank you!!!
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
I just moved some code into methods and changed some names. Refactoring means renaming or moving or a number of other operations. Basically, you clean things up with a refactoring. Refactoring is an operation the IDE does safely so when methods or variables move, all the calls point at the newly refactored method or variable.
AdamOutler said:
I just moved some code into methods and changed some names. Refactoring means renaming or moving or a number of other operations. Basically, you clean things up with a refactoring. Refactoring is an operation the IDE does safely so when methods or variables move, all the calls point at the newly refactored method or variable.
Click to expand...
Click to collapse
Awesome, great to know. I'll try using this in the future!
Sweet tutorial! Will be using this as starting point for the app I want to develop. Quick issue though. When I first implement the OnClickListener, it has an error with 56 fixes available, the top two being imports. Which one of these do I pick? I see you chose something from a dropdown, but the video sped up and I can't see which one it was.
A random package said:
Sweet tutorial! Will be using this as starting point for the app I want to develop. Quick issue though. When I first implement the OnClickListener, it has an error with 56 fixes available, the top two being imports. Which one of these do I pick? I see you chose something from a dropdown, but the video sped up and I can't see which one it was.
Click to expand...
Click to collapse
There are 2 common OnClickListener classes like you say, one of them is probably View.OnClickListener and the other DialogInterface.OnClickListener. Use the View.OnClickListener any time that you are attaching it to a widget in your normal layout. Use the DialogInterface.OnClickListnener any time you have created an AlertDialog and are listening to one of its buttons.
Sweet, thank you! :good:
File Location
Hey Adam
In the video you haven't mentioned how to choose the file location.
Please guide me on this.
Thanks
pawan.dewani said:
Hey Adam
In the video you haven't mentioned how to choose the file location.
Please guide me on this.
Thanks
Click to expand...
Click to collapse
that's done in the fileinputstream portion. new FileInputStream("filename"), or you can do new FileInputStream(new File("filename", "/path/tofile"));

[Q] Some essential documentation badly needed

I read @Entropy512 write somewhere "we are more in need of developers than of testers at the moment"
To that effect I want to make an appeal to @maxwen @XpLoDWilD @Entropy512 @pulser_g2 and all other people who started the initiative to properly document out a few things
1. If a device maintainer wants to get his device added to omni ROM what should the steps be ?
2. To set up a omni ROM - compliant device tree what are the prerequisites. As in omniROM trees have been seen to be using a format of aosp.mk+custom.mk device makefiles where aosp.mk makes it AOSP-compliant and custom.mk is the omni additions. How custom.mk is to be made (a template maybe ?) should be be documented. In fact I would go out to say a device/custom/sample tree should be made as an example
3. Are there any guidelines as to how much the hardware side codes can be hacked with to make the devices supported ? (Many groups of developers have forks of hardware/qcom/* repos that are pretty liberally spread with #ifdef's and makes them break CTS/CDD in a huge way). How much will these hacks be supported ?
4. Obvious point, what are the fields in which you need help most badly as of now. That is to say ril/telephony experts are highly needed right now or are features the topmost priority or is the highest concern to make the hardware repos tip-top so that devices are completely stable
Also publishing some guides on how to get sources and build the ROM would be good too, but since you are looking for "Developers" right now, it can be assumed that they will figure that much out on their own at least
This documentation will be done.
Actually one of the key goals of omni is to properly document things.
Bear in mind exactly how early this is in the process - it was only yesterday we even made the links available for github...
Documentation will be a large part of going forward and it has been ongoing for a while. Currently that's the biggest task actually, much moreso than the actual development.
Developers don't only write code, they also write docs
To that effect, http://docs.omnirom.org is going to be the home
Among other things I want to do is a "patches for a given feature" document so it's easier to find out how a given feature (such as status bar brightness) was implemented.
I really want to do it before I have too many patches to put in there, but I also have tons of stuff to fix!
Entropy512 said:
Among other things I want to do is a "patches for a given feature" document so it's easier to find out how a given feature (such as status bar brightness) was implemented.
I really want to do it before I have too many patches to put in there, but I also have tons of stuff to fix!
Click to expand...
Click to collapse
What do you think about this idea? These common kernel patches could also fit into that document.
pulser_g2 said:
This documentation will be done.
Actually one of the key goals of omni is to properly document things.
Bear in mind exactly how early this is in the process - it was only yesterday we even made the links available for github...
Documentation will be a large part of going forward and it has been ongoing for a while. Currently that's the biggest task actually, much moreso than the actual development.
Developers don't only write code, they also write docs
To that effect, http://docs.omnirom.org is going to be the home
Click to expand...
Click to collapse
if I can be of any help let me know,
I would love to see this project start off right from the beginning with proper documentation about EVERYTHING
also +100 to @Entropy512 's idea. documenting each feature and how it has been added is really important
I strongly urge that submissions via gerrit should be enforced to have a well written description in the commit message too. (it is so much easier now with gerrit 2.7+ we can do it right inside our browser after the patch has been uploaded too)
championswimmer said:
if I can be of any help let me know,
I would love to see this project start off right from the beginning with proper documentation about EVERYTHING
also +100 to @Entropy512 's idea. documenting each feature and how it has been added is really important
I strongly urge that submissions via gerrit should be enforced to have a well written description in the commit message too. (it is so much easier now with gerrit 2.7+ we can do it right inside our browser after the patch has been uploaded too)
Click to expand...
Click to collapse
Yup. I've always tried to have a detailed commit message in anything I create, but I think we may need to start enforcing it so everyone does it.
Is there any kind of current features / bugs / patches list on the official build? Or even just a changelog?
orangekid said:
Is there any kind of current features / bugs / patches list on the official build? Or even just a changelog?
Click to expand...
Click to collapse
There are no official builds yet. Too early for that.
so much work to do.
Entropy512 said:
There are no official builds yet. Too early for that.
so much work to do.
Click to expand...
Click to collapse
Oh, I was under the impression there was a compiled "official" version for the N4, N7, etc...
No worries, in due time I'm sure. Be looking forward to the Nexus 5 build..
orangekid said:
No worries, in due time I'm sure. Be looking forward to the Nexus 5 build..
Click to expand...
Click to collapse
give us the device first
I follow Omni for the Nexus 5. Nightlies have started since Monday so I'd like to know if there's a general Omni changelog now or a specific one for each device.
I'm a developer without much ROM/Android development. I'd love to give a hand wherever possible, but like @championswimmer said, it's kind of overwhelming to jump in and help. I'm totally cool to be relegated to documenting things if that helps, but I also understand the interruption that it would cause for you guys to slow down long enough to explain what I need to know.
What I do have experience with:
Java
Jenkins
Minimal app development
Other crap that might or might not be helpful

Invitation to Join my opensource project

Hi guys.. first of all i'm new to android dev and this forum. so excuse me for any mistake.. The reason im posting here is i had an idea for an app i always felt need about and couldnt find on play store. I call it iRevise.
Its a simple notes making app for students(yes there are many) but with a change. A homescreen widget with additional features to make it easy and convenient to revise/memorise the study material. am studying myself and so had started this project.. have got it into a decent app as of now for my use but there are many additional features to be added, and due to lack of time/expertise/funds i may never complete them all.. so came up with the idea of opensource. Ive released it under Apache license 2.0 on sourceforge. sourceforge.net/projects/irevise/
Invite you all to come and develop together to make this into a cool app 
Am providing brief info below for anyone intrested..
Description
Well we all sweat trying to learn those nasty chemical formulae, or the weird biological names or maybe some antonyms and synonyms.Whatever it is anything which can make us learn our books better is just a boon. And when it happens automatically, its just amazing. This little appdoes exactly that. Now quickly make your own small notes for things you feel are difficult to learn.Save in the tiny I revise app,and add the widget. And it makes the notes available on your home screen so they cross your eyes every time you unlock your phone. And they get changed automatically so you get them all... Simple huh? Yes but very effective!! And with so many exciting features lined up it could end up as a really awesum tool.. So why waiting, lets code it !!
Features
Quick Revision Tool For students
Supports android 2.3+
Homescreen Widget (Auto Updating)
Backup/Restore Notes (to be added )
Share Notes (to be added)
Study Circle (to Be added)
Inviting everyone to work on the features mentioned and any extras which may be useful.. Also haven't been able to publish on play store as my old account was suspended by google(dunno why) and i dont have an additional card.. so apk also available there only...
So as you guys mustbe knowing by now am a newbie, and so if anyone finds the project intresting and wants to donate for its development, ure most welcome Even if uve an empty google play account and are ok with donating it for the purpose u're most welcome .
Finally everyone pls download the app and review it wirh any ideas which will encourage to continue this further..
Sent from my GT-S5302 using XDA Free mobile app
www.irevise.sourceforge.net
Sourceforge project link.. Do letme know if I need to add anything to get this going.. Also why cant I add files here? Is it bcoz of new user limit??
Sent from my GT-S5302 using XDA Free mobile app
developerno1 said:
Hi guys.. first of all i'm new to android dev and this forum. so excuse me for any mistake.. The reason im posting here is i had an idea for an app i always felt need about and couldnt find on play store. I call it iRevise.
Its a simple notes making app for students(yes there are many) but with a change. A homescreen widget with additional features to make it easy and convenient to revise/memorise the study material. am studying myself and so had started this project.. have got it into a decent app as of now for my use but there are many additional features to be added, and due to lack of time/expertise/funds i may never complete them all.. so came up with the idea of opensource. Ive released it under Apache license 2.0 on sourceforge. sourceforge.net/projects/irevise/
Invite you all to come and develop together to make this into a cool app 
Am providing brief info below for anyone intrested..
Description
Well we all sweat trying to learn those nasty chemical formulae, or the weird biological names or maybe some antonyms and synonyms.Whatever it is anything which can make us learn our books better is just a boon. And when it happens automatically, its just amazing. This little appdoes exactly that. Now quickly make your own small notes for things you feel are difficult to learn.Save in the tiny I revise app,and add the widget. And it makes the notes available on your home screen so they cross your eyes every time you unlock your phone. And they get changed automatically so you get them all... Simple huh? Yes but very effective!! And with so many exciting features lined up it could end up as a really awesum tool.. So why waiting, lets code it !!
Features
Quick Revision Tool For students
Supports android 2.3+
Homescreen Widget (Auto Updating)
Backup/Restore Notes (to be added )
Share Notes (to be added)
Study Circle (to Be added)
Inviting everyone to work on the features mentioned and any extras which may be useful.. Also haven't been able to publish on play store as my old account was suspended by google(dunno why) and i dont have an additional card.. so apk also available there only...
So as you guys mustbe knowing by now am a newbie, and so if anyone finds the project intresting and wants to donate for its development, ure most welcome Even if uve an empty google play account and are ok with donating it for the purpose u're most welcome .
Finally everyone pls download the app and review it wirh any ideas which will encourage to continue this further..
Sent from my GT-S5302 using XDA Free mobile app
Click to expand...
Click to collapse
I am in. Inbox me
Added the keystore file to sourceforge so apks canbe compiled with same signature.. Kindly use that.. Also will be posting an update soon, was a little busy for the last few days..
@Shreyseviltwin Welcome Onboard!!
Why not use Github? It makes collaboration much easier.

Categories

Resources