Indonesia is a safe country to travel in.
The crime index here ranges from low to medium.
The main problems are related to petty thefts, assaults, pickpocketing.
Also, the country has a high level of corruption and bribery.
The crime rate has increased in recent years, but fortunately, it remains mostly non-violent, and guns are rare.
Robbery, theft, and pickpocketing are common in Indonesia, particularly in markets, public transport, and pedestrian overpasses.
Avoid flashing jewelry, gold watches, MP3 players, or large cameras. Thieves have been known to snatch laptops, PDAs, and cellphones from Internet hotspot areas.
Criminals are often found on local and intercity public transport (bus, train, ships). Carefully choose your taxis in cities (hotel taxis are often the best), lock the doors of your home, and settle in protected areas.  Do not leave valuables in an empty hotel room and use the hotel safe in place of the in-room safe.
Withdraw money only at ATMs at banks – some ATMs may set up equipment to withdraw your credit card details for robbery. Be careful.
Around some popular tourist attractions, you may face a variety of tourist targeted scams in Indonesia. They offer to bring you around, seemingly for free. What happens is usually a low-quality tour with an inflated tip demanded at the end.