Sahil Reddy

Ranch Hand
+ Follow
since Jan 24, 2011
Merit badge: grant badges
For More
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
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sahil Reddy

Thanks Campbelll

It is System.arrayCopy();

Dont you think it is misplaced ?
9 years ago
Hello Friends

I tried finding the way to achieve the following but could not, could you please assist me in doing the following

1. I have two arrays Target and Source
2. I want to copy Source Array into Target Array starting from the given indices of Target Array.

Assume Target Array size >= Source Array

Fill method in Arrays class gives me an opportunity to add like this
Arrays.fill(target, 3, 6, 50);
which will add with all 50s starting from position 3

I want something like

Arrays.fill(target, 3, source);
so that it copies all the elements of Source to target starting from position 3;

Thanks and Warm Regards

9 years ago
I have 2 same images but one is the coloured version of the other.

Now what i want to achieve is the following

User draws Circle , i want to show the image inside the circle as coloured and one outside the Circle as black and white only.

i did canvas.draw for coloured and and black and white so the black and white is over the coloured , now i want to make above black and white thing transparent for inside circle and make the lower coloured
picture to be visible . I am unable to do the same.

Please assist

Regards
10 years ago
Hello Savvy pals

I made one RED vertical line in mspaint with .bmp extension. I tried finding values of RGB components in Android Programatically. I expected results to be just 255,0,0 for RGB components.
But i get many other values as well. Please let me know where i am doing wrong....

Here is the formula i used



Regards
10 years ago
Hello Geeks

I have a Circle as a BITMAP and my requirement is to know which screen coordinates the circle peripheral is covering and to know when someone touches the same and not the touch inside circle.

In general, how to get the screen coordinates the bitmap is covering ??

Thanks and Regards
Sahil
10 years ago
Context : Android
Problem : There are many "Brands" like mufti , levis , blackberry and so on. Each Brand contains Various categories like Jeans, t-shirts and so on.
As a user i want to select the Brand and then the Category and then want to see the various items in a particular category . These items will be shown in a VIEWPAGER wherein the user can swipe and see various items.


Present Solution : I am using ViewPager and it requires an instance of PagerAdapter which sends the Page in accordance to the position.

I extended PagerAdapter with mine "MyAdapter". MyAdapter class contains various if-else statements which decides the page to send back to "ViewPager" in accordance to the item and category chosen by a user.

So i tried cleaning up my code and ends up as follows

I created class hierarchy as follows

BaseAdapter
MuftiAdapter extends BaseAdapter
LevisAdapter extends BaseAdapter

and so on so forth....

MuftiAdapter knows about what to return in its various possible categories. Levis know its own....
I created one AdapterFactory which provides me the right instance.


AdapterFactory now decides which instance to return depending upon the BRAND and CATEGORY.


Someone asked me what iff there are 100 BRANDS , will you make 100 classes for the same which extends BaseAdapter ?

I am not sure whether my above design is right or wrong ??? Is there any better design in this case when number of brands are very high.???

Thanks and Regards

Hiii

Is there any way to tell the State and Country of Incoming number ??? Any Library or Logic or Web service is there ?

Reagards
10 years ago
Hiii

I am using TTS and it is working fine . Now i want to redirect the TTS to Bluetooth Headset if it is enabled. What should i do ???



Regards
10 years ago
Hello Geeks

I want to handle different devices with my android phone. I don't know where to start with. Should i use Bluetooth to talk to different devices or there could be other possibilities as well ?
Please direct me to the tutorials and books iff any.

Thanks and Regards
10 years ago
Hello geeks ,

I want to develop OCR reading in Android especially for reading bills.....simple names and amount (digits).

Please suggest approach.

Thanks and Regards
10 years ago
Hello Geeks

I am using SAX parser for parsing an XML document. I think i have fairly understood it except at the following point where i got stuck.

THe xml i am using for parsing contains COmments as well starting with ofcourse <!-- and ending woth --> .
But i am not finding any CALLBACK method for the same . Could you please tell me

1) Which callback method is invoked in my handler when comments in XML document is encountered.
2) IFF no callback is available then how can i get to know the same.

Thanks and regards
10 years ago
Hello Geeks

Is it possible to know whether the number is Land-line or not problematically ?? Is there any Library method available ???
10 years ago
Hello

1) Can i use Hibernate with Android, DB is located inside phone only......

2) I have heard abt MongoDB..... is it fine ?

10 years ago
Hello Geeks

1) Is it fine to use ORM for Android applications ?

2) Iff it is , then which ORM is the best one to use in Android Applications ?

3) Should it be backed by Mysql, Sqlite or otehr Database.... requirement is not much database operations.... Normal ones.

Thakns and Regards
Hello Geeks

1) Is it fine to use ORM for Android applications ?

2) Iff it is , then which ORM is the best one to use in Android Applications ?

3) Should it be backed by Mysql, Sqlite or otehr Database.... requirement is not much database operations.... Normal ones.

Thakns and Regards
10 years ago