[Bug Fix] Contacts Bug - Merry Christmas! - Nexus S General

Hello all,
Looks like I have managed to fix this bug. Here is the code.
//android/packages/apps/Contacts/src/com/android/contacts/datepicker/DatePicker.java
if (months[0].startsWith("1")) {
for (int i = 0; i < months.length; i++) {
months = String.valueOf(i + 1);
}
//mMonthPicker.setMinValue(1); //-----------------------------------------------------------> setMinValue should be 0
mMonthPicker.setMinValue(0);
mMonthPicker.setMaxValue(12);
} else {
//mMonthPicker.setMinValue(1); //-----------------------------------------------------------> setMinValue should be 0
mMonthPicker.setMinValue(0);
mMonthPicker.setMaxValue(12);
mMonthPicker.setDisplayedValues(months);
}
mMonthPicker.setOnLongPressUpdateInterval(200);
mMonthPicker.setOnValueChangedListener(new OnValueChangeListener() {
@Override
public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
/* We display the month 1-12 but store it 0-11 so always
* subtract by one to ensure our internal state is always 0-11
*/
//mMonth = newVal - 1; //----------------------------------------> Should be newVal
mMonth = newVal;
// Adjust max day of the month
adjustMaxDay();
notifyDateChanged();
updateDaySpinner();
}
});
You can test the apk attached
still not perfect, just an immediate solution so that you do not miss the Christmas!!!
-Adarsh

what is the problem ??i cant understand ..

leap_ahead said:
what is the problem ??i cant understand ..
Click to expand...
Click to collapse
December disappeared in JOP03C, 4.2

leap_ahead said:
what is the problem ??i cant understand ..
Click to expand...
Click to collapse
How's life under that rock of yours? ^^
J/k, it's a 4.2-bug. Google forgot December in contacts-app (when making an appointment), it's fine in calendar-app.

The Contacts app in 4.2 missed Dec when adding events related to a contact.
To me the problem looks like, Google guys changed the way to check the limits in the code. for example instead of using for(i=0;i<=length;++i),
they used for(i=0;i<length;++i). So one value was missed this time.
reason could be beyond this also.

december missed because google thinks it's the end of the world

mMonthPicker.setMinValue(0);
mMonthPicker.setMaxValue(12);
Click to expand...
Click to collapse
This doesn't seem to be a proper fix. Now the possible values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 = 13 values.

Thanks.

FloHimself said:
This doesn't seem to be a proper fix. Now the possible values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 = 13 values.
Click to expand...
Click to collapse
Commit from Cyanogenmod!
http://review.cyanogenmod.org/#/c/26856/
Sent from my Nexus S using Tapatalk 2

Articudos said:
Commit from Cyanogenmod!
http://review.cyanogenmod.org/#/c/26856/
Click to expand...
Click to collapse
Yes, the CyanogenMod version differs from this one.

adarshahd said:
The Contacts app in 4.2 missed Dec when adding events related to a contact.
To me the problem looks like, Google guys changed the way to check the limits in the code. for example instead of using for(i=0;i<=length;++i),
they used for(i=0;i<length;++i). So one value was missed this time.
reason could be beyond this also.
Click to expand...
Click to collapse
I think for(i=0;i<length;i++) its the right one. Dont forget that the "i" variabel is going to be the position, and it starts in 0 and goes to 11. 12 values, as it should be.
am i wrong?

Articudos said:
Commit from Cyanogenmod!
http://review.cyanogenmod.org/#/c/26856/
Sent from my Nexus S using Tapatalk 2
Click to expand...
Click to collapse
Solved in 4.2.1!!

Related

Modding the camera driver to use FFC for video chat

Android 2.3 provides 2 methods to open the camera (link):
1) open()
2) open(cameraId)
Method 2) is new to Android 2.3, but not many apps use it yet. Method 1) is provided in Android 2.2, which many video chats app uses. Unfortunately, it is hardcoded to access the rear camera:
public static Camera open() {
int numberOfCameras = getNumberOfCameras();
CameraInfo cameraInfo = new CameraInfo();
for (int i = 0; i < numberOfCameras; i++) {
getCameraInfo(i, cameraInfo);
if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
return new Camera(i);
}
}
return null;
}
I would like change this logic so that it read in the camera index from some file, e.g. defaultCamera.txt, so the user can change the default cam any time without recompiling.
For someone who has compiled Android before, it would be easy to make this mod. Unfortunately, I don't have the resources to do it.
Any takers out there?
Can't you just use Fring?
James_Caliber said:
Can't you just use Fring?
Click to expand...
Click to collapse
If Fring works on 2.3, then I'd say it's one of a very few apps that are using the 2) method above. However, most other apps are still using the 1) method.
One of them is Adobe AIR 2.5.1, which my ReelPortal app depends on. So while waiting for Adobe to update it's AIR runtime to use the new 2) method, I figured it may be possible to change the underlying Android 2.3 to works with older software by modifying method 1).
You are probably wondering why don't I just abandon AIR. It'd be a lot of rework that I can't afford to do, and more importantly, AIR allows my software to run on multiple platforms. Currently my app runs on PCs, Android, and Blackberry Playbook (simulator). But I anticipate it to work on WebOS when that's out. And potentially iPhone/iPad as well if/when Adobe and Apple play nice w/ each other.
James_Caliber said:
Can't you just use Fring?
Click to expand...
Click to collapse
Haven't used Fring but Tango uses the front camera. And exceptionally well even on 3G.
reelportal said:
Android 2.3 provides 2 methods to open the camera (link):
1) open()
2) open(cameraId)
Method 2) is new to Android 2.3, but not many apps use it yet. Method 1) is provided in Android 2.2, which many video chats app uses. Unfortunately, it is hardcoded to access the rear camera:
public static Camera open() {
int numberOfCameras = getNumberOfCameras();
CameraInfo cameraInfo = new CameraInfo();
for (int i = 0; i < numberOfCameras; i++) {
getCameraInfo(i, cameraInfo);
if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
return new Camera(i);
}
}
return null;
}
I would like change this logic so that it read in the camera index from some file, e.g. defaultCamera.txt, so the user can change the default cam any time without recompiling.
For someone who has compiled Android before, it would be easy to make this mod. Unfortunately, I don't have the resources to do it.
Any takers out there?
Click to expand...
Click to collapse
This would probably be very easy to do. I'll take a look at it
im sure i can speak for everybody when i say we would rather use skype. the update needs to come quick.
charlieb620 said:
im sure i can speak for everybody when i say we would rather use skype. the update needs to come quick.
Click to expand...
Click to collapse
I wouldn't say "everybody", but I'd agree most people would use what they are used to. My software is designed to be more flexible for unconventional use.
For example, when both front and back cameras are fully supported by the underlying layers (AIR or Android), it would be possible to stream from both cameras simultaneously. So you can place the phone on a table for a video conference call, and the other side will see everyone at the front and back. I'm just thinking out loud here, as I hadn't actually done it with any phone yet.
charlieb620 said:
im sure i can speak for everybody when i say we would rather use skype. the update needs to come quick.
Click to expand...
Click to collapse
Thats not necessary man. reelportal is trying to develop an alternative that has other uses as well and telling him that others do it better is just rude.
reelportal said:
I wouldn't say "everybody", but I'd agree most people would use what they are used to. My software is designed to be more flexible for unconventional use.
For example, when both front and back cameras are fully supported by the underlying layers (AIR or Android), it would be possible to stream from both cameras simultaneously. So you can place the phone on a table for a video conference call, and the other side will see everyone at the front and back. I'm just thinking out loud here, as I hadn't actually done it with any phone yet.
Click to expand...
Click to collapse
Keep up the work man, some fools man not see the point in trying to do what hasn't been done but I appreciate your effort.
kenvan19 said:
Thats not necessary man. reelportal is trying to develop an alternative that has other uses as well and telling him that others do it better is just rude.
Keep up the work man, some fools man not see the point in trying to do what hasn't been done but I appreciate your effort.
Click to expand...
Click to collapse
Thanks for the support. Sometimes it's hard to get new ideas across to everyone. ReelPortal as it is right now is just a foundation for the stuff that I want to add on later, so there's a lot of work ahead for me.
I'm not saying what he is doing is irrelevant I'm talking about the availible video chat apps that our phone can use. I was not being rude. I'm speaking for people that would like to use other choices besides tango because android didn't develop much for our phones
Sent from my Nexus S using XDA App
I support you as well that's why I better clarified what I said. i would like to see this as well
Sent from my Nexus S using XDA App
charlieb620 said:
I'm not saying what he is doing is irrelevant I'm talking about the availible video chat apps that our phone can use. I was not being rude. I'm speaking for people that would like to use other choices besides tango because android didn't develop much for our phones
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
You came across as rude because the original post has nothing to do with other video chat apps. He was asking a programming question and you replied with 'use fring'
It's like if I asked about building an engine for a car I'm making and someone replies back 'take a bus'
-Nexus S
i THINK Qik now supports SNS video calls. The update says 'support for Dell Streak' but it doesnt crush on my SNS anymore....
Smilez_c said:
i THINK Qik now supports SNS video calls. The update says 'support for Dell Streak' but it doesnt crush on my SNS anymore....
Click to expand...
Click to collapse
I confirm this!
For the record, I just discovered Reelportal, and anyone who hasn't tried it simply doesn't understand how amazing it is or why we totally need this in addition to Skype video.
You can't compare it to Skype, its not the same thing at all. Skype is an account-based system where you log in and find users. This is more like an impromptu video chat room that supports up to 5 people simultaneously.
Skype does support multiple people (not sure if the new Skype 2.0 does for mobile yet), but only if you are willing to pay for it. Oovoo supports 3 people free, but you have to find people who are signed up for and installed Oovoo.
Here's the thing with Reelportal: IT RUNS IN A FREAKING BROWSER WINDOW!
That means you could tell everyone and anyone to join in your video chat from any computer (browser with flash required, that's it!), sort of like a video party line. You can keep your room private by putting a password on it as well, or even host your own server if you don't want to keep it publicly available.
I'm imagining the uses now- a group meeting with coworkers across the world, just tell them a time and what room name to log in and meet you. Or if I'm giving my 1 year old her first ice cream cone and want my whole family from multiple locations to log in and join us live.
I think this is totally brilliant and I'm beside myself at the short sightedness of folks who quickly dismissed this as just another Skype, Fring, Yahoo IM, Qik, etc. Those apps are all awesome, but this is something different.
Meanwhile, I'm not sure I understand the problem with accessing the front camera. I thought the new camera API was supposed to make this simpler for developers?
Is the problem that setting it for the front camera breaks support for older devices that rely on the old routine (G-tablet, etc)?
Why not offer two versions of the app- one for Gingerbread, and one for legacy?

Netflix app leaked!!

phandroid.com/2011/03/15/netflix-for-android-apk-leaked/
Sent from my HTC Supersonic
It starts up, can manage my queue, but no streaming, it gives an error saying it can't reach netflix service.
Hope you devs can check this out for us.
Sent from my HTC Supersonic
Yeah it doesn't work because of drm licensing...its pointless right now
Was hoping the devs could dig thru this and check out its inner workings per say.
Sent from my HTC Supersonic
Source attached below. Didn't really look through it, but found some interesting things.
For example:
Code:
private static final String DUMP_INFO = "/system/bin/dumpsys meminfo ";
private static final String EXIT = "exit\n";
public static final String FILENAME = "FILENAME";
public static final String OUTRES = "OUTRES";
private static final String SHELL = "/system/bin/sh";
private static final String[] SU_COMMANDS;
private static final String TAG = "nf-utils";
private static final String[] TEST_COMMANDS;
private static final Pattern UID_PATTERN = Pattern.compile("^uid=(\\d+).*?");
private static Boolean debugBuild;
private static String rootShell;
static
{
String[] arrayOfString1 = new String[3];
arrayOfString1[0] = "su";
arrayOfString1[1] = "/system/xbin/su";
arrayOfString1[2] = "/system/bin/su";
SU_COMMANDS = arrayOfString1;
String[] arrayOfString2 = new String[3];
arrayOfString2[0] = "id";
arrayOfString2[1] = "/system/xbin/id";
arrayOfString2[2] = "/system/bin/id";
TEST_COMMANDS = arrayOfString2;
}
And the fact that they log everything. Carrier/signal/etc..
Anyways, its signed rsa/sha1.
Also the code below will most likely not compile, but a person could use clone their protocol to make it stream.
Code:
public abstract interface Nflx
{
public static final String PARAM_EPISODE_ID = "episodeid";
public static final String PARAM_EP_BOOKMARK = "playback_bookmark";
public static final String PARAM_EP_BOOKMARK_TS = "watched_date";
public static final String PARAM_EP_TITLE = "subtitle";
public static final String PARAM_LAUNCH_URL = "launchUrl";
public static final String PARAM_MOVIE_ID = "movieid";
public static final String PARAM_NCTS = "ncts";
public static final String PARAM_NFID = "nfid";
public static final String PARAM_NFIDS = "nfids";
public static final String PARAM_RETUR_URL = "returnUrl";
public static final String PARAM_SHOPPER_ID = "shopperId";
public static final String PARAM_SHOPPER_SECRET = "shopperSecret";
public static final String PARAM_TITLE = "title";
public static final String PARAM_TRK_ID = "trkid";
public static final String PROTOCOL = "nflx://";
public abstract void handle();
}
4 Door Skyline said:
Was hoping the devs could dig thru this and check out its inner workings per say.
Sent from my HTC Supersonic
Click to expand...
Click to collapse
i believe it's impossible due to the fact of DRM licensing...the evo 2 or 3d whatever you wanna call it i bet will be able to run this with its specified specs that the netflix .apk knows its running...
If that's the case, I'm sure a way can be devised to fool the app into thinking that its running on another device a la browser agent
Sent from my HTC Supersonic
like i said. someone could clone their protocol...
http://www.androidcentral.com/leaked-lg-revolution-system-dump-has-netflix
Guess the evo 2 won't be the first phone lol, LG's got the install file, and the duplicating or spoofing your talking about is illegal in many ways imho
iitreatedii said:
http://www.androidcentral.com/leaked-lg-revolution-system-dump-has-netflix
Guess the evo 2 won't be the first phone lol, LG's got the install file, and the duplicating or spoofing your talking about is illegal in many ways imho
Click to expand...
Click to collapse
luckily many of us couldn't care less about that.
Sent from my PC36100 using XDA Premium App
OneStepAhead said:
luckily many of us couldn't care less about that.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Lol good point
Sent from my PC36100 using XDA Premium App
I hope the devs will be able to get this working! I dont see why not though, they get everything else to work!
schneider232003 said:
Lol good point
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
See what happened to the swype app with custom themes, got pulled, we luckily had it for as long as we did, with all these lawsuits nowadays i wouldnt be surprised if it would be illegal, so yes you should care, but of course I can't make or tell anyone to do anything
look at the hulu and hotspot...
we are not stealing netflix..
the app is free for android.
only the users with good netflix accounts can log on. so not stealing.
Devs are already busy ripping this apart in the LG Rev System Dump thread in the development section. It's easy enough to get past the network check, but there's a few things they are having trouble getting past...not to mention that no one has found the lib files yet.
Dan330 said:
look at the hulu and hotspot...
we are not stealing netflix..
the app is free for android.
only the users with good netflix accounts can log on. so not stealing.
Click to expand...
Click to collapse
Yeah but DRM licensing is a whole different story it has nothing to do with the legality of an account with netflix
This looks like a good place to start:
String str2 = paramString + ".serviceProvider.requestTokenURL";
String str3 = getURL((URL)localObject1, str2);
String str4 = paramString + ".serviceProvider.userAuthorizationURL";
String str5 = getURL((URL)localObject1, str4);
String str6 = paramString + ".serviceProvider.accessTokenURL";
String str7 = getURL((URL)localObject1, str6);
OAuthServiceProvider localOAuthServiceProvider = new OAuthServiceProvider(str3, str5, str7);
Properties localProperties2 = this.consumerProperties;
String str8 = paramString + ".callbackURL";
String str9 = localProperties2.getProperty(str8);
Properties localProperties3 = this.consumerProperties;
String str10 = paramString + ".consumerKey";
String str11 = localProperties3.getProperty(str10);
Properties localProperties4 = this.consumerProperties;
String str12 = paramString + ".consumerSecret";
String str13 = localProperties4.getProperty(str12);
localOAuthConsumer = new OAuthConsumer(str9, str11, str13, localOAuthServiceProvider);
localOAuthConsumer.setProperty("name", paramString);
if (localObject1 != null)
localOAuthConsumer.setProperty("serviceProvider.baseURL", localObject1);
Iterator localIterator = this.consumerProperties.entrySet().iterator();
while (localIterator.hasNext())
It seems like certain URL's trigger the authorization. I think the devs would need a phone with the working version to get this info. Then again, I'm no expert.....this just caught my eye.
Found this here in the decomp file:
decompile.zip\Source\net\oauth\consumerproperties.java
iitreatedii said:
Yeah but DRM licensing is a whole different story it has nothing to do with the legality of an account with netflix
Click to expand...
Click to collapse
In other words:
Using it to stream as if the DRM were as intended=ok.
Using it to rip streams=bad.
Is that what you meant? Personally, I have no desire to rip a netflix stream. I do have a desire to watch it on my android devices (namely the archos 70 more than the evo).
1. DRM is teh gay.
2. **** Netflix. Ive been waiting for netflix streaming on my android devices for almost a year now! While all my friends with lame iphones and large ipod touch's that cant even browse online restaurant menu's (flash based) have had it since august!!
And I dont want to hear "fragmentation makes it hard to implement blah blah blah...".
If Netflix didnt want me to steal their application, and hack it to work with my phone so I can access the service that I PAY for, they should have released an android version of the client already
iitreatedii said:
http://www.androidcentral.com/leaked-lg-revolution-system-dump-has-netflix
Guess the evo 2 won't be the first phone lol, LG's got the install file, and the duplicating or spoofing your talking about is illegal in many ways imho
Click to expand...
Click to collapse
It's not illegal to clone a protocol.

Strange logcat on R175

Hi all,
I'm in interest about android for hd mini.
I tested the R175 and my battery is going empty in about 1-2hours.
however, i see a strange logcat:
Code:
D/WifiService( 287): ACTION_BATTERY_CHANGED pluggedType: 2
I/global ( 287): Default buffer size used in BufferedReader constructor. It wo
uld be better to be explicit if an 8k-char buffer is required.
I/global ( 287): Default buffer size used in BufferedReader constructor. It wo
uld be better to be explicit if an 8k-char buffer is required.
D/BatteryService( 287): isUsbConnected() = true
D/BatteryService( 287): mPlugType = 2
E/Tethering( 287): active iface (usb0) reported as added, ignoring
D/UsbConnectedReceiver( 465): action = psclient.intent.action.usb_status
D/UsbConnectedReceiver( 465): ACTION_BATTERY_CHANGED
D/UsbConnectedReceiver( 465): usbCurrentType = 2
D/UsbConnectedReceiver( 465): Current type is same as previous, return!
D/dalvikvm( 404): GC_EXPLICIT freed 43 objects / 1784 bytes in 168ms
V/KeyguardViewMediator( 287): password timeout now
D/WifiService( 287): ACTION_BATTERY_CHANGED pluggedType: 2
I/global ( 287): Default buffer size used in BufferedReader constructor. It wo
uld be better to be explicit if an 8k-char buffer is required.
I/global ( 287): Default buffer size used in BufferedReader constructor. It wo
uld be better to be explicit if an 8k-char buffer is required.
D/BatteryService( 287): isUsbConnected() = true
D/BatteryService( 287): mPlugType = 2
E/Tethering( 287): active iface (usb0) reported as added, ignoring
D/UsbConnectedReceiver( 465): action = psclient.intent.action.usb_status
D/UsbConnectedReceiver( 465): ACTION_BATTERY_CHANGED
D/UsbConnectedReceiver( 465): usbCurrentType = 2
D/UsbConnectedReceiver( 465): Current type is same as previous, return!
Theses messages repeat every 2 seconds...
Any idea ?
I think this could help to kill battery drain issue.
I fixed it in my kernel and diffs in battery driver is:
schlund/r0bin kernel:
Code:
void notify_cable_status(int status)
{
printk("%s, VBUS IRQ triggered, VBUS=%d)\n", __func__,status);
//activate VBUS for usb driver
msm_hsusb_set_vbus_state(status);
//queue work to avoid blocking irq
queue_work(g_vbus_notifier_work_queue, &g_vbus_notifier_work);
}
my kernel:
Code:
int usb_disabled;
void notify_cable_status(int status)
{
printk("%s, VBUS IRQ triggered, VBUS=%d)\n", __func__,status);
//activate VBUS for usb driver
msm_hsusb_set_vbus_state(status);
if (status)
usb_disabled = 0;
//queue work to avoid blocking irq
queue_work(g_vbus_notifier_work_queue, &g_vbus_notifier_work);
}
schlund/r0bin:
Code:
//r0bin: fix battery drain issue & keep usb connection stable!
if(!((source==CHARGER_USB) || (source==CHARGER_AC)))
msm_hsusb_set_vbus_state(0);
my kernel:
Code:
//r0bin: fix battery drain issue & keep usb connection stable
//cardsharing-x: fix double call bug!
if (!((source==CHARGER_USB) || (source==CHARGER_AC))) {
if (!usb_disabled)
usb_disabled = 1;
}
if (usb_disabled == 1) {
msm_hsusb_set_vbus_state(0);
usb_disabled = 2;
}
I think schlund will implement it in his kernel?
munjeni said:
I think schlund will implement it in his kernel?
Click to expand...
Click to collapse
yes, and no, for my next project i am currently rewriting a whole new kernel, step by step, already fixed many issues, but actually battery driver is what i am working on. i am not using the old one.
however, i have to make a brake now with development, the screen got broken.
Okay thank you
But, it could be a source of problem or not ?
If i let this message appear, what could be the consequences ?
schlund said:
however, i have to make a brake now with development, the screen got broken.
Click to expand...
Click to collapse
I was hoping so much in two 2 / 3 weeks as announced ............... Do you think we do for Christmas a welcome gift?
thanks and good job
schlund said:
yes, and no, for my next project i am currently rewriting a whole new kernel, step by step, already fixed many issues, but actually battery driver is what i am working on. i am not using the old one.
however, i have to make a brake now with development, the screen got broken.
Click to expand...
Click to collapse
Huh, so remaing developer is only derefas?
i talked to my chinese dealer today because of the replacement part, seems it will take some weeks to get a new one (thank christmas), so
yes, i decided to give you a half christmas present:
originally i wanted to present you a cyanogenmod 7 for photon, codename "photonic" including a brand new 2.6.35 kernel, very fast, very clean, new battery driver, repaired mmc driver (copying files via usb), build in overclocking feature, repaired clock driver (time&alarm issue w/o workaround) etc etc...
because of the things happened to my phone yesterday i will present you this:
"photonic" cm 7.2.0 (gingerbread 2.3.7) with modified 2.6.32 kernel with at least the things working like previous releases. sorry for that.
as a special gift i will also offer a easy development environment with all sources for those that are interested. (btw this environment will be compatible with future lkbootloader )
EDIT: i can say it will be released ~ next 3 days
Great news Thank you schlund
I'm sorry for your broken screen...
good news! thanks a lot
can anyone test the last chainfire 3d ?
it seems that before i install chainfire i had more that 170 mah in sleep in flight mode
now i have 13 mah in flight mode
Sent from my Touchpad using xda premium
schlund said:
EDIT: i can say it will be released ~ next 3 days
Click to expand...
Click to collapse
Schlund hello, how are you .... there is nothing for us?
If we do not feel for Christmas, happy holidays
baggino said:
Schlund hello, how are you .... there is nothing for us?
If we do not feel for Christmas, happy holidays
Click to expand...
Click to collapse
I thought about that very thoroughly..
I am still very sad of my sources being leaked, i think you can understand that. I spend so much time -hours, days and nights- on CM 7.2, also on teaching others how to make the fixes. Finally its very disapointing to see it published (unfinished) by someone else.
I thought about giving up on the project, only to be used by myself. But I know lots of you are waiting for it. I still don't know how to handle my work (sources). If i open them again, someone will come and copy it, but on the other hand its stupid to hide them, they should be shared so that everybody can work on them.
Is it that bad to expect some respect on your work ?
I will make a Roadmap of my future plans and let you know
You have all my sympathy for the time you're going through, unfortunately the world is full of mediocre and cowardly. I refuse to believe that we are left with your ambitious project for our mini so I'm confident and ready for a restart. I unfortunately do not have the skills to help our merit, but I know that I respect.
I renew my best wishes for a Merry Christmas
schlund said:
I thought about that very thoroughly..
I am still very sad of my sources being leaked, i think you can understand that. I spend so much time -hours, days and nights- on CM 7.2, also on teaching others how to make the fixes. Finally its very disapointing to see it published (unfinished) by someone else.
I thought about giving up on the project, only to be used by myself. But I know lots of you are waiting for it. I still don't know how to handle my work (sources). If i open them again, someone will come and copy it, but on the other hand its stupid to hide them, they should be shared so that everybody can work on them.
Is it that bad to expect some respect on your work ?
I will make a Roadmap of my future plans and let you know
Click to expand...
Click to collapse
As I say before and allway say that, I always demanded that all work need to be accessible to all (one brain can not be smarter than a set of brains, and it is a fact!)... I understand you (but not all time) and I'm sorry about that, but that's why this project will never be completed because of hiding sources, hiding opinions... etc. Final fact is: this project is dead and tousands of the peoples sold his phone! I sold my phone from that reason becouse here no teamwork! Who understands me will understand what I say, who does not understand, I'm sorry, the fact is that everyone has different ideas and that each job with a new idea === the job is always better. I think that even if all errors come repaired, I think it's too late now to make someone happy!
munjeni said:
I think it's too late now to make someone happy!
Click to expand...
Click to collapse
No it's never too late for some of us... I live in Greece and recently i got fired from my job So i don't have enough money to buy another device. I'm stuck with my hd mini. A good release would make me very happy
Sadly Thing...
I thought everything here.. must be Open-Source Codes (that everyone can share together )
Anyway, We're Happiness and Very Thankfully for a Stable Android of Developers.
Well, I believe working together is not the same as sharing all sources. It is also needed to have agreement on a common goal and path. I hope that will still happen
Sent from my HTC Liberty using XDA App
schlund said:
I will make a Roadmap of my future plans and let you know
Click to expand...
Click to collapse
ops.........I have posted the new display of the mini? I hope to read you soon
ciao

Data Speed Fix (Linux Tweak)

Hello everyone,
I discovered a thread by marcusant a few months ago, and decided that I would share his fix with the Evo community. I take no credit for this work, and as always, you are responsible for your own actions. I am not responsible for any reboots, bootloops, bricks, or dead babies.
My personal use of this fix has shown some improvement in 3G speeds, while Wifi is unchanged. In the original thread, there are some successes and some failures.
marcusant said:
This is a known linux tweak and I have tested it on the epic and there seems to be mixed results. BTW, YMMV so don't go blaming me for messing up your phone... The zip is made for my rom but will most likely work on all others (even AOSP).
Open up /system/etc/sysctl.conf (make it if it isn't there)
Add the following...
Code:
net.ipv4.tcp_ecn=0
net.ipv4.route.flush = 1
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_rmem = 4096 39000 187000
net.ipv4.tcp_wmem = 4096 39000 187000
net.ipv4.tcp_mem = 187000 187000 187000
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
Click to expand...
Click to collapse
Original Thread Here
FYI, My changes:
Ping: 771ms before, 1341 after
D/L : 124kbps before, 69kbps after
U/L : 292kbps before, 70 after
So it would appear that it did the exact opposite of what I was hoping for.
Austin Air said:
FYI, My changes:
Ping: 771ms before, 1341 after
D/L : 124kbps before, 69kbps after
U/L : 292kbps before, 70 after
So it would appear that it did the exact opposite of what I was hoping for.
Click to expand...
Click to collapse
Sorry to hear that. There are some instances of that happening in the original thread. Didn't read anything about fixes as I never had a problem.
Interesting, I understand this should work on most devices, my Evo is running ics right now. Think it'll work?
If so what are the risks if I have a good NAND backup right. Worth a shot to me, gonna try when I get some time
Sent from my CM9 OGevo using XDA
You need better directions.
Just go into the folder and make a new .txt file, paste over your info and save it as whatever.conf?
And if it doesn't work can we just delete it?
Sent from my PC36100 using Tapatalk 2
Crossrocker said:
You need better directions.
Just go into the folder and make a new .txt file, paste over your info and save it as whatever.conf?
And if it doesn't work can we just delete it?
Sent from my PC36100 using Tapatalk 2
Click to expand...
Click to collapse
Agreed, but he did post the original thread also. From my understanding, its a simple copy and paste to the text file, simply put it at the bottom.

Can someone please tell me what is wrong with this code?

I am trying to use the .getPixels function on a bitmap. My code is as following:
int pixel;
int[] pixels;
pixels = new int[height*width];
pixel =src.getPixels(pixels, p, etc, , , , ) //here IntelliJ is telling me that the Expected Parameter is int[] but the Actual Paramer is "pixels"
Thank you!
Sent from my S500 using xda app-developers app
No, the method getPixels() doesn't return anything (it returns void). But with int pixel = src.getPixels(...) you want an int returned by the method.
Maybe you want use getPixel (without s) instead.
EmptinessFiller said:
No, the method getPixels() doesn't return anything (it returns void). But with int pixel = src.getPixels(...) you want an int returned by the method.
Maybe you want use getPixel (without s) instead.
Click to expand...
Click to collapse
Wow...now I realize my silly mistake..Oh God how tired i was to miss something so easy. Thank you

Categories

Resources