yash wardhan

Ranch Hand
+ Follow
since Jan 22, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by yash wardhan

Hi,

I am trying to use https first time. I had gone through some tutorials, but can't find how to do following scenario.

I have few applications in my webapps folder of tomcat, out of which I want to use https for one application(say TestSSL) and other applications should use normal http.
I tried it and it's working, but at the same time the application(TsetSSL) is working with http also which I don't want. Is there a way to configure it somewhere that which application should which protocol, if not can anyone tell which is the best way to do this.


Thanks
10 years ago

Hi All,

Can we intercept HOME button click on android device or emulator.
If no, then which are the methods called before home screen is displayed on pressing HOME key?
I checked by overriding the life cycle methods of activity, it shows onPause() and onStop() are called but they are called even when we switch between the activities?
Any suggestions are appreciated

Regards,
11 years ago
Hi,

I want to know if there is a way to get the notification for inactivity timer.
My scenario is as given here

If user remains idle for 1 min. then I should get the notification so that I can exit the application.
How does the emulator/device gets the notification of idleness and the back light goes dim?

Can someone please guide me how to implement it or point to a sample application.

Thanks in advance
11 years ago
ANy reply android experts, still getting the exception
11 years ago
Any iputs please? Still couden't solve the problem.


Waiting for reply
11 years ago
Hi Pratik,

Thanks for your reply.

I tried your suggession but it is also not working.
Rather it is not showing the list itself. However, when I checked the logs, I can see the correct number of records fetched from DB.
When I deactivate the cursor in ListActivity class, I am getting empty message that I set in layout.xml for list and when I deactivate it in my adapter class's getView() it is not showing anything not even empty message.

Anyone please tell the solution.


Thanks
11 years ago
Hi Pratik,

This is the code


I tried closing the cursor in my getView() as last statement but then I am not able to see the list, it is showing the blank screen.
And closing it at the end of the above code gives some other exception.
11 years ago

Hi All,

I have an activity in which I am showing data in list format. The input for the list is comming from DB and I am using my own adapter class which extends SimpleCursorAdapter.
I am retrieving cursor from db class but I haven't closed the cursor myself, rather I have passed this cursor to startManagingSursor(), so I guess this will handle the closing cursor part. But when I am going to new activity from my ListActivity, I am getting Leak Found Exception.
Can any one please tell me how can I fix this?

Thanks in advance.
11 years ago
Hi All,

The problem is solved by changing height attribute in xml files.

I found this helping .
11 years ago
When I debugged the adapter I found that my getView() method is getting called twice the number of rows in the database.
Why is it happening, I think that is the problem that I am getting same name.

Waiting for help from anyone
11 years ago
Any replies.

I found an article here.

I am able to do my work as expected following the article but I am not getting each name on each row of list, I am getting same name (first from db) on each row, however, when I check the id in onListItemClick() method I am getting correct id for each name.

How to solve this problem?
Please reply
11 years ago
Hi All,

I have some data in table,(say _id,name), name is encrypted where as id is auto generated value.
I want to show the data in a ListView and I'm using SimpleCursorAdapter for keyvalue mapping.
But I am getting an error saying

android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string


This is because the encrypted data is stored in byte[].
My question is,
how can I convert the name column into original string and show in ListView?
I have a method for decryption.
Actually I want a functionality as, when user clicks on Name in the list, I should get corresponding id and I found SimpleCursorAdapter doing same thing as given in Notepad sample.

Waiting for help, thanks in advance
11 years ago
Hi Monu,

I tried following code which is not working.
The adapter is same as given in sample code here



In onItemClick() method bitmap is remaining null.
11 years ago
Hi All,

I am trying to write a sample remote service, I followed the steps given on android site in tools -> AIDL.
I followed the given sample in sample folder and able to run the service when the .aidl file, service, interface, client etc are in same project.
However I want to write the service in different project and want other client applications to use that service methods.But no success.

I have some question,

1. Is it required that the service should be running to use bindService(Intent)?
2. What is differnce between startService and bindService?

Can anyone help me in this? any sample tutorial which will help in getting comfortable with writing remote Services?


Thanks in advance,
11 years ago
Monu,
I tries that solution but may be doing something wrong, can you please post the code.
I tried the same code that you pointed to. I want to convert that byte[] into string and save in DB.


Thanks,
Yash
11 years ago