Posts

android - How to create ListView disabled item labels for sections of list items? -

I have a customized cursor based adapter for my ListView . Each cursor has some columns of data, sorted by priority column. I know that you can create a disabled list item, such as working as a header, such as an app in the market (small green label). What I would like to do, will display the header for each group of each priority, they are already sorted by priority. Example data: heading, priority note 1, high note 3, high note 2, less note 4, lower Example of what I want in the ListView === High Priority ==== -note1 -note3 === Low Priority ==== = - Note2 -note4 How can I do this but any thoughts? Since you are using the cursor, you can try me. How to see its source for an example.

html - How can I avoid the overwriting of css properties? -

इस कोड को लें: #wh_wrapper #slider .scrollButtons.left {width: 100px ; } 100px की चौड़ाई केवल इस पर लागू की जा रही है: #wh_wrapper - & gt; # स्लाइडर - & gt; स्कॉलबटन्स छोड़ दिया अगर मैं ऐसा करता हूं: .left {width: 50px; } सभी .left वर्ग अब 50px की चौड़ाई है, जिसमें पहले से एक भी शामिल है । अब, मैं पूरी तरह से समझता हूँ कि कैसे इस त्रुटि से बचने के लिए (विशिष्ट वर्गों को सेट करना। #wh_wrapper #slider .scrollButtons.left आदि से पहले डाले।) मैं क्या पूछ रहा हूं अगर एक रास्ता है गुणों को निर्दिष्ट करने के लिए जो "वैश्विक" गुणों द्वारा ओवरराइट नहीं किए जा सकते। मुझे आशा है कि मैं खुद को समझाने में सक्षम था। धन्यवाद संपादित करें: अब मैं समझ गया! महत्वपूर्ण: -) लेकिन इस अन्य उदाहरण को देखें: #wh_wrapper #slider .scrollButtons.left {width: 100px! महत्वपूर्ण; }। Left {width: 50px; } अब #wh_wrapper #slider .scrollButtons.left अभी भी 100px होगा, लेकिन इसके बारे में: .left {width: 50px; सीमा: 1px ठोस # 000; } इससे पहले कि मैं उस...

Error calling method on NPObject! in Android 2.2 -

I am using the JavaScript interface inside my Android application so that JavaScript works on my Java Java application To invite. / P> It works well in Android 2.1, however, in Android 2.2, I'm calling the error message "Call to NPObject!" Calling the method when I call the basic method of internal calling, though the exception is throwing in javascript. I get this exact error: Uncheck error: Error in calling method on NPObject! Exits I was trying to do this with a JavaScript interface function from the web server: AndroidJS.populateField (field); On the Java side, the function does not accept parameters: public void populateField () {} Just the Java function is allowed to accept a parameter for me to solve this error. Example, public void populateField (string field) {} ​​ This is probably not possible, and possibly, due to only one reason throw this error May be. This is the only way to solve my specific scenario, hope it will help! :...

iphone - UIButton inside a view that has a UITapGestureRecognizer -

I have a view with a UITapGestureRecognizer . So when I tap on the scene, another view appears above this view. This new scene has three buttons when I now press one of these buttons, I do not get the button action, I get tap gesture action, so I can not use these buttons anymore. What can I do to get the events through these buttons? The strange thing is that the buttons are still highlighted. After getting the tap, I can not only remove the UITAP Jester Ranger because as well as the new view can be removed as well. I mean behave like full-screen visual controls . You can set your controller as a representative of UITapGestureRecognizer or The view (which also creates the gesture identifier) ​​can then apply to the - ogorian in the representative: Resigve touch: . In your implementation, you can test whether the touch comes under your new subview, and if this happens then instruct the gesture identifier to protect it. Something like the following: - (BOOL) sign: Ide...

content management system - White label/reseller eCommerce providers? -

I am looking for companies that allow white labeling / resellers of Portal / CMS that are focused on ecommerce , Or can be configured to include ecommerce. A possible example is a company that provides white labeling of Duplicate with UberCart. 1) Our company is a service provider that helps the customer to create a personal site our branded site offering our offerings Our company helps us in making a portal / site for help the customer helps us (the label will be used during our site as well as the service) but ideally, client site client Can be branded for 2) Our company Safe Labels is a reseller of service, under our brand Our company resells white label services, adding our company value to your client under your own example Is found. On the technical side, we are looking for profit from upgrades, availability, scalability etc. from any other version; Therefore research on white label providers. Update To clarify, I am looking for a company to work with ...

java - How to use Servlet 3 @WebServlet & async with Spring MVC 3? -

I want to integrate servlet 3.0 async support with spring MVC. Like something: @RequestMapping @WebServlet (name = "myServlet", asyncSupported = true) public string getMessage (string user name) {......} Is this possible? Not so fast, it is not easy to implement good long voting method. Works from, but there is a serious issue of "Thread Starvation" Every long voting will use a thread, if you have 1000 concurrent users then you will need a long service of upto 1000 votes. (Most of the time the server side status updates on the client browser Tetan) There is a continuous pattern in JT6, which intelligently releases the thread of the longest voting request to be used by the actual application logic.

java - Uploading Image using InputStreams = Out Of Memory error -

I'm trying to upload an image, but I'm getting something from memory errors if the image file is ~ 2 mega There is an Android device file file = new file (& lt; my image file & gt;); FileInputStream fis = New FileInputStream (file); HTTP Client Client = New HTTP Client (); PutMethod method = new purumath (myUrl); Request Entity Request Entity = New Interstitial Survey Entity (FIS); Method.setRequestEntity (requestEntity); Client.executeMethod (method); Exiting the memory error on the execute method method. How can I change the entire stream to read the memory and read the stream due to the accident? Sample of HT DDS output: 07 -27 10: 46: 24.334: debug / dalvikvm (26,576): 46 :: 24.374: 1196 objects in GC 6787 07-27 Oct. 522,592 bytes Debuts / dalvikvm (26,576): GC 33ms 07 freed 1738 objects / 196,752 bytes -27 10: 46: 24.374: information / dalvikvm-heap (26,576): 253,968-byte allocation Go to 5.184MB (frag case) for 07-27 October: 46: 24.414: Debug / dal...