yashsingh1/xdaforums huggingface dataset:
[Thunderbolt Android Development] bp328i:
Awesome job on the kernels!!!!
[Thunderbolt Android Development] adrynalyne:
The kernel has nothing to do with your 4G speed.

Head to my kernel thread and see proof I posted.
[Thunderbolt Android Development] spursrchamps2007:
What kind of battery are you getting from #1 to #3
[Thunderbolt Android Development] utkanos:
Hi there, the differences are the number of slots available (the clock speeds you can set the proc to run at). If you're confused on what this means, go with choice #1
[Thunderbolt Android Development] utkanos:
Updated OP with CM7 support.
[Thunderbolt Android Development] THATTON:
Thank you sir! I will check them out now!

Sent from my ThunderBolt
[Thunderbolt Android Development] WorldOfJohnboy:
Do any of these work with a Gingerbread Sense-based ROM? I have read that these only work with AOSP ROMs...
[Thunderbolt Android Development] utkanos:
No, these work with Froyo Sense based ROMS and with CM7. I was working on a GB Sense edition before the radio debacle. I will continue this work when a new radio appears.
[Thunderbolt Android Development] wingdo:
Will there be a release for the MR2 radio? I upgraded to perfect storm 1.5 but miss your kernels.
[Thunderbolt Android Development] je300zx:
I just flashed to CM7 and tried the first kernel for CM and I lost 3g and wifi (the symbols were there, but they were white, like they weren't active or something) Does anyone know what I'm missing?
[Thunderbolt Android Development] joshnichols189:
My symbols are always white and they work perfectly..
[Thunderbolt Android Development] wingdo:
I just wanted to reiterate how great these kernels are (and bump this back up). Now that Das BAMF's MR2.5 (and MR2) Froyo ROM is out, it supports MR1 sense kernels. I am back on utkanos and loving the battery life once again. By far the best kernels I have used on the TB. No reboots, great battery life.
[Thunderbolt Android Development] xCHPx:
White symbols just means you're not connected to Google servers.
[Thunderbolt Android Development] mademan420:
Lost network connection after flashing

Same here. It still says 3G with 3 bars but I am unable to go any where that requires internet. Flash twice while wiping before and still a no go. Flashed back to IMO 3.2.2 and now I have internet again?.?
[Thunderbolt Android Development] utkanos:
Guys these haven't been updated for CM7 rc's in quite some time, the sense kernels will work but I need to update the CM7 ones.
[Thunderbolt Android Development] n8theshredder:
Will these kernels work with Bamf 1.8.6 with the mr2 radio?
[Thunderbolt Android Development] SomeGuyDude:
These aren't Sense kernels, so no.
[Thunderbolt Android Development] komradefox:
Actually there ARE sense kernels at the top of the OP post. I'm not sure if these will work with the radio... BUT i don't think so.

They changed the Kernel in the new OTA (official MR2) so if you are running the official MR2 or some derivative, the sense kernels will NOT work.

Until HTC releases the source for the official MR2, the community is stuck guessing and trying to kang some sort of kernel together.
[Thunderbolt Android Development] ApplCobbler:
will this work with the MR2 builds of OMFGB?
[Thunderbolt Android Development] wingdo:
Please see my sig.
[Thunderbolt Android Development] n8theshredder:
Saw your Sig. Hows the battery life and charging times with the utkanos kernel?
[Thunderbolt Android Development] wingdo:
Charging time seems normal, battery life is great. Better battery life with the non-OC version, but I use the OC version for just a touch more speed. No issues at all for me.
[Thunderbolt Android Development] ApplCobbler:
anyone know this yet?
[Thunderbolt Android Development] n8theshredder:
+1

Just flashed the on non OC kernel, and the charging time is way faster than the imoseyon kernel, especially via car charger. Battery life seems better too. Thanks.
[Thunderbolt Android Development] Old MuckenMire:
Hi

I flashed #1 last night but ever since the call recording feature in 1.8.6 has stopped working, are you having any luck?

Thx
[Thunderbolt Android Development] fixxxer2008:
Will this work on liquid aosp? Also is this kernel still being updated?
[Thunderbolt Android Development] pedtech:
locking htc

i tried to flash number 1 and number 2 of your kernels and my thunderbolt keeps on hanging on first HTC screen. I have to reboot into recovery and reflash my shiftAOSP to get it to boot back up.

I thought these were for the gingerbread AOSP based roms....
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
I was wondering which ROMs are great with battery like compared to the blood sucking stock

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] dirkyd3rk:
Try cm7(aosp) #36 or Myns 2.2 warm if you like sense; both have great battery life. Also if battery life is REALLY important you might want to invest in a 3500 extended battery or have 2 stock batteries :-)
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
I love sense, not currently rooted but plan on it. I have 2 extended batteries (2200 & 2400)

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] dirkyd3rk:
Nice. You should root dude its awesome. My fav sense roms are myns 2.2 and koni's elite. Both awesome battery.
[EVO 4G Q&A, Help & Troubleshooting] jstalford:
http://greenfieldroid.wordpress.com/2010/12/27/battery-tips-for-longer-battery-life/

Most of the more popular ROMs can get good battery life with the right Kernel/ROM combo, in my experience.
[EVO 4G Q&A, Help & Troubleshooting] jacoballen22:
I second myns warm TwoPointTwo.

Swyped from my sexy EVO.
[EVO 4G Q&A, Help & Troubleshooting] DowntownRDB:
+1. Myn's Warm 2.2 RLS5 is an awesome Rom and smooth as butter. I get better battery life on Myn's using the kernel listed in my signature. Koni's Elite is also a good Rom.
[EVO 4G Q&A, Help & Troubleshooting] sitlet:
Yep, Myn's 2.2 is the best ron I've used for battery life. I could easily get 2 full days out of it with moderate usage
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
Does these Roms have sense 2.0 and wimax? Wimax isn't all that important to me because my area doesn't have 4g yet.

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] dirkyd3rk:
Yes they both have wimax, they are 2.2 froyo sense roms.
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
Would I need to flash a custom kernel to get good battery life?

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] raphenucleus:
I've been averaging 30-40 hours on gingerbread-evo-deck (AOSP) with SZ 1.0.1 CFS HAVS (stock battery, light to moderate usage). I loved Sense too, until I found out how much better my battery life and performance could be on an AOSP-based ROM. And after a little bit of searching, I found good replacements for the Sense widgets I'd come to love so much. I tried a ton of sense ROM and kernel combinations and the best battery life I could get was about 15-20 hours with Fresh 3.5.0.1 and Netarchy 4.3.1. But that's just me. Everyone says that ROMs and kernels can work very differently on different phones, so it's worth trying out different combinations yourself to see what works best for you.
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
I just don't want to lose any data, so what's the best app to use for backing up apps and other data before rooting

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] raphenucleus:
Google backs up your contacts and calendar automatically if you set them up to sync. Titanium backup is a great program to backup apps once you're already rooted, but I don't know of anything that will do it without root. It kind of sucks, but I think you might just have to set everything up again and re-download all your apps (that's what I did); fortunately, it's a lot faster and easier to restore everything once you're rooted and have Titanium backup. Any apps that you bought in the Market, you can download without paying again, but you still have to go in and download everything individually. Maybe someone else knows a better solution?
[EVO 4G Q&A, Help & Troubleshooting] jstalford:
I can't think of one, but you should be able to back everything up once you Root. Don't think you'll lose anything from just rooting. Shouldn't anyway.
[EVO 4G Q&A, Help & Troubleshooting] raphenucleus:
After a quick search, it looks like MyBackup Pro by Rerware might let you back up more than you could normally and it doesn't require root. I haven't tried it so I can't really say everything it does or how well it works, but it might be worth looking into.
[Android Software Development] grandioso:
I'm developing an organizer app as my bc. thesis and I don't have any real Android developer to consult, so I made this thread and hope somebody will help me and point me in the right direction.

I just started to work on it and I have roughly 1 month to make something useable out of it.

So... the first thing that comes to my mind right now is synchronization.

1. I don't know if I should implement it or not.

I have a hosting with 1.5 GB space, a relatively fast connection. Would syncing data (text (probably xml) only) with this server slow it down significantly ? How many users could an average server take ?

And another one regarding sync:

2. I'd like my application to exchange data with my server under the google account on which the device is logged in, so no registration will be neccessary (I suppose the majority of devices are loggen in with google). I'll probably need to get the user's google account name on every sync session. Is that possible ?

The app will already have a server-side app to edit your events and stuff, so I'll need the user's login information again to retrieve his data from my database, but I won't have his password, so I can't make a usual login form. I guess Google has some API to figure out if a user is logged in, doesn't it ?

Any advice will be appreciated.
[Android Software Development] grandioso:
Can I open a menu with a simple button click ? Like a context menu but for short clicks.

// I solved the **** outta this one.

Still waiting for answers on the first post.
[Android Software Development] Rootstonian:
"Organizer App" really doesn't tell us what you're trying to do. It's hard to answer questions if one doesn't know that basic plan of the project you're trying to create. :)
[Android Software Development] grandioso:
Check this -> Basic info about my bc thesis
[Android Software Development] Rootstonian:
Nice web page...ambitious project for a 4 week time frame.

As a programmer, you know to start small and add functionality as your program grows.

I would start by making a simple"To Do" list: Add item, Delete item, Edit item, Mark item done, Save this list, Recall a list, Delete a list.

Post back when that's done :)
[Android Software Development] Syndacate:
Agreed 100%.

@ OP:

I don't know much about syncing, but it won't have a large cost of the server's resources - syncing an CSV or XML file is pretty trivial. Even if you have a low bandwidth cap, text files are quite small. So you should be fine in terms of that.

Nobody can give you a "set number" - ie. the server can take "X people." It greatly depends on the server type, how much bandwidth is allocated to you, your traffic priority, etc. I mean if it's one server with like a xeon processor then it can probably handled a pretty heavy load (say 50 probably? (and yes, I'm kind of pulling that number out of my ass)). Though most web hosts don't just dedicate one server to each customer. Typically, now-a-days, everything is virtualized. Everything is unified using server farms (ie. multiple servers or computers) virtually, then virtual chunks of resources are distributed to clients. So even if somebody could give you exact numbers (which is impossible), they'd most likely be wrong. That is unless you paid extra to have a particular server or particular number of servers dedicated to you...but even then, there's a high chance that it's just a chunk of a virtual server farm.

He's right, this is pretty ambitious in a 4 week period, especially if you have other activities going on as well. It's even more ambitious if this is your first app. You may want to reconsider your objectives given your time frame.

As for the google login, you'd need to look at the google API, and see if there's a way to verify peoples' usernames and passwords. If you can, then it's just a matter of encrypting them and storing them in a properties file or something.

Hope that helps ya out some.
[Android Software Development] grandioso:
Thank you :)

I know, I know. I could have started 4 months ago. But I didn't, the lazy bastard I am. :(

This is the practical part of my bc thesis. The ultimate deadline is 3rd of june, but I have to have my theoretical part (30-50 pages of text, if IIRC) done by then, all printed out and ****. So I plan to work as hard as I can on this till the end of this month and then start to work on both at the same time. I really don't have any other duties in school, since I have a nice reserve of credits so this is my priority #1.

The main objective is geo-tasks, since that's what the name of my thesis says. Everything else is just an addition (i.e. the widget, that was just an idea, I doubt I will have time for that). So I'd rather start with that (I know, It's the hardest part). Or do you still think I should start with the to-do's ?

You can check out my last night's post to see what I've been up to the last 2 days and what I'll be up to next.
[Android Software Development] Rootstonian:
What is your level of Android programming experience (None, Basic, Intermediate, Advanced)?

And I'm a little fuzzy on the whole "Geo" thing. Is it like I have a list "Get milk, bread eggs", "Pick-up dry cleaning", "Get oil change" and then your app is going to "sense" when I'm by the grocery, dry cleaner's and oil change place? Which grocery? I use 4 different stores. Same dry cleaner and oil change though usually. :)

If so, you are going to need to code in lat/long coordinates for these places and then compute your location vs one of the merchants, compare that merchant to an "active" TO DO list item and pop-up an alert of some sort if you're within a mile. Wow :)

Your project, you know your skill level. Start where you want I guess LOL.
[Android Software Development] Syndacate:
I think it's more of an agenda type thing - that syncs.
[Android Software Development] grandioso:
@Rootstonian

I'd say basic, but quickly crawling up to intermediate.

It's almost like you said, but there's only one location for every task. Maybe in a later version...
[Android Software Development] Rootstonian:
Well, good luck. Keep us posted :)
[Android Software Development] grandioso:
Will do. Hope you guys will keep on helping me :)
[Android Software Development] grandioso:
I need to use my database object in more than one activity. How do I pass it from one activity to another ?

Should I create a new instance in each activity ? Or should I create a content provider ? (I'd rather not - they're quite complicated for me and I only need to access the DB in this app).
[Android Software Development] Rootstonian:
I'm going to assume you are using a database helper type class.

No need to pass data from Activity to Activity; just open, use and close the database in each Activity as required.
[Android Software Development] grandioso:
I have a problem.

I created a LinearLayout for all the tasks in the database. Now I want to register all of them for a context menu. I can do that, but I can't figure out which one's menu was triggered.

LinearLayout has a setId method, but it only takes integer values, which is no good for me, because I have 3 types of tasks and if I assign them their id from the database, then the same ID will probably be assigned to 3 different views.

I could use some sort of multiplication, like for timed tasks I would multiply the ID by 10 000, but that's not elegant at all, and it would crash after a few months of using the app.

So what do I do now ?
[Android Software Development] grandioso:
I'll paste some code.

public void drawTasks() {

TextView emptyText = (TextView) findViewById(R.id.empty_todo);

if (tasks.isEmpty()) {
emptyText.setVisibility(View.VISIBLE);
} else {

emptyText.setVisibility(View.GONE);

Iterator<Task> it = tasks.iterator();

//create views
while (it.hasNext()) {

//create a temporary object
Task tmpTask = it.next();

//get it's properties
long id = tmpTask.getId();
String title = tmpTask.getTitle();
String description = tmpTask.getDescription();
int important = tmpTask.getImportant();
int finished = tmpTask.getFinished();

//create new LinearLayout for this task
LinearLayout newTaskLayout = new LinearLayout(this);
newTaskLayout.setId((int)id);
newTaskLayout.setOrientation(LinearLayout.VERTICAL);
newTaskLayout.setPadding(5, 0, 0, 10);

taskLayouts.add(newTaskLayout);

//create new views for these properties :

//title
TextView newTaskTitle = new TextView(this);
newTaskTitle.setText(title);
newTaskTitle.setTypeface(null, Typeface.BOLD);
//important tasks are highlighted
if (important == 1)
newTaskTitle.setTextColor(Color.RED);
//finished tasks are italic
if (finished == 1)
newTaskTitle.setTypeface(null, Typeface.ITALIC);

//description
TextView newTaskDescription = new TextView(this);
newTaskDescription.setText(description);
if (finished == 1)
newTaskDescription.setTypeface(null, Typeface.ITALIC);

//add views to this tasks' LinearLayout
newTaskLayout.addView(newTaskTitle);
newTaskLayout.addView(newTaskDescription);

//add new linearLayout to tasksRootLayout
tasksRootLayout.addView(newTaskLayout);

}

}

}

This is self-explanatory. taskLayouts is an ArrayList of LinearLayouts where I keep the pointers to all layouts that need to have a context menu.

There are 2 other similar methods: drawTimedTasks() and drawGeoTasks() which do basically the same (I couldn't figure out a way to do it with one universal function).

Here's how I register them for context menu:

private void registerViewsForContextMenu() {

//register control bar buttons
registerForContextMenu(newGeoTaskButton);
registerForContextMenu(newTaskButton);

Iterator<LinearLayout> it = taskLayouts.iterator();

while (it.hasNext()) {
registerForContextMenu(it.next());
}

}

And here's how I'm checking for context menu trigger:

public boolean onContextItemSelected(MenuItem item) {

switch (item.getItemId()) {
case ...
return true;
}
...
}
return false;
}

What am I doing wrong ?
[Android Software Development] grandioso:
Anyone ?

----
[Android Software Development] Syndacate:
I haven't really been following this thread so I don't know all the details of your app, but I'll try to help.

So each task has 3 views for it? Each task is in the db once? I'm a little foggy on how you're storing them and what the correlations are between views, events, and types of event, more specifically the latter.

If you explain that a little more clear, I can try to help a little better.
[Android Software Development] grandioso:
There are 3 types of tasks : simple, timed, and geo tasks. Each type has its own table in the db, hence it's own IDs. That means, the first geo task, first simple task, and the first timed task ever added have all the same ID = 1. That means if I want to give their views unique IDs, I can't use their IDs from the database.

So I'm trying to figure out a way how to give the view ID's so I can find out which database record they represent.

In an ideal world, I would be able to define a string ID (i.e. geo_1, simple_1, timed_1), but this is not the case. I dunno why... in XML you give your views string IDs, but programatically you can't. :mad:
[Android Software Development] Syndacate:
If all of the tasks have common elements (even if they don't really), you can merge them into one table. Then define an enum or something for the task type, as a simple field in the table. This removes the issue with duplicate ID's, while still being able to differentiate what type they are. You can typically leave fields blank in a database, so you wouldn't have to worry about what's filled in for tasks that don't have particular fields associated with them, just verify all fields prior to mutating the database.

If you're hellbent on keeping three separate tables you can hold a global ID, which can be an intersection between all three tables. So this wouldn't be the primary key, just a global ID, and you can key them up by that. Not entirely sure where you'd keep it to persist over power cycles unless you just make a 4th table with one row and store it in there. Or just throw it in the program's data somewhere.

The reason you can define things in the XML is he XML is compiled into the R class at compile time...though everything in there *should* have a corresponding methodology to get it done programatically. Though if you're talking about the primary key, as far as I know that is always numerical. So the ideal world may not apply - BUT, that doesn't mean you can't create a field that stores a string id (which I wouldn't, because string comparisons take a lot of time, but whatevs).

Hope that helps you out some, I don't really touch databases and am very new to Android programming, just know what I know from absorbing info from others - but I know a pretty decent amount about programming in general and know Java pretty well so I can probably help you out the best I can in some respects.
[Android Software Development] grandioso:
I have to keep 3 separate tables, because:

a) it would be a LOT of work to make everything work again if I changed it now

b) timed tasks and geotasks have totally different attributes than simple tasks

I'm not sure what do you mean by the global ID thing. Intersection ? That seems kinda weird to me...

I though about using some kind of global IDs, but there's gotta be a more elegant solution (this is not elegant at all, in fact it's the opposite of elegant).

Maybe I could use a hash table... I'll think about that.

If anyone has a solution, spit it out, please :)
[Android Software Development] grandioso:
I have another question - how do I find out if any GPS coordinates have already been obtained ? I want an activity to launch ONLY if I can get the user's exact location.

I can check if the user has his GPS turned on and navigate him to GPS settings (I've already done that), but just that the GPS is turned on doesn't mean I have the users coordinates to work with (i.e. when the user is indoors).

How do I manage this ?