Uncategorized

Customizing Background and Text color in Options Menu Android

Options menu in android can be customized to set the background or change the text appearance. The background and text color in the menu couldn’t be changed using themes and styles. The android source code (data\res\layout\icon_menu_item_layout.xml)uses a custom item of class “com.android.internal.view.menu.IconMenuItem”View for the menu layout. We can make changes in the above class to customize the menu. To achieve the same, use LayoutInflater factory class and set the background and text color for the view.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.my_menu, menu);

getLayoutInflater().setFactory(new Factory() {
@Override
public View onCreateView(String name, Context context,
AttributeSet attrs) {

if (name .equalsIgnoreCase(“com.android.internal.view.menu.IconMenuItemView”)) {
try {
LayoutInflater f = getLayoutInflater();
final View view = f.createView(name, null, attrs);

new Handler().post(new Runnable() {
public void run() {

// set the background drawable
view .setBackgroundResource(R.drawable.my_ac_menu_background);

// set the text color
((TextView) view).setTextColor(Color.WHITE);
}
});
return view;
} catch (InflateException e) {
} catch (ClassNotFoundException e) {
}
}
return null;
}
});
return super.onCreateOptionsMenu(menu);
}


Hindustan Times writing about Indian War Comics

After the Bangalore Mirror, it is now Hindustan Times publishing a news about JiniBooks and Indian War Comics available on iPad.

We all are now aware about ‘Indian War Comics’ and ‘BraveHearts of Mumbai – 26/11′ are available on iPad via JiniBooks. Its an honest and sincere effort by TechJini to make the content available digitaly, via iPad. Soon the other comics released by Indian War Comics will be available on iPad and other tablets as well. We are glad this effort is paying off and different media is also taking a note of our effort.

Congrats again to all the team!


Indian war heroes’ comics on iPad

Today Bangalore mirror published a small write up about TechJini’s efforts to salute the war heroes of Indian army.

Congrats to all TechJini team and especially Amit and Shyamal.

About ‘Bravehearts of Mumbai’

26/11/2008 is a sad day in Indian history, when the terrorists attacked the city of Mumbai. It was by brave effort of various Indian security forces like NSG, Mumbai Police the terror was brought to an end. Now Indian War Comics has immortalized story of one such hero, Maj Sandeep Unnikrishnan AC by launching their 3rd comic ‘Braveheart of Mumbai – 26/11’. The comic details Maj Sandeep Unnikrishnan’s valour while he was fighting Ajmal Kasab’s associates in Taj Hotel, during 60 hour Mumbai terror attacks in Nov 2008.

Indian War Comics has also partnered with TechJini Solutions, a Bangalore based IT company, to publish the stories on Smartphones and tablets using JiniBooks, an interactive content publishing platform. JiniBooks, enables small to medium size publishers and authors to reach bigger audience via digital medium. Authors can not only have static content but also build interactive magazines. Jinibooks is currently available only as an iPad application and soon it will be available for Android based tablets like Samsung tab etc.


Introduction to HTML 5 (part 1 of 10)

HTML 5

HTML is always considered as one of the important aspects of web development. Here, we are discussing about HTML5.

HTML5 which is currently under development is the next major revision of the HTML standard. Like its immediate Predecessors HTML4.01 and XHTML 1.1 , HTML5 is a standard for structuring and presenting content on world wide web.

This new standard incorporates features like video playback , drag and drop , geolocation, data storage , visiting websites offline , forms and many more.

Here is a brief history of HTML5.

HTML5 which is currently under development is the next major revision of the HTML standard.

There was never any such thing as HTML 1

The first official specification was HTML 2.0, published by the IETF, the Internet Engineering Task Force.

Later on the role of the IETF was superceded by the W3C, the World Wide Web Consortium, where subsequent iterations of the HTML standard have been published.

In the latter half of nineties HTML 4.01 was published.

After HTML 4.01, the next revision to the language was called XHTML 1.0

The content of the XHTML 1.0 specification was identical to that of HTML 4.01. No new elements or attributes were added.

The only difference was in the syntax of the language.

Valid XHTML 1.0 document requires all tags and attributes to be in lowercase. All attributes must be quoted.All elements must have a closing tag.

These rules were similar to that of XML.So they were moving towards XML more.

Then the W3C published XHTML 1.1.

It seemed as if the W3C were losing touch with the day-to-day reality of publishing on the web as they were moving towards XML.

They began working on XHTML 2

XHTML 2 wasn’t going to be backwards compatible with existing web content or even previous versions of HTML

Representatives from Opera, Apple and Mozilla were unhappy with this direction.

They formed their own group: the Web Hypertext Application Technology Working Group, or WHATWG

They started working on HTML Standard and came out with new revision HTML5

The W3C uses a consensus-based approach: issues are raised, discussed, and voted on.

At the WHATWG, issues are also raised and discussed, but the final decision on what
goes into a specification rests with the editor. The editor is Ian Hickson.

While HTML5 was being developed at the WHATWG, the W3C continued working on XHTML 2

Later on W3C admitted that the attempt to move the web from HTML to XML just wasn’t working.

Rather than start from scratch, they wisely decided that the work of the WHATWG should be used as the basis for any future version of HTML.

Later on W3C announced that they will stop working on XHTML 2 and they will support WHATWG.

There are two groups working on HTML5. The WHATWG is creating an HTML5 specification using its process of “commit then review.” The W3C HTML Working Group is taking that specification and putting it through its process of “review then
commit.”

TechJini Solutions
TechJini Solutions is Bangalore, India based company working in the areas of software product engineering services and creating next generation software products that bring real business value. We take pride in our philosophy of taking on challenging problems and providing innovative and outstanding solutions. We are proud to develop applications on different mobile/tablet platforms including iPhone, iPad, BlackBerry and Android.

Next time, we will look at Forms in HTML 5. Feel free to email me for more details – avidnyat@techjini.com


Height of ‘plagiarism’

Today while generating leads Santosh came across one of the most shocking and ridiculous ways companies seem to be ‘trying’ to do business.

Verna Technologies – I thought a lot but I have no idea what these guys are trying to do. They have copied our site word by word, even the founders name :) Only thing that is different is their address.

I tried to call the number but it is switched off, tried to contact their domain registrar but they are not working on Saturday. Will evaluate on Monday after talking to them once whether this calls for a legal action or not.

Are they real? or are they really so creative that they can’t even write what they have to offer?
TJHome | VernaHome
TJAbout | VernaAbout
VernaContact

WhoisVerna


Restoring monitor resolution on 17″ TFT

A lot of times I found my Acer 1702W 17″ TFT Monitor loosing its native resolution of 1400 X 900, which is ideal for the monitor to display the content properly. Even after doing a lot of search on various search engines I couldn’t find a method that guaranteed me results. Though I have an Intel Accelerated Graphics driver, I feel this solution should work for any card ATI, NVidia etc.

Follow the following steps in order to get back your monitor’s native resolution: -

1. From display settings, set screen resolution to higher resolution, I changed it to 1600 X 1024.
2. From your display driver installation CD, run setup application.
3. After the drivers are installed restart your computer.

This would bring back the native resolution for the monitor.

1 Comment more...

  • TechJini Solutions

  • © Copyright 2009 TechJini Solutions Private Limited. All Rights Reserved
    iDream theme by Templates Next | Powered by WordPress