i would need to know the past 7 days record. i want to wrote a query for that in where condition. i have very basic knowledge in sqlite. Please help me for this query.
I would need to know how to handle the intent between tabs. For example, I have a tab activity with two tabs. First on content is a text view. another one is a map view. When i click that text view it redirects to the tab2. it can be easily achieved by setCurrentTab(1) or setCurrentTabByTag("tab2") methods. But i want to pass lat and long values to that Map Activity to drop pin. What is the better way to use intents or getter/setter in java? What do you prefer? if your answer is "Intents". How?
how to search a string Array with start with keyword?
for example,
String[] str={"abcd","abdc","bcda"};
when my search string is a
it must show
abcd and abdc
when my search string is abc then it should be abcd.
how to do? Any Idea?
Hi All,
I have a table called Employee with EmpID,Salary,Name fields.
I want to get top two employees with maximum salary.
How can i write this query ?
hi all,
In my App, first it shows a splash screen. after that another activity, then my main activity must be show. this is my design plan. the second activity(i.e before main activity) must be show for the first time user of the app. if he/she closes the app.splash screen will redirect to main activity automatically. how to do this ? Any Idea? i am developing my app for android phones.
Hi folks,
I am using 2 map Activities. do i want to register multiple Map APi key for each? Now I am getting this exception:
06-16 16:59:25.048: ERROR/MapActivity(10008): Couldn't get connection factory client
I googled about this exception. It concludes that must be a API Key Problem? Is that true? Why it happens?
Thanks
Hi folks,
I have name, phone number and E-mail infomation of a contact. I just want to insert the additional email and phone for the existing contact. My questions are
How to find the contact is already existing or not?
How to insert the values on the additional or secondary address option?
Thanks in Advance.
iam having a table with columns like
id || counter
if i do something (some event) i want the counter's value(at a particular id) to increase by one , currently iam doing this :
//get current value
current_value = select counter from myTable where id='someValue'
// increase value
current_value++
//update table with current value
update myTable set counter=current_value where id='someValue';
currently iam running 2 queries for this, please suggest me some way do it in one step.
is the main method is must needed to write a java code.
this my code :
package example;
public class HelloWorld {
public HelloWorld() {
}
public String getHelloWorld() {
return "Hello From Java!";
}
}
it shows error at compilation :
java.lang.NoSuchMethodError: main
Exception in thread "main"
I have two divs i need to perform toggling between two divs
while doing this some of the divs in my main div are not displaying none ie7
unction initMakeAPost()
{
$('questionheaderid').hide(); //hiding the questions section
$('MP_questionofday_txtboxid').hide();//hiding the questions answer"textbox and button" section
$('recaspotheaderid').hide();//hiding the search by txtspotname and city-spots
//$('footer_userpost').hide();//hiding the footer
$('makeapostid').show();//show the make a post content
$('btnQAPost').hide();
$('footer_userpost').hide();//Vamsi:Hiding the footer intitially
$('sreetCredContainer').hide();
$('postbtnid_dead').hide();
$('askNextQuestion').hide();
//$('UploadImgContainer').show();// for upload
}
evn if i hide it doesnt hide in IE7
Hi,
I'm wondering what mail servers I should use for sending mail through my website, avoiding them sent as spam.
Hostgator SMTP
google hosted SMTP
I found that to avoid a mail sent as spam it should have the same host in "From:" and "Received". How to overcome this?
Thanks
Hi folks,
I have name, phone number and E-mail infomation of a contact. I just want to insert the additional email and phone for the existing contact. My questions are
How to find the contact is already existing or not?
How to insert the values on the additional or secondary address option?
Thanks in Advance.
while xml parsing, i have a string value like this :
android & iphone
but my parsed value(output what i am getting) is just:
android
then i used the normalize method it comes :
android iphone
But i need a output like:
android & iphone
How to do that? Any Idea?
How to do the startActivityResult() for the Quick Search Box? that is if i click a button in my activity. it should wake up the QSB and search. i click the suggestion button. it will return the string which is shown as a suggestion. how to do it? which intent action i have to use and how ? Any Idea?
EDIT:
i am using android:searchSuggestIntentAction="android.intent.action.VIEW" attribute. its reloads the current Activity.Why? which intent action i have to use and how ?
I am creating a <div> with a class someClass
.someClass {
overflow:scroll
/*other props*/
}
The problem is that the scrollbars are always visible even when the data is not overflowing. I want the scrollbars to be visible only when data actually overflows.
I need Backup configuration of Hudson Master systems
Detailed information
If a Hudson Master system goes down, we need to be able to bring it back up on a different VM as soon as possible (may be 3 hours). Therefore, I need to develop a way to backup the configuration and resetup a new VM reliabily. can any body let me know best way step by step.
THANKS
I refered this link.I am using the uri for streetview:
Uri.parse("google.streetview:cbll=" + sv_lat_val + ","+ sv_long_val + "&cbp=1,45,,45,0.0&mz=0.0")
But the zoom level always in Zoomed state. 1.0 is the normal zoom. so i set it for 0.0 . still its not zoomed out. why? But it working in default Google maps App? Any idea?
How can I be sure that a file passed to my program is a valid exe file ?
actually my program takes a file as input and runs it, but user can input any file so I have to make sure that the input is a valid exe.
iam having 2 tables
table Items Table (this table holds all items iam having)
itemId
---------
Item1
Item2
Item3
Item4
Item5
table 2 users_item relation
UserId || ItemId
1 || Item1
1 || Item2
userId one has stored 2 items Item1,Item2.
Now i want to write a query on table1 (Items table) so that it displays all items which user1 has NOT chosen.
Hi All,
I am eager to know the difference between ac onst variable and a static variable.
As far as I know a const is also static and can not be accessed on instance variable that's same like static , then what is the difference between them ?
Please explain ...